Class of android.window, in OnBackInvokedDispatcher · OnBackInvokedDispatcher.java · Android's reference
public static final class Default implements OnBackInvokedDispatcher
A window's dispatcher; its fallback goes to the activity when no callback is registered.
public void setFallback(Runnable fallback) sourcepublic synchronized void registerOnBackInvokedCallback(int priority, OnBackInvokedCallback callback) sourcepublic synchronized void unregisterOnBackInvokedCallback(OnBackInvokedCallback callback) sourcepublic boolean invoke() sourceThe back key: the top callback, or the fallback. True when something handled it.
Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.