Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

OnSliceActionListener

interface OnSliceActionListener
androidx.slice.widget.SliceView.OnSliceActionListener

Implement this interface to be notified of interactions with the slice displayed in this view.

Summary

Public methods
abstract Unit
onSliceAction(@NonNull info: EventInfo, @NonNull item: SliceItem)

Called when an interaction has occurred with an element in this view.

Public methods

onSliceAction

abstract fun onSliceAction(
    @NonNull info: EventInfo,
    @NonNull item: SliceItem
): Unit

Called when an interaction has occurred with an element in this view.

Parameters
info EventInfo: the type of event that occurred.
item SliceItem: the specific item within the Slice that was interacted with.