Added in API level 24

KeyboardShortcutGroup


class KeyboardShortcutGroup : Parcelable

A group of KeyboardShortcutInfo.

Summary

Inherited constants
Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.

Public methods
Unit

Adds an item to the existing list.

Int

MutableList<KeyboardShortcutInfo!>!

Returns the list of items included in this group.

CharSequence!

Returns the label to be used to describe this group.

Unit
writeToParcel(dest: Parcel, flags: Int)

Public constructors

KeyboardShortcutGroup

Added in API level 24
KeyboardShortcutGroup(label: CharSequence?)
Parameters
label CharSequence?: The title to be used for this group, or null if there is none.

KeyboardShortcutGroup

Added in API level 24
KeyboardShortcutGroup(
    label: CharSequence?,
    items: MutableList<KeyboardShortcutInfo!>)
Parameters
label CharSequence?: The title to be used for this group, or null if there is none.
items MutableList<KeyboardShortcutInfo!>: The set of items to be included. This value cannot be null.

Public methods

addItem

Added in API level 24
fun addItem(item: KeyboardShortcutInfo!): Unit

Adds an item to the existing list.

Parameters
item KeyboardShortcutInfo!: The item to be added.

describeContents

Added in API level 24
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getItems

Added in API level 24
fun getItems(): MutableList<KeyboardShortcutInfo!>!

Returns the list of items included in this group.

getLabel

Added in API level 24
fun getLabel(): CharSequence!

Returns the label to be used to describe this group.

writeToParcel

Added in API level 24
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit
Parameters
dest Parcel: The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 24
static val CREATOR: Parcelable.Creator<KeyboardShortcutGroup!>