@Deprecated public class GKSession extends NSObject
Constructor and Description |
---|
GKSession(String sessionID,
String displayName,
int GKSessionMode)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptConnectionFromPeer(String peerID,
crossmobile.rt.StrongReference<NSError> error)
Deprecated.
|
void |
cancelConnectToPeer(String peerID)
Deprecated.
|
void |
connectToPeer(String peerID,
double timeout)
Deprecated.
|
GKSessionDelegate |
delegate()
Deprecated.
|
void |
denyConnectionFromPeer(String peerID)
Deprecated.
|
void |
disconnectFromAllPeers()
Deprecated.
|
void |
disconnectPeerFromAllPeers(String peerID)
Deprecated.
|
double |
disconnectTimeout()
Deprecated.
|
String |
displayName()
Deprecated.
|
String |
displayNameForPeer(String peerID)
Deprecated.
|
boolean |
isAvailable()
Deprecated.
|
String |
peerID()
Deprecated.
|
List<String> |
peersWithConnectionState(int GKPeerConnectionState)
Deprecated.
|
boolean |
sendData(NSData data,
List<String> peers,
int GKSendDataMode,
crossmobile.rt.StrongReference<NSError> error)
Deprecated.
|
boolean |
sendDataToAllPeers(NSData data,
int GKSendDataMode,
crossmobile.rt.StrongReference<NSError> error)
Deprecated.
|
String |
sessionID()
Deprecated.
|
int |
sessionMode()
Deprecated.
|
void |
setAvailable(boolean available)
Deprecated.
|
void |
setDataReceiveHandler(GKDataReceiveHandler handler,
Object context)
Deprecated.
|
void |
setDelegate(GKSessionDelegate delegate)
Deprecated.
|
void |
setDisconnectTimeout(double disconnectTimeout)
Deprecated.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
@Deprecated public GKSession(String sessionID, String displayName, int GKSessionMode)
sessionID
- The id of the GKSession.displayName
- The name of the GKSession.GKSessionMode
- The mode of the GKSession.GKSessionMode
@Deprecated public GKSessionDelegate delegate()
@Deprecated public void setDelegate(GKSessionDelegate delegate)
delegate
- The delegate of this GKSession.@Deprecated public boolean isAvailable()
@Deprecated public void setAvailable(boolean available)
available
- TRUE then this GKSession will be available to connect to
new peers.@Deprecated public double disconnectTimeout()
@Deprecated public void setDisconnectTimeout(double disconnectTimeout)
disconnectTimeout
- The delay time until this GKSession quits a peer
that does not respond.@Deprecated public String displayName()
@Deprecated public String peerID()
@Deprecated public String sessionID()
@Deprecated public int sessionMode()
@Deprecated public List<String> peersWithConnectionState(int GKPeerConnectionState)
GKPeerConnectionState
- The state for which the peers are requested.@Deprecated public String displayNameForPeer(String peerID)
peerID
- The id of the peer for whose name is requested.@Deprecated public void connectToPeer(String peerID, double timeout)
peerID
- The peer to which a connection is attempted.timeout
- The amount of time before aborting the connection attempt.@Deprecated public void cancelConnectToPeer(String peerID)
peerID
- The peer to which attempt of connection is aborted.@Deprecated public boolean acceptConnectionFromPeer(String peerID, crossmobile.rt.StrongReference<NSError> error)
peerID
- The peer which requests connection.error
- The error that occurs in case of failure.@Deprecated public void denyConnectionFromPeer(String peerID)
peerID
- The peer whose attempt to connect is canceled.@Deprecated public void setDataReceiveHandler(GKDataReceiveHandler handler, Object context)
handler
- The handler of the data that other peers sent.context
- Data to the handler.@Deprecated public boolean sendData(NSData data, List<String> peers, int GKSendDataMode, crossmobile.rt.StrongReference<NSError> error)
data
- The data to be sent.peers
- The list of the connected peers to which the data is send.GKSendDataMode
- The reliability used during sending the data.error
- The error that occurs in case of failure.@Deprecated public boolean sendDataToAllPeers(NSData data, int GKSendDataMode, crossmobile.rt.StrongReference<NSError> error)
data
- The data to be sent.GKSendDataMode
- The reliability used during sending the data.error
- The error that occurs in case of failure.@Deprecated public void disconnectFromAllPeers()
@Deprecated public void disconnectPeerFromAllPeers(String peerID)
peerID
- The id of the peer to disconnect.Copyright © 2020. All rights reserved.