iOS Guides | Samples

MultipeerConnectivity.MCEncryptionPreference Enumeration

An enumeration whose values specify whether an MCSession should encrypt its connection. Used with MCSession.MCSession(MCPeerID,SecIdentity,MCEncryptionPreference).

Syntax

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Native]
public enum MCEncryptionPreference

Members

Member NameDescription
NoneA preference for unencrypted connections.
OptionalNo preference.
RequiredConnections should be encrypted.

Requirements

Namespace: MultipeerConnectivity
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of MultipeerConnectivity.MCEncryptionPreference are listed below.

See Also: Enum

Public Fields

NoneMCEncryptionPreference. A preference for unencrypted connections.
OptionalMCEncryptionPreference. No preference.
RequiredMCEncryptionPreference. Connections should be encrypted.