다음을 통해 공유


Bundle.GetChar Method

Definition

Overloads

GetChar(String)

Returns the value associated with the given key, or (char) 0 if no mapping of the desired type exists for the given key.

GetChar(String, Char)

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

GetChar(String)

Returns the value associated with the given key, or (char) 0 if no mapping of the desired type exists for the given key.

[Android.Runtime.Register("getChar", "(Ljava/lang/String;)C", "")]
public char GetChar (string? key);
[<Android.Runtime.Register("getChar", "(Ljava/lang/String;)C", "")>]
member this.GetChar : string -> char

Parameters

key
String

a String

Returns

a char value

Attributes

Remarks

Returns the value associated with the given key, or (char) 0 if no mapping of the desired type exists for the given key.

Java documentation for android.os.Bundle.getChar(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

GetChar(String, Char)

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

[Android.Runtime.Register("getChar", "(Ljava/lang/String;C)C", "")]
public char GetChar (string? key, char defaultValue);
[<Android.Runtime.Register("getChar", "(Ljava/lang/String;C)C", "")>]
member this.GetChar : string * char -> char

Parameters

key
String

a String

defaultValue
Char

Value to return if key does not exist

Returns

a char value

Attributes

Remarks

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Java documentation for android.os.Bundle.getChar(java.lang.String, char).

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