The Android Developer Challenge is back! Submit your idea before December 2.

DirectPropertyTarget

class DirectPropertyTarget<T : Any!, V : Number!> : ParallaxTarget
kotlin.Any
   ↳ androidx.leanback.widget.ParallaxTarget
   ↳ androidx.leanback.widget.ParallaxTarget.DirectPropertyTarget

DirectPropertyTarget is to support direct mapping into either Integer Property or Float Property. App uses convenient method ParallaxEffect#target(Object, Property) to add a direct mapping.

Summary

Public constructors

<init>(targetObject: Any!, property: Property<T, V>!)

Public methods

Unit

Boolean

Returns true as DirectPropertyTarget receives a number to update Property in directUpdate(Number).

Inherited functions

Public constructors

<init>

DirectPropertyTarget(targetObject: Any!, property: Property<T, V>!)
Parameters
targetObject Any!: Target object for perform Parallax
property Any!: Target property, either an Integer Property or a Float Property.

Public methods

directUpdate

fun directUpdate(value: Number!): Unit

isDirectMapping

fun isDirectMapping(): Boolean

Returns true as DirectPropertyTarget receives a number to update Property in directUpdate(Number).

Return
Boolean: True if direct mapping, false otherwise.