TWSMapDelegate Protocol Reference

Conforms to NSObject
Declared in TWSMap.h

Overview

The delegate that will be called with lifecycle updates for the map.

– onMapOpened:

Called when the map referenced is opened.

- (void)onMapOpened:(nonnull TWSMap *)map

Parameters

map

The map.

Discussion

Called when the map referenced is opened.

Declared In

TWSMap.h

– onMap:itemAdded:eventContext:

Called when a map item is added.

- (void)onMap:(nonnull TWSMap *)map itemAdded:(nonnull TWSMapItem *)item eventContext:(nonnull TWSEventContext *)eventContext

Parameters

map

The map.

item

The added item.

eventContext

Context for this event.

Discussion

Called when a map item is added.

Declared In

TWSMap.h

– onMap:itemUpdated:previousItemData:eventContext:

Called when a map item is updated.

- (void)onMap:(nonnull TWSMap *)map itemUpdated:(nonnull TWSMapItem *)item previousItemData:(nonnull TWSData *)previousItemData eventContext:(nonnull TWSEventContext *)eventContext

Parameters

map

The map.

item

The updated item.

previousItemData

The data of the item before the change.

eventContext

Context for this event.

Discussion

Called when a map item is updated.

Declared In

TWSMap.h

– onMap:itemRemovedWithKey:previousItemData:eventContext:

Called when the map item with the specified key is removed.

- (void)onMap:(nonnull TWSMap *)map itemRemovedWithKey:(nonnull NSString *)itemKey previousItemData:(nonnull TWSData *)previousItemData eventContext:(nonnull TWSEventContext *)eventContext

Parameters

map

The map.

itemKey

The key of the removed item.

previousItemData

The data of the item before removing.

eventContext

Context for this event.

Discussion

Called when the map item with the specified key is removed.

Declared In

TWSMap.h

– onMapCollectionRemoved:eventContext:

Called when the map is removed.

- (void)onMapCollectionRemoved:(nonnull TWSMap *)map eventContext:(nonnull TWSEventContext *)eventContext

Parameters

map

The map.

eventContext

Context for this event.

Discussion

Called when the map is removed.

Declared In

TWSMap.h

– onMap:errorOccurred:

Called when an error occurs as a result of a local operation.

- (void)onMap:(nonnull TWSMap *)map errorOccurred:(nonnull TWSError *)error

Parameters

map

The map.

error

The error encounted.

Discussion

Called when an error occurs as a result of a local operation.

Declared In

TWSMap.h