Since: API Level 2.0
public static interface

HtcTextSelectionWrapper.SelectionWatcher

com.htc.textselection.HtcTextSelectionWrapper.SelectionWatcher

Summary

Public Methods
abstract void onEndSelection(int fromMode)
This method is called to notify when ending selection
abstract void onModeChanged(int before, int after)
This method is called to notify you that, selection mode has been changed.
abstract void onStartSelection(int targetMode)
This method is called to notify when starting selection

Public Methods

public abstract void onEndSelection (int fromMode)

Since: API Level 2.0

This method is called to notify when ending selection

public abstract void onModeChanged (int before, int after)

Since: API Level 2.0

This method is called to notify you that, selection mode has been changed.

  • NONE(0), // Nothing selected.
  • CURSOR(1), // Nothing selected, shows an Anchor to move cursor.
  • MOVABLE(2), // Single word selection changed with ACTION_MOVE.
  • EXTENDABLE(3), // Multiple words selection extended with ACTION_MOVE on anchors.
  • QUICKACTION(4), // Nothing selected, but QuickAction bar pop-up.
  • PEN_HIGHLIGHT(5); // for Pen highlight

Parameters
before the old selection mode value before changed.
after the new selection mode value before changed.

public abstract void onStartSelection (int targetMode)

Since: API Level 2.0

This method is called to notify when starting selection