Skip to content

Most visited

Recently visited

navigation
added in version 24.1.0
belongs to Maven artifact com.android.support:appcompat-v7:27.0.0

AppCompatCallback

public interface AppCompatCallback

android.support.v7.app.AppCompatCallback
Known Indirect Subclasses


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

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

Summary

Public methods

abstract void onSupportActionModeFinished(ActionMode mode)

Called when a support action mode has finished.

abstract void onSupportActionModeStarted(ActionMode mode)

Called when a support action mode has been started.

abstract ActionMode onWindowStartingSupportActionMode(ActionMode.Callback callback)

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

Public methods

onSupportActionModeFinished

added in version 24.1.0
void onSupportActionModeFinished (ActionMode mode)

Called when a support action mode has finished.

Parameters
mode ActionMode: The action mode that just finished.

onSupportActionModeStarted

added in version 24.1.0
void onSupportActionModeStarted (ActionMode mode)

Called when a support action mode has been started.

Parameters
mode ActionMode: The new action mode.

onWindowStartingSupportActionMode

added in version 24.1.0
ActionMode onWindowStartingSupportActionMode (ActionMode.Callback callback)

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

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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)