Home > @magiclane/maps-sdk > ContentStore

ContentStore class

Content store object

This behaves like a singleton, i.e. all instances are sharing behind the same API interface

Content

Signature:

export declare abstract class ContentStore 

Properties

Property

Modifiers

Type

Description

transferStatistics

static

readonly

TransferStatistics

Get the transfer statistics

Methods

Method

Modifiers

Description

asyncGetStoreContentList(type, onCompleteCallback)

static

Asynchronously gets an online store content list.

asyncGetStoreFilteredList(type, countries, area, onCompleteCallback)

static

Asynchronously search the online store content with given filters.

cancel(listener)

static

Cancels an asynchronous operation.

checkForUpdate(type)

static

Check for update on the given content type.

createContentUpdater(type)

static

Creates a content updater for the given content type.

getItemById(id)

static

Gets the extras item having the specified ID.

getLocalContentList(type)

static

Gets access to the installed content list.

getStoreContentList(type)

static

Gets access to the store cached content list. Returns a Pair of <Content list, locally cached flag>.

getStoreFilteredList()

static

Gets access to the last requested filtered list.

Filtered list should be requested via a call to asyncGetStoreFilteredList.

refresh()

static

Refresh the content store by loading external changes from disk.

refreshContentStore()

static

Deprecated alias for refresh kept for backward compatibility.

setParallelDownloadsLimit(count)

static

Set parallel downloads count.