androidx.xr.glimmer

UI components for building augmented Android XR experiences

Classes

ButtonSize

ButtonSize represents the different size variants of a Button.

Colors

A set of named color parameters for a GlimmerTheme.

ComponentSpacingValues

A set of named component spacing values for GlimmerTheme.

DepthEffect

The depth effect establishes a sense of hierarchy by using shadows to occlude content underneath.

DepthEffectLevels

Jetpack Compose Glimmer components can use DepthEffect to establish a sense of hierarchy.

GlimmerTheme

Jetpack Compose Glimmer contains different theme subsystems to allow visual customization across an application.

IconSizes

A set of named icon sizes.

Shapes

Jetpack Compose Glimmer surfaces can use different shapes.

SurfaceDepthEffect

Represents the DepthEffect used by a surface in different states.

Typography

The Jetpack Compose Glimmer type scale includes a range of contrasting styles that support the needs of your product and its content.

Objects

ButtonDefaults

Default values used for Button.

CardDefaults

Default values used for Card

ListItemDefaults

Default values used for ListItem

SurfaceDefaults

Default values used for surface.

TitleChipDefaults

Default values used for TitleChip.

TypographyDefaults

Contains the default style values used by Typography.

Composables

Button

Button is a component used for exposing actions to a user.

Card

Card is a component used to group related information into a single digestible unit.

GlimmerTheme

Jetpack Compose Glimmer contains different theme subsystems to allow visual customization across an application.

Icon

An icon component that draws bitmap, with a default size of LocalIconSize, and applies a content color tint.

ListItem

ListItem is a component used to represent a single item in a androidx.xr.glimmer.list.VerticalList.

Text

High level element that displays text and provides semantics / accessibility information.

TitleChip

Title Chip is a component used to provide context for associated content, such as a Card.

surface

A surface is a fundamental building block in Glimmer.

Modifiers

contentColorProvider

Provides contentColor for text and iconography to consume.

depthEffect

Renders shadows for the provided depthEffect.

onIndirectPointerGesture

A Modifier that detects high-level click and horizontal swipe gestures from an IndirectPointerEvent source.

Top-level functions summary

Color
calculateContentColor(backgroundColor: Color)

Calculates the preferred content color for backgroundColor.

Top-level properties summary

ProvidableCompositionLocal<Dp>

CompositionLocal containing the preferred size of an icon.

ProvidableCompositionLocal<TextStyle>

CompositionLocal containing the preferred TextStyle that will be used by Text components by default.

Top-level functions

calculateContentColor

fun calculateContentColor(backgroundColor: Color): Color

Calculates the preferred content color for backgroundColor. This will return either Color.White or Color.Black, depending on the luminance of the background color.

Top-level properties

LocalIconSize

val LocalIconSizeProvidableCompositionLocal<Dp>

CompositionLocal containing the preferred size of an icon. This value will be used by Icon by default - it can be overridden with a size modifier.

LocalTextStyle

val LocalTextStyleProvidableCompositionLocal<TextStyle>

CompositionLocal containing the preferred TextStyle that will be used by Text components by default.