Click or drag to resize
Local Multiplayer for iOS/tvOS/macOS
AppleLocalMultiplayerIPeerDiscovery Interface
Access to the native built-in service advertiser. Whenever another peer sends an invitation, present a dialog that allows declining or accepting the invitation. Very easy to use and setup, but limited to a single interaction model.

Namespace:  LostPolygon.Apple.LocalMultiplayer
Syntax
C#
public interface IPeerDiscovery

The AppleLocalMultiplayerIPeerDiscovery type exposes the following members.

Methods
  NameDescription
Public methodCloseBrowser
Closes the peer browser UI.
Public methodOpenBrowser
Opens the peer browser UI.
Top
Events
  NameDescription
Public eventCancelled
Occurs when "Cancel" button is pressed in the peer browser UI.
Public eventFinished
Occurs when "Finish" button is pressed in the peer browser UI.
Public eventNearbyPeerPresenting
Occurs when a peer is found and is about to be presented in the peer browser UI. Note: this event is called on a background thread, which means that you can't access Unity APIs from within the handler of this event.
Top
See Also