MetadataDecoderFactory


@UnstableApi
public interface MetadataDecoderFactory


A factory for MetadataDecoder instances.

Constants

default static final MetadataDecoderFactory

Default MetadataDecoder implementation.

Public methods

abstract MetadataDecoder

Creates a MetadataDecoder for the given Format.

abstract boolean

Returns whether the factory is able to instantiate a MetadataDecoder for the given Format.

Constants

DEFAULT

default static final MetadataDecoderFactory DEFAULT

Default MetadataDecoder implementation.

The formats supported by this factory are:

Public methods

createDecoder

abstract MetadataDecoder createDecoder(Format format)

Creates a MetadataDecoder for the given Format.

Parameters
Format format

The Format.

Throws
java.lang.IllegalArgumentException

If the Format is not supported.

supportsFormat

abstract boolean supportsFormat(Format format)

Returns whether the factory is able to instantiate a MetadataDecoder for the given Format.

Parameters
Format format

The Format.

Returns
boolean

Whether the factory can instantiate a suitable MetadataDecoder.

Review the Wear OS documentation.

Updated Dec 3, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024

Learn about AI-powered features for Compose.

Updated Oct 31, 2024