Click or drag to resize
Local Multiplayer for iOS/tvOS/macOS
AppleLocalMultiplayerIServiceAdvertiser 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 IServiceAdvertiser

The AppleLocalMultiplayerIServiceAdvertiser type exposes the following members.

Properties
  NameDescription
Public propertyIsAdvertising
Whether advertiser is currently active.
Top
Methods
  NameDescription
Public methodStartAdvertising
Start advertising the current service to nearby peers.
Public methodStopAdvertising
Stops advertising of the current service to nearby peers.
Top
Events
  NameDescription
Public eventInvitationDismissed
Occurs when user taps "Dismiss" or "Accept" in the incoming invitation UI.
Public eventInvitationPresenting
Occurs when incoming invitation UI is about to be shown.
Top
See Also