PackageManager.CanRequestPackageInstalls Method

Definition

Checks whether the calling package is allowed to request package installs through package installer.

[Android.Runtime.Register("canRequestPackageInstalls", "()Z", "GetCanRequestPackageInstallsHandler", ApiSince=26)]
public abstract bool CanRequestPackageInstalls ();
[<Android.Runtime.Register("canRequestPackageInstalls", "()Z", "GetCanRequestPackageInstallsHandler", ApiSince=26)>]
abstract member CanRequestPackageInstalls : unit -> bool

Returns

Boolean

true if the calling package is trusted by the user to request install packages on the device, false otherwise.

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.canRequestPackageInstalls().

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