PlayerHead

fun UiScope.PlayerHead(source: PlayerSkinSource = PlayerSkinSource.CurrentPlayer, size: Int = 24, showHat: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null, loadingContent: UiScope.() -> Unit? = null, failureContent: UiScope.() -> Unit? = null)(source)

Emits one square layered player head.

Pixel sources render immediately. Lookup sources are resolved asynchronously by the active runtime, publish only at a frame boundary, and ignore completions from superseded sources. loadingContent and failureContent each emit zero or one root and are displayed only for their matching state.

Receiver

active owner-thread screen scope.

Parameters

source

immutable pixels or a platform-neutral profile lookup.

size

positive logical square extent.

showHat

whether the outer hat layer is painted after the face.

modifier

active behavior applied to the head.

key

optional stable sibling identity.

loadingContent

optional zero-or-one-root loading presentation.

failureContent

optional zero-or-one-root failure presentation.

Throws

when pixels, size, or state callback cardinality is invalid.

when no runtime screen evaluation is active.