subscribe For Event
open fun subscribeForEvent(@NonNull eventName: String, @NonNull callback: TileStoreGenericEventCallback): Cancelable
WARNING: This API is not intended for public usage. It can be deleted or changed without any notice. Subscribes to a `TileStoreGenericEvent` event. Note: The user-provided callbacks will be executed on a TileStore-controlled worker thread; it is the responsibility of the user to dispatch to a user-controlled thread and avoid blocking TileStore worker thread for long time.
Return
automatic cancellation object. You should not get notifications anymore when this object is destroyed or after you call cancel.
See also
Tile Store Generic Event Callback
Parameters
event Name
The name of event to subscribe to. Valid names are listed in \c TileStoreEventNames.
callback
The callback to execute when subscribed event happens