Table of Contents

Method TryParse

Namespace
Yeelight
Assembly
YeelightClient.dll

TryParse(string?, out ColorFlow?)

Reads a flow as a light reports it in FlowParameters: the count, the action, and the four numbers of every step.

public static bool TryParse(string? text, out ColorFlow? flow)

Parameters

text string

The text, for example 0,0,1000,2,2700,100,500,1,255,10.

flow ColorFlow

The flow, when the text is one.

Returns

bool

false for a text that is not a flow.