Contents

activate(on:eventHandler:)

Activate the session and start delivering events to an event handler.

Declaration

func activate(on queue: dispatch_queue_t, eventHandler: @escaping (ASAccessoryEvent) -> Void)

Parameters

  • queue:

    The dispatch the session uses to deliver events to eventHandler.

  • eventHandler:

    A closure or block that receives events generated by the session. Each callback to the event handler provides an Asaccessoryevent as a parameter, and expects no return value.

Mentioned in

See Also

Managing the session life cycle