1 package com.android.launcher3.util; 2 3 import android.app.Activity; 4 import android.app.Application.ActivityLifecycleCallbacks; 5 import android.os.Bundle; 6 7 public interface ActivityLifecycleCallbacksAdapter extends ActivityLifecycleCallbacks { 8 onActivityCreated(Activity activity, Bundle bundle)9 default void onActivityCreated(Activity activity, Bundle bundle) { 10 } 11 onActivityDestroyed(Activity activity)12 default void onActivityDestroyed(Activity activity) { 13 } 14 onActivityPaused(Activity activity)15 default void onActivityPaused(Activity activity) { 16 } 17 onActivityResumed(Activity activity)18 default void onActivityResumed(Activity activity) { 19 } 20 onActivitySaveInstanceState(Activity activity, Bundle bundle)21 default void onActivitySaveInstanceState(Activity activity, Bundle bundle) { 22 } 23 onActivityStarted(Activity activity)24 default void onActivityStarted(Activity activity) { 25 } 26 onActivityStopped(Activity activity)27 default void onActivityStopped(Activity activity) { 28 } 29 } 30