Aracılığıyla paylaş


Bundle.GetCharSequence Method

Definition

Overloads

GetCharSequence(String, String)

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.

GetCharSequence(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.

GetCharSequence(String, String)

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.

public string? GetCharSequence (string? key, string? defaultValue);
member this.GetCharSequence : string * string -> string

Parameters

key
String

a String, or null

defaultValue
String

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.

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

GetCharSequence(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.

public string? GetCharSequence (string? key);
member this.GetCharSequence : string -> string

Parameters

key
String

a String, or null

Returns

a CharSequence value, or null

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