setPlayer

open override fun setPlayer(player: Player?)

Sets the Player instance, for which the UI acts. If a Player is already set, it will be detached before the new one is attached. Also, if null is provided, the currently attached Player will be detached.

Parameters

player

The Player that should be set.