Stay organized with collections Save and categorize content based on your preferences.

PlayerId

@UnstableApi
class PlayerId


Identifier for a player instance.

Summary

Constants

const 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 functions

LogSessionId!

Returns the LogSessionId for this player instance.

Constants

UNSET

const val UNSETPlayerId!

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

Public constructors

PlayerId

PlayerId()

Creates an instance for API <31.

PlayerId

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

Creates an instance for API ≥ 31.

Parameters
logSessionId: LogSessionId!

The LogSessionId used for this player.

Public functions

getLogSessionId

@RequiresApi(value = 31)
fun getLogSessionId(): LogSessionId!

Returns the LogSessionId for this player instance.