Click or drag to resize
Local Multiplayer for iOS/tvOS/macOS
ISession Methods

The AppleLocalMultiplayerISession type exposes the following members.

Methods
  NameDescription
Public methodGetConnectedPeers
Gets the array of peers that are connected to the session.
Public methodGetConnectedPeers(PeerId)
Gets peers that are connected to the session, and stores them in the provided buffer.
Public methodGetConnectedPeersCount
Gets the number of peers that are connected to the session.
Public methodSetLocalPeerName
Sets the name of the local peer.
Public methodSetServerPort
Sets the server port. Must be called before starting the networking server.
Public methodSetServiceType
Sets the service type identifier.
Public methodStartSession
Starts the session.
Public methodStopSession
Disconnects current device from the session, stops all service advertisers and peer browsers.
Top
See Also