SliceConvert

public class SliceConvert
extends Object

java.lang.Object
   ↳ androidx.slice.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

Inherited methods

Public methods

unwrap

public static Slice unwrap (Slice slice)

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

Parameters
slice Slice

Returns
Slice

wrap

public static Slice wrap (Slice slice, 
                Context context)

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

Parameters
slice Slice

context Context

Returns
Slice