Beamable SDK
|
This type defines the Client main entry point for the Session feature. More...
Public Member Functions | |
SessionService (IBeamableRequester requester, IDependencyProvider provider, SessionParameterProvider parameterProvider, SessionDeviceOptions deviceOptions) | |
Promise< EmptyResponse > | StartSession (User user, string advertisingId, string locale) |
Starts a new Beamable user session. A session will record user analytics and track the user's play times. This method is automatically called by the Beamable SDK anytime the user changes and when Beamable SDK is initialized. More... | |
Promise< EmptyResponse > | SendHeartbeat () |
Notifies the Beamable platform that the session is still active. This method is automatically called at a standard interval by the Beamable SDK itself. More... | |
Promise< Session > | GetHeartbeat (long gamerTag) |
Get the current Session of a player by their gamertag. More... | |
Properties | |
float | SessionStartedAt [get] |
float | TimeSinceLastSessionStart [get] |
Properties inherited from Beamable.Api.Sessions.ISessionService | |
float | SessionStartedAt [get] |
The number of seconds after the game startup that the session was begun. | |
float | TimeSinceLastSessionStart [get] |
The number of seconds ago that the most recent session was started. | |
This type defines the Client main entry point for the Session feature.
Get the current Session of a player by their gamertag.
gamerTag | The gamertag of the player to find the Session for. |
Implements Beamable.Api.Sessions.ISessionService.
|
inline |
Notifies the Beamable platform that the session is still active. This method is automatically called at a standard interval by the Beamable SDK itself.
Implements Beamable.Api.Sessions.ISessionService.
|
inline |
Starts a new Beamable user session. A session will record user analytics and track the user's play times. This method is automatically called by the Beamable SDK anytime the user changes and when Beamable SDK is initialized.
advertisingId | |
locale |
Implements Beamable.Api.Sessions.ISessionService.