setOnBackInvokedDispatcher

@RequiresApi(value = 33)
open fun setOnBackInvokedDispatcher(@Nullable dispatcher: @Nullable OnBackInvokedDispatcher)(source)

Sets the OnBackInvokedDispatcher for handling system back for Android SDK 33 and above.

If the delegate is hosted by an Activity, the default dispatcher is obtained via getOnBackInvokedDispatcher.

Parameters

dispatcher

the OnBackInvokedDispatcher to be set on this delegate, or null to use the default dispatcher