Click or drag to resize
Local Multiplayer for iOS/tvOS/macOS
AppleLocalMultiplayerICustomServiceAdvertiser Interface
Provides full programmatic access to the service advertiser API. Allows implementing complex custom behaviours (like auto-joining the session or implementing a in-game invitation accept/decline interface).

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

The AppleLocalMultiplayerICustomServiceAdvertiser 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 eventInvitationReceived
Occurs when an invitation to join the session has been received.
Public eventStartFailed
Occurs when starting the advertiser has failed.
Top
See Also