Compartir a través de


Bundle.GetCharSequenceFormatted Method

Definition

Overloads

GetCharSequenceFormatted(String)

Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.

GetCharSequenceFormatted(String, ICharSequence)

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key or if a null value is explicitly associatd with the given key.

GetCharSequenceFormatted(String)

Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.

[Android.Runtime.Register("getCharSequence", "(Ljava/lang/String;)Ljava/lang/CharSequence;", "")]
public Java.Lang.ICharSequence? GetCharSequenceFormatted (string? key);
[<Android.Runtime.Register("getCharSequence", "(Ljava/lang/String;)Ljava/lang/CharSequence;", "")>]
member this.GetCharSequenceFormatted : string -> Java.Lang.ICharSequence

Parameters

key
String

a String, or null

Returns

a CharSequence value, or null

Attributes

Remarks

Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.

Java documentation for android.os.Bundle.getCharSequence(java.lang.String).

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

GetCharSequenceFormatted(String, ICharSequence)

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key or if a null value is explicitly associatd with the given key.

[Android.Runtime.Register("getCharSequence", "(Ljava/lang/String;Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "")]
public Java.Lang.ICharSequence? GetCharSequenceFormatted (string? key, Java.Lang.ICharSequence? defaultValue);
[<Android.Runtime.Register("getCharSequence", "(Ljava/lang/String;Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "")>]
member this.GetCharSequenceFormatted : string * Java.Lang.ICharSequence -> Java.Lang.ICharSequence

Parameters

key
String

a String, or null

defaultValue
ICharSequence

Value to return if key does not exist or if a null value is associated with the given key.

Returns

the CharSequence value associated with the given key, or defaultValue if no valid CharSequence object is currently mapped to that key.

Attributes

Remarks

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key or if a null value is explicitly associatd with the given key.

Java documentation for android.os.Bundle.getCharSequence(java.lang.String, java.lang.CharSequence).

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