1// Signature format: 4.0
2package androidx.lifecycle {
3
4  public interface DefaultLifecycleObserver extends androidx.lifecycle.LifecycleObserver {
5    method public default void onCreate(androidx.lifecycle.LifecycleOwner owner);
6    method public default void onDestroy(androidx.lifecycle.LifecycleOwner owner);
7    method public default void onPause(androidx.lifecycle.LifecycleOwner owner);
8    method public default void onResume(androidx.lifecycle.LifecycleOwner owner);
9    method public default void onStart(androidx.lifecycle.LifecycleOwner owner);
10    method public default void onStop(androidx.lifecycle.LifecycleOwner owner);
11  }
12
13  @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public interface GeneratedAdapter {
14    method public void callMethods(androidx.lifecycle.LifecycleOwner source, androidx.lifecycle.Lifecycle.Event event, boolean onAny, androidx.lifecycle.MethodCallsLogger? logger);
15  }
16
17  @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public interface GenericLifecycleObserver extends androidx.lifecycle.LifecycleEventObserver {
18  }
19
20  public abstract class Lifecycle {
21    ctor public Lifecycle();
22    method @MainThread public abstract void addObserver(androidx.lifecycle.LifecycleObserver observer);
23    method @MainThread public abstract androidx.lifecycle.Lifecycle.State getCurrentState();
24    method public kotlinx.coroutines.flow.StateFlow<androidx.lifecycle.Lifecycle.State> getCurrentStateFlow();
25    method @MainThread public abstract void removeObserver(androidx.lifecycle.LifecycleObserver observer);
26    property @MainThread public abstract androidx.lifecycle.Lifecycle.State currentState;
27    property public kotlinx.coroutines.flow.StateFlow<androidx.lifecycle.Lifecycle.State> currentStateFlow;
28  }
29
30  public enum Lifecycle.Event {
31    method public static final androidx.lifecycle.Lifecycle.Event? downFrom(androidx.lifecycle.Lifecycle.State state);
32    method public static final androidx.lifecycle.Lifecycle.Event? downTo(androidx.lifecycle.Lifecycle.State state);
33    method public final androidx.lifecycle.Lifecycle.State getTargetState();
34    method public static final androidx.lifecycle.Lifecycle.Event? upFrom(androidx.lifecycle.Lifecycle.State state);
35    method public static final androidx.lifecycle.Lifecycle.Event? upTo(androidx.lifecycle.Lifecycle.State state);
36    property public final androidx.lifecycle.Lifecycle.State targetState;
37    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_ANY;
38    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_CREATE;
39    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_DESTROY;
40    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_PAUSE;
41    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_RESUME;
42    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_START;
43    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_STOP;
44    field public static final androidx.lifecycle.Lifecycle.Event.Companion Companion;
45  }
46
47  public static final class Lifecycle.Event.Companion {
48    method public androidx.lifecycle.Lifecycle.Event? downFrom(androidx.lifecycle.Lifecycle.State state);
49    method public androidx.lifecycle.Lifecycle.Event? downTo(androidx.lifecycle.Lifecycle.State state);
50    method public androidx.lifecycle.Lifecycle.Event? upFrom(androidx.lifecycle.Lifecycle.State state);
51    method public androidx.lifecycle.Lifecycle.Event? upTo(androidx.lifecycle.Lifecycle.State state);
52  }
53
54  public enum Lifecycle.State {
55    method public final boolean isAtLeast(androidx.lifecycle.Lifecycle.State state);
56    enum_constant public static final androidx.lifecycle.Lifecycle.State CREATED;
57    enum_constant public static final androidx.lifecycle.Lifecycle.State DESTROYED;
58    enum_constant public static final androidx.lifecycle.Lifecycle.State INITIALIZED;
59    enum_constant public static final androidx.lifecycle.Lifecycle.State RESUMED;
60    enum_constant public static final androidx.lifecycle.Lifecycle.State STARTED;
61  }
62
63  public abstract class LifecycleCoroutineScope implements kotlinx.coroutines.CoroutineScope {
64    method @Deprecated public final kotlinx.coroutines.Job launchWhenCreated(kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block);
65    method @Deprecated public final kotlinx.coroutines.Job launchWhenResumed(kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block);
66    method @Deprecated public final kotlinx.coroutines.Job launchWhenStarted(kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block);
67  }
68
69  public fun interface LifecycleEventObserver extends androidx.lifecycle.LifecycleObserver {
70    method public void onStateChanged(androidx.lifecycle.LifecycleOwner source, androidx.lifecycle.Lifecycle.Event event);
71  }
72
73  public final class LifecycleKt {
74    method public static androidx.lifecycle.LifecycleCoroutineScope getCoroutineScope(androidx.lifecycle.Lifecycle);
75    method public static kotlinx.coroutines.flow.Flow<androidx.lifecycle.Lifecycle.Event> getEventFlow(androidx.lifecycle.Lifecycle);
76  }
77
78  public interface LifecycleObserver {
79  }
80
81  public interface LifecycleOwner {
82    method public androidx.lifecycle.Lifecycle getLifecycle();
83    property public abstract androidx.lifecycle.Lifecycle lifecycle;
84  }
85
86  public final class LifecycleOwnerKt {
87    method public static androidx.lifecycle.LifecycleCoroutineScope getLifecycleScope(androidx.lifecycle.LifecycleOwner);
88  }
89
90  @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class Lifecycling {
91    method public static String getAdapterName(String className);
92    method public static androidx.lifecycle.LifecycleEventObserver lifecycleEventObserver(Object object);
93    field public static final androidx.lifecycle.Lifecycling INSTANCE;
94  }
95
96  @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class MethodCallsLogger {
97    ctor public MethodCallsLogger();
98    method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public boolean approveCall(String name, int type);
99  }
100
101  @Deprecated @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.METHOD) public @interface OnLifecycleEvent {
102    method @Deprecated public abstract androidx.lifecycle.Lifecycle.Event value();
103  }
104
105  public final class PausingDispatcherKt {
106    method @Deprecated public static suspend <T> Object? whenCreated(androidx.lifecycle.Lifecycle, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super T>,?> block, kotlin.coroutines.Continuation<? super T>);
107    method @Deprecated public static suspend <T> Object? whenCreated(androidx.lifecycle.LifecycleOwner, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super T>,?> block, kotlin.coroutines.Continuation<? super T>);
108    method @Deprecated public static suspend <T> Object? whenResumed(androidx.lifecycle.Lifecycle, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super T>,?> block, kotlin.coroutines.Continuation<? super T>);
109    method @Deprecated public static suspend <T> Object? whenResumed(androidx.lifecycle.LifecycleOwner, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super T>,?> block, kotlin.coroutines.Continuation<? super T>);
110    method @Deprecated public static suspend <T> Object? whenStarted(androidx.lifecycle.Lifecycle, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super T>,?> block, kotlin.coroutines.Continuation<? super T>);
111    method @Deprecated public static suspend <T> Object? whenStarted(androidx.lifecycle.LifecycleOwner, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super T>,?> block, kotlin.coroutines.Continuation<? super T>);
112    method @Deprecated public static suspend <T> Object? whenStateAtLeast(androidx.lifecycle.Lifecycle, androidx.lifecycle.Lifecycle.State minState, kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super T>,?> block, kotlin.coroutines.Continuation<? super T>);
113  }
114
115}
116
117