Method StartColorFlowAsync
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
StartColorFlowAsync(ColorFlow, CancellationToken)
Starts a colour flow. Only a light that is on accepts it.
public Task StartColorFlowAsync(ColorFlow flow, CancellationToken cancellationToken = default)
Parameters
flowColorFlowThe flow.
cancellationTokenCancellationTokenTo stop waiting for the answer.
Returns
- Task
A task that ends when the light has answered.
Exceptions
- ArgumentNullException
flowisnull.