Instance Property

securityIdentity

The security identity of the local peer.

Declaration

var securityIdentity: [Any]? { get }

Discussion

You set this value when you initialize the session object. It cannot be changed later. For details on this value, see the documentation for init(peer:securityIdentity:encryptionPreference:).

See Also

Creating a Session

init(peer: MCPeerID)

Creates a Multipeer Connectivity session.

init(peer: MCPeerID, securityIdentity: [Any]?, encryptionPreference: MCEncryptionPreference)

Creates a Multipeer Connectivity session, providing security information.

var delegate: MCSessionDelegate?

The delegate object that handles session-related events.

var encryptionPreference: MCEncryptionPreference

A value indicating whether the connection prefers encrypted connections, unencrypted connections, or has no preference.

var myPeerID: MCPeerID

A local identifier that represents the device on which your app is currently running.