[go: nahoru, domu]

blob: 1d2105fda14dee5e262da520926fd708b0c2a86a [file] [log] [blame]
// Signature format: 3.0
package androidx.lifecycle {
public interface DefaultLifecycleObserver extends androidx.lifecycle.LifecycleObserver {
method public default void onCreate(androidx.lifecycle.LifecycleOwner);
method public default void onDestroy(androidx.lifecycle.LifecycleOwner);
method public default void onPause(androidx.lifecycle.LifecycleOwner);
method public default void onResume(androidx.lifecycle.LifecycleOwner);
method public default void onStart(androidx.lifecycle.LifecycleOwner);
method public default void onStop(androidx.lifecycle.LifecycleOwner);
}
public abstract class Lifecycle {
ctor public Lifecycle();
method @MainThread public abstract void addObserver(androidx.lifecycle.LifecycleObserver);
method @MainThread public abstract androidx.lifecycle.Lifecycle.State getCurrentState();
method @MainThread public abstract void removeObserver(androidx.lifecycle.LifecycleObserver);
}
public enum Lifecycle.Event {
enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_ANY;
enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_CREATE;
enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_DESTROY;
enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_PAUSE;
enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_RESUME;
enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_START;
enum_constant public static final androidx.lifecycle.Lifecycle.Event ON_STOP;
}
public enum Lifecycle.State {
method public boolean isAtLeast(androidx.lifecycle.Lifecycle.State);
enum_constant public static final androidx.lifecycle.Lifecycle.State CREATED;
enum_constant public static final androidx.lifecycle.Lifecycle.State DESTROYED;
enum_constant public static final androidx.lifecycle.Lifecycle.State INITIALIZED;
enum_constant public static final androidx.lifecycle.Lifecycle.State RESUMED;
enum_constant public static final androidx.lifecycle.Lifecycle.State STARTED;
}
public interface LifecycleEventObserver extends androidx.lifecycle.LifecycleObserver {
method public void onStateChanged(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.Lifecycle.Event);
}
public interface LifecycleObserver {
}
public interface LifecycleOwner {
method public androidx.lifecycle.Lifecycle getLifecycle();
}
@Deprecated @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.METHOD) public @interface OnLifecycleEvent {
method @Deprecated public abstract androidx.lifecycle.Lifecycle.Event! value();
}
}