Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

SliceAction

@RequiresApi(19) open class SliceAction : SliceAction
kotlin.Any
   ↳ androidx.slice.builders.SliceAction

Class representing an action, supports tappable icons, custom toggle icons, and default toggles, as well as date and time pickers.

Summary

Public methods
open static SliceAction!
create(@NonNull action: PendingIntent, @NonNull actionIcon: IconCompat, imageMode: Int, @NonNull actionTitle: CharSequence)

Construct a SliceAction representing a tappable icon.

open static SliceAction!
create(@NonNull action: RemoteCallback, @NonNull actionIcon: IconCompat, imageMode: Int, @NonNull actionTitle: CharSequence)

Construct a SliceAction representing a tappable icon.

open static SliceAction!
createDeeplink(@NonNull action: PendingIntent, @NonNull actionIcon: IconCompat, imageMode: Int, @NonNull actionTitle: CharSequence)

Construct a SliceAction representing a tappable icon that launches an activity when clicked.

open static SliceAction!
createDeeplink(@NonNull action: RemoteCallback, @NonNull actionIcon: IconCompat, imageMode: Int, @NonNull actionTitle: CharSequence)

Construct a SliceAction representing a tappable icon that launches an activity when clicked.

open static SliceAction!
createToggle(@NonNull action: PendingIntent, @NonNull actionTitle: CharSequence, isChecked: Boolean)

Construct a SliceAction representing a default toggle.

open static SliceAction!
createToggle(@NonNull action: RemoteCallback, @NonNull actionTitle: CharSequence, isChecked: Boolean)

Construct a SliceAction representing a default toggle.

open static SliceAction!
createToggle(@NonNull action: PendingIntent, @NonNull actionIcon: IconCompat, @NonNull actionTitle: CharSequence, isChecked: Boolean)

Construct a SliceAction representing a custom toggle icon.

open static SliceAction!
createToggle(@NonNull action: RemoteCallback, @NonNull actionIcon: IconCompat, @NonNull actionTitle: CharSequence, isChecked: Boolean)

Construct a SliceAction representing a custom toggle icon.

open PendingIntent

open CharSequence?

open IconCompat?

open Int

open Int

open CharSequence

open Boolean

open Boolean

open Boolean

open Boolean

open SliceAction
setChecked(isChecked: