@UnstableApi
public final class PlayerId


Identifier for a player instance.

Summary

Constants

static final PlayerId

A player identifier with unset default values that can be used as a placeholder or for testing.

Public constructors

Creates an instance for API <31.

@RequiresApi(value = 31)
PlayerId(LogSessionId logSessionId)

Creates an instance for API ≥ 31.

Public methods

LogSessionId

Returns the LogSessionId for this player instance.

Constants

UNSET

public static final PlayerId UNSET

A player identifier with unset default values that can be used as a placeholder or for testing.

Public constructors

PlayerId

public PlayerId()

Creates an instance for API <31.

PlayerId

@RequiresApi(value = 31)
public PlayerId(LogSessionId logSessionId)

Creates an instance for API ≥ 31.

Parameters
LogSessionId logSessionId

The LogSessionId used for this player.

Public methods

getLogSessionId

@RequiresApi(value = 31)
public LogSessionId getLogSessionId()

Returns the LogSessionId for this player instance.