Compartir a través de


Bundle.GetByte Method

Definition

Overloads

GetByte(String)

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

GetByte(String, SByte)

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

GetByte(String)

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

[Android.Runtime.Register("getByte", "(Ljava/lang/String;)B", "")]
public sbyte GetByte (string? key);
[<Android.Runtime.Register("getByte", "(Ljava/lang/String;)B", "")>]
member this.GetByte : string -> sbyte

Parameters

key
String

a String

Returns

a byte value

Attributes

Remarks

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

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

GetByte(String, SByte)

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("getByte", "(Ljava/lang/String;B)Ljava/lang/Byte;", "")]
public Java.Lang.Byte? GetByte (string? key, sbyte defaultValue);
[<Android.Runtime.Register("getByte", "(Ljava/lang/String;B)Ljava/lang/Byte;", "")>]
member this.GetByte : string * sbyte -> Java.Lang.Byte

Parameters

key
String

a String

defaultValue
SByte

Value to return if key does not exist

Returns

a byte 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.getByte(java.lang.String, byte).

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