NTTileData


@interface NTTileData : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A wrapper class for tile data.

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Parameters

    object

    The reference object.

    Return Value

    True when objects are equal, false otherwise.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Return Value

    The hash value of this object.

  • Constructs a TileData object from a data blob.

    Declaration

    Objective-C

    - (id)initWithData:(NTBinaryData *)data;

    Parameters

    data

    The source tile data.

  • Returns the maximum age of the tile data, tile data will expire after that point.

    Declaration

    Objective-C

    - (long long)getMaxAge;

    Return Value

    Tile data maximum age in milliseconds, or -1 if the data does not expire.

  • Sets the maximum age of tile data, tile data will expire after that point.

    Declaration

    Objective-C

    - (void)setMaxAge:(long long)maxAge;

    Parameters

    maxAge

    Tile data maximum age in milliseconds, or -1 if the data does not expire.

  • Returns true if the tile should be replaced with parent tile.

    Declaration

    Objective-C

    - (BOOL)isReplaceWithParent;

    Return Value

    True if the tile should be replaced with parent. False otherwise.

  • Set the parent replacement flag.

    Declaration

    Objective-C

    - (void)setReplaceWithParent:(BOOL)flag;

    Parameters

    flag

    True when the tile should be replaced with the parent, false otherwise.

  • Returns tile data as binary data.

    Declaration

    Objective-C

    - (NTBinaryData *)getData;

    Return Value

    Tile data as binary data.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;