Beamable SDK
Public Member Functions | List of all members
Beamable.Experimental.Api.Matchmaking.MatchmakingService Class Reference

This class defines the main entry point for the Matchmaking feature. More...

Public Member Functions

 MatchmakingService (IPlatformService platform, IBeamableRequester requester)
 
Promise< MatchmakingHandleStartMatchmaking (ContentRef< SimGameType > gameTypeRef, Action< MatchmakingHandle > updateHandler=null, Action< MatchmakingHandle > readyHandler=null, Action< MatchmakingHandle > timeoutHandler=null)
 Initialize the matchmaking process. More...
 
Promise< MatchmakingHandleStartMatchmaking (string gameType, Action< MatchmakingHandle > updateHandler=null, Action< MatchmakingHandle > readyHandler=null, Action< MatchmakingHandle > timeoutHandler=null, TimeSpan? maxWait=null)
 Initialize the matchmaking process. More...
 
Promise< UnitCancelMatchmaking (string gameType)
 Cancels matchmaking for the player More...
 

Detailed Description

This class defines the main entry point for the Matchmaking feature.

Related Links

img beamable-logo

Member Function Documentation

◆ CancelMatchmaking()

Promise<Unit> Beamable.Experimental.Api.Matchmaking.MatchmakingService.CancelMatchmaking ( string  gameType)
inline

Cancels matchmaking for the player

Parameters
gameTypeThe string id of the game type we wish to be removed from

◆ StartMatchmaking() [1/2]

Promise<MatchmakingHandle> Beamable.Experimental.Api.Matchmaking.MatchmakingService.StartMatchmaking ( ContentRef< SimGameType gameTypeRef,
Action< MatchmakingHandle updateHandler = null,
Action< MatchmakingHandle readyHandler = null,
Action< MatchmakingHandle timeoutHandler = null 
)
inline

Initialize the matchmaking process.

Parameters
gameTypeRef
updateHandler
readyHandler
timeoutHandler
Returns
A MatchmakingHandle which will be updated via push notifications.

◆ StartMatchmaking() [2/2]

Promise<MatchmakingHandle> Beamable.Experimental.Api.Matchmaking.MatchmakingService.StartMatchmaking ( string  gameType,
Action< MatchmakingHandle updateHandler = null,
Action< MatchmakingHandle readyHandler = null,
Action< MatchmakingHandle timeoutHandler = null,
TimeSpan?  maxWait = null 
)
inline

Initialize the matchmaking process.

Parameters
gameType
updateHandler
readyHandler
timeoutHandler
maxWait
Returns
A MatchmakingHandle which will be updated via push notifications.

The documentation for this class was generated from the following file: