1// Signature format: 4.0 2package androidx.lifecycle { 3 4 public final class FlowExtKt { 5 method public static <T> kotlinx.coroutines.flow.Flow<T> flowWithLifecycle(kotlinx.coroutines.flow.Flow<? extends T>, androidx.lifecycle.Lifecycle lifecycle, optional androidx.lifecycle.Lifecycle.State minActiveState); 6 } 7 8 public final class LifecycleDestroyedException extends java.util.concurrent.CancellationException { 9 ctor public LifecycleDestroyedException(); 10 } 11 12 public class LifecycleRegistry extends androidx.lifecycle.Lifecycle { 13 ctor public LifecycleRegistry(androidx.lifecycle.LifecycleOwner provider); 14 method public void addObserver(androidx.lifecycle.LifecycleObserver observer); 15 method @VisibleForTesting public static final androidx.lifecycle.LifecycleRegistry createUnsafe(androidx.lifecycle.LifecycleOwner owner); 16 method public androidx.lifecycle.Lifecycle.State getCurrentState(); 17 method public int getObserverCount(); 18 method public void handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event event); 19 method @Deprecated @MainThread public void markState(androidx.lifecycle.Lifecycle.State state); 20 method public void removeObserver(androidx.lifecycle.LifecycleObserver observer); 21 method public void setCurrentState(androidx.lifecycle.Lifecycle.State); 22 property public androidx.lifecycle.Lifecycle.State currentState; 23 property public kotlinx.coroutines.flow.StateFlow<androidx.lifecycle.Lifecycle.State> currentStateFlow; 24 property public int observerCount; 25 field public static final androidx.lifecycle.LifecycleRegistry.Companion Companion; 26 } 27 28 public static final class LifecycleRegistry.Companion { 29 method @VisibleForTesting public androidx.lifecycle.LifecycleRegistry createUnsafe(androidx.lifecycle.LifecycleOwner owner); 30 } 31 32 @Deprecated public interface LifecycleRegistryOwner extends androidx.lifecycle.LifecycleOwner { 33 method @Deprecated public androidx.lifecycle.LifecycleRegistry getLifecycle(); 34 } 35 36 public final class RepeatOnLifecycleKt { 37 method public static suspend Object? repeatOnLifecycle(androidx.lifecycle.Lifecycle, androidx.lifecycle.Lifecycle.State state, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block, kotlin.coroutines.Continuation<? super kotlin.Unit>); 38 method public static suspend Object? repeatOnLifecycle(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.Lifecycle.State state, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block, kotlin.coroutines.Continuation<? super kotlin.Unit>); 39 } 40 41 public final class ViewKt { 42 method @Deprecated public static androidx.lifecycle.LifecycleOwner? findViewTreeLifecycleOwner(android.view.View view); 43 } 44 45 public final class ViewTreeLifecycleOwner { 46 method public static androidx.lifecycle.LifecycleOwner? get(android.view.View); 47 method public static void set(android.view.View, androidx.lifecycle.LifecycleOwner? lifecycleOwner); 48 } 49 50 public final class WithLifecycleStateKt { 51 method public static suspend inline <R> Object? withCreated(androidx.lifecycle.Lifecycle, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>); 52 method public static suspend inline <R> Object? withCreated(androidx.lifecycle.LifecycleOwner, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>); 53 method public static suspend inline <R> Object? withResumed(androidx.lifecycle.Lifecycle, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>); 54 method public static suspend inline <R> Object? withResumed(androidx.lifecycle.LifecycleOwner, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>); 55 method public static suspend inline <R> Object? withStarted(androidx.lifecycle.Lifecycle, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>); 56 method public static suspend inline <R> Object? withStarted(androidx.lifecycle.LifecycleOwner, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>); 57 method public static suspend inline <R> Object? withStateAtLeast(androidx.lifecycle.Lifecycle, androidx.lifecycle.Lifecycle.State state, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>); 58 method public static suspend inline <R> Object? withStateAtLeast(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.Lifecycle.State state, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>); 59 } 60 61} 62 63