TechnologiesApp Extensions & System Integration

AccessoryTransportExtension

iOSmacOStvOSwatchOSvisionOS

AccessoryTransportExtension configures and manages the communication transport session between an accessory extension and its host process on iOS. You build an accessory extension by conforming to AccessoryTransportAppExtension and supplying configuration through AccessoryTransportExtensionConfiguration and AccessoryDataProviderConfiguration, then exchange data over an AccessoryTransportSession that carries AccessoryMessage and TransportMessage values. The framework also models the secured channel through AccessorySecuritySession, AccessoryTransportSecurity, and SecurityMessage, and represents the underlying link with the AccessoryTransport enum.

Building an Accessory Extension 3

The principal protocols you adopt to implement an accessory transport extension and supply its data.

  • Pr
    AccessoryTransportAppExtension
    Protocol for the accessory extension's body property to conform to.
  • Pr
    AccessoryDataProvider
    Protocol for the accessory extension's body property to conform to.
  • Pr
    AccessoryFeature
    A protocol that represents a feature an accessory extension exposes to its host.

Configuration 3

Protocols that describe how the extension, its data provider, and its security layer are configured.

  • Pr
    AccessoryTransportExtensionConfiguration
    Configures and manages communication between the extension and the host process.
  • Pr
    AccessoryDataProviderConfiguration
    Configures and manages communication between the extension and the host process.
  • Pr
    AccessoryTransportSecurityConfiguration
    Configures and manages communication between the extension and the host process.

Transport Sessions 2

The session objects that carry data between an accessory extension and its host process.

  • Cl
    AccessoryTransportSession
    Manages a session between the extension and host process.
  • En
    AccessoryTransport
    Supported transport types.

Secured Channel 2

Types that establish and represent the secured communication channel with an accessory.

  • Cl
    AccessorySecuritySession
    Manages a session between the extension and host process.
  • Pr
    AccessoryTransportSecurity
    Protocol for the accessory extension's body property to conform to.

Messages 3

The value types exchanged over a transport or security session.

  • St
    AccessoryMessage
    A structure that represents a message exchanged with an accessory over a transport session.
  • St
    TransportMessage
    A structure that represents a message carried over the underlying transport.
  • St
    SecurityMessage
    A message carrying key material used to negotiate a secure channel between a host and an accessory.

Extends 1

NSXPCConnection
← App Extensions & System Integration