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  public abstract class Lifecycle {
14    ctor public Lifecycle();
15    method @MainThread public abstract void addObserver(androidx.lifecycle.LifecycleObserver observer);
16    method @MainThread public abstract androidx.lifecycle.Lifecycle.State getCurrentState();
17    method @MainThread public abstract void removeObserver(androidx.lifecycle.LifecycleObserver observer);
18    property @MainThread public abstract androidx.lifecycle.Lifecycle.State currentState;
19  }
20
21  public enum Lifecycle.Event {
22    method public static final androidx.lifecycle.Lifecycle.Event? downFrom(androidx.lifecycle.Lifecycle.State state);
23    method public static final androidx.lifecycle.Lifecycle.Event? downTo(androidx.lifecycle.Lifecycle.State state);
24    method public final androidx.lifecycle.Lifecycle.State getTargetState();
25    method public static final androidx.lifecycle.Lifecycle.Event? upFrom(androidx.lifecycle.Lifecycle.State state);
26    method public static final androidx.lifecycle.Lifecycle.Event? upTo(androidx.lifecycle.Lifecycle.State state);
27    property public final androidx.lifecycle.Lifecycle.State targetState;
28    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_ANY;
29    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_CREATE;
30    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_DESTROY;
31    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_PAUSE;
32    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_RESUME;
33    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_START;
34    enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_STOP;
35    field public static final androidx.lifecycle.Lifecycle.Event.Companion Companion;
36  }
37
38  public static final class Lifecycle.Event.Companion {
39    method public androidx.lifecycle.Lifecycle.Event? downFrom(androidx.lifecycle.Lifecycle.State state);
40    method public androidx.lifecycle.Lifecycle.Event? downTo(androidx.lifecycle.Lifecycle.State state);
41    method public androidx.lifecycle.Lifecycle.Event? upFrom(androidx.lifecycle.Lifecycle.State state);
42    method public androidx.lifecycle.Lifecycle.Event? upTo(androidx.lifecycle.Lifecycle.State state);
43  }
44
45  public enum Lifecycle.State {
46    method public final boolean isAtLeast(androidx.lifecycle.Lifecycle.State state);
47    enum_constant public static final androidx.lifecycle.Lifecycle.State CREATED;
48    enum_constant public static final androidx.lifecycle.Lifecycle.State DESTROYED;
49    enum_constant public static final androidx.lifecycle.Lifecycle.State INITIALIZED;
50    enum_constant public static final androidx.lifecycle.Lifecycle.State RESUMED;
51    enum_constant public static final androidx.lifecycle.Lifecycle.State STARTED;
52  }
53
54  public abstract class LifecycleCoroutineScope implements kotlinx.coroutines.CoroutineScope {
55    method @Deprecated public final kotlinx.coroutines.Job launchWhenCreated(kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block);
56    method @Deprecated public final kotlinx.coroutines.Job launchWhenResumed(kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block);
57    method @Deprecated public final kotlinx.coroutines.Job launchWhenStarted(kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,?> block);
58  }
59
60  public fun interface LifecycleEventObserver extends androidx.lifecycle.LifecycleObserver {
61    method public void onStateChanged(androidx.lifecycle.LifecycleOwner source, androidx.lifecycle.Lifecycle.Event event);
62  }
63
64  public final class LifecycleKt {
65    method public static androidx.lifecycle.LifecycleCoroutineScope getCoroutineScope(androidx.lifecycle.Lifecycle);
66  }
67
68  public interface LifecycleObserver {
69  }
70
71  public interface LifecycleOwner {
72    method public androidx.lifecycle.Lifecycle getLifecycle();
73    property public abstract androidx.lifecycle.Lifecycle lifecycle;
74  }
75
76  public final class LifecycleOwnerKt {
77    method public static androidx.lifecycle.LifecycleCoroutineScope getLifecycleScope(androidx.lifecycle.LifecycleOwner);
78  }
79
80  @Deprecated @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.METHOD) public @interface OnLifecycleEvent {
81    method @Deprecated public abstract androidx.lifecycle.Lifecycle.Event value();
82  }
83
84  public final class PausingDispatcherKt {
85    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>);
86    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>);
87    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>);
88    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>);
89    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>);
90    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>);
91    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>);
92  }
93
94}
95
96