Language

ColorSequence.Builder.AddControlPoints Method

Definition

Overloads

Name Description
AddControlPoints(ColorSequence)

Appends the provided ColorSequence to this sequence.

AddControlPoints(Int64[], Int32[])

Adds multiple control points to the sequence.

AddControlPoints(ColorSequence)

Appends the provided ColorSequence to this sequence.

[Android.Runtime.Register("addControlPoints", "(Landroid/hardware/lights/ColorSequence;)Landroid/hardware/lights/ColorSequence$Builder;", "", ApiSince=37)]
public Android.Hardware.Lights.ColorSequence.Builder AddControlPoints(Android.Hardware.Lights.ColorSequence sequence);
[<Android.Runtime.Register("addControlPoints", "(Landroid/hardware/lights/ColorSequence;)Landroid/hardware/lights/ColorSequence$Builder;", "", ApiSince=37)>]
member this.AddControlPoints : Android.Hardware.Lights.ColorSequence -> Android.Hardware.Lights.ColorSequence.Builder

Parameters

sequence
ColorSequence

An existing ColorSequence to append to this builder. This value cannot be null.

Returns

a reference to this builder. This value cannot be null.

Attributes

Remarks

Appends the provided ColorSequence to this sequence.

If the two color sequences have different interpolation modes, the interpolation mode of the builder takes precedence over the interpolation mode from the argument.

Android reference for android.hardware.lights.ColorSequence.Builder.addControlPoints.

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.

Applies to

AddControlPoints(Int64[], Int32[])

Adds multiple control points to the sequence.

[Android.Runtime.Register("addControlPoints", "([J[I)Landroid/hardware/lights/ColorSequence$Builder;", "", ApiSince=37)]
public Android.Hardware.Lights.ColorSequence.Builder AddControlPoints(long[] delaysMillis, int[] colors);
[<Android.Runtime.Register("addControlPoints", "([J[I)Landroid/hardware/lights/ColorSequence$Builder;", "", ApiSince=37)>]
member this.AddControlPoints : int64[] * int[] -> Android.Hardware.Lights.ColorSequence.Builder

Parameters

delaysMillis
Int64[]

array with the delays for the colors in the colors parameter. This value cannot be null.

colors
Int32[]

array with the control point color targets. This value cannot be null.

Returns

a reference to this builder. This value cannot be null.

Attributes

Remarks

Adds multiple control points to the sequence.

Both arrays provided MUST have the same size and be in the order in which they should be inserted.

Android reference for android.hardware.lights.ColorSequence.Builder.addControlPoints.

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.

Applies to