onWindowStartingSupportActionMode

@Nullable
abstract fun onWindowStartingSupportActionMode(callback: ActionMode.Callback): @Nullable ActionMode(source)

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.

Return

The ActionMode that was started, or null if the system should present it

Parameters

callback

Callback to control the lifecycle of this action mode