1// Signature format: 4.0 2package androidx.compose.runtime { 3 4 public abstract class AbstractApplier<T> implements androidx.compose.runtime.Applier<T> { 5 ctor public AbstractApplier(T? root); 6 method public final void clear(); 7 method public void down(T? node); 8 method public T! getCurrent(); 9 method public final T! getRoot(); 10 method protected final void move(java.util.List<T>, int from, int to, int count); 11 method protected abstract void onClear(); 12 method protected final void remove(java.util.List<T>, int index, int count); 13 method protected void setCurrent(T! current); 14 method public void up(); 15 property public T! current; 16 property public final T! root; 17 } 18 19 public final class ActualAndroid_androidKt { 20 method @Deprecated public static androidx.compose.runtime.MonotonicFrameClock getDefaultMonotonicFrameClock(); 21 } 22 23 public final class ActualJvm_jvmKt { 24 } 25 26 public interface Applier<N> { 27 method public void clear(); 28 method public void down(N? node); 29 method public N! getCurrent(); 30 method public void insertBottomUp(int index, N? instance); 31 method public void insertTopDown(int index, N? instance); 32 method public void move(int from, int to, int count); 33 method public default void onBeginChanges(); 34 method public default void onEndChanges(); 35 method public void remove(int index, int count); 36 method public void up(); 37 property public abstract N! current; 38 } 39 40 public final class BitwiseOperatorsKt { 41 } 42 43 public final class BroadcastFrameClock implements androidx.compose.runtime.MonotonicFrameClock { 44 ctor public BroadcastFrameClock(optional kotlin.jvm.functions.Function0<kotlin.Unit>? onNewAwaiters); 45 method public void cancel(optional java.util.concurrent.CancellationException cancellationException); 46 method public boolean getHasAwaiters(); 47 method public void sendFrame(long timeNanos); 48 method public suspend <R> Object? withFrameNanos(kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R> p); 49 property public final boolean hasAwaiters; 50 } 51 52 @kotlin.annotation.MustBeDocumented @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface Composable { 53 } 54 55 public final class ComposablesKt { 56 method @androidx.compose.runtime.Composable public static inline <T, reified E extends androidx.compose.runtime.Applier<?>> void ComposeNode(kotlin.jvm.functions.Function0<? extends T> factory, kotlin.jvm.functions.Function1<? super androidx.compose.runtime.Updater<T>,? extends kotlin.Unit> update); 57 method @androidx.compose.runtime.Composable public static inline <T, reified E extends androidx.compose.runtime.Applier<?>> void ComposeNode(kotlin.jvm.functions.Function0<? extends T> factory, kotlin.jvm.functions.Function1<? super androidx.compose.runtime.Updater<T>,? extends kotlin.Unit> update, kotlin.jvm.functions.Function0<? extends kotlin.Unit> content); 58 method @androidx.compose.runtime.Composable @androidx.compose.runtime.ExplicitGroupsComposable public static inline <T, reified E extends androidx.compose.runtime.Applier<?>> void ComposeNode(kotlin.jvm.functions.Function0<? extends T> factory, kotlin.jvm.functions.Function1<? super androidx.compose.runtime.Updater<T>,? extends kotlin.Unit> update, kotlin.jvm.functions.Function1<? super androidx.compose.runtime.SkippableUpdater<T>,? extends kotlin.Unit> skippableUpdate, kotlin.jvm.functions.Function0<? extends kotlin.Unit> content); 59 method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable public static androidx.compose.runtime.Composer getCurrentComposer(); 60 method @androidx.compose.runtime.Composable public static int getCurrentCompositeKeyHash(); 61 method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable public static androidx.compose.runtime.RecomposeScope getCurrentRecomposeScope(); 62 method @androidx.compose.runtime.Composable public static inline <T> T! key(Object![]? keys, kotlin.jvm.functions.Function0<? extends T> block); 63 method @androidx.compose.runtime.Composable public static inline <T> T! remember(Object? key1, Object? key2, Object? key3, kotlin.jvm.functions.Function0<? extends T> calculation); 64 method @androidx.compose.runtime.Composable public static inline <T> T! remember(Object? key1, Object? key2, kotlin.jvm.functions.Function0<? extends T> calculation); 65 method @androidx.compose.runtime.Composable public static inline <T> T! remember(Object? key1, kotlin.jvm.functions.Function0<? extends T> calculation); 66 method @androidx.compose.runtime.Composable public static inline <T> T! remember(Object![]? keys, kotlin.jvm.functions.Function0<? extends T> calculation); 67 method @androidx.compose.runtime.Composable public static inline <T> T! remember(kotlin.jvm.functions.Function0<? extends T> calculation); 68 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.CompositionContext rememberCompositionContext(); 69 } 70 71 @kotlin.RequiresOptIn(level=kotlin.RequiresOptIn.Level, message="This API is intended to be targeted by the Compose Compiler Plugin and not called " + "directly.") @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface ComposeCompilerApi { 72 } 73 74 public interface Composer { 75 method @androidx.compose.runtime.ComposeCompilerApi public <V, T> void apply(V? value, kotlin.jvm.functions.Function2<? super T,? super V,kotlin.Unit> block); 76 method @androidx.compose.runtime.InternalComposeApi public androidx.compose.runtime.CompositionContext buildContext(); 77 method @androidx.compose.runtime.ComposeCompilerApi public default boolean changed(boolean value); 78 method @androidx.compose.runtime.ComposeCompilerApi public default boolean changed(byte value); 79 method @androidx.compose.runtime.ComposeCompilerApi public default boolean changed(char value); 80 method @androidx.compose.runtime.ComposeCompilerApi public default boolean changed(double value); 81 method @androidx.compose.runtime.ComposeCompilerApi public default boolean changed(float value); 82 method @androidx.compose.runtime.ComposeCompilerApi public default boolean changed(int value); 83 method @androidx.compose.runtime.ComposeCompilerApi public boolean changed(Object? value); 84 method @androidx.compose.runtime.ComposeCompilerApi public default boolean changed(long value); 85 method @androidx.compose.runtime.ComposeCompilerApi public default boolean changed(short value); 86 method @androidx.compose.runtime.InternalComposeApi public void collectParameterInformation(); 87 method @androidx.compose.runtime.InternalComposeApi public <T> T! consume(androidx.compose.runtime.CompositionLocal<T> key); 88 method @androidx.compose.runtime.ComposeCompilerApi public <T> void createNode(kotlin.jvm.functions.Function0<? extends T> factory); 89 method @androidx.compose.runtime.ComposeCompilerApi public void endDefaults(); 90 method @androidx.compose.runtime.ComposeCompilerApi public void endMovableGroup(); 91 method @androidx.compose.runtime.ComposeCompilerApi public void endNode(); 92 method @androidx.compose.runtime.InternalComposeApi public void endProviders(); 93 method @androidx.compose.runtime.ComposeCompilerApi public void endReplaceableGroup(); 94 method @androidx.compose.runtime.ComposeCompilerApi public androidx.compose.runtime.ScopeUpdateScope? endRestartGroup(); 95 method public androidx.compose.runtime.Applier<?> getApplier(); 96 method @org.jetbrains.annotations.TestOnly public kotlin.coroutines.CoroutineContext getApplyCoroutineContext(); 97 method @org.jetbrains.annotations.TestOnly public androidx.compose.runtime.ControlledComposition getComposition(); 98 method public androidx.compose.runtime.tooling.CompositionData getCompositionData(); 99 method public int getCompoundKeyHash(); 100 method public boolean getDefaultsInvalid(); 101 method public boolean getInserting(); 102 method public androidx.compose.runtime.RecomposeScope? getRecomposeScope(); 103 method public boolean getSkipping(); 104 method @androidx.compose.runtime.ComposeCompilerApi public Object joinKey(Object? left, Object? right); 105 method @androidx.compose.runtime.InternalComposeApi public void recordReadOf(Object value); 106 method @androidx.compose.runtime.InternalComposeApi public void recordSideEffect(kotlin.jvm.functions.Function0<kotlin.Unit> effect); 107 method @androidx.compose.runtime.InternalComposeApi public void recordUsed(androidx.compose.runtime.RecomposeScope scope); 108 method @androidx.compose.runtime.InternalComposeApi public void recordWriteOf(Object value); 109 method @androidx.compose.runtime.ComposeCompilerApi public Object? rememberedValue(); 110 method @androidx.compose.runtime.ComposeCompilerApi public void skipCurrentGroup(); 111 method @androidx.compose.runtime.ComposeCompilerApi public void skipToGroupEnd(); 112 method @androidx.compose.runtime.ComposeCompilerApi public void startDefaults(); 113 method @androidx.compose.runtime.ComposeCompilerApi public void startMovableGroup(int key, Object? dataKey); 114 method @androidx.compose.runtime.ComposeCompilerApi public void startMovableGroup(int key, Object? dataKey, String? sourceInformation); 115 method @androidx.compose.runtime.ComposeCompilerApi public void startNode(); 116 method @androidx.compose.runtime.InternalComposeApi public void startProviders(androidx.compose.runtime.ProvidedValue<?>![] values); 117 method @androidx.compose.runtime.ComposeCompilerApi public void startReplaceableGroup(int key); 118 method @androidx.compose.runtime.ComposeCompilerApi public void startReplaceableGroup(int key, String? sourceInformation); 119 method @androidx.compose.runtime.ComposeCompilerApi public androidx.compose.runtime.Composer startRestartGroup(int key); 120 method @androidx.compose.runtime.ComposeCompilerApi public androidx.compose.runtime.Composer startRestartGroup(int key, String? sourceInformation); 121 method @androidx.compose.runtime.ComposeCompilerApi public void updateRememberedValue(Object? value); 122 method @androidx.compose.runtime.ComposeCompilerApi public void useNode(); 123 property public abstract androidx.compose.runtime.Applier<?> applier; 124 property @org.jetbrains.annotations.TestOnly public abstract kotlin.coroutines.CoroutineContext applyCoroutineContext; 125 property @org.jetbrains.annotations.TestOnly public abstract androidx.compose.runtime.ControlledComposition composition; 126 property public abstract androidx.compose.runtime.tooling.CompositionData compositionData; 127 property public abstract int compoundKeyHash; 128 property public abstract boolean defaultsInvalid; 129 property public abstract boolean inserting; 130 property public abstract androidx.compose.runtime.RecomposeScope? recomposeScope; 131 property public abstract boolean skipping; 132 field public static final androidx.compose.runtime.Composer.Companion Companion; 133 } 134 135 public static final class Composer.Companion { 136 method public Object getEmpty(); 137 property public final Object Empty; 138 } 139 140 public final class ComposerKt { 141 method @androidx.compose.runtime.ComposeCompilerApi public static inline <T> T! cache(androidx.compose.runtime.Composer, boolean invalid, kotlin.jvm.functions.Function0<? extends T> block); 142 } 143 144 public interface Composition { 145 method public void dispose(); 146 method public boolean getHasInvalidations(); 147 method public boolean isDisposed(); 148 method public void setContent(kotlin.jvm.functions.Function0<kotlin.Unit> content); 149 property public abstract boolean hasInvalidations; 150 property public abstract boolean isDisposed; 151 } 152 153 public abstract class CompositionContext { 154 } 155 156 public final class CompositionContextKt { 157 } 158 159 public final class CompositionKt { 160 method public static androidx.compose.runtime.Composition Composition(androidx.compose.runtime.Applier<?> applier, androidx.compose.runtime.CompositionContext parent); 161 method @androidx.compose.runtime.ExperimentalComposeApi public static androidx.compose.runtime.Composition Composition(androidx.compose.runtime.Applier<?> applier, androidx.compose.runtime.CompositionContext parent, kotlin.coroutines.CoroutineContext recomposeCoroutineContext); 162 method @org.jetbrains.annotations.TestOnly public static androidx.compose.runtime.ControlledComposition ControlledComposition(androidx.compose.runtime.Applier<?> applier, androidx.compose.runtime.CompositionContext parent); 163 method @androidx.compose.runtime.ExperimentalComposeApi @org.jetbrains.annotations.TestOnly public static androidx.compose.runtime.ControlledComposition ControlledComposition(androidx.compose.runtime.Applier<?> applier, androidx.compose.runtime.CompositionContext parent, kotlin.coroutines.CoroutineContext recomposeCoroutineContext); 164 method @androidx.compose.runtime.ExperimentalComposeApi public static kotlin.coroutines.CoroutineContext getRecomposeCoroutineContext(androidx.compose.runtime.ControlledComposition); 165 } 166 167 @androidx.compose.runtime.Stable public abstract sealed class CompositionLocal<T> { 168 method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable public final inline T! getCurrent(); 169 property @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable public final inline T! current; 170 } 171 172 public final class CompositionLocalKt { 173 method @androidx.compose.runtime.Composable public static void CompositionLocalProvider(androidx.compose.runtime.ProvidedValue<?>![] values, kotlin.jvm.functions.Function0<kotlin.Unit> content); 174 method public static <T> androidx.compose.runtime.ProvidableCompositionLocal<T> compositionLocalOf(optional androidx.compose.runtime.SnapshotMutationPolicy<T> policy, kotlin.jvm.functions.Function0<? extends T> defaultFactory); 175 method public static <T> androidx.compose.runtime.ProvidableCompositionLocal<T> staticCompositionLocalOf(kotlin.jvm.functions.Function0<? extends T> defaultFactory); 176 } 177 178 public interface ControlledComposition extends androidx.compose.runtime.Composition { 179 method public void applyChanges(); 180 method public void composeContent(kotlin.jvm.functions.Function0<kotlin.Unit> content); 181 method public boolean getHasPendingChanges(); 182 method public void invalidateAll(); 183 method public boolean isComposing(); 184 method public boolean recompose(); 185 method public void recordModificationsOf(java.util.Set<?> values); 186 method public void recordReadOf(Object value); 187 method public void recordWriteOf(Object value); 188 method @androidx.compose.runtime.InternalComposeApi public void verifyConsistent(); 189 property public abstract boolean hasPendingChanges; 190 property public abstract boolean isComposing; 191 } 192 193 @kotlin.annotation.MustBeDocumented @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets=kotlin.annotation.AnnotationTarget) public @interface DisallowComposableCalls { 194 } 195 196 public interface DisposableEffectResult { 197 method public void dispose(); 198 } 199 200 public final class DisposableEffectScope { 201 ctor public DisposableEffectScope(); 202 method public inline androidx.compose.runtime.DisposableEffectResult onDispose(kotlin.jvm.functions.Function0<kotlin.Unit> onDisposeEffect); 203 } 204 205 public final class EffectsKt { 206 method @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void DisposableEffect(Object? key1, Object? key2, Object? key3, kotlin.jvm.functions.Function1<? super androidx.compose.runtime.DisposableEffectScope,? extends androidx.compose.runtime.DisposableEffectResult> effect); 207 method @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void DisposableEffect(Object? key1, Object? key2, kotlin.jvm.functions.Function1<? super androidx.compose.runtime.DisposableEffectScope,? extends androidx.compose.runtime.DisposableEffectResult> effect); 208 method @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void DisposableEffect(Object? key1, kotlin.jvm.functions.Function1<? super androidx.compose.runtime.DisposableEffectScope,? extends androidx.compose.runtime.DisposableEffectResult> effect); 209 method @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void DisposableEffect(Object![]? keys, kotlin.jvm.functions.Function1<? super androidx.compose.runtime.DisposableEffectScope,? extends androidx.compose.runtime.DisposableEffectResult> effect); 210 method @Deprecated @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void DisposableEffect(kotlin.jvm.functions.Function1<? super androidx.compose.runtime.DisposableEffectScope,? extends androidx.compose.runtime.DisposableEffectResult> effect); 211 method @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void LaunchedEffect(Object? key1, Object? key2, Object? key3, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block); 212 method @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void LaunchedEffect(Object? key1, Object? key2, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block); 213 method @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void LaunchedEffect(Object? key1, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block); 214 method @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void LaunchedEffect(Object![]? keys, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block); 215 method @Deprecated @androidx.compose.runtime.Composable public static void LaunchedEffect(kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block); 216 method @androidx.compose.runtime.Composable @androidx.compose.runtime.NonRestartableComposable public static void SideEffect(kotlin.jvm.functions.Function0<kotlin.Unit> effect); 217 method @androidx.compose.runtime.Composable public static inline kotlinx.coroutines.CoroutineScope rememberCoroutineScope(optional kotlin.jvm.functions.Function0<? extends kotlin.coroutines.CoroutineContext> getContext); 218 } 219 220 public final class ExpectKt { 221 } 222 223 @kotlin.RequiresOptIn(level=kotlin.RequiresOptIn.Level, message="This is an experimental API for Compose and is likely to change before becoming " + "stable.") @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface ExperimentalComposeApi { 224 } 225 226 @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface ExplicitGroupsComposable { 227 } 228 229 @androidx.compose.runtime.StableMarker @kotlin.annotation.MustBeDocumented @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets=kotlin.annotation.AnnotationTarget) public @interface Immutable { 230 } 231 232 @kotlin.RequiresOptIn(level=kotlin.RequiresOptIn.Level, message="This is internal API for Compose modules that may change frequently " + "and without warning.") @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface InternalComposeApi { 233 } 234 235 public interface MonotonicFrameClock extends kotlin.coroutines.CoroutineContext.Element { 236 method public default kotlin.coroutines.CoroutineContext.Key<?> getKey(); 237 method public suspend <R> Object? withFrameNanos(kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R> p); 238 property public default kotlin.coroutines.CoroutineContext.Key<?> key; 239 field public static final androidx.compose.runtime.MonotonicFrameClock.Key Key; 240 } 241 242 public static final class MonotonicFrameClock.Key implements kotlin.coroutines.CoroutineContext.Key<androidx.compose.runtime.MonotonicFrameClock> { 243 } 244 245 public final class MonotonicFrameClockKt { 246 method public static androidx.compose.runtime.MonotonicFrameClock getMonotonicFrameClock(kotlin.coroutines.CoroutineContext); 247 method public static suspend inline <R> Object? withFrameMillis(androidx.compose.runtime.MonotonicFrameClock, kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R> p); 248 method public static suspend <R> Object? withFrameMillis(kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R> p); 249 method public static suspend <R> Object? withFrameNanos(kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R> p); 250 } 251 252 @androidx.compose.runtime.Stable public interface MutableState<T> extends androidx.compose.runtime.State<T> { 253 method public operator T! component1(); 254 method public operator kotlin.jvm.functions.Function1<T,kotlin.Unit> component2(); 255 method public void setValue(T! value); 256 property public abstract T! value; 257 } 258 259 @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface NoLiveLiterals { 260 } 261 262 @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface NonRestartableComposable { 263 } 264 265 public final class PausableMonotonicFrameClock implements androidx.compose.runtime.MonotonicFrameClock { 266 ctor public PausableMonotonicFrameClock(androidx.compose.runtime.MonotonicFrameClock frameClock); 267 method public boolean isPaused(); 268 method public void pause(); 269 method public void resume(); 270 method public suspend <R> Object? withFrameNanos(kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R> p); 271 property public final boolean isPaused; 272 } 273 274 public interface ProduceStateScope<T> extends androidx.compose.runtime.MutableState<T> kotlinx.coroutines.CoroutineScope { 275 method public suspend Object? awaitDispose(kotlin.jvm.functions.Function0<kotlin.Unit> onDispose, kotlin.coroutines.Continuation<?> p); 276 } 277 278 @androidx.compose.runtime.Stable public abstract class ProvidableCompositionLocal<T> extends androidx.compose.runtime.CompositionLocal<T> { 279 method public final infix androidx.compose.runtime.ProvidedValue<T> provides(T? value); 280 method public final infix androidx.compose.runtime.ProvidedValue<T> providesDefault(T? value); 281 } 282 283 public final class ProvidedValue<T> { 284 method public boolean getCanOverride(); 285 method public androidx.compose.runtime.CompositionLocal<T> getCompositionLocal(); 286 method public T! getValue(); 287 property public final boolean canOverride; 288 property public final androidx.compose.runtime.CompositionLocal<T> compositionLocal; 289 property public final T! value; 290 } 291 292 @kotlin.annotation.MustBeDocumented @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface ReadOnlyComposable { 293 } 294 295 public interface RecomposeScope { 296 method public void invalidate(); 297 } 298 299 public final class Recomposer extends androidx.compose.runtime.CompositionContext { 300 ctor public Recomposer(kotlin.coroutines.CoroutineContext effectCoroutineContext); 301 method public androidx.compose.runtime.RecomposerInfo asRecomposerInfo(); 302 method public suspend Object? awaitIdle(kotlin.coroutines.Continuation<? super kotlin.Unit> p); 303 method public void cancel(); 304 method public void close(); 305 method public long getChangeCount(); 306 method public boolean getHasPendingWork(); 307 method public kotlinx.coroutines.flow.Flow<androidx.compose.runtime.Recomposer.State> getState(); 308 method public suspend Object? join(kotlin.coroutines.Continuation<? super kotlin.Unit> p); 309 method public suspend Object? runRecomposeAndApplyChanges(kotlin.coroutines.Continuation<? super kotlin.Unit> p); 310 method @androidx.compose.runtime.ExperimentalComposeApi public suspend Object? runRecomposeConcurrentlyAndApplyChanges(kotlin.coroutines.CoroutineContext recomposeCoroutineContext, kotlin.coroutines.Continuation<? super kotlin.Unit> p); 311 property public final long changeCount; 312 property public final boolean hasPendingWork; 313 property public final kotlinx.coroutines.flow.Flow<androidx.compose.runtime.Recomposer.State> state; 314 field public static final androidx.compose.runtime.Recomposer.Companion Companion; 315 } 316 317 public static final class Recomposer.Companion { 318 method public kotlinx.coroutines.flow.StateFlow<java.util.Set<androidx.compose.runtime.RecomposerInfo>> getRunningRecomposers(); 319 property public final kotlinx.coroutines.flow.StateFlow<java.util.Set<androidx.compose.runtime.RecomposerInfo>> runningRecomposers; 320 } 321 322 public enum Recomposer.State { 323 enum_constant public static final androidx.compose.runtime.Recomposer.State Idle; 324 enum_constant public static final androidx.compose.runtime.Recomposer.State Inactive; 325 enum_constant public static final androidx.compose.runtime.Recomposer.State InactivePendingWork; 326 enum_constant public static final androidx.compose.runtime.Recomposer.State PendingWork; 327 enum_constant public static final androidx.compose.runtime.Recomposer.State ShutDown; 328 enum_constant public static final androidx.compose.runtime.Recomposer.State ShuttingDown; 329 } 330 331 public interface RecomposerInfo { 332 method public long getChangeCount(); 333 method public boolean getHasPendingWork(); 334 method public kotlinx.coroutines.flow.Flow<androidx.compose.runtime.Recomposer.State> getState(); 335 property public abstract long changeCount; 336 property public abstract boolean hasPendingWork; 337 property public abstract kotlinx.coroutines.flow.Flow<androidx.compose.runtime.Recomposer.State> state; 338 } 339 340 public final class RecomposerKt { 341 method public static suspend <R> Object? withRunningRecomposer(kotlin.jvm.functions.Function3<? super kotlinx.coroutines.CoroutineScope,? super androidx.compose.runtime.Recomposer,? super kotlin.coroutines.Continuation<? super R>,?> block, kotlin.coroutines.Continuation<? super R> p); 342 } 343 344 public interface RememberObserver { 345 method public void onAbandoned(); 346 method public void onForgotten(); 347 method public void onRemembered(); 348 } 349 350 @androidx.compose.runtime.ComposeCompilerApi public interface ScopeUpdateScope { 351 method public void updateScope(kotlin.jvm.functions.Function2<? super androidx.compose.runtime.Composer,? super java.lang.Integer,kotlin.Unit> block); 352 } 353 354 public final inline class SkippableUpdater<T> { 355 ctor public SkippableUpdater(); 356 } 357 358 public final class SlotTableKt { 359 } 360 361 public interface SnapshotMutationPolicy<T> { 362 method public boolean equivalent(T? a, T? b); 363 method public default T? merge(T? previous, T? current, T? applied); 364 } 365 366 public final class SnapshotStateKt { 367 method @androidx.compose.runtime.Composable public static <T extends R, R> androidx.compose.runtime.State<R> collectAsState(kotlinx.coroutines.flow.Flow<? extends T>, R? initial, optional kotlin.coroutines.CoroutineContext context); 368 method @androidx.compose.runtime.Composable public static <T> androidx.compose.runtime.State<T> collectAsState(kotlinx.coroutines.flow.StateFlow<? extends T>, optional kotlin.coroutines.CoroutineContext context); 369 method public static <T> androidx.compose.runtime.State<T> derivedStateOf(kotlin.jvm.functions.Function0<? extends T> calculation); 370 method public static inline operator <T> T! getValue(androidx.compose.runtime.State<T>, Object? thisObj, kotlin.reflect.KProperty<?> property); 371 method public static <T> androidx.compose.runtime.snapshots.SnapshotStateList<T> mutableStateListOf(); 372 method public static <T> androidx.compose.runtime.snapshots.SnapshotStateList<T> mutableStateListOf(T?... elements); 373 method public static <K, V> androidx.compose.runtime.snapshots.SnapshotStateMap<K,V> mutableStateMapOf(); 374 method public static <K, V> androidx.compose.runtime.snapshots.SnapshotStateMap<K,V> mutableStateMapOf(kotlin.Pair<? extends K,? extends V>... pairs); 375 method public static <T> androidx.compose.runtime.MutableState<T> mutableStateOf(T? value, optional androidx.compose.runtime.SnapshotMutationPolicy<T> policy); 376 method public static <T> androidx.compose.runtime.SnapshotMutationPolicy<T> neverEqualPolicy(); 377 method @androidx.compose.runtime.Composable public static <T> androidx.compose.runtime.State<T> produceState(T? initialValue, Object? key1, Object? key2, Object? key3, @kotlin.BuilderInference kotlin.jvm.functions.Function2<? super androidx.compose.runtime.ProduceStateScope<T>,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> producer); 378 method @androidx.compose.runtime.Composable public static <T> androidx.compose.runtime.State<T> produceState(T? initialValue, Object? key1, Object? key2, @kotlin.BuilderInference kotlin.jvm.functions.Function2<? super androidx.compose.runtime.ProduceStateScope<T>,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> producer); 379 method @androidx.compose.runtime.Composable public static <T> androidx.compose.runtime.State<T> produceState(T? initialValue, Object? key1, @kotlin.BuilderInference kotlin.jvm.functions.Function2<? super androidx.compose.runtime.ProduceStateScope<T>,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> producer); 380 method @androidx.compose.runtime.Composable public static <T> androidx.compose.runtime.State<T> produceState(T? initialValue, Object![]? keys, @kotlin.BuilderInference kotlin.jvm.functions.Function2<? super androidx.compose.runtime.ProduceStateScope<T>,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> producer); 381 method @androidx.compose.runtime.Composable public static <T> androidx.compose.runtime.State<T> produceState(T? initialValue, @kotlin.BuilderInference kotlin.jvm.functions.Function2<? super androidx.compose.runtime.ProduceStateScope<T>,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> producer); 382 method public static <T> androidx.compose.runtime.SnapshotMutationPolicy<T> referentialEqualityPolicy(); 383 method @androidx.compose.runtime.Composable public static <T> androidx.compose.runtime.State<T> rememberUpdatedState(T? newValue); 384 method public static inline operator <T> void setValue(androidx.compose.runtime.MutableState<T>, Object? thisObj, kotlin.reflect.KProperty<?> property, T? value); 385 method public static <T> kotlinx.coroutines.flow.Flow<T> snapshotFlow(kotlin.jvm.functions.Function0<? extends T> block); 386 method public static <T> androidx.compose.runtime.SnapshotMutationPolicy<T> structuralEqualityPolicy(); 387 method public static <T> androidx.compose.runtime.snapshots.SnapshotStateList<T> toMutableStateList(java.util.Collection<? extends T>); 388 method public static <K, V> androidx.compose.runtime.snapshots.SnapshotStateMap<K,V> toMutableStateMap(Iterable<? extends kotlin.Pair<? extends K,? extends V>>); 389 } 390 391 @androidx.compose.runtime.StableMarker @kotlin.annotation.MustBeDocumented @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface Stable { 392 } 393 394 @kotlin.annotation.MustBeDocumented @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget, kotlin.annotation.AnnotationTarget}) public @interface StableMarker { 395 } 396 397 @androidx.compose.runtime.Stable public interface State<T> { 398 method public T! getValue(); 399 property public abstract T! value; 400 } 401 402 public final class TraceKt { 403 } 404 405 public final inline class Updater<T> { 406 ctor public Updater(); 407 } 408 409} 410 411package androidx.compose.runtime.collection { 412 413 public final class MutableVector<T> implements java.util.RandomAccess { 414 method public void add(int index, T? element); 415 method public boolean add(T? element); 416 method public inline boolean addAll(androidx.compose.runtime.collection.MutableVector<T> elements); 417 method public boolean addAll(int index, androidx.compose.runtime.collection.MutableVector<T> elements); 418 method public boolean addAll(int index, java.util.Collection<? extends T> elements); 419 method public boolean addAll(int index, java.util.List<? extends T> elements); 420 method public boolean addAll(java.util.Collection<? extends T> elements); 421 method public inline boolean addAll(java.util.List<? extends T> elements); 422 method public boolean addAll(T![] elements); 423 method public inline boolean any(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); 424 method public java.util.List<T> asMutableList(); 425 method public void clear(); 426 method public operator boolean contains(T? element); 427 method public boolean containsAll(androidx.compose.runtime.collection.MutableVector<T> elements); 428 method public boolean containsAll(java.util.Collection<? extends T> elements); 429 method public boolean containsAll(java.util.List<? extends T> elements); 430 method public boolean contentEquals(androidx.compose.runtime.collection.MutableVector<T> other); 431 method public void ensureCapacity(int capacity); 432 method public T! first(); 433 method public inline T! first(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); 434 method public inline T? firstOrNull(); 435 method public inline T? firstOrNull(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); 436 method public inline <R> R! fold(R? initial, kotlin.jvm.functions.Function2<? super R,? super T,? extends R> operation); 437 method public inline <R> R! foldIndexed(R? initial, kotlin.jvm.functions.Function3<? super java.lang.Integer,? super R,? super T,? extends R> operation); 438 method public inline <R> R! foldRight(R? initial, kotlin.jvm.functions.Function2<? super T,? super R,? extends R> operation); 439 method public inline <R> R! foldRightIndexed(R? initial, kotlin.jvm.functions.Function3<? super java.lang.Integer,? super T,? super R,? extends R> operation); 440 method public inline void forEach(kotlin.jvm.functions.Function1<? super T,kotlin.Unit> block); 441 method public inline void forEachIndexed(kotlin.jvm.functions.Function2<? super java.lang.Integer,? super T,kotlin.Unit> block); 442 method public inline void forEachReversed(kotlin.jvm.functions.Function1<? super T,kotlin.Unit> block); 443 method public inline void forEachReversedIndexed(kotlin.jvm.functions.Function2<? super java.lang.Integer,? super T,kotlin.Unit> block); 444 method public inline operator T! get(int index); 445 method public inline kotlin.ranges.IntRange getIndices(); 446 method public inline int getLastIndex(); 447 method public int getSize(); 448 method public int indexOf(T? element); 449 method public inline int indexOfFirst(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); 450 method public inline int indexOfLast(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); 451 method public boolean isEmpty(); 452 method public boolean isNotEmpty(); 453 method public T! last(); 454 method public inline T! last(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); 455 method public int lastIndexOf(T? element); 456 method public inline T? lastOrNull(); 457 method public inline T? lastOrNull(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); 458 method public inline <reified R> R![]! map(kotlin.jvm.functions.Function1<? super T,? extends R> transform); 459 method public inline <reified R> R![]! mapIndexed(kotlin.jvm.functions.Function2<? super java.lang.Integer,? super T,? extends R> transform); 460 method public inline <reified R> androidx.compose.runtime.collection.MutableVector<R>! mapIndexedNotNull(kotlin.jvm.functions.Function2<? super java.lang.Integer,? super T,? extends R> transform); 461 method public inline <reified R> androidx.compose.runtime.collection.MutableVector<R>! mapNotNull(kotlin.jvm.functions.Function1<? super T,? extends R> transform); 462 method public inline operator void minusAssign(T? element); 463 method public inline operator void plusAssign(T? element); 464 method public boolean remove(T? element); 465 method public boolean removeAll(androidx.compose.runtime.collection.MutableVector<T> elements); 466 method public boolean removeAll(java.util.Collection<? extends T> elements); 467 method public boolean removeAll(java.util.List<? extends T> elements); 468 method public T! removeAt(int index); 469 method public void removeRange(int start, int end); 470 method public boolean retainAll(java.util.Collection<? extends T> elements); 471 method public inline boolean reversedAny(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); 472 method public operator T! set(int index, T? element); 473 method public void sortWith(java.util.Comparator<T> comparator); 474 method public inline int sumBy(kotlin.jvm.functions.Function1<? super T,java.lang.Integer> selector); 475 property public final inline kotlin.ranges.IntRange indices; 476 property public final inline int lastIndex; 477 property public final int size; 478 } 479 480 public final class MutableVectorKt { 481 method public static inline <reified T> androidx.compose.runtime.collection.MutableVector<T>! MutableVector(optional int capacity); 482 method public static inline <reified T> androidx.compose.runtime.collection.MutableVector<T>! MutableVector(int size, kotlin.jvm.functions.Function1<? super java.lang.Integer,? extends T> init); 483 method public static inline <reified T> androidx.compose.runtime.collection.MutableVector<T>! mutableVectorOf(); 484 method public static inline <reified T> androidx.compose.runtime.collection.MutableVector<T>! mutableVectorOf(T? elements); 485 } 486 487} 488 489package androidx.compose.runtime.internal { 490 491 @androidx.compose.runtime.ComposeCompilerApi @androidx.compose.runtime.Stable public interface ComposableLambda extends kotlin.jvm.functions.Function2<androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function10<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function11<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function13<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function14<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function15<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function16<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function17<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function18<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function19<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function20<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function21<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function3<java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function4<java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function5<java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function6<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function7<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function8<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> kotlin.jvm.functions.Function9<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,androidx.compose.runtime.Composer,java.lang.Integer,java.lang.Object> { 492 } 493 494 public final class ComposableLambdaKt { 495 method @androidx.compose.runtime.ComposeCompilerApi public static androidx.compose.runtime.internal.ComposableLambda composableLambda(androidx.compose.runtime.Composer composer, int key, boolean tracked, String? sourceInformation, Object block); 496 method @androidx.compose.runtime.ComposeCompilerApi public static androidx.compose.runtime.internal.ComposableLambda composableLambdaInstance(int key, boolean tracked, String? sourceInformation, Object block); 497 } 498 499 @androidx.compose.runtime.ComposeCompilerApi @androidx.compose.runtime.Stable public interface ComposableLambdaN extends kotlin.jvm.functions.FunctionN<java.lang.Object> { 500 } 501 502 public final class ComposableLambdaN_jvmKt { 503 method @androidx.compose.runtime.ComposeCompilerApi public static androidx.compose.runtime.internal.ComposableLambdaN composableLambdaN(androidx.compose.runtime.Composer composer, int key, boolean tracked, String? sourceInformation, int arity, Object block); 504 method @androidx.compose.runtime.ComposeCompilerApi public static androidx.compose.runtime.internal.ComposableLambdaN composableLambdaNInstance(int key, boolean tracked, String? sourceInformation, int arity, Object block); 505 } 506 507 @androidx.compose.runtime.ComposeCompilerApi @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets=kotlin.annotation.AnnotationTarget) public @interface LiveLiteralFileInfo { 508 method public abstract String file(); 509 property public abstract String file; 510 } 511 512 @androidx.compose.runtime.ComposeCompilerApi @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets=kotlin.annotation.AnnotationTarget) public @interface LiveLiteralInfo { 513 method public abstract String key(); 514 method public abstract int offset(); 515 property public abstract String key; 516 property public abstract int offset; 517 } 518 519 public final class LiveLiteralKt { 520 method @androidx.compose.runtime.InternalComposeApi public static void enableLiveLiterals(); 521 method public static boolean isLiveLiteralsEnabled(); 522 method @androidx.compose.runtime.ComposeCompilerApi @androidx.compose.runtime.InternalComposeApi public static <T> androidx.compose.runtime.State<T> liveLiteral(String key, T? value); 523 method @androidx.compose.runtime.InternalComposeApi public static void updateLiveLiteralValue(String key, Object? value); 524 } 525 526 @androidx.compose.runtime.ComposeCompilerApi @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention) @kotlin.annotation.Target(allowedTargets=kotlin.annotation.AnnotationTarget) public @interface StabilityInferred { 527 method public abstract int parameters(); 528 property public abstract int parameters; 529 } 530 531 public final class ThreadMapKt { 532 } 533 534} 535 536package androidx.compose.runtime.snapshots { 537 538 public final class ListUtilsKt { 539 } 540 541 public class MutableSnapshot extends androidx.compose.runtime.snapshots.Snapshot { 542 method public androidx.compose.runtime.snapshots.SnapshotApplyResult apply(); 543 method public kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? getReadObserver(); 544 method public boolean getReadOnly(); 545 method public androidx.compose.runtime.snapshots.Snapshot getRoot(); 546 method public kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? getWriteObserver(); 547 method public boolean hasPendingChanges(); 548 method public androidx.compose.runtime.snapshots.MutableSnapshot takeNestedMutableSnapshot(optional kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? readObserver, optional kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? writeObserver); 549 method public androidx.compose.runtime.snapshots.Snapshot takeNestedSnapshot(kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? readObserver); 550 property public kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? readObserver; 551 property public boolean readOnly; 552 property public androidx.compose.runtime.snapshots.Snapshot root; 553 property public kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? writeObserver; 554 } 555 556 public fun interface ObserverHandle { 557 method public void dispose(); 558 } 559 560 public abstract sealed class Snapshot { 561 method public void dispose(); 562 method public final inline <T> T! enter(kotlin.jvm.functions.Function0<? extends T> block); 563 method public int getId(); 564 method public abstract boolean getReadOnly(); 565 method public abstract androidx.compose.runtime.snapshots.Snapshot getRoot(); 566 method public abstract boolean hasPendingChanges(); 567 method public abstract androidx.compose.runtime.snapshots.Snapshot takeNestedSnapshot(optional kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? readObserver); 568 property public int id; 569 property public abstract boolean readOnly; 570 property public abstract androidx.compose.runtime.snapshots.Snapshot root; 571 field public static final androidx.compose.runtime.snapshots.Snapshot.Companion Companion; 572 } 573 574 public static final class Snapshot.Companion { 575 method public androidx.compose.runtime.snapshots.Snapshot getCurrent(); 576 method public inline <T> T! global(kotlin.jvm.functions.Function0<? extends T> block); 577 method public void notifyObjectsInitialized(); 578 method public <T> T! observe(optional kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? readObserver, optional kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? writeObserver, kotlin.jvm.functions.Function0<? extends T> block); 579 method @androidx.compose.runtime.InternalComposeApi public int openSnapshotCount(); 580 method public androidx.compose.runtime.snapshots.ObserverHandle registerApplyObserver(kotlin.jvm.functions.Function2<? super java.util.Set<?>,? super androidx.compose.runtime.snapshots.Snapshot,kotlin.Unit> observer); 581 method public androidx.compose.runtime.snapshots.ObserverHandle registerGlobalWriteObserver(kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit> observer); 582 method public void sendApplyNotifications(); 583 method public androidx.compose.runtime.snapshots.MutableSnapshot takeMutableSnapshot(optional kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? readObserver, optional kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? writeObserver); 584 method public androidx.compose.runtime.snapshots.Snapshot takeSnapshot(optional kotlin.jvm.functions.Function1<java.lang.Object,kotlin.Unit>? readObserver); 585 method public inline <R> R! withMutableSnapshot(kotlin.jvm.functions.Function0<? extends R> block); 586 property public final androidx.compose.runtime.snapshots.Snapshot current; 587 } 588 589 public final class SnapshotApplyConflictException extends java.lang.Exception { 590 ctor public SnapshotApplyConflictException(androidx.compose.runtime.snapshots.Snapshot snapshot); 591 method public androidx.compose.runtime.snapshots.Snapshot getSnapshot(); 592 property public final androidx.compose.runtime.snapshots.Snapshot snapshot; 593 } 594 595 public abstract sealed class SnapshotApplyResult { 596 method public abstract void check(); 597 method public abstract boolean getSucceeded(); 598 property public abstract boolean succeeded; 599 } 600 601 public static final class SnapshotApplyResult.Failure extends androidx.compose.runtime.snapshots.SnapshotApplyResult { 602 ctor public SnapshotApplyResult.Failure(androidx.compose.runtime.snapshots.Snapshot snapshot); 603 method public void check(); 604 method public androidx.compose.runtime.snapshots.Snapshot getSnapshot(); 605 method public boolean getSucceeded(); 606 property public final androidx.compose.runtime.snapshots.Snapshot snapshot; 607 property public boolean succeeded; 608 } 609 610 public static final class SnapshotApplyResult.Success extends androidx.compose.runtime.snapshots.SnapshotApplyResult { 611 method public void check(); 612 method public boolean getSucceeded(); 613 property public boolean succeeded; 614 field public static final androidx.compose.runtime.snapshots.SnapshotApplyResult.Success INSTANCE; 615 } 616 617 public final class SnapshotIdSetKt { 618 } 619 620 public final class SnapshotKt { 621 method public static <T extends androidx.compose.runtime.snapshots.StateRecord> T readable(T, androidx.compose.runtime.snapshots.StateObject state); 622 method public static <T extends androidx.compose.runtime.snapshots.StateRecord> T readable(T, androidx.compose.runtime.snapshots.StateObject state, androidx.compose.runtime.snapshots.Snapshot snapshot); 623 method public static inline <T extends androidx.compose.runtime.snapshots.StateRecord, R> R! withCurrent(T, kotlin.jvm.functions.Function1<? super T,? extends R> block); 624 method public static inline <T extends androidx.compose.runtime.snapshots.StateRecord, R> R! writable(T, androidx.compose.runtime.snapshots.StateObject state, androidx.compose.runtime.snapshots.Snapshot snapshot, kotlin.jvm.functions.Function1<? super T,? extends R> block); 625 method public static inline <T extends androidx.compose.runtime.snapshots.StateRecord, R> R! writable(T, androidx.compose.runtime.snapshots.StateObject state, kotlin.jvm.functions.Function1<? super T,? extends R> block); 626 } 627 628 public interface SnapshotMutableState<T> extends androidx.compose.runtime.MutableState<T> { 629 method public androidx.compose.runtime.SnapshotMutationPolicy<T> getPolicy(); 630 property public abstract androidx.compose.runtime.SnapshotMutationPolicy<T> policy; 631 } 632 633 @androidx.compose.runtime.Stable public final class SnapshotStateList<T> implements kotlin.jvm.internal.markers.KMutableList java.util.List<T> androidx.compose.runtime.snapshots.StateObject { 634 ctor public SnapshotStateList(); 635 method public void add(int index, T? element); 636 method public boolean add(T? element); 637 method public boolean addAll(int index, java.util.Collection<? extends T> elements); 638 method public boolean addAll(java.util.Collection<? extends T> elements); 639 method public void clear(); 640 method public boolean contains(T? element); 641 method public boolean containsAll(java.util.Collection<E!> elements); 642 method public T! get(int index); 643 method public androidx.compose.runtime.snapshots.StateRecord getFirstStateRecord(); 644 method public int getSize(); 645 method public int indexOf(T? element); 646 method public boolean isEmpty(); 647 method public java.util.Iterator<T> iterator(); 648 method public int lastIndexOf(T? element); 649 method public java.util.ListIterator<T> listIterator(); 650 method public java.util.ListIterator<T> listIterator(int index); 651 method public void prependStateRecord(androidx.compose.runtime.snapshots.StateRecord value); 652 method public boolean remove(T? element); 653 method public boolean removeAll(java.util.Collection<E!> elements); 654 method public T! removeAt(int index); 655 method public void removeRange(int fromIndex, int toIndex); 656 method public boolean retainAll(java.util.Collection<E!> elements); 657 method public T! set(int index, T? element); 658 method public java.util.List<T> subList(int fromIndex, int toIndex); 659 property public androidx.compose.runtime.snapshots.StateRecord firstStateRecord; 660 property public int size; 661 } 662 663 public final class SnapshotStateListKt { 664 } 665 666 @androidx.compose.runtime.Stable public final class SnapshotStateMap<K, V> implements kotlin.jvm.internal.markers.KMutableMap java.util.Map<K,V> androidx.compose.runtime.snapshots.StateObject { 667 ctor public SnapshotStateMap(); 668 method public void clear(); 669 method public boolean containsKey(K? key); 670 method public boolean containsValue(V? value); 671 method public V? get(Object? key); 672 method public java.util.Set<java.util.Map.Entry<K,V>> getEntries(); 673 method public androidx.compose.runtime.snapshots.StateRecord getFirstStateRecord(); 674 method public java.util.Set<K> getKeys(); 675 method public int getSize(); 676 method public java.util.Collection<V> getValues(); 677 method public boolean isEmpty(); 678 method public void prependStateRecord(androidx.compose.runtime.snapshots.StateRecord value); 679 method public V? put(K? key, V? value); 680 method public void putAll(java.util.Map<? extends K,? extends V> from); 681 method public V? remove(Object? key); 682 property public java.util.Set<java.util.Map.Entry<K,V>> entries; 683 property public androidx.compose.runtime.snapshots.StateRecord firstStateRecord; 684 property public java.util.Set<K> keys; 685 property public int size; 686 property public java.util.Collection<V> values; 687 } 688 689 public final class SnapshotStateMapKt { 690 } 691 692 public final class SnapshotStateObserver { 693 ctor public SnapshotStateObserver(kotlin.jvm.functions.Function1<? super kotlin.jvm.functions.Function0<kotlin.Unit>,kotlin.Unit> onChangedExecutor); 694 method public void clear(); 695 method public void clear(Object scope); 696 method public void clearIf(kotlin.jvm.functions.Function1<java.lang.Object,java.lang.Boolean> predicate); 697 method @org.jetbrains.annotations.TestOnly public void notifyChanges(java.util.Set<?> changes, androidx.compose.runtime.snapshots.Snapshot snapshot); 698 method public <T> void observeReads(T scope, kotlin.jvm.functions.Function1<? super T,kotlin.Unit> onValueChangedForScope, kotlin.jvm.functions.Function0<kotlin.Unit> block); 699 method public void start(); 700 method public void stop(); 701 method public void withNoObservations(kotlin.jvm.functions.Function0<kotlin.Unit> block); 702 } 703 704 public interface StateObject { 705 method public androidx.compose.runtime.snapshots.StateRecord getFirstStateRecord(); 706 method public default androidx.compose.runtime.snapshots.StateRecord? mergeRecords(androidx.compose.runtime.snapshots.StateRecord previous, androidx.compose.runtime.snapshots.StateRecord current, androidx.compose.runtime.snapshots.StateRecord applied); 707 method public void prependStateRecord(androidx.compose.runtime.snapshots.StateRecord value); 708 property public abstract androidx.compose.runtime.snapshots.StateRecord firstStateRecord; 709 } 710 711 public abstract class StateRecord { 712 ctor public StateRecord(); 713 method public abstract void assign(androidx.compose.runtime.snapshots.StateRecord value); 714 method public abstract androidx.compose.runtime.snapshots.StateRecord create(); 715 } 716 717} 718 719package androidx.compose.runtime.tooling { 720 721 public interface CompositionData { 722 method public Iterable<androidx.compose.runtime.tooling.CompositionGroup> getCompositionGroups(); 723 method public boolean isEmpty(); 724 property public abstract Iterable<androidx.compose.runtime.tooling.CompositionGroup> compositionGroups; 725 property public abstract boolean isEmpty; 726 } 727 728 public interface CompositionGroup extends androidx.compose.runtime.tooling.CompositionData { 729 method public Iterable<java.lang.Object> getData(); 730 method public Object getKey(); 731 method public Object? getNode(); 732 method public String? getSourceInfo(); 733 property public abstract Iterable<java.lang.Object> data; 734 property public abstract Object key; 735 property public abstract Object? node; 736 property public abstract String? sourceInfo; 737 } 738 739 public final class InspectionTablesKt { 740 method public static androidx.compose.runtime.ProvidableCompositionLocal<java.util.Set<androidx.compose.runtime.tooling.CompositionData>> getLocalInspectionTables(); 741 } 742 743} 744 745