Interface

ShouldPauseCallback

The callback type used in PausedComposition.resume.

Source set: Common
public interface ShouldPauseCallback

The callback type used in PausedComposition.resume.

Functions

shouldPause

Source set: Common
@Suppress("CallbackMethodName") public fun shouldPause(): Boolean

Called to determine if a resumed PausedComposition should pause.

Return

Return true to indicate that the composition should pause. Otherwise the composition will continue normally.

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: