共用方式為


MediaFormat Class

Definition

Encapsulates the information describing the format of media data, be it audio or video, as well as optional feature metadata.

[Android.Runtime.Register("android/media/MediaFormat", DoNotGenerateAcw=true)]
public sealed class MediaFormat : Java.Lang.Object
[<Android.Runtime.Register("android/media/MediaFormat", DoNotGenerateAcw=true)>]
type MediaFormat = class
    inherit Object
Inheritance
MediaFormat
Attributes

Remarks

Encapsulates the information describing the format of media data, be it audio or video, as well as optional feature metadata.

The format of the media data is specified as key/value pairs. Keys are strings. Values can be integer, long, float, String or ByteBuffer.

The feature metadata is specificed as string/boolean pairs.

Keys common to all audio/video formats, <b>all keys not marked optional are mandatory</b>:

<table> <tr><th>Name</th><th>Value Type</th><th>Description</th></tr> <tr><td>#KEY_MIME</td><td>String</td><td>The type of the format.</td></tr> <tr><td>#KEY_CODECS_STRING</td><td>String</td><td>optional, the RFC 6381 codecs string of the MediaFormat</td></tr> <tr><td>#KEY_MAX_INPUT_SIZE</td><td>Integer</td><td>optional, maximum size of a buffer of input data</td></tr> <tr><td>#KEY_PIXEL_ASPECT_RATIO_WIDTH</td><td>Integer</td><td>optional, the pixel aspect ratio width</td></tr> <tr><td>#KEY_PIXEL_ASPECT_RATIO_HEIGHT</td><td>Integer</td><td>optional, the pixel aspect ratio height</td></tr> <tr><td>#KEY_BIT_RATE</td><td>Integer</td><td><b>encoder-only</b>, desired bitrate in bits/second</td></tr> <tr><td>#KEY_DURATION</td><td>long</td><td>the duration of the content (in microseconds)</td></tr> </table>

Video formats have the following keys: <table> <tr><th>Name</th><th>Value Type</th><th>Description</th></tr> <tr><td>#KEY_WIDTH</td><td>Integer</td><td></td></tr> <tr><td>#KEY_HEIGHT</td><td>Integer</td><td></td></tr> <tr><td>#KEY_COLOR_FORMAT</td><td>Integer</td><td>set by the user for encoders, readable in the output format of decoders</b></td></tr> <tr><td>#KEY_FRAME_RATE</td><td>Integer or Float</td><td>required for <b>encoders</b>, optional for <b>decoders</b></td></tr> <tr><td>#KEY_CAPTURE_RATE</td><td>Integer</td><td></td></tr> <tr><td>#KEY_I_FRAME_INTERVAL</td><td>Integer (or Float)</td><td><b>encoder-only</b>, time-interval between key frames. Float support added in android.os.Build.VERSION_CODES#N_MR1</td></tr> <tr><td>#KEY_INTRA_REFRESH_PERIOD</td><td>Integer</td><td><b>encoder-only</b>, optional</td></tr> <tr><td>#KEY_LATENCY</td><td>Integer</td><td><b>encoder-only</b>, optional</td></tr> <tr><td>#KEY_MAX_WIDTH</td><td>Integer</td><td><b>decoder-only</b>, optional, max-resolution width</td></tr> <tr><td>#KEY_MAX_HEIGHT</td><td>Integer</td><td><b>decoder-only</b>, optional, max-resolution height</td></tr> <tr><td>#KEY_REPEAT_PREVIOUS_FRAME_AFTER</td><td>Long</td><td><b>encoder in surface-mode only</b>, optional</td></tr> <tr><td>#KEY_PUSH_BLANK_BUFFERS_ON_STOP</td><td>Integer(1)</td><td><b>decoder rendering to a surface only</b>, optional</td></tr> <tr><td>#KEY_TEMPORAL_LAYERING</td><td>String</td><td><b>encoder only</b>, optional, temporal-layering schema</td></tr> </table> Specify both #KEY_MAX_WIDTH and #KEY_MAX_HEIGHT to enable adaptive playback (seamless resolution change) for a video decoder that supports it (MediaCodecInfo.CodecCapabilities#FEATURE_AdaptivePlayback). The values are used as hints for the codec: they are the maximum expected resolution to prepare for. Depending on codec support, preparing for larger maximum resolution may require more memory even if that resolution is never reached. These fields have no effect for codecs that do not support adaptive playback.<br /><br />

Audio formats have the following keys: <table> <tr><th>Name</th><th>Value Type</th><th>Description</th></tr> <tr><td>#KEY_CHANNEL_COUNT</td><td>Integer</td><td></td></tr> <tr><td>#KEY_SAMPLE_RATE</td><td>Integer</td><td></td></tr> <tr><td>#KEY_PCM_ENCODING</td><td>Integer</td><td>optional</td></tr> <tr><td>#KEY_IS_ADTS</td><td>Integer</td><td>optional, if <em>decoding</em> AAC audio content, setting this key to 1 indicates that each audio frame is prefixed by the ADTS header.</td></tr> <tr><td>#KEY_AAC_PROFILE</td><td>Integer</td><td><b>encoder-only</b>, optional, if content is AAC audio, specifies the desired profile.</td></tr> <tr><td>#KEY_AAC_SBR_MODE</td><td>Integer</td><td><b>encoder-only</b>, optional, if content is AAC audio, specifies the desired SBR mode.</td></tr> <tr><td>#KEY_AAC_DRC_TARGET_REFERENCE_LEVEL</td><td>Integer</td><td><b>decoder-only</b>, optional, if content is AAC audio, specifies the target reference level.</td></tr> <tr><td>#KEY_AAC_ENCODED_TARGET_LEVEL</td><td>Integer</td><td><b>decoder-only</b>, optional, if content is AAC audio, specifies the target reference level used at encoder.</td></tr> <tr><td>#KEY_AAC_DRC_BOOST_FACTOR</td><td>Integer</td><td><b>decoder-only</b>, optional, if content is AAC audio, specifies the DRC boost factor.</td></tr> <tr><td>#KEY_AAC_DRC_ATTENUATION_FACTOR</td><td>Integer</td><td><b>decoder-only</b>, optional, if content is AAC audio, specifies the DRC attenuation factor.</td></tr> <tr><td>#KEY_AAC_DRC_HEAVY_COMPRESSION</td><td>Integer</td><td><b>decoder-only</b>, optional, if content is AAC audio, specifies whether to use heavy compression.</td></tr> <tr><td>#KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT</td><td>Integer</td><td><b>decoder-only</b>, optional, if content is AAC audio, specifies the maximum number of channels the decoder outputs.</td></tr> <tr><td>#KEY_AAC_DRC_EFFECT_TYPE</td><td>Integer</td><td><b>decoder-only</b>, optional, if content is AAC audio, specifies the MPEG-D DRC effect type to use.</td></tr> <tr><td>#KEY_AAC_DRC_OUTPUT_LOUDNESS</td><td>Integer</td><td><b>decoder-only</b>, optional, if content is AAC audio, returns the DRC output loudness.</td></tr> <tr><td>#KEY_AAC_DRC_ALBUM_MODE</td><td>Integer</td><td><b>decoder-only</b>, optional, if content is AAC audio, specifies the whether MPEG-D DRC Album Mode is active or not.</td></tr> <tr><td>#KEY_CHANNEL_MASK</td><td>Integer</td><td>optional, a mask of audio channel assignments</td></tr> <tr><td>#KEY_ENCODER_DELAY</td><td>Integer</td><td>optional, the number of frames to trim from the start of the decoded audio stream.</td></tr> <tr><td>#KEY_ENCODER_PADDING</td><td>Integer</td><td>optional, the number of frames to trim from the end of the decoded audio stream.</td></tr> <tr><td>#KEY_FLAC_COMPRESSION_LEVEL</td><td>Integer</td><td><b>encoder-only</b>, optional, if content is FLAC audio, specifies the desired compression level.</td></tr> <tr><td>#KEY_MPEGH_PROFILE_LEVEL_INDICATION</td><td>Integer</td> <td><b>decoder-only</b>, optional, if content is MPEG-H audio, specifies the profile and level of the stream.</td></tr> <tr><td>#KEY_MPEGH_COMPATIBLE_SETS</td><td>ByteBuffer</td> <td><b>decoder-only</b>, optional, if content is MPEG-H audio, specifies the compatible sets (profile and level) of the stream.</td></tr> <tr><td>#KEY_MPEGH_REFERENCE_CHANNEL_LAYOUT</td> <td>Integer</td><td><b>decoder-only</b>, optional, if content is MPEG-H audio, specifies the preferred reference channel layout of the stream.</td></tr> </table>

Subtitle formats have the following keys: <table> <tr><td>#KEY_MIME</td><td>String</td><td>The type of the format.</td></tr> <tr><td>#KEY_LANGUAGE</td><td>String</td><td>The language of the content.</td></tr> <tr><td>#KEY_CAPTION_SERVICE_NUMBER</td><td>int</td><td>optional, the closed-caption service or channel number.</td></tr> </table>

Image formats have the following keys: <table> <tr><td>#KEY_MIME</td><td>String</td><td>The type of the format.</td></tr> <tr><td>#KEY_WIDTH</td><td>Integer</td><td></td></tr> <tr><td>#KEY_HEIGHT</td><td>Integer</td><td></td></tr> <tr><td>#KEY_COLOR_FORMAT</td><td>Integer</td><td>set by the user for encoders, readable in the output format of decoders</b></td></tr> <tr><td>#KEY_TILE_WIDTH</td><td>Integer</td><td>required if the image has grid</td></tr> <tr><td>#KEY_TILE_HEIGHT</td><td>Integer</td><td>required if the image has grid</td></tr> <tr><td>#KEY_GRID_ROWS</td><td>Integer</td><td>required if the image has grid</td></tr> <tr><td>#KEY_GRID_COLUMNS</td><td>Integer</td><td>required if the image has grid</td></tr> </table>

Java documentation for android.media.MediaFormat.

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.

Constructors

MediaFormat()

Creates an empty MediaFormat

MediaFormat(MediaFormat)

Create a copy of a media format object.

Fields

ColorRangeFull
Obsolete.

Full range.

ColorRangeLimited
Obsolete.

Limited range.

ColorStandardBt2020
Obsolete.

BT.

ColorStandardBt601Ntsc
Obsolete.

BT.

ColorStandardBt601Pal
Obsolete.

BT.

ColorStandardBt709
Obsolete.

BT.

ColorTransferHlg
Obsolete.

ARIB STD-B67 hybrid-log-gamma transfer function.

ColorTransferLinear
Obsolete.

Linear transfer characteristic curve.

ColorTransferSdrVideo
Obsolete.

SMPTE 170M transfer characteristic curve used by BT.

ColorTransferSt2084
Obsolete.

SMPTE ST 2084 transfer function.

KeyAacDrcAlbumMode

A key describing the album mode for MPEG-D DRC as defined in ISO/IEC 23003-4.

KeyAacDrcAttenuationFactor

A key describing the attenuation factor allowing to adapt the dynamics of the output to the actual listening requirements.

KeyAacDrcBoostFactor

A key describing the boost factor allowing to adapt the dynamics of the output to the actual listening requirements.

KeyAacDrcEffectType

A key describing for selecting the DRC effect type for MPEG-D DRC.

KeyAacDrcHeavyCompression

A key describing the selection of the heavy compression profile for MPEG-4 DRC.

KeyAacDrcOutputLoudness

A key to retrieve the output loudness of a decoded bitstream.

KeyAacDrcTargetReferenceLevel

A key describing the Target Reference Level (Target Loudness).

KeyAacEncodedTargetLevel

A key describing the target reference level that was assumed at the encoder for calculation of attenuation gains for clipping prevention.

KeyAacMaxOutputChannelCount

A key describing the maximum number of channels that can be output by the AAC decoder.

KeyAacProfile

A key describing the AAC profile to be used (AAC audio formats only).

KeyAacSbrMode

A key describing the AAC SBR mode to be used (AAC audio formats only).

KeyAllowFrameDrop

A key for applications to opt out of allowing a Surface to discard undisplayed/unconsumed frames as means to catch up after falling behind.

KeyAudioSessionId

A key describing the audio session ID of the AudioTrack associated to a tunneled video codec.

KeyBitRate

A key describing the average bitrate in bits/sec.

KeyBitrateMode

A key describing the desired bitrate mode to be used by an encoder.

KeyCaptionServiceNumber

A key describing the closed caption service number.

KeyCaptureRate

A key describing the capture rate of a video format in frames/sec.

KeyChannelCount

A key describing the number of channels in an audio format.

KeyChannelMask

A key describing the channel composition of audio content.

KeyCodecsString

A key describing the codecs string of the MediaFormat.

KeyColorFormat

A key describing the color format of the content in a video format.

KeyColorRange

An optional key describing the range of the component values of the video content.

KeyColorStandard

An optional key describing the color primaries, white point and luminance factors for video content.

KeyColorTransfer

An optional key describing the opto-electronic transfer function used for the video content.

KeyColorTransferRequest

An optional key describing the opto-electronic transfer function requested for the output video content.

KeyComplexity

A key describing the encoding complexity.

KeyCreateInputSurfaceSuspended

If specified when configuring a video encoder that's in "surface-input" mode, it will instruct the encoder to put the surface source in suspended state when it's connected.

KeyCropBottom

A key describing the bottom-coordinate (y) of the crop rectangle.

KeyCropLeft

A key describing the left-coordinate (x) of the crop rectangle.

KeyCropRight

A key describing the right-coordinate (x) of the crop rectangle.

KeyCropTop

A key describing the top-coordinate (y) of the crop rectangle.

KeyDuration

A key describing the duration (in microseconds) of the content.

KeyEncoderDelay

A key describing the number of frames to trim from the start of the decoded audio stream.

KeyEncoderPadding

A key describing the number of frames to trim from the end of the decoded audio stream.

KeyFlacCompressionLevel

A key describing the FLAC compression level to be used (FLAC audio format only).

KeyFrameRate

A key describing the frame rate of a video format in frames/sec.

KeyGridColumns

A key describing the number of grid columns in the content in a #MIMETYPE_IMAGE_ANDROID_HEIC / #MIMETYPE_IMAGE_AVIF track.

KeyGridRows

A key describing the number of grid rows in the content in a #MIMETYPE_IMAGE_ANDROID_HEIC / #MIMETYPE_IMAGE_AVIF track.

KeyHapticChannelCount

A key describing the number of haptic channels in an audio format.

KeyHardwareAvSyncId

A key describing the hardware AV sync id.

KeyHdr10PlusInfo

An optional key describing the HDR10+ metadata of the video content.

KeyHdrStaticInfo

An optional key describing the static metadata of HDR (high-dynamic-range) video content.

KeyHeight

A key describing the height of the content in a video format.

KeyIFrameInterval

A key describing the frequency of key frames expressed in seconds between key frames.

KeyIntraRefreshPeriod

An optional key describing the period of intra refresh in frames.

KeyIsAdts

A key mapping to a value of 1 if the content is AAC audio and audio frames are prefixed with an ADTS header.

KeyIsAutoselect

A key for boolean AUTOSELECT behavior for the track.

KeyIsDefault

A key for boolean DEFAULT behavior for the track.

KeyIsForcedSubtitle

A key for the FORCED field for subtitle tracks.

KeyLanguage

A key describing the language of the content, using either ISO 639-1 or 639-2/T codes.

KeyLatency

An optional key describing the desired encoder latency in frames.

KeyLevel

A key describing the desired profile to be used by an encoder.

KeyLowLatency

An optional key describing the low latency decoding mode.

KeyMaxBFrames

A key describing the maximum number of B frames between I or P frames, to be used by a video encoder.

KeyMaxFpsToEncoder

Instruct the video encoder in "surface-input" mode to drop excessive frames from the source, so that the input frame rate to the encoder does not exceed the specified fps.

KeyMaxHeight

A key describing the maximum expected height of the content in a video decoder format, in case there are resolution changes in the video content.

KeyMaxInputSize

A key describing the maximum size in bytes of a buffer of data described by this MediaFormat.

KeyMaxOutputChannelCount

A key describing the maximum number of channels that can be output by an audio decoder.

KeyMaxPtsGapToEncoder

Instruct the video encoder in "surface-input" mode to limit the gap of timestamp between any two adjacent frames fed to the encoder to the specified amount (in micro-second).

KeyMaxWidth

A key describing the maximum expected width of the content in a video decoder format, in case there are resolution changes in the video content.

KeyMime

A key describing the mime type of the MediaFormat.

KeyMpeghCompatibleSets

A key describing the MPEG-H stream compatible sets.

KeyMpeghProfileLevelIndication

A key describing the MPEG-H stream profile-level indication.

KeyMpeghReferenceChannelLayout

A key describing the MPEG-H stream reference channel layout.

KeyOperatingRate

A key describing the desired operating frame rate for video or sample rate for audio that the codec will need to operate at.

KeyOutputReorderDepth

An optional key describing the maximum number of non-display-order coded frames.

KeyPcmEncoding

A key describing the raw audio sample encoding/format.

KeyPictureType

A key describing the picture type of the encoded frame.

KeyPixelAspectRatioHeight

A key describing the pixel aspect ratio height.

KeyPixelAspectRatioWidth

A key describing the pixel aspect ratio width.

KeyPrependHeaderToSyncFrames

An optional key describing whether encoders prepend headers to sync frames (e.

KeyPriority

A key describing the desired codec priority.

KeyProfile

A key describing the desired profile to be used by an encoder.

KeyPushBlankBuffersOnStop

If specified when configuring a video decoder rendering to a surface, causes the decoder to output "blank", i.

KeyQuality

A key describing the desired encoding quality.

KeyRepeatPreviousFrameAfter

Applies only when configuring a video encoder in "surface-input" mode.

KeyRotation

A key describing the desired clockwise rotation on an output surface.

KeySampleRate

A key describing the sample rate of an audio format.

KeySliceHeight

A key describing the plane height of a multi-planar (YUV) video bytebuffer layout.

KeySlowMotionMarkers

A key for retrieving the slow-motion marker information associated with a video track.

KeyStride

A key describing the stride of the video bytebuffer layout.

KeyTemporalLayering

A key describing the temporal layering schema.

KeyTileHeight

A key describing the height (in pixels) of each tile of the content in a #MIMETYPE_IMAGE_ANDROID_HEIC / #MIMETYPE_IMAGE_AVIF track.

KeyTileWidth

A key describing the width (in pixels) of each tile of the content in a #MIMETYPE_IMAGE_ANDROID_HEIC / #MIMETYPE_IMAGE_AVIF track.

KeyTrackId

A key describing a unique ID for the content of a media track.

KeyVideoEncodingStatisticsLevel

A key describing the level of encoding statistics information emitted from video encoder.

KeyVideoQpAverage

A key describing the per-frame average block QP (Quantization Parameter).

KeyVideoQpBMax

A key describing the maximum Quantization Parameter allowed for encoding video.

KeyVideoQpBMin

A key describing the minimum Quantization Parameter allowed for encoding video.

KeyVideoQpIMax

A key describing the maximum Quantization Parameter allowed for encoding video.

KeyVideoQpIMin

A key describing the minimum Quantization Parameter allowed for encoding video.

KeyVideoQpMax

A key describing the maximum Quantization Parameter allowed for encoding video.

KeyVideoQpMin

A key describing the minimum Quantization Parameter allowed for encoding video.

KeyVideoQpPMax

A key describing the maximum Quantization Parameter allowed for encoding video.

KeyVideoQpPMin

A key describing the minimum Quantization Parameter allowed for encoding video.

KeyWidth

A key describing the width of the content in a video format.

LogSessionId

A key describing the log session ID for MediaCodec.

MimetypeAudioAac
MimetypeAudioAacEld

MIME type for AAC Enhanced Low Delay (ELD) audio stream.

MimetypeAudioAacHeV1

MIME type for HE-AAC v1 (LC + SBR) audio stream.

MimetypeAudioAacHeV2

MIME type for HE-AAC v2 (LC + SBR + PS) audio stream.

MimetypeAudioAacLc

MIME type for AAC Low Complexity (LC) audio stream.

MimetypeAudioAacXhe

MIME type for AAC XHE audio stream.

MimetypeAudioAc3
MimetypeAudioAc4
MimetypeAudioAmrNb
MimetypeAudioAmrWb
MimetypeAudioDolbyMat

MIME type for Dolby Metadata-enhanced Audio Transmission (MAT) audio stream.

MimetypeAudioDolbyTruehd

MIME type for Dolby TrueHD audio format, based on Meridian Lossless Packing (MLP).

MimetypeAudioDra

MIME type for Dynamic Resolution Adaptation (DRA) audio stream.

MimetypeAudioDts

MIME type for DTS Digital Surround (up to 5.

MimetypeAudioDtsHd

MIME type for DTS HD (up to 7.

MimetypeAudioDtsUhd

MIME type for DTS UHD (object-based) audio stream, aka DTS:X.

MimetypeAudioEac3
MimetypeAudioEac3Joc
MimetypeAudioFlac
MimetypeAudioG711Alaw
MimetypeAudioG711Mlaw
MimetypeAudioIec61937

MIME type for the IEC61937 audio stream encapsulation.

MimetypeAudioMpeg
MimetypeAudioMpeghBlL3

MIME type for MPEG-H Baseline (BL) Profile L3 audio stream.

MimetypeAudioMpeghBlL4

MIME type for MPEG-H Baseline (BL) Profile L4 audio stream.

MimetypeAudioMpeghLcL3

MIME type for MPEG-H Low Complexity (LC) L3 audio stream.

MimetypeAudioMpeghLcL4

MIME type for MPEG-H Low Complexity (LC) L4 audio stream.

MimetypeAudioMpeghMha1

MIME type for MPEG-H Audio single stream

MimetypeAudioMpeghMhm1

MIME type for MPEG-H Audio single stream, encapsulated in MHAS

MimetypeAudioMsgsm
MimetypeAudioOpus
MimetypeAudioQcelp
MimetypeAudioRaw
MimetypeAudioScrambled
MimetypeAudioVorbis
MimetypeImageAndroidHeic

MIME type for HEIF still image data encoded in HEVC.

MimetypeImageAvif

MIME type for AVIF still image data encoded in AV1.

MimetypeTextCea608

MIME type for CEA-608 closed caption data.

MimetypeTextCea708

MIME type for CEA-708 closed caption data.

MimetypeTextSubrip

MIME type for SubRip (SRT) container.

MimetypeTextVtt

MIME type for WebVTT subtitle data.

MimetypeVideoAv1
MimetypeVideoAvc
MimetypeVideoDolbyVision
MimetypeVideoH263
MimetypeVideoHevc
MimetypeVideoMpeg2
MimetypeVideoMpeg4
MimetypeVideoRaw
MimetypeVideoScrambled
MimetypeVideoVp8
MimetypeVideoVp9
PictureTypeB
Obsolete.

Picture Type is B Frame.

PictureTypeI
Obsolete.

Picture Type is I Frame.

PictureTypeP
Obsolete.

Picture Type is P Frame.

PictureTypeUnknown
Obsolete.

Picture Type is unknown.

TypeByteBuffer
TypeFloat
TypeInteger
TypeLong
TypeNull
TypeString
VideoEncodingStatisticsLevel1
Obsolete.

Encoding Statistics Level 1.

VideoEncodingStatisticsLevelNone
Obsolete.

Encoding Statistics Level None.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Features

Returns a java.util.Set Set view of the features contained in this MediaFormat.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Keys

Returns a java.util.Set Set view of the keys contained in this MediaFormat.

PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
ContainsFeature(String)

Returns true iff a feature of the given name exists in the format.

ContainsKey(String)

Returns true iff a key of the given name exists in the format.

CreateAudioFormat(String, Int32, Int32)

Creates a minimal audio format.

CreateSubtitleFormat(String, String)

Creates a minimal subtitle format.

CreateVideoFormat(String, Int32, Int32)

Creates a minimal video format.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
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.

GetFeatureEnabled(String)

Returns whether a feature is to be enabled (true) or disabled (false).

GetFloat(String, Single)

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

GetFloat(String)

Returns the value of a float key.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetInteger(String, Int32)

Returns the value of an integer key, or the default value if the key is missing.

GetInteger(String)

Returns the value of an integer key.

GetLong(String, Int64)

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

GetLong(String)

Returns the value of a long key.

GetNumber(String, Number)

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

GetNumber(String)

Returns the value of a numeric key.

GetString(String, String)

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

GetString(String)

Returns the value of a string key.

GetValueTypeForKey(String)

Returns the value type for a key.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
RemoveFeature(String)

Removes a given feature setting if present.

RemoveKey(String)

Removes a value of a given key if present.

SetByteBuffer(String, ByteBuffer)

Sets the value of a ByteBuffer key.

SetFeatureEnabled(String, Boolean)

Sets whether a feature is to be enabled (true) or disabled (false).

SetFloat(String, Single)

Sets the value of a float key.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetInteger(String, Int32)

Sets the value of an integer key.

SetLong(String, Int64)

Sets the value of a long key.

SetString(String, String)

Sets the value of a string key.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to