Methods Summary |
---|
public int | compareTo(android.hardware.input.KeyboardLayout another)
// Note that these arguments are intentionally flipped since you want higher priority
// keyboards to be listed before lower priority keyboards.
int result = Integer.compare(another.mPriority, mPriority);
if (result == 0) {
result = mLabel.compareToIgnoreCase(another.mLabel);
}
if (result == 0) {
result = mCollection.compareToIgnoreCase(another.mCollection);
}
return result;
|
public int | describeContents()
return 0;
|
public java.lang.String | getCollection()Gets the name of the collection to which the keyboard layout belongs. This is
the label of the broadcast receiver or application that provided the keyboard layout.
return mCollection;
|
public java.lang.String | getDescriptor()Gets the keyboard layout descriptor, which can be used to retrieve
the keyboard layout again later using
{@link InputManager#getKeyboardLayout(String)}.
return mDescriptor;
|
public java.lang.String | getLabel()Gets the keyboard layout descriptive label to show in the user interface.
return mLabel;
|
public java.lang.String | toString()
if (mCollection.isEmpty()) {
return mLabel;
}
return mLabel + " - " + mCollection;
|
public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeString(mDescriptor);
dest.writeString(mLabel);
dest.writeString(mCollection);
dest.writeInt(mPriority);
|