Instance Property

securityIdentity

The security identity of the local peer.

Declaration

iOS, Mac Catalyst, tvOS
@property(readonly, nonatomic) NSArray *securityIdentity;
macOS
@property(readonly, atomic) NSArray *securityIdentity;

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 initWithPeer:securityIdentity:encryptionPreference:.

See Also

Creating a Session

- initWithPeer:

Creates a Multipeer Connectivity session.

- initWithPeer:securityIdentity:encryptionPreference:

Creates a Multipeer Connectivity session, providing security information.

delegate

The delegate object that handles session-related events.

encryptionPreference

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

myPeerID

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