Beamable SDK
|
Public Member Functions | |
Promise< EmptyResponse > | StartSession (User user, string advertisingId, string locale) |
Begin a new session for the current player. This happens automatically during the initialization of a player's BeamContext. More... | |
Promise< Session > | GetHeartbeat (long gamerTag) |
Get the current Session of a player by their gamertag. More... | |
Promise< EmptyResponse > | SendHeartbeat () |
Send a heartbeat for the current user's session. Sending a heartbeat prolongs the session that was started with StartSession. This method is called automatically after the IHeartbeatService.Start method has been called, which happens automatically when the BeamContext starts. More... | |
Get the current Session of a player by their gamertag.
gamerTag | The gamertag of the player to find the Session for. |
Implemented in Beamable.Api.Sessions.SessionService.
Promise< EmptyResponse > Beamable.Api.Sessions.ISessionService.SendHeartbeat | ( | ) |
Send a heartbeat for the current user's session. Sending a heartbeat prolongs the session that was started with StartSession. This method is called automatically after the IHeartbeatService.Start method has been called, which happens automatically when the BeamContext starts.
Implemented in Beamable.Api.Sessions.SessionService.
Promise< EmptyResponse > Beamable.Api.Sessions.ISessionService.StartSession | ( | User | user, |
string | advertisingId, | ||
string | locale | ||
) |
Begin a new session for the current player. This happens automatically during the initialization of a player's BeamContext.
user | The User that is starting a session. |
advertisingId | An advertising ID that will be included in the session stats. When the session is started, by default, the AdvertisingIdentifier.GetIdentifier is given. |
locale | The language code string that the session should use. |
Implemented in Beamable.Api.Sessions.SessionService.