setBackInvokedCallbackEnabled

Enables or disables the built-in back-invoked callback handling of this DrawerLayout.

Disable it when back events are consumed by custom handling, so that the internal OnBackInvokedCallback registration does not conflict with it.

Parameters

enable

true to close the open drawer on back press (default), false to opt out and leave back handling to the caller.