SliceConvert


@RequiresApi(value = 28)
public class SliceConvert


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

Summary

Public methods

static Slice
unwrap(Slice slice)

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

static Slice
wrap(Slice slice, Context context)

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

Public methods

unwrap

Added in 1.1.0-alpha02
public static Slice unwrap(Slice slice)

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

wrap

Added in 1.1.0-alpha02
public static Slice wrap(Slice slice, Context context)

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