@magiclane/maps-sdk
    Preparing search index...

    Class ContentStoreAbstract

    Content store object

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

    Index

    Accessors

    Methods

    • Asynchronously search the online store content with given filters.

      Parameters

      • type: ContentType

        Content list type (see ContentType).

      • countries: string[] | null

        Optional list of ISO 3166 country codes to restrict the search.

      • area: GeographicArea | null

        Optional geographic area to search in.

      • onCompleteCallback: (err: GemError, items: ContentStoreItem[] | null) => void

        Callback invoked when the operation completes.

      Returns EventDrivenProgressListener | null

      The associated ProgressListener if the request can be started, null otherwise.

    • Gets the extras item having the specified ID.

      Parameters

      • id: number

      Returns ContentStoreItem | null

    • Gets access to the last requested filtered list.

      Filtered list should be requested via a call to asyncGetStoreFilteredList.

      Returns ContentStoreItem[]

      List of ContentStoreItem representing the last filtered list.

    • Refresh the content store by loading external changes from disk.

      Returns void

    • Deprecated alias for refresh kept for backward compatibility.

      Returns void

      Use refresh() instead.

    • Set parallel downloads count.

      Parameters

      • count: number

      Returns void