Intent.SetPackage(String) Intent.SetPackage(String) Method

Definition

(Usually optional) Set an explicit application package name that limits the components this Intent will resolve to.

[Android.Runtime.Register("setPackage", "(Ljava/lang/String;)Landroid/content/Intent;", "GetSetPackage_Ljava_lang_String_Handler", ApiSince=4)]
public virtual Android.Content.Intent SetPackage (string packageName);
abstract member SetPackage : string -> Android.Content.Intent
override this.SetPackage : string -> Android.Content.Intent

Parameters

packageName
String String

The name of the application package to handle the intent, or null to allow any application package.

Returns

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

See also