ContentLauncherTrait.MetricTypeEnum

enum ContentLauncherTrait.MetricTypeEnum : Enum, ClusterEnum


Indicates how a set of dimensions are defined.

Summary

Enum Values

Percentage

Indicates that dimensions are defined in terms of a percentage of the overall display dimensions.

Pixels

Indicates that dimensions are defined in terms of pixels.

UnknownValue

The enum value is out of range.

Public functions

ContentLauncherTrait.MetricTypeEnum
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<ContentLauncherTrait.MetricTypeEnum>

Returns an array containing the constants of this enum type, in the order they're declared.

Public properties

open String
open String
open ULong

Enum Values

Percentage

val ContentLauncherTrait.MetricTypeEnum.PercentageContentLauncherTrait.MetricTypeEnum

Indicates that dimensions are defined in terms of a percentage of the overall display dimensions. For example, if using a Percentage Metric type for a Width measurement of 50.0 against a display width of 1920 pixels, the resulting width measurement would be 960 pixels (50.0% of 1920).

Pixels

val ContentLauncherTrait.MetricTypeEnum.PixelsContentLauncherTrait.MetricTypeEnum

Indicates that dimensions are defined in terms of pixels.

UnknownValue

val ContentLauncherTrait.MetricTypeEnum.UnknownValueContentLauncherTrait.MetricTypeEnum

The enum value is out of range. For example, a newer Matter cluster definition may support enum values not yet supported by the Home APIs.

Public functions

valueOf

fun valueOf(value: String): ContentLauncherTrait.MetricTypeEnum

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<ContentLauncherTrait.MetricTypeEnum>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

Public properties

traitId

open val traitIdString

typeName

open val typeNameString

value

open val valueULong