Enumeration

MCEncryptionPreference

Indicates whether a session should use encryption when communicating with nearby peers.

Declaration

typedef enum MCEncryptionPreference : NSInteger {
    ...
} MCEncryptionPreference;

Topics

Constants

MCEncryptionOptional

The session prefers to use encryption, but accepts unencrypted connections. A connection uses encryption when all the peers choose either MCEncryptionOptional or MCEncryptionRequired. If some peers choose MCEncryptionNone, then the session will not be encrypted. For this reason, if some peers running your app can be configured without encryption, you should always assume that the session is unencrypted.

MCEncryptionRequired

The session requires encryption.

MCEncryptionNone

The session should not be encrypted.