MultiLightEffect.Builder.SetIterations(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Number of times that the effect should be played in a loop.
[Android.Runtime.Register("setIterations", "(I)Landroid/hardware/lights/MultiLightEffect$Builder;", "", ApiSince=37)]
public Android.Hardware.Lights.MultiLightEffect.Builder SetIterations(int iterations);
[<Android.Runtime.Register("setIterations", "(I)Landroid/hardware/lights/MultiLightEffect$Builder;", "", ApiSince=37)>]
member this.SetIterations : int -> Android.Hardware.Lights.MultiLightEffect.Builder
Parameters
- iterations
- Int32
number of times the effect should be played.
Returns
- Attributes
Remarks
Number of times that the effect should be played in a loop.
By default, the builder configures this value to 1 for a single run of the effect.
A value of 0 indicates the effect should repeat indefinitely until a new effect or state is provided for the light or until the light is turned off.
If the effect has an initial state (delay = 0 for the first control point) the initial state will only be applied during the first iteration and all other iterations will ignore the initial value.
Android reference for android.hardware.lights.MultiLightEffect.Builder.setIterations.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.