Contents

sessionInvalidated(error:)

Notifies the handler when its feature session ends.

Declaration

func sessionInvalidated(error: (any Error)?)

Parameters

  • error:

    An optional error that indicates why the session ends. A nil value indicates ordinary completion.

Discussion

The framework throws AccessoryTransportSession.Error.unavailable if the device loses feature eligibility as the session runs. Release any references to the session when the system calls this method.

See Also

Handling the session life cycle