Aurimas Liutikas | 3aa5a20 | 2020-10-05 09:42:14 -0700 | [diff] [blame] | 1 | // Signature format: 4.0 |
Jeff Gaston | 79285e9 | 2019-02-13 15:26:16 -0500 | [diff] [blame] | 2 | package androidx.lifecycle { |
| 3 | |
Jeff Gaston | 79285e9 | 2019-02-13 15:26:16 -0500 | [diff] [blame] | 4 | @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public interface GeneratedAdapter { |
| 5 | method public void callMethods(androidx.lifecycle.LifecycleOwner!, androidx.lifecycle.Lifecycle.Event!, boolean, androidx.lifecycle.MethodCallsLogger!); |
| 6 | } |
| 7 | |
| 8 | @Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public interface GenericLifecycleObserver extends androidx.lifecycle.LifecycleEventObserver { |
| 9 | } |
| 10 | |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 11 | public abstract class Lifecycle { |
| 12 | ctor public Lifecycle(); |
| 13 | method @MainThread public abstract void addObserver(androidx.lifecycle.LifecycleObserver); |
| 14 | method @MainThread public abstract androidx.lifecycle.Lifecycle.State getCurrentState(); |
| 15 | method @MainThread public abstract void removeObserver(androidx.lifecycle.LifecycleObserver); |
| 16 | } |
| 17 | |
| 18 | public enum Lifecycle.Event { |
Adam Powell | 86a72f8 | 2020-06-09 11:06:29 -0700 | [diff] [blame] | 19 | method public static androidx.lifecycle.Lifecycle.Event? downFrom(androidx.lifecycle.Lifecycle.State); |
| 20 | method public static androidx.lifecycle.Lifecycle.Event? downTo(androidx.lifecycle.Lifecycle.State); |
| 21 | method public androidx.lifecycle.Lifecycle.State getTargetState(); |
| 22 | method public static androidx.lifecycle.Lifecycle.Event? upFrom(androidx.lifecycle.Lifecycle.State); |
| 23 | method public static androidx.lifecycle.Lifecycle.Event? upTo(androidx.lifecycle.Lifecycle.State); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 24 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_ANY; |
| 25 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_CREATE; |
| 26 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_DESTROY; |
| 27 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_PAUSE; |
| 28 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_RESUME; |
| 29 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_START; |
| 30 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_STOP; |
| 31 | } |
| 32 | |
| 33 | public enum Lifecycle.State { |
| 34 | method public boolean isAtLeast(androidx.lifecycle.Lifecycle.State); |
| 35 | enum_constant public static final androidx.lifecycle.Lifecycle.State CREATED; |
| 36 | enum_constant public static final androidx.lifecycle.Lifecycle.State DESTROYED; |
| 37 | enum_constant public static final androidx.lifecycle.Lifecycle.State INITIALIZED; |
| 38 | enum_constant public static final androidx.lifecycle.Lifecycle.State RESUMED; |
| 39 | enum_constant public static final androidx.lifecycle.Lifecycle.State STARTED; |
| 40 | } |
| 41 | |
| 42 | public interface LifecycleEventObserver extends androidx.lifecycle.LifecycleObserver { |
| 43 | method public void onStateChanged(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.Lifecycle.Event); |
| 44 | } |
| 45 | |
| 46 | public interface LifecycleObserver { |
| 47 | } |
| 48 | |
| 49 | public interface LifecycleOwner { |
| 50 | method public androidx.lifecycle.Lifecycle getLifecycle(); |
| 51 | } |
| 52 | |
Jeff Gaston | 79285e9 | 2019-02-13 15:26:16 -0500 | [diff] [blame] | 53 | @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class Lifecycling { |
| 54 | method public static String! getAdapterName(String!); |
| 55 | } |
| 56 | |
| 57 | @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class MethodCallsLogger { |
| 58 | ctor public MethodCallsLogger(); |
| 59 | method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public boolean approveCall(String!, int); |
| 60 | } |
| 61 | |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 62 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.METHOD) public @interface OnLifecycleEvent { |
| 63 | method public abstract androidx.lifecycle.Lifecycle.Event! value(); |
| 64 | } |
| 65 | |
Jeff Gaston | 79285e9 | 2019-02-13 15:26:16 -0500 | [diff] [blame] | 66 | } |
| 67 | |