Composable Function

RemoteCircularProgressIndicator

Material Design circular progress indicator.

RemoteCircularProgressIndicatorSample

@Sampled
@RemoteComposable
@Composable
@WearPreviewDevices
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
public fun RemoteCircularProgressIndicatorSample(modifier: RemoteModifier = RemoteModifier) {
    RemoteCircularProgressIndicator(modifier = modifier, progress = 0.75f.rf)
}

RemoteCircularProgressIndicatorAnimatedSample

@Sampled
@RemoteComposable
@Composable
@WearPreviewDevices
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
public fun RemoteCircularProgressIndicatorAnimatedSample(
    modifier: RemoteModifier = RemoteModifier.size(150.rdp)
) {
    val progress = remember { MutableRemoteFloat { 0.25f.rf } }
    val toggleAction = valueChange(progress, ((progress + 0.25f) % 1f).createReference())

    // The indicator animates the progress changes.
    RemoteCircularProgressIndicator(progress = progress, modifier.clickable(toggleAction))
}

RemoteIndeterminateCircularProgressIndicatorSample

@Sampled
@RemoteComposable
@Composable
@WearPreviewDevices
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
public fun RemoteIndeterminateCircularProgressIndicatorSample(
    modifier: RemoteModifier = RemoteModifier
) {
    RemoteCircularProgressIndicator(modifier = modifier)
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: