Merge "Expose permission-related Slice APIs"
This commit is contained in:
@@ -156,10 +156,11 @@ public final class Slice implements Parcelable {
|
||||
*/
|
||||
public static final String HINT_SEE_MORE = "see_more";
|
||||
/**
|
||||
* A hint to tell the system that this slice cares about the return value of
|
||||
* {@link SliceProvider#getBindingPackage} and should not cache the result
|
||||
* for multiple apps.
|
||||
* @hide
|
||||
* A hint used when implementing app-specific slice permissions.
|
||||
* Tells the system that for this slice the return value of
|
||||
* {@link SliceProvider#onBindSlice(Uri, List)} may be different depending on
|
||||
* {@link SliceProvider#getBindingPackage} and should not be cached for multiple
|
||||
* apps.
|
||||
*/
|
||||
public static final String HINT_CALLER_NEEDED = "caller_needed";
|
||||
/**
|
||||
|
||||
@@ -158,7 +158,6 @@ public abstract class SliceProvider extends ContentProvider {
|
||||
* currently happening. The returned package will have been
|
||||
* verified to belong to the calling UID. Returns {@code null} if not
|
||||
* currently performing an {@link #onBindSlice(Uri, List)}.
|
||||
* @hide
|
||||
*/
|
||||
public final @Nullable String getBindingPackage() {
|
||||
return mBindingPkg;
|
||||
|
||||
Reference in New Issue
Block a user