-
public final class InteractivePreviewAwareKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static ProvidableCompositionLocal<Boolean>LocalInteractivePreviewprivate final static ProvidableCompositionLocal<Boolean>LocalStaticPreview
-
Method Summary
Modifier and Type Method Description final ProvidableCompositionLocal<Boolean>getLocalInteractivePreview()final ProvidableCompositionLocal<Boolean>getLocalStaticPreview()final static UnitInteractivePreviewAware(Function0<Unit> block)Utility to determine the preview mode and set LocalInteractivePreview or LocalStaticPreview. -
-
Method Detail
-
getLocalInteractivePreview
final ProvidableCompositionLocal<Boolean> getLocalInteractivePreview()
-
getLocalStaticPreview
final ProvidableCompositionLocal<Boolean> getLocalStaticPreview()
-
InteractivePreviewAware
@Composable() final static Unit InteractivePreviewAware(Function0<Unit> block)
Utility to determine the preview mode and set LocalInteractivePreview or LocalStaticPreview. All previews will start out as static, since they are identical to the runtime until the second frame (when LaunchedEffect has run) when it will be set correctly.
-
-
-
-