public class InputMethodSubtypeArray extends Object
InputMethodSubtype
.
This container is designed to reduce the risk of TransactionTooLargeException
when one or more instancess of InputMethodInfo
are transferred through IPC.
Basically this class does following three tasks.
Constructor and Description |
---|
InputMethodSubtypeArray(List<InputMethodSubtype> subtypes)
Create a new instance of
InputMethodSubtypeArray from an existing list of
InputMethodSubtype . |
InputMethodSubtypeArray(Parcel source)
Unmarshall an instance of
InputMethodSubtypeArray from a given Parcel
object. |
Modifier and Type | Method and Description |
---|---|
InputMethodSubtype |
get(int index)
Return
InputMethodSubtype specified with the given index. |
int |
getCount()
Return the number of
InputMethodSubtype objects. |
void |
writeToParcel(Parcel dest)
Marshall the instance into a given
Parcel object. |
public InputMethodSubtypeArray(List<InputMethodSubtype> subtypes)
InputMethodSubtypeArray
from an existing list of
InputMethodSubtype
.subtypes
- A list of InputMethodSubtype
from which
InputMethodSubtypeArray
will be created.public InputMethodSubtypeArray(Parcel source)
InputMethodSubtypeArray
from a given Parcel
object.source
- A Parcel
object from which InputMethodSubtypeArray
will be
unmarshalled.public void writeToParcel(Parcel dest)
Parcel
object.
This methods may take a bit additional time to compress data lazily when called first time.
source
- A Parcel
object to which InputMethodSubtypeArray
will be
marshalled.public InputMethodSubtype get(int index)
InputMethodSubtype
specified with the given index.
This methods may take a bit additional time to decompress data lazily when called first time.
index
- The index of InputMethodSubtype
.public int getCount()
InputMethodSubtype
objects.