getPlayerId

public int getPlayerId()

Retrieves the unique identifier for this player instance.

The ID is guaranteed to be unique within the application context, allowing multiple player instances to be distinguished.

Example usage:

SurfaceView surfaceView = findViewById(R.id.surface_view);
SandboxedPlayer player = new SandboxedPlayer(context, surfaceView);
int playerId = player.getPlayerId();
Log.d("Client", "Player ID: " + playerId);

Return

The instance ID, guaranteed to be unique within the application context.