UNPKG

@nativescript-community/ui-carto

Version:
19 lines (18 loc) 1.14 kB
import { TileDownloadListener as ITileDownloadListener, MemoryCacheTileDataSourceOptions, PersistentCacheTileDataSourceOptions } from './cache'; import { TileDataSource } from '.'; import { MapBounds } from '../core'; export declare class PersistentCacheTileDataSource extends TileDataSource<com.carto.datasources.PersistentCacheTileDataSource, PersistentCacheTileDataSourceOptions> { capacity: number; cacheOnlyMode: number; createNative(options: PersistentCacheTileDataSourceOptions): com.carto.datasources.PersistentCacheTileDataSource; close(): void; clear(): void; isOpen(): boolean; stopAllDownloads(): void; loaderListener: com.akylas.carto.additions.AKTileDownloadListener; startDownloadArea(mapBounds: MapBounds, minZoom: number, maxZoom: number, tileDownloadListener: ITileDownloadListener): Promise<void>; } export declare class MemoryCacheTileDataSource extends TileDataSource<com.carto.datasources.MemoryCacheTileDataSource, MemoryCacheTileDataSourceOptions> { capacity: number; createNative(options: MemoryCacheTileDataSourceOptions): com.carto.datasources.MemoryCacheTileDataSource; }