TWSListDelegate Protocol Reference

Conforms to NSObject
Declared in TWSList.h

Overview

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

– onListOpened:

Called when the list referenced is opened.

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

Parameters

list

The list.

Discussion

Called when the list referenced is opened.

Declared In

TWSList.h

– onList:itemAdded:eventContext:

Called when a list item is added.

- (void)onList:(nonnull TWSList *)list itemAdded:(nonnull TWSListItem *)item eventContext:(nonnull TWSEventContext *)eventContext

Parameters

list

The list.

item

The added item.

eventContext

Context for this event.

Discussion

Called when a list item is added.

Declared In

TWSList.h

– onList:itemRemovedWithIndex:eventContext:

Called when the list item at the specified index is removed.

- (void)onList:(nonnull TWSList *)list itemRemovedWithIndex:(TWSItemIndex)itemIndex eventContext:(nonnull TWSEventContext *)eventContext

Parameters

list

The list.

itemIndex

The index of the removed item.

eventContext

Context for this event.

Discussion

Called when the list item at the specified index is removed.

Declared In

TWSList.h

– onList:itemUpdated:eventContext:

Called when the list item at the specified index is updated.

- (void)onList:(nonnull TWSList *)list itemUpdated:(nonnull TWSListItem *)item eventContext:(nonnull TWSEventContext *)eventContext

Parameters

list

The list.

item

The updated item.

eventContext

Context for this event.

Discussion

Called when the list item at the specified index is updated.

Declared In

TWSList.h

– onList:collectionRemovedWithEventContext:

Called when the list is removed.

- (void)onList:(nonnull TWSList *)list collectionRemovedWithEventContext:(nonnull TWSEventContext *)eventContext

Parameters

list

The list.

eventContext

Context for this event.

Discussion

Called when the list is removed.

Declared In

TWSList.h

– onList:errorOccurred:

Called when an error occurs.

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

Parameters

list

The list.

error

The error encounted.

Discussion

Called when an error occurs.

Declared In

TWSList.h