Share via


BlobStoreManager.Session.IsPackageAccessAllowed(String, Byte[]) Method

Definition

Returns true if access has been allowed for a packageName using either #allowPackageAccess(String, byte[]).

[Android.Runtime.Register("isPackageAccessAllowed", "(Ljava/lang/String;[B)Z", "GetIsPackageAccessAllowed_Ljava_lang_String_arrayBHandler", ApiSince=30)]
public virtual bool IsPackageAccessAllowed (string packageName, byte[] certificate);
[<Android.Runtime.Register("isPackageAccessAllowed", "(Ljava/lang/String;[B)Z", "GetIsPackageAccessAllowed_Ljava_lang_String_arrayBHandler", ApiSince=30)>]
abstract member IsPackageAccessAllowed : string * byte[] -> bool
override this.IsPackageAccessAllowed : string * byte[] -> bool

Parameters

packageName
String

the name of the package to check the access for.

certificate
Byte[]

the input bytes representing a certificate of type android.content.pm.PackageManager#CERT_INPUT_SHA256.

Returns

Attributes

Remarks

Returns true if access has been allowed for a packageName using either #allowPackageAccess(String, byte[]). Otherwise, false.

Java documentation for android.app.blob.BlobStoreManager.Session.isPackageAccessAllowed(java.lang.String, byte[]).

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