RemoteHorizontalPageIndicator

Functions summary

Unit
@RemoteComposable
@Composable
RemoteHorizontalPageIndicator(
    state: RemotePageIndicatorState,
    modifier: RemoteModifier,
    selectedColor: RemoteColor,
    unselectedColor: RemoteColor,
    indicatorRadius: RemoteDp,
    padding: RemoteDp
)

A horizontal page indicator curved along the bottom edge of the screen.

Functions

RemoteHorizontalPageIndicator

@RemoteComposable
@Composable
fun RemoteHorizontalPageIndicator(
    state: RemotePageIndicatorState,
    modifier: RemoteModifier = RemoteModifier,
    selectedColor: RemoteColor = RemotePageIndicatorDefaults.selectedColor,
    unselectedColor: RemoteColor = RemotePageIndicatorDefaults.unselectedColor,
    indicatorRadius: RemoteDp = RemotePageIndicatorDefaults.indicatorRadius,
    padding: RemoteDp = RemotePageIndicatorDefaults.pageIndicatorPadding
): Unit

A horizontal page indicator curved along the bottom edge of the screen.

import androidx.compose.remote.creation.compose.state.ri
import androidx.wear.compose.remote.material3.RemoteHorizontalPageIndicator
import androidx.wear.compose.remote.material3.rememberRemotePageIndicatorState

val state = rememberRemotePageIndicatorState(selectedPage = 1.ri, pageCount = 3)
RemoteHorizontalPageIndicator(state = state, modifier = modifier)
Parameters
state: RemotePageIndicatorState

The state object of the page indicator.

modifier: RemoteModifier = RemoteModifier

The modifier to be applied to the layout.

selectedColor: RemoteColor = RemotePageIndicatorDefaults.selectedColor

The color of the selected page indicator.

unselectedColor: RemoteColor = RemotePageIndicatorDefaults.unselectedColor

The color of unselected page indicators.

indicatorRadius: RemoteDp = RemotePageIndicatorDefaults.indicatorRadius

The base radius of each indicator dot.

padding: RemoteDp = RemotePageIndicatorDefaults.pageIndicatorPadding

The padding of the indicator from the bottom edge of the screen.