why deepstreamHub? compare us getting started feature roadmap faq
use cases pricing
products
developers
company
blog contact

List entry callbacks, called whenever an entry is added, removed or moved within the list

Methods

onEntryAdded(_:entry:pos:)

func onEntryAdded(_ name: String, entry: String, position: Int) -> Void
argument type description
name String The name of the list that changed
entry String The entry that has been added
position int The index of the item added

Notified whenever an entry is added

onEntryRemoved(_:entry:pos:)

func onEntryRemoved(_ name: String, entry: String, position: Int) -> Void
argument type description
name String The name of the list that changed
entry String The entry that has been removed
position int The index of the item removed

Notified whenever an entry is removed

onEntryMoved(_:entry:pos:)

func onEntryMoved(_ name: String, entry: String, position: Int) -> Void
argument type description
name String The name of the list that changed
entry String The entry that was moved within the list
position int The index of the item was moved to

Notified whenever an entry is moved