SliceManager


@RequiresApi(value = 19)
public abstract class SliceManager


Class to handle interactions with Slices.

The SliceViewManager manages permissions and pinned state for slices.

Summary

Public methods

abstract int
checkSlicePermission(@NonNull Uri uri, int pid, int uid)

Determine whether a particular process and user ID has been granted permission to access a specific slice URI.

static @NonNull SliceManager

Get a SliceManager.

abstract @NonNull List<Uri>

Get the list of currently pinned slices for this app.

abstract void

Grant permission to access a specific slice Uri to another package.

abstract void

Remove permissions to access a particular content provider Uri that were previously added with grantSlicePermission for a specific target package.

Public methods

checkSlicePermission

Added in 1.1.0-alpha02
public abstract int checkSlicePermission(@NonNull Uri uri, int pid, int uid)

Determine whether a particular process and user ID has been granted permission to access a specific slice URI.

Parameters
@<a href="/reference/androidx/annota