AccessDelegate

public protocol AccessDelegate : AnyObject

A delegate for implementing handlers on access requests

  • Function called to indicate start of an access attempt

    Declaration

    Swift

    func onAccessStarted(reader: Reader)

    Parameters

    reader

    The reader the access requested for

  • Function called when an access request has completed successfully with a result. Otherwise, a non-nil error to indicate failure

    Declaration

    Swift

    func onAccessCompleted(reader: Reader, result: AccessResult?, error: ReaderConnectionError?)

    Parameters

    reader

    The reader that the access decision was made on

    result

    If non-nil, the access request completed, and this contains the decision that was made for the access request

    error

    If non-nil, the access request failed, and this contains the error