SliceConvert


@RequiresApi(value = 28)
class SliceConvert


Convert between androidx.slice.Slice and android.app.slice.Slice

Summary

Public functions

java-static Slice!
unwrap(slice: Slice!)

Convert androidx.slice.Slice to android.app.slice.Slice

java-static Slice!
wrap(slice: Slice!, context: Context!)

Convert android.app.slice.Slice to androidx.slice.Slice

Public functions

unwrap

Added in 1.1.0-alpha02
java-static fun unwrap(slice: Slice!): Slice!

Convert androidx.slice.Slice to android.app.slice.Slice

wrap

Added in 1.1.0-alpha02
java-static fun wrap(slice: Slice!, context: Context!): Slice!

Convert android.app.slice.Slice to androidx.slice.Slice