Builder

class Builder<T>(targets: T)

Builder class used to construct immutable CameraAnimatorOptions object.

Constructors

Builder
Link copied to clipboard
fun <T> Builder(vararg targets: T)

Functions

build
Link copied to clipboard
fun build(): CameraAnimatorOptions<T>

Build an actual CameraAnimatorOptions object.

owner
Link copied to clipboard
fun owner(owner: String): CameraAnimatorOptions.Builder<T>

Optional field indicating who created animator. Defaults to NULL if not specified explicitly.

startValue
Link copied to clipboard
fun startValue(startValue: T): CameraAnimatorOptions.Builder<T>

Animator start value. If specified explicitly - this value will be used as first target. Otherwise current camera option on animation start will be taken.

Properties

targets
Link copied to clipboard
val targets: Array<out T>

CameraAnimator targets (values between which interpolation will take place).