Google 致力于为黑人社区推动种族平等。查看具体举措

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