ComponentName ComponentName Constructors

Definition

Overloads

ComponentName(Parcel) ComponentName(Parcel)

Instantiate a new ComponentName from the data in a Parcel that was previously written with WriteToParcel(Parcel, ParcelableWriteFlags).

ComponentName(Context, Class) ComponentName(Context, Class)
ComponentName(Context, String) ComponentName(Context, String)

Create a new component identifier from a Context and class name.

ComponentName(String, String) ComponentName(String, String)

Create a new component identifier.

ComponentName(Parcel) ComponentName(Parcel)

Instantiate a new ComponentName from the data in a Parcel that was previously written with WriteToParcel(Parcel, ParcelableWriteFlags).

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public ComponentName (Android.OS.Parcel in);
new Android.Content.ComponentName : Android.OS.Parcel -> Android.Content.ComponentName

Parameters

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.

ComponentName(Context, Class) ComponentName(Context, Class)

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/Class;)V", "")]
public ComponentName (Android.Content.Context pkg, Java.Lang.Class cls);
new Android.Content.ComponentName : Android.Content.Context * Java.Lang.Class -> Android.Content.ComponentName

Parameters

cls
Class Class

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.

ComponentName(Context, String) ComponentName(Context, String)

Create a new component identifier from a Context and class name.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;)V", "")]
public ComponentName (Android.Content.Context pkg, string cls);
new Android.Content.ComponentName : Android.Content.Context * string -> Android.Content.ComponentName

Parameters

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.

ComponentName(String, String) ComponentName(String, String)

Create a new component identifier.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public ComponentName (string pkg, string cls);
new Android.Content.ComponentName : string * string -> Android.Content.ComponentName

Parameters

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