Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.slice:slice-view:1.1.0-alpha01

SliceUtils.SliceActionListener

public static interface SliceUtils.SliceActionListener

androidx.slice.SliceUtils.SliceActionListener


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

Summary

Public methods

abstract void onSliceAction(Uri actionUri, Context context, Intent intent)

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

Public methods

onSliceAction

added in version 1.0.0
public abstract void onSliceAction (Uri actionUri, 
                Context context, 
                Intent intent)

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

Parameters
actionUri Uri: The uri of the action selected.

context Context: The context passed to SliceItem.fireAction(Context, Intent)

intent Intent: The intent passed to SliceItem.fireAction(Context, Intent)