次の方法で共有


PackageManager.RequestChecksums Method

Definition

Requesting the checksums for APKs within a package.

[Android.Runtime.Register("requestChecksums", "(Ljava/lang/String;ZILjava/util/List;Landroid/content/pm/PackageManager$OnChecksumsReadyListener;)V", "GetRequestChecksums_Ljava_lang_String_ZILjava_util_List_Landroid_content_pm_PackageManager_OnChecksumsReadyListener_Handler", ApiSince=31)]
public virtual void RequestChecksums (string packageName, bool includeSplits, int required, System.Collections.Generic.IList<Java.Security.Cert.Certificate> trustedInstallers, Android.Content.PM.PackageManager.IOnChecksumsReadyListener onChecksumsReadyListener);
[<Android.Runtime.Register("requestChecksums", "(Ljava/lang/String;ZILjava/util/List;Landroid/content/pm/PackageManager$OnChecksumsReadyListener;)V", "GetRequestChecksums_Ljava_lang_String_ZILjava_util_List_Landroid_content_pm_PackageManager_OnChecksumsReadyListener_Handler", ApiSince=31)>]
abstract member RequestChecksums : string * bool * int * System.Collections.Generic.IList<Java.Security.Cert.Certificate> * Android.Content.PM.PackageManager.IOnChecksumsReadyListener -> unit
override this.RequestChecksums : string * bool * int * System.Collections.Generic.IList<Java.Security.Cert.Certificate> * Android.Content.PM.PackageManager.IOnChecksumsReadyListener -> unit

Parameters

packageName
String

whose checksums to return.

includeSplits
Boolean

whether to include checksums for non-base splits.

required
Int32

explicitly request the checksum types. May incur significant CPU/memory/disk usage.

trustedInstallers
IList<Certificate>

for checksums enforced by installer, which installers are to be trusted. #TRUST_ALL will return checksums from any installer, #TRUST_NONE disables optimized installer-enforced checksums, otherwise the list has to be non-empty list of certificates.

onChecksumsReadyListener
PackageManager.IOnChecksumsReadyListener

called once when the results are available.

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.requestChecksums(java.lang.String, boolean, int, java.util.List, android.content.pm.OnChecksumsReadyListener).

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