@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

PlayerId(playerName: String!)

Creates an instance for API <31.

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

Creates an instance for API ≥ 31.

Public functions

Boolean
equals(o: Any?)
LogSessionId!

Returns the LogSessionId for this player instance.

Int

Public properties

String!

A name to identify the player.

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(playerName: String!)

Creates an instance for API <31.

Parameters
playerName: String!

The name of the player, for informational purpose only.

PlayerId

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

Creates an instance for API ≥ 31.

Parameters
logSessionId: LogSessionId!

The LogSessionId used for this player.

playerName: String!

The name of the player, for informational purpose only.

Public functions

equals

fun equals(o: Any?): Boolean

getLogSessionId

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

Returns the LogSessionId for this player instance.

hashCode

fun hashCode(): Int

Public properties

name

val nameString!

A name to identify the player. Use setName to set the name, otherwise an empty string is used as the default.