Contents

AccessoryTransportSession.Error.unavailable

An error that indicates the feature isn’t available on the device.

Declaration

case unavailable

Discussion

activate() and AccessoryWorker/requestAuthorization(for:) (and the matching AccessoryGPUWorker/requestAuthorization(for:)) throw this error when the system determines that the feature isn’t currently eligible to run on the device. makeFeatureSession(_:) doesn’t throw it. If a device loses eligibility while a feature session is already running, the system reports the error through sessionInvalidated(error:) instead.

Region is the only eligibility check behind this error. The framework restricts AccessoryWorker and AccessoryGPUWorker to the EU-region devices described in Accessory Transport Extension. The system doesn’t restrict eligibility by device class.

See Also

Identifying session errors