DataHolderSubscriber

public protocol DataHolderSubscriber : AnyObject

Subscriber for receiving data holder discovery events.

  • Notifies the subscriber of a batch of data holders discovered or updated during a scan.

    Declaration

    Swift

    func dataHoldersUpdated(_ dataHolders: [DataHolder])

    Parameters

    dataHolders

    The batch of updated data holders.

  • Notifies the subscriber that the subscription connection state has changed.

    The subscriber will not receive data holder change notifications until the connection state changes to .connected, and will stop receiving them once it changes to .disconnected.

    Declaration

    Swift

    func connectionStatusChanged(_ state: ConnectionState)

    Parameters

    state

    The new connection state.