TWSListDelegate Protocol Reference

Conforms to NSObject
Declared in TWSList.h

Overview

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

– onListResultOpened:

Called when the list referenced is opened.

- (void)onListResultOpened:(nonnull TWSList *)list

Parameters

list

The list.

Discussion

Called when the list referenced is opened.

Declared In

TWSList.h

– onList:resultItemAddedAtIndex:forFlowID:

Called when a list item is added as a result of a local operation.

- (void)onList:(nonnull TWSList *)list resultItemAddedAtIndex:(TWSItemIndex)itemIndex forFlowID:(NSUInteger)flowId

Parameters

list

The list.

itemIndex

The index of the item.

flowId

A developer specified identifier for this remote request.

Discussion

Called when a list item is added as a result of a local operation.

Declared In

TWSList.h

– onList:resultItemRemovedAtIndex:forFlowID:

Called when the list item at the specified index is removed as a result of a local operation.

- (void)onList:(nonnull TWSList *)list resultItemRemovedAtIndex:(TWSItemIndex)itemIndex forFlowID:(NSUInteger)flowId

Parameters

list

The list.

itemIndex

The index of the item.

flowId

A developer specified identifier for this remote request.

Discussion

Called when the list item at the specified index is removed as a result of a local operation.

Declared In

TWSList.h

– onList:resultItemUpdatedAtIndex:forFlowID:

Called when the list item at the specified index is updated as a result of a local operation.

- (void)onList:(nonnull TWSList *)list resultItemUpdatedAtIndex:(TWSItemIndex)itemIndex forFlowID:(NSUInteger)flowId

Parameters

list

The list.

itemIndex

The index of the item.

flowId

A developer specified identifier for this remote request.

Discussion

Called when the list item at the specified index is updated as a result of a local operation.

Declared In

TWSList.h

– onList:resultErrorOccurred:forFlowID:

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

- (void)onList:(nullable TWSList *)list resultErrorOccurred:(nonnull TWSError *)error forFlowID:(NSUInteger)flowId

Parameters

list

The list.

error

The error encounted.

flowId

A developer specified identifier for this remote request.

Discussion

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

Declared In

TWSList.h

– onList:resultCollectionRemovedForFlowID:

Called when the list is removed as a result of a local operation.

- (void)onList:(nonnull TWSList *)list resultCollectionRemovedForFlowID:(NSUInteger)flowId

Parameters

list

The list.

flowId

A developer specified identifier for this remote request.

Discussion

Called when the list is removed as a result of a local operation.

Declared In

TWSList.h

– onList:remoteItemAddedAtIndex:item:

Called when a list item is added as a result of a remote operation.

- (void)onList:(nonnull TWSList *)list remoteItemAddedAtIndex:(TWSItemIndex)itemIndex item:(nonnull TWSListItem *)item

Parameters

list

The list.

itemIndex

The index of the item.

item

The item.

Discussion

Called when a list item is added as a result of a remote operation.

Declared In

TWSList.h

– onList:remoteItemUpdatedAtIndex:item:

Called when a list item is updated as a result of a remote operation.

- (void)onList:(nonnull TWSList *)list remoteItemUpdatedAtIndex:(TWSItemIndex)itemIndex item:(nonnull TWSListItem *)item

Parameters

list

The list.

itemIndex

The index of the item.

item

The item.

Discussion

Called when a list item is updated as a result of a remote operation.

Declared In

TWSList.h

– onList:remoteItemRemovedAtIndex:

Called when a list item is removed as a result of a remote operation.

- (void)onList:(nonnull TWSList *)list remoteItemRemovedAtIndex:(TWSItemIndex)itemIndex

Parameters

list

The list.

itemIndex

The index of the item.

Discussion

Called when a list item is removed as a result of a remote operation.

Declared In

TWSList.h

– onListRemoteCollectionRemoved:

Called when the list is removed as a result of a remote operation.

- (void)onListRemoteCollectionRemoved:(nonnull TWSList *)list

Parameters

list

The list.

Discussion

Called when the list is removed as a result of a remote operation.

Declared In

TWSList.h

– onList:remoteErrorOccurred:

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

- (void)onList:(nonnull TWSList *)list remoteErrorOccurred:(nullable TWSError *)error

Parameters

list

The list.

error

The error encounted.

Discussion

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

Declared In

TWSList.h