public class EOS_Metrics_Interface
extends com.sun.jna.PointerType
EOS_Platform_Interface.getMetricsInterface()| Constructor and Description |
|---|
EOS_Metrics_Interface() |
EOS_Metrics_Interface(com.sun.jna.Pointer address) |
| Modifier and Type | Method and Description |
|---|---|
EOS_EResult |
beginPlayerSession(EOS_Metrics_BeginPlayerSessionOptions options)
Logs the start of a new game session for a local player.
|
EOS_EResult |
endPlayerSession(EOS_Metrics_EndPlayerSessionOptions options)
Logs the end of a game session for a local player.
|
public EOS_Metrics_Interface(com.sun.jna.Pointer address)
public EOS_Metrics_Interface()
public EOS_EResult beginPlayerSession(EOS_Metrics_BeginPlayerSessionOptions options)
The game client should call this function whenever it joins into a new multiplayer, peer-to-peer or single player game session. Each call to BeginPlayerSession must be matched with a corresponding call to EndPlayerSession.
options - Structure containing the local player's game account and the game session information.EOS_EResult.EOS_Success on success, or an error code if the input parameters are invalid or an active session for the player already exists.public EOS_EResult endPlayerSession(EOS_Metrics_EndPlayerSessionOptions options)
Call once when the game client leaves the active game session. Each call to BeginPlayerSession must be matched with a corresponding call to EndPlayerSession.
options - Structure containing the account id of the player whose session to end.EOS_EResult.EOS_Success on success, or an error code if the input parameters are invalid or there was no active session for the player.