Home > @magiclane/maps-sdk > ContentUpdater
ContentUpdater class
Provides functionality to update content in the GEM SDK content store.
This class should not be instantiated directly. Instead, use ContentStore.createContentUpdater() to obtain an instance.
An object used for applying updates to downloaded content packages. It represents a single update session (created by the ContentStore) and is used to start or resume an update, report progress and status changes, and complete the update flow.
Content
Signature:
export declare class ContentUpdater Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates a new ContentUpdater instance. Should not be called directly; use ContentStore.createContentUpdater(). |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
boolean |
Checks if the content update can be applied. | |
|
|
Gets the content type being updated. | ||
|
|
boolean |
Checks if the content updater has started. | |
|
|
Gets the list of content items involved in the update process. | ||
|
|
number |
Gets the map ID for this updater. | |
|
|
number | bigint |
Gets the pointer ID for this updater. | |
|
|
number |
Gets the progress value of the update operation. Progress values are calculated with respect to ProgressListener.progressMultiplier. | |
|
|
Gets the current status of the update operation. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Applies the content update. | ||
|
Cancels the content update operation. | ||
|
Disposes the updater and releases associated resources. | ||
|
|
Initializes a new ContentUpdater instance. Should not be called directly; use ContentStore.createContentUpdater(). | |
|
Starts or resumes the update process. |