Freigeben über


BlobStoreManager.Session.AllowPublicAccess Method

Definition

Allow any app on the device to access this blob data once it is committed using a BlobHandle representing the blob.

[Android.Runtime.Register("allowPublicAccess", "()V", "GetAllowPublicAccessHandler", ApiSince=30)]
public virtual void AllowPublicAccess ();
[<Android.Runtime.Register("allowPublicAccess", "()V", "GetAllowPublicAccessHandler", ApiSince=30)>]
abstract member AllowPublicAccess : unit -> unit
override this.AllowPublicAccess : unit -> unit
Attributes

Remarks

Allow any app on the device to access this blob data once it is committed using a BlobHandle representing the blob.

<strong>Note:</strong> This is only meant to be used from libraries and SDKs where the apps which we want to allow access is not known ahead of time. If a blob is being committed to be shared with a particular set of apps, it is highly recommended to use #allowPackageAccess(String, byte[]) instead.

This needs to be called before committing the blob using #commit(Executor, Consumer).

Java documentation for android.app.blob.BlobStoreManager.Session.allowPublicAccess().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to