Freigeben über


ComponentName.FlattenToShortString Method

Definition

The same as #flattenToString(), but abbreviates the class name if it is a suffix of the package.

[Android.Runtime.Register("flattenToShortString", "()Ljava/lang/String;", "")]
public string FlattenToShortString ();
[<Android.Runtime.Register("flattenToShortString", "()Ljava/lang/String;", "")>]
member this.FlattenToShortString : 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

The same as #flattenToString(), but abbreviates the class name if it is a suffix of the package. The result can still be used with #unflattenFromString(String).

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

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