Default

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.

Methods

public void setFallback(Runnable fallback) source
public synchronized void registerOnBackInvokedCallback(int priority, OnBackInvokedCallback callback) source
public synchronized void unregisterOnBackInvokedCallback(OnBackInvokedCallback callback) source
public boolean invoke() source

The 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.