AppCompatCallback
public interface AppCompatCallback
AppCompatActivity |
Base class for activities that wish to use some of the newer platform features on older Android devices. |
AppCompatDialog |
Base class for AppCompat themed |
AlertDialog |
A subclass of Dialog that can display one, two or three buttons. |
MediaRouteChooserDialog |
This class implements the route chooser dialog for |
MediaRouteControllerDialog |
This class implements the route controller dialog for |
Implemented this in order for AppCompat to be able to callback in certain situations.
This should be provided to create.
Summary
Public methods |
|
|---|---|
abstract void |
Called when a support action mode has finished. |
abstract void |
Called when a support action mode has been started. |
abstract @Nullable ActionMode |
Called when a support action mode is being started for this window. |
Public methods
onSupportActionModeFinished
abstract void onSupportActionModeFinished(ActionMode mode)
Called when a support action mode has finished.
| Parameters | |
|---|---|
ActionMode mode |
The action mode that just finished. |
onSupportActionModeStarted
abstract void onSupportActionModeStarted(ActionMode mode)
Called when a support action mode has been started.
| Parameters | |
|---|---|
ActionMode mode |
The new action mode. |
onWindowStartingSupportActionMode
abstract @Nullable 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 | |
|---|---|
ActionMode.Callback callback |
Callback to control the lifecycle of this action mode |
| Returns | |
|---|---|
@Nullable ActionMode |
The ActionMode that was started, or null if the system should present it |