InputMethodSubtype.InputMethodSubtypeBuilder
public
static
class
InputMethodSubtype.InputMethodSubtypeBuilder
extends Object
java.lang.Object
|
↳ |
android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder
|
InputMethodSubtypeBuilder is a builder class of InputMethodSubtype.
This class is designed to be used with
setAdditionalInputMethodSubtypes(String, InputMethodSubtype[])
.
The developer needs to be aware of what each parameter means.
Summary
Inherited methods |
From
class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long millis, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long millis)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
|
Public constructors
InputMethodSubtype.InputMethodSubtypeBuilder
InputMethodSubtype.InputMethodSubtypeBuilder ()
Public methods
setIsAsciiCapable
InputMethodSubtype.InputMethodSubtypeBuilder setIsAsciiCapable (boolean isAsciiCapable)
Parameters |
isAsciiCapable |
boolean :
should be true if this subtype is ASCII capable. If the subtype
is ASCII capable, it should guarantee that the user can input ASCII characters with
this subtype. This is important because many password fields only allow
ASCII-characters.
|
setIsAuxiliary
InputMethodSubtype.InputMethodSubtypeBuilder setIsAuxiliary (boolean isAuxiliary)
Parameters |
isAuxiliary |
boolean :
should true when this subtype is auxiliary, false otherwise.
An auxiliary subtype has the following differences with a regular subtype:
- An auxiliary subtype cannot be chosen as the default IME in Settings.
- The framework will never switch to this subtype through
switchToLastInputMethod(IBinder) .
Note that the subtype will still be available in the IME switcher.
The intent is to allow for IMEs to specify they are meant to be invoked temporarily
in a one-shot way, and to return to the previous IME once finished (e.g. voice input).
|
setOverridesImplicitlyEnabledSubtype
InputMethodSubtype.InputMethodSubtypeBuilder setOverridesImplicitlyEnabledSubtype (boolean overridesImplicitlyEnabledSubtype)
Parameters |
overridesImplicitlyEnabledSubtype |
boolean :
should be true if this subtype should be
enabled by default if no other subtypes in the IME are enabled explicitly. Note that a
subtype with this parameter set will not be shown in the list of subtypes in each IME's
subtype enabler. A canonical use of this would be for an IME to supply an "automatic"
subtype that adapts to the current system language.
|
setSubtypeId
InputMethodSubtype.InputMethodSubtypeBuilder setSubtypeId (int subtypeId)
Parameters |
subtypeId |
int :
is the unique ID for this subtype. The input method framework keeps
track of enabled subtypes by ID. When the IME package gets upgraded, enabled IDs will
stay enabled even if other attributes are different. If the ID is unspecified or 0,
Arrays.hashCode(new Object[] {locale, mode, extraValue,
isAuxiliary, overridesImplicitlyEnabledSubtype, isAsciiCapable}) will be used instead.
|