public interface GKPeerPickerControllerDelegate
Modifier and Type | Method and Description |
---|---|
default void |
didCancel(GKPeerPickerController p1)
It is used after user's cancellation of connection attempt.
|
default void |
didConnectPeer(GKPeerPickerController p1,
String p2,
GKSession p3)
It is used after a peer is connected to the session.
|
default void |
didSelectConnectionType(GKPeerPickerController p1,
int p2)
It is used when the user selects a connection type.
|
default GKSession |
sessionForConnectionType(GKPeerPickerController p1,
int p2)
It is used in order to return the session of the specified connection
type.
|
default void didSelectConnectionType(GKPeerPickerController p1, int p2)
p1
- The GKPeerPickerController that corresponds to this delegate.p2
- The connection type that the user selected.default GKSession sessionForConnectionType(GKPeerPickerController p1, int p2)
p1
- The GKPeerPickerController that corresponds to this delegate.p2
- The connection type for which the session is requested.default void didConnectPeer(GKPeerPickerController p1, String p2, GKSession p3)
p1
- The GKPeerPickerController that corresponds to this delegate.p2
- The id of the peer that is connected.p3
- The session to which the peer is connected.default void didCancel(GKPeerPickerController p1)
p1
- The GKPeerPickerController that corresponds to this delegate.Copyright © 2020. All rights reserved.