MSFMemoryCacheTileDataSource
Objective-C
@interface MSFMemoryCacheTileDataSource : MSFCacheTileDataSource
Swift
class MSFMemoryCacheTileDataSource : MSFCacheTileDataSource
A tile data source that loads tiles from another tile data source and caches them in memory. This cache is not persistent, tiles will be cleared once the application closes. Default cache capacity is 6MB.
-
Constructs a MemoryCacheTileDataSource object from tile data source.
Declaration
Objective-C
- (id)initWithDataSource:(MSFTileDataSource *)dataSource;Swift
init!(dataSource: MSFTileDataSource!)Parameters
dataSourceThe datasource to be cached.
-
Undocumented
Declaration
Objective-C
- (MSFTileData *)loadTile:(MSFMapTile *)mapTile;Swift
func load(_ mapTile: MSFMapTile!) -> MSFTileData! -
Undocumented
Declaration
Objective-C
-(MSFTileData*)loadTileSwigExplicitMSFMemoryCacheTileDataSource: (MSFMapTile*)mapTile;Swift
func loadTileSwigExplicitMSFMemoryCacheTileDataSource(_ mapTile: MSFMapTile!) -> MSFTileData! -
Undocumented
Declaration
Objective-C
- (void)clear;Swift
func clear() -
Undocumented
Declaration
Objective-C
-(void)clearSwigExplicitMSFMemoryCacheTileDataSource;Swift
func clearSwigExplicitMSFMemoryCacheTileDataSource() -
Undocumented
Declaration
Objective-C
- (unsigned long)getCapacity;Swift
func getCapacity() -> UInt -
Undocumented
Declaration
Objective-C
-(unsigned long)getCapacitySwigExplicitMSFMemoryCacheTileDataSource;Swift
func getCapacitySwigExplicitMSFMemoryCacheTileDataSource() -> UInt -
Undocumented
Declaration
Objective-C
- (void)setCapacity:(unsigned long)capacityInBytes;Swift
func setCapacity(_ capacityInBytes: UInt) -
Undocumented
Declaration
Objective-C
-(void)setCapacitySwigExplicitMSFMemoryCacheTileDataSource: (unsigned long)capacityInBytes;Swift
func setCapacitySwigExplicit(_ capacityInBytes: UInt) -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()