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:eventContext:

Called when a map item is updated.

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

Parameters

map

The map.

item

The updated item.

eventContext

Context for this event.

Discussion

Called when a map item is updated.

Declared In

TWSMap.h

– onMap:itemRemovedWithKey:eventContext:

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

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

Parameters

map

The map.

eventContext

Context for this event.

item

The removed item.

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