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 @MainThread 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 @MainThread 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>,? extends java.lang.Object?> 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>,? extends java.lang.Object?> block, kotlin.coroutines.Continuation<? super kotlin.Unit>);
39  }
40
41  @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class ReportFragment extends android.app.Fragment {
42    ctor public ReportFragment();
43    method public static final androidx.lifecycle.ReportFragment get(android.app.Activity);
44    method public static final void injectIfNeededIn(android.app.Activity activity);
45    method public void onActivityCreated(android.os.Bundle? savedInstanceState);
46    method public void onDestroy();
47    method public void onPause();
48    method public void onResume();
49    method public void onStart();
50    method public void onStop();
51    method public final void setProcessListener(androidx.lifecycle.ReportFragment.ActivityInitializationListener? processListener);
52    field public static final androidx.lifecycle.ReportFragment.Companion Companion;
53  }
54
55  public static interface ReportFragment.ActivityInitializationListener {
56    method public void onCreate();
57    method public void onResume();
58    method public void onStart();
59  }
60
61  public static final class ReportFragment.Companion {
62    method public androidx.lifecycle.ReportFragment get(android.app.Activity);
63    method public void injectIfNeededIn(android.app.Activity activity);
64    property public static androidx.lifecycle.ReportFragment android.app.Activity.reportFragment;
65  }
66
67  public final class ViewKt {
68    method @Deprecated public static androidx.lifecycle.LifecycleOwner? findViewTreeLifecycleOwner(android.view.View view);
69  }
70
71  public final class ViewTreeLifecycleOwner {
72    method public static androidx.lifecycle.LifecycleOwner? get(android.view.View);
73    method public static void set(android.view.View, androidx.lifecycle.LifecycleOwner? lifecycleOwner);
74  }
75
76  public final class WithLifecycleStateKt {
77    method @kotlin.PublishedApi internal static suspend <R> Object? suspendWithStateAtLeastUnchecked(androidx.lifecycle.Lifecycle, androidx.lifecycle.Lifecycle.State state, boolean dispatchNeeded, kotlinx.coroutines.CoroutineDispatcher lifecycleDispatcher, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>);
78    method public static suspend inline <R> Object? withCreated(androidx.lifecycle.Lifecycle, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>);
79    method public static suspend inline <R> Object? withCreated(androidx.lifecycle.LifecycleOwner, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>);
80    method public static suspend inline <R> Object? withResumed(androidx.lifecycle.Lifecycle, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>);
81    method public static suspend inline <R> Object? withResumed(androidx.lifecycle.LifecycleOwner, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>);
82    method public static suspend inline <R> Object? withStarted(androidx.lifecycle.Lifecycle, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>);
83    method public static suspend inline <R> Object? withStarted(androidx.lifecycle.LifecycleOwner, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>);
84    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>);
85    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>);
86    method @kotlin.PublishedApi internal static suspend inline <R> Object? withStateAtLeastUnchecked(androidx.lifecycle.Lifecycle, androidx.lifecycle.Lifecycle.State state, kotlin.jvm.functions.Function0<? extends R> block, kotlin.coroutines.Continuation<? super R>);
87  }
88
89}
90
91