playerHead

abstract fun playerHead(source: PlayerSkinSource, size: Int, showHat: Boolean, loading: Element?, failure: Element?, modifier: Modifier, key: ElementKey<*>?): Element(source)

Creates one player-head element and defers any asynchronous lookup represented by source to node attachment.

Return

an immutable retained-element description whose node owns any lookup lifetime.

Parameters

source

detached pixels or a structural player lookup.

size

positive logical head size.

showHat

whether the outer skin layer is painted.

loading

optional root shown while an asynchronous lookup is pending.

failure

optional root shown after lookup failure.

modifier

active behavior around the head.

key

optional stable sibling identity.