AvatarAddonScope
DSL scope for declaring an addon inside a UserAvatar.
Methods on this scope are composable: they emit UI directly when called and return an AvatarAddonItem marker that callers discard. This mirrors SegmentedControlScope, with one deviation: the avatar supports a single addon rather than a list, so only the last emitted node is laid out at the 45-degree polar position.
The outer layout node applies androidx.compose.ui.graphics.CompositingStrategy.Offscreen so that BlendMode.Clear punches a transparent border ring correctly.
Functions
Link copied to clipboard
Emits arbitrary composable content as the avatar addon.
Link copied to clipboard
Emits the standard online presence indicator: a filled SparkTheme.colors.success circle with a transparent border ring punched out via BlendMode.Clear.