Contents

accept(_:)

Accepts the session request with an event handler.

Declaration

final func accept<Handler>(_ sessionRequestHandler: () -> Handler) -> AccessorySecuritySession.Request.Decision where Handler : AccessorySecuritySession.EventHandler

Parameters

  • sessionRequestHandler:

    A closure that creates and returns an event handler.

Mentioned in

Discussion

The system invokes the handler with security events throughout the key exchange process.

See Also

Responding to the request