Contents

init(peerToken:)

Creates a configuration for interaction between devices, including iPhone and Apple Watch.

Declaration

init(peerToken: NIDiscoveryToken)

Parameters

  • peerToken:

    The value of another device’s discovery token. This value uniquely identifies the other peer in the interaction session.

Mentioned in

Discussion

To acquire a peer’s discovery token, two instantiations of the app exchange their respective discoveryToken over the network using a method you choose. For a discussion that covers sharing discovery tokens using Multipeer Connectivity, see Discovering peers with Multipeer Connectivity.