Język

MockPackageManager.GetLaunchIntentForPackage(String) Method

Definition

Returns a "good" intent to launch a front-door activity in a package.

[Android.Runtime.Register("getLaunchIntentForPackage", "(Ljava/lang/String;)Landroid/content/Intent;", "GetGetLaunchIntentForPackage_Ljava_lang_String_Handler")]
public override Android.Content.Intent? GetLaunchIntentForPackage(string? packageName);
[<Android.Runtime.Register("getLaunchIntentForPackage", "(Ljava/lang/String;)Landroid/content/Intent;", "GetGetLaunchIntentForPackage_Ljava_lang_String_Handler")>]
override this.GetLaunchIntentForPackage : string -> Android.Content.Intent

Parameters

packageName
String

The name of the package to inspect.

Returns

No value is returned. The default mock implementation throws UnsupportedOperationException; override this method to supply a test result.

Attributes

Remarks

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