| // Signature format: 3.0 |
| package androidx.activity { |
| |
| public class ComponentActivity extends androidx.core.app.ComponentActivity implements androidx.lifecycle.LifecycleOwner androidx.savedstate.SavedStateRegistryOwner androidx.lifecycle.ViewModelStoreOwner { |
| ctor public ComponentActivity(); |
| ctor @ContentView public ComponentActivity(@LayoutRes int); |
| method @Deprecated public void addOnBackPressedCallback(androidx.activity.OnBackPressedCallback); |
| method @Deprecated public void addOnBackPressedCallback(androidx.lifecycle.LifecycleOwner, androidx.activity.OnBackPressedCallback); |
| method @Deprecated public Object? getLastCustomNonConfigurationInstance(); |
| method public androidx.lifecycle.Lifecycle getLifecycle(); |
| method public final androidx.activity.OnBackPressedDispatcher getOnBackPressedDispatcher(); |
| method public final androidx.savedstate.SavedStateRegistry getSavedStateRegistry(); |
| method public androidx.lifecycle.ViewModelStore getViewModelStore(); |
| method @Deprecated public Object? onRetainCustomNonConfigurationInstance(); |
| method public final Object? onRetainNonConfigurationInstance(); |
| method @Deprecated public void removeOnBackPressedCallback(androidx.activity.OnBackPressedCallback); |
| } |
| |
| public interface OnBackPressedCallback { |
| method public boolean handleOnBackPressed(); |
| } |
| |
| public final class OnBackPressedDispatcher { |
| method public androidx.arch.core.util.Cancellable addCallback(androidx.activity.OnBackPressedCallback); |
| method public androidx.arch.core.util.Cancellable addCallback(androidx.lifecycle.LifecycleOwner, androidx.activity.OnBackPressedCallback); |
| method public boolean onBackPressed(); |
| } |
| |
| } |
| |