added in version 25.4.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
ParallaxTarget.DirectPropertyTarget
public
static
final
class
ParallaxTarget.DirectPropertyTarget
extends ParallaxTarget
java.lang.Object | ||
↳ | android.support.v17.leanback.widget.ParallaxTarget | |
↳ | android.support.v17.leanback.widget.ParallaxTarget.DirectPropertyTarget<T, V extends java.lang.Number> |
DirectPropertyTarget is to support direct mapping into either Integer Property or Float
Property. App uses convenient method target(Object, Property)
to
add a direct mapping.
Summary
Public constructors | |
---|---|
ParallaxTarget.DirectPropertyTarget(Object targetObject, Property<T, V> property)
|
Public methods | |
---|---|
void
|
directUpdate(Number value)
Directly update the target using a float or int value. |
boolean
|
isDirectMapping()
Returns true as DirectPropertyTarget receives a number to update Property in
|
Inherited methods | |
---|---|
![]()
android.support.v17.leanback.widget.ParallaxTarget
| |
![]()
java.lang.Object
|
Public constructors
ParallaxTarget.DirectPropertyTarget
added in version 25.4.0
ParallaxTarget.DirectPropertyTarget (Object targetObject, Property<T, V> property)
Parameters | |
---|---|
targetObject |
Object : Target object for perform Parallax |
property |
Property : Target property, either an Integer Property or a Float Property.
|
Public methods
directUpdate
added in version 25.4.0
void directUpdate (Number value)
Directly update the target using a float or int value. Called when isDirectMapping()
is true.
Parameters | |
---|---|
value |
Number : Either int or float value. |
isDirectMapping
added in version 25.4.0
boolean isDirectMapping ()
Returns true as DirectPropertyTarget receives a number to update Property in