Instance Property

disconnectTimeout

A time interval that expresses how long the session waits before it disconnects a nonresponsive peer.

Declaration

var disconnectTimeout: TimeInterval { get set }

Discussion

The timeout is the waiting period before disconnecting a peer from the session. If a peer is disconnected, the delegate’s session(_:peer:didChange:) method is called.

See Also

Working with Connected Peers

func setDataReceiveHandler(Any!, withContext: UnsafeMutableRawPointer!)

Sets the object that handles data received from other peers connected to the session.

Deprecated
func send(Data!, toPeers: [Any]!, with: GKSendDataMode)

Transmits a collection of bytes to a list of connected peers.

Deprecated
func sendData(toAllPeers: Data!, with: GKSendDataMode)

Transmits a collection of bytes to all connected peers.

Deprecated
func disconnectFromAllPeers()

Disconnects the session from all connected peers.

Deprecated
func disconnectPeer(fromAllPeers: String!)

Disconnects a connected peer from all peers connected to the session.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software