Added in API level 36

ParameterCapability


class ParameterCapability : Parcelable
kotlin.Any
   ↳ android.media.quality.ParameterCapability

Capability info of media quality parameters

Summary

Constants
static String

The key for the default value of this parameter.

static String

The key for the enumeration of this parameter.

static String

The key for the max possible value of this parameter.

static String

The key for the min possible value of this parameter.

static Int

Double parameter type

static Int

Integer parameter type

static Int

Long integer parameter type

static Int

None parameter type.

static Int

String parameter type

Inherited constants
Public methods
Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

Bundle

Gets capability information.

String

Gets parameter name.

Int

Gets parameter type.

Boolean

Returns whether this parameter is supported or not.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<ParameterCapability!>

Constants

CAPABILITY_DEFAULT

Added in API level 36
static val CAPABILITY_DEFAULT: String

The key for the default value of this parameter.

Value: "default"

CAPABILITY_ENUM

Added in API level 36
static val CAPABILITY_ENUM: String

The key for the enumeration of this parameter.

Value: "enum"

CAPABILITY_MAX

Added in API level 36
static val CAPABILITY_MAX: String

The key for the max possible value of this parameter.

Value: "max"

CAPABILITY_MIN

Added in API level 36
static val CAPABILITY_MIN: String

The key for the min possible value of this parameter.

Value: "min"

TYPE_DOUBLE

Added in API level 36
static val TYPE_DOUBLE: Int

Double parameter type

Value: 3

TYPE_INT

Added in API level 36
static val TYPE_INT: Int

Integer parameter type

Value: 1

TYPE_LONG

Added in API level 36
static val TYPE_LONG: Int

Long integer parameter type

Value: 2

TYPE_NONE

Added in API level 36
static val TYPE_NONE: Int

None parameter type. It's used when a parameter is not supported.

Value: 0

TYPE_STRING

Added in API level 36
static val TYPE_STRING: Int

String parameter type

Value: 4

Public methods

describeContents

Added in API level 36
fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

getCapabilities

Added in API level 36
fun getCapabilities(): Bundle

Gets capability information.

e.g. use the key CAPABILITY_MAX to get the max value.

getParameterName

Added in API level 36
fun getParameterName(): String

Gets parameter name.

getParameterType

Added in API level 36
fun getParameterType(): Int

Gets parameter type.

It's TYPE_NONE if isSupported() is false.

Return
Int Value is either 0 or a combination of the following:

isSupported

Added in API level 36
fun isSupported(): Boolean

Returns whether this parameter is supported or not.

writeToParcel

Added in API level 36
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: The Parcel in which the object should be written.
This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:

Properties

CREATOR

Added in API level 36
static val CREATOR: Parcelable.Creator<ParameterCapability!>