Added in API level 24
    KeyboardShortcutGroup
class KeyboardShortcutGroup : Parcelable
| kotlin.Any | |
| ↳ | android.view.KeyboardShortcutGroup | 
A group of KeyboardShortcutInfo.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
            KeyboardShortcutGroup(label: CharSequence?) | 
        |
            KeyboardShortcutGroup(label: CharSequence?, items: MutableList<KeyboardShortcutInfo!>) | 
        |
| Public methods | |
|---|---|
| Unit | 
            addItem(item: KeyboardShortcutInfo!)Adds an item to the existing list.  | 
        
| Int | |
| MutableList<KeyboardShortcutInfo!>! | 
            getItems()Returns the list of items included in this group.  | 
        
| CharSequence! | 
            getLabel()Returns the label to be used to describe this group.  | 
        
| Unit | 
            writeToParcel(dest: Parcel, flags: Int) | 
        
| Properties | |
|---|---|
| static Parcelable.Creator<KeyboardShortcutGroup!> | |
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 |