AppCompatCallback

interface AppCompatCallback
androidx.appcompat.app.AppCompatCallback

Implemented this in order for AppCompat to be able to callback in certain situations.

This should be provided to AppCompatDelegate#create(android.app.Activity, AppCompatCallback).

Summary

Public methods
abstract ActionMode?

Called when a support action mode is being started for this window.

abstract Unit

Called when a support action mode has been started.

abstract Unit

Called when a support action mode has finished.

Public methods

onWindowStartingSupportActionMode

abstract fun onWindowStartingSupportActionMode(callback: ActionMode.Callback!): ActionMode?

Called when a support action mode is being started for this window. Gives the callback an opportunity to handle the action mode in its own unique and beautiful way. If this method returns null the system can choose a way to present the mode or choose not to start the mode at all.

Parameters
callback ActionMode.Callback!: Callback to control the lifecycle of this action mode
Return
ActionMode?: The ActionMode that was started, or null if the system should present it

onSupportActionModeStarted

abstract fun onSupportActionModeStarted(mode: ActionMode!): Unit

Called when a support action mode has been started.

Parameters
mode ActionMode!: The new action mode.

onSupportActionModeFinished

abstract fun onSupportActionModeFinished(mode: ActionMode!): Unit

Called when a support action mode has finished.

Parameters
mode ActionMode!: The action mode that just finished.