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
readerThe 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
readerThe reader that the access decision was made on
resultIf non-nil, the access request completed, and this contains the decision that was made for the access request
errorIf non-nil, the access request failed, and this contains the error
AccessDelegate Protocol Reference