Edit

Share via


MCSessionDelegate.DidReceiveCertificate Method

Definition

Indicates peerID wishes to join the session. certificateHandler must be called.

[Foundation.Export("session:didReceiveCertificate:fromPeer:certificateHandler:")]
public virtual bool DidReceiveCertificate (MultipeerConnectivity.MCSession session, Security.SecCertificate[] certificate, MultipeerConnectivity.MCPeerID peerID, Action<bool> certificateHandler);
abstract member DidReceiveCertificate : MultipeerConnectivity.MCSession * Security.SecCertificate[] * MultipeerConnectivity.MCPeerID * Action<bool> -> bool
override this.DidReceiveCertificate : MultipeerConnectivity.MCSession * Security.SecCertificate[] * MultipeerConnectivity.MCPeerID * Action<bool> -> bool

Parameters

session
MCSession
certificate
SecCertificate[]

To be added.

This parameter can be null.

peerID
MCPeerID
certificateHandler
Action<Boolean>

Returns

Attributes

Remarks

When overriding this method, the application developer must invoke the certificateHandler, passing in true if the peer should be accepted to the session.

The Multipeer Connectivity framework makes no attempt to validate passed certificates. It is the application developer's responsibility to ensure their validity.

Applies to