Nick Anthony | 09286e6 | 2019-09-19 18:25:21 -0400 | [diff] [blame] | 1 | // Signature format: 3.0 |
| 2 | package androidx.lifecycle { |
| 3 | |
| 4 | public abstract class Lifecycle { |
| 5 | ctor public Lifecycle(); |
| 6 | method @MainThread public abstract void addObserver(androidx.lifecycle.LifecycleObserver); |
| 7 | method @MainThread public abstract androidx.lifecycle.Lifecycle.State getCurrentState(); |
| 8 | method @MainThread public abstract void removeObserver(androidx.lifecycle.LifecycleObserver); |
| 9 | } |
| 10 | |
| 11 | public enum Lifecycle.Event { |
| 12 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_ANY; |
| 13 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_CREATE; |
| 14 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_DESTROY; |
| 15 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_PAUSE; |
| 16 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_RESUME; |
| 17 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_START; |
| 18 | enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_STOP; |
| 19 | } |
| 20 | |
| 21 | public enum Lifecycle.State { |
| 22 | method public boolean isAtLeast(androidx.lifecycle.Lifecycle.State); |
| 23 | enum_constant public static final androidx.lifecycle.Lifecycle.State CREATED; |
| 24 | enum_constant public static final androidx.lifecycle.Lifecycle.State DESTROYED; |
| 25 | enum_constant public static final androidx.lifecycle.Lifecycle.State INITIALIZED; |
| 26 | enum_constant public static final androidx.lifecycle.Lifecycle.State RESUMED; |
| 27 | enum_constant public static final androidx.lifecycle.Lifecycle.State STARTED; |
| 28 | } |
| 29 | |
| 30 | public interface LifecycleEventObserver extends androidx.lifecycle.LifecycleObserver { |
| 31 | method public void onStateChanged(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.Lifecycle.Event); |
| 32 | } |
| 33 | |
| 34 | public interface LifecycleObserver { |
| 35 | } |
| 36 | |
| 37 | public interface LifecycleOwner { |
| 38 | method public androidx.lifecycle.Lifecycle getLifecycle(); |
| 39 | } |
| 40 | |
| 41 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.METHOD) public @interface OnLifecycleEvent { |
| 42 | method public abstract androidx.lifecycle.Lifecycle.Event! value(); |
| 43 | } |
| 44 | |
| 45 | } |
| 46 | |