Table of Contents

Constructor ColorFlow

Namespace
Yeelight
Assembly
YeelightClient.dll

ColorFlow(IEnumerable<ColorFlowStep>, int, ColorFlowAction)

Initializes a new instance of the ColorFlow class.

public ColorFlow(IEnumerable<ColorFlowStep> steps, int count = 0, ColorFlowAction action = ColorFlowAction.RecoverState)

Parameters

steps IEnumerable<ColorFlowStep>

The steps of the flow, at least one.

count int

The number of visible state changes before the flow ends, or 0 for a flow that never ends.

action ColorFlowAction

What the light does when the flow has ended.

Exceptions

ArgumentNullException

steps is null, or has a step that is.

ArgumentException

steps is empty.

ArgumentOutOfRangeException

count is negative, or action is not a value of ColorFlowAction.