Interpolator.SetKeyFrame Method

Definition

Overloads

SetKeyFrame(Int32, Int32, Single[])

Assign the keyFrame (specified by index) a time value and an array of key values (with an implicity blend array of [0, 0, 1, 1] giving linear transition to the next set of key values).

SetKeyFrame(Int32, Int32, Single[], Single[])

Assign the keyFrame (specified by index) a time value and an array of key values and blend array.

SetKeyFrame(Int32, Int32, Single[])

Assign the keyFrame (specified by index) a time value and an array of key values (with an implicity blend array of [0, 0, 1, 1] giving linear transition to the next set of key values).

[Android.Runtime.Register("setKeyFrame", "(II[F)V", "GetSetKeyFrame_IIarrayFHandler")]
public virtual void SetKeyFrame (int index, int msec, float[]? values);
[<Android.Runtime.Register("setKeyFrame", "(II[F)V", "GetSetKeyFrame_IIarrayFHandler")>]
abstract member SetKeyFrame : int * int * single[] -> unit
override this.SetKeyFrame : int * int * single[] -> unit

Parameters

index
Int32

The index of the key frame to assign

msec
Int32

The time (in mililiseconds) for this key frame. Based on the SystemClock.uptimeMillis() clock

values
Single[]

Array of values associated with theis key frame

Attributes

Remarks

Assign the keyFrame (specified by index) a time value and an array of key values (with an implicity blend array of [0, 0, 1, 1] giving linear transition to the next set of key values).

Java documentation for android.graphics.Interpolator.setKeyFrame(int, int, float[]).

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

SetKeyFrame(Int32, Int32, Single[], Single[])

Assign the keyFrame (specified by index) a time value and an array of key values and blend array.

[Android.Runtime.Register("setKeyFrame", "(II[F[F)V", "GetSetKeyFrame_IIarrayFarrayFHandler")]
public virtual void SetKeyFrame (int index, int msec, float[]? values, float[]? blend);
[<Android.Runtime.Register("setKeyFrame", "(II[F[F)V", "GetSetKeyFrame_IIarrayFarrayFHandler")>]
abstract member SetKeyFrame : int * int * single[] * single[] -> unit
override this.SetKeyFrame : int * int * single[] * single[] -> unit

Parameters

index
Int32

The index of the key frame to assign

msec
Int32

The time (in mililiseconds) for this key frame. Based on the SystemClock.uptimeMillis() clock

values
Single[]

Array of values associated with theis key frame

blend
Single[]

(may be null) Optional array of 4 blend values

Attributes

Remarks

Assign the keyFrame (specified by index) a time value and an array of key values and blend array.

Java documentation for android.graphics.Interpolator.setKeyFrame(int, int, float[], float[]).

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