Läs på engelska

Dela via


Intent.GetByteExtra(String, SByte) Method

Definition

Retrieve extended data from the intent.

C#
[Android.Runtime.Register("getByteExtra", "(Ljava/lang/String;B)B", "GetGetByteExtra_Ljava_lang_String_BHandler")]
public virtual sbyte GetByteExtra(string? name, sbyte defaultValue);

Parameters

name
String

The name of the desired item.

defaultValue
SByte

the value to be returned if no value of the desired type is stored with the given name.

Returns

the value of an item previously added with putExtra(), or the default value if none was found.

Attributes

Remarks

Retrieve extended data from the intent.

Java documentation for android.content.Intent.getByteExtra(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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

See also

  • <xref:Android.Content.Intent.PutExtra(System.String%2c+System.SByte)>