Sdílet prostřednictvím


PackageManager.IsPackageStopped(String) Method

Definition

Query if an app is currently stopped.

[Android.Runtime.Register("isPackageStopped", "(Ljava/lang/String;)Z", "GetIsPackageStopped_Ljava_lang_String_Handler", ApiSince=35)]
public virtual bool IsPackageStopped (string packageName);
[<Android.Runtime.Register("isPackageStopped", "(Ljava/lang/String;)Z", "GetIsPackageStopped_Ljava_lang_String_Handler", ApiSince=35)>]
abstract member IsPackageStopped : string -> bool
override this.IsPackageStopped : string -> bool

Parameters

packageName
String

Returns

true if the given package is stopped, false otherwise

Attributes

Remarks

Query if an app is currently stopped.

Java documentation for android.content.pm.PackageManager.isPackageStopped(java.lang.String).

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