Contents

init(accessoryData:bluetoothPeerIdentifier:)

Creates a configuration for an accessory with the given Bluetooth peer identifier.

Declaration

init(accessoryData: Data, bluetoothPeerIdentifier identifier: UUID) throws

Parameters

  • accessoryData:

    The accessory’s configuration data formatted to the Nearby Interaction.

  • identifier:

    The accessory’s Bluetooth peer identifier. For more information, see Cbpeer Identifier.

Mentioned in

Discussion

Use this initializer when your app interacts with a Bluetooth accessory that’s paired to the device to enable interaction while your app is in the background.

See Also

Creating a configuration