![]() |
|
AppleLocalMultiplayerISession Interface |
Namespace: LostPolygon.Apple.LocalMultiplayer
public interface ISession
The AppleLocalMultiplayerISession type exposes the following members.
Name | Description | |
---|---|---|
![]() | IsSessionActive |
Whether session is currently active.
|
Name | Description | |
---|---|---|
![]() | GetConnectedPeers |
Gets the array of peers that are connected to the session.
|
![]() | GetConnectedPeers(PeerId) |
Gets peers that are connected to the session, and stores them in the provided buffer.
|
![]() | GetConnectedPeersCount |
Gets the number of peers that are connected to the session.
|
![]() | SetLocalPeerName |
Sets the name of the local peer.
|
![]() | SetServerPort |
Sets the server port. Must be called before starting the networking server.
|
![]() | SetServiceType |
Sets the service type identifier.
|
![]() | StartSession |
Starts the session.
|
![]() | StopSession |
Disconnects current device from the session, stops all service advertisers and peer browsers.
|
Name | Description | |
---|---|---|
![]() | PeerStateChanged |
Occurs when the connection state of a peer has changed.
|
![]() | Started |
Occurs when session has been started.
|
![]() | Stopped |
Occurs when session has been stopped.
|