Share via


ComponentName.FlattenToString Method

Definition

Return a String that unambiguously describes both the package and class names contained in the ComponentName.

[Android.Runtime.Register("flattenToString", "()Ljava/lang/String;", "")]
public string FlattenToString ();
[<Android.Runtime.Register("flattenToString", "()Ljava/lang/String;", "")>]
member this.FlattenToString : unit -> string

Returns

Returns a new String holding the package and class names. This is represented as the package name, concatenated with a '/' and then the class name.

Attributes

Remarks

Return a String that unambiguously describes both the package and class names contained in the ComponentName. You can later recover the ComponentName from this string through #unflattenFromString(String).

Java documentation for android.content.ComponentName.flattenToString().

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