public static class InputMethodSubtypeSwitchingController.ControllerImpl extends Object
Modifier and Type | Method and Description |
---|---|
static InputMethodSubtypeSwitchingController.ControllerImpl |
createFrom(InputMethodSubtypeSwitchingController.ControllerImpl currentInstance,
List<InputMethodSubtypeSwitchingController.ImeSubtypeListItem> sortedEnabledItems) |
protected void |
dump(Printer pw) |
InputMethodSubtypeSwitchingController.ImeSubtypeListItem |
getNextInputMethod(boolean onlyCurrentIme,
InputMethodInfo imi,
InputMethodSubtype subtype,
boolean forward)
Provides the basic operation to implement bi-directional IME rotation.
|
void |
onUserActionLocked(InputMethodInfo imi,
InputMethodSubtype subtype) |
public static InputMethodSubtypeSwitchingController.ControllerImpl createFrom(InputMethodSubtypeSwitchingController.ControllerImpl currentInstance, List<InputMethodSubtypeSwitchingController.ImeSubtypeListItem> sortedEnabledItems)
public InputMethodSubtypeSwitchingController.ImeSubtypeListItem getNextInputMethod(boolean onlyCurrentIme, InputMethodInfo imi, InputMethodSubtype subtype, boolean forward)
onlyCurrentIme
- true
to limit the search space to IME subtypes that belong
to imi
.imi
- InputMethodInfo
that will be used in conjunction with subtype
from which we find the adjacent IME subtype.subtype
- InputMethodSubtype
that will be used in conjunction with
imi
from which we find the next IME subtype. null
if the input method
does not have a subtype.forward
- true
to do forward search the next IME subtype. Specify
false
to do backward search.null
if no IME subtype is found.public void onUserActionLocked(InputMethodInfo imi, InputMethodSubtype subtype)
protected void dump(Printer pw)