Compartir a través de


MediaFormat.GetByteBuffer Method

Definition

Overloads

GetByteBuffer(String)

Returns the value of a ByteBuffer key.

GetByteBuffer(String, ByteBuffer)

Returns the value of a ByteBuffer key, or the default value if the key is missing.

GetByteBuffer(String)

Returns the value of a ByteBuffer key.

[Android.Runtime.Register("getByteBuffer", "(Ljava/lang/String;)Ljava/nio/ByteBuffer;", "")]
public Java.Nio.ByteBuffer? GetByteBuffer (string name);
[<Android.Runtime.Register("getByteBuffer", "(Ljava/lang/String;)Ljava/nio/ByteBuffer;", "")>]
member this.GetByteBuffer : string -> Java.Nio.ByteBuffer

Parameters

name
String

Returns

null if the key does not exist or the stored value for the key is null

Attributes

Remarks

Returns the value of a ByteBuffer key.

Java documentation for android.media.MediaFormat.getByteBuffer(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

GetByteBuffer(String, ByteBuffer)

Returns the value of a ByteBuffer key, or the default value if the key is missing.

[Android.Runtime.Register("getByteBuffer", "(Ljava/lang/String;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;", "", ApiSince=29)]
public Java.Nio.ByteBuffer GetByteBuffer (string name, Java.Nio.ByteBuffer defaultValue);
[<Android.Runtime.Register("getByteBuffer", "(Ljava/lang/String;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;", "", ApiSince=29)>]
member this.GetByteBuffer : string * Java.Nio.ByteBuffer -> Java.Nio.ByteBuffer

Parameters

name
String
defaultValue
ByteBuffer

Returns

defaultValue if the key does not exist or the stored value for the key is null

Attributes

Remarks

Returns the value of a ByteBuffer key, or the default value if the key is missing.

Java documentation for android.media.MediaFormat.getByteBuffer(java.lang.String, java.nio.ByteBuffer).

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