Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

SliceActionListener

interface SliceActionListener
androidx.slice.SliceUtils.SliceActionListener

A listener used to receive events on slices parsed with parseSlice(Context, InputStream, String, SliceActionListener).

Summary

Public methods
abstract Unit
onSliceAction(actionUri: Uri!, context: Context!, intent: Intent!)

Called when an action is triggered on a slice parsed with parseSlice(Context, InputStream, String, SliceActionListener).

Public methods

onSliceAction

abstract fun onSliceAction(actionUri: Uri!, context: Context!, intent: Intent!): Unit

Called when an action is triggered on a slice parsed with parseSlice(Context, InputStream, String, SliceActionListener).

Parameters
actionUri Uri!: The uri of the action selected.
context Uri!: The context passed to SliceItem#fireAction(Context, Intent)
intent Uri!: The intent passed to SliceItem#fireAction(Context, Intent)