OpenCloseTrait.DirectionOpenState

class OpenCloseTrait.DirectionOpenState


Current state for the given open direction.

Summary

Public constructors

DirectionOpenState(
    openPercent: Double,
    openDirection: OpenCloseTrait.Direction,
    targetOpenPercent: Double
)

Creates the DirectionOpenState class.

Public properties

OpenCloseTrait.Direction

The direction in which the device is opened.

Double

Indicates the percentage that a device is opened, where 0 is closed and 100 is fully open.

Double

Public constructors

DirectionOpenState

DirectionOpenState(
    openPercent: Double = 0.0,
    openDirection: OpenCloseTrait.Direction = Direction.Unspecified,
    targetOpenPercent: Double = 0.0
)

Creates the DirectionOpenState class.

Public properties

openDirection

val openDirectionOpenCloseTrait.Direction

The direction in which the device is opened.

openPercent

val openPercentDouble

Indicates the percentage that a device is opened, where 0 is closed and 100 is fully open.

targetOpenPercent

val targetOpenPercentDouble