Lines Matching defs:ActionMode

29  * <p>For information about how to provide contextual actions with {@code ActionMode},
34 public abstract class ActionMode {
58 * Set a tag object associated with this ActionMode.
61 * data with an ActionMode for later reference.
63 * @param tag Tag to associate with this ActionMode
72 * Retrieve the tag object associated with this ActionMode.
75 * data with an ActionMode for later reference.
77 * @return Tag associated with this ActionMode
199 * {@link ActionMode.Callback} will have its
200 * {@link Callback#onPrepareActionMode(ActionMode, Menu)} method called.
207 * Invalidate the content rect associated to this ActionMode. This only makes sense for
211 * @see Callback2#onGetContentRect(ActionMode, View, Rect) .
229 * Finish and close this action mode. The action mode's {@link ActionMode.Callback} will
230 * have its {@link Callback#onDestroyActionMode(ActionMode)} method called.
259 * Returns a {@link MenuInflater} with the ActionMode's context.
292 * <li>{@link Callback#onCreateActionMode(ActionMode, Menu)} once on initial
294 * <li>{@link Callback#onPrepareActionMode(ActionMode, Menu)} after creation
295 * and any time the {@link ActionMode} is invalidated</li>
296 * <li>{@link Callback#onActionItemClicked(ActionMode, MenuItem)} any time a
298 * <li>{@link Callback#onDestroyActionMode(ActionMode)} when the action mode
307 * @param mode ActionMode being created
312 public boolean onCreateActionMode(ActionMode mode, Menu menu);
317 * @param mode ActionMode being prepared
321 public boolean onPrepareActionMode(ActionMode mode, Menu menu);
326 * @param mode The current ActionMode
331 public boolean onActionItemClicked(ActionMode mode, MenuItem item);
336 * @param mode The current ActionMode being destroyed
338 public void onDestroyActionMode(ActionMode mode);
342 * Extension of {@link ActionMode.Callback} to provide content rect information. This is
344 * {@link ActionMode#TYPE_FLOATING} to ensure the positioning doesn't obscure app content. If
347 public static abstract class Callback2 implements ActionMode.Callback {
350 * Called when an ActionMode needs to be positioned on screen, potentially occluding view
353 * @param mode The ActionMode that requires positioning.
354 * @param view The View that originated the ActionMode, in whose coordinates the Rect should
358 * to avoid occluding the given content Rect with the created ActionMode.
360 public void onGetContentRect(ActionMode mode, View view, Rect outRect) {