Android 12 Developer Preview is here! Try it out, and give us your feedback!

SliceCallback

interface SliceCallback
androidx.slice.SliceViewManager.SliceCallback

Class that listens to changes in Slices.

Summary

Public methods
abstract Unit
onSliceUpdated(@Nullable s: Slice?)

Called when slice is updated.

Public methods

onSliceUpdated

abstract fun onSliceUpdated(@Nullable s: Slice?): Unit

Called when slice is updated.

Parameters
s Slice?: The updated slice.

See Also