public final class

ParallaxTarget.DirectPropertyTarget<T, V extends java.lang.Number>

extends ParallaxTarget

 java.lang.Object

androidx.leanback.widget.ParallaxTarget

↳androidx.leanback.widget.ParallaxTarget.DirectPropertyTarget<T, V>

Overview

DirectPropertyTarget is to support direct mapping into either Integer Property or Float Property. App uses convenient method ParallaxEffect to add a direct mapping.

Summary

Constructors
publicDirectPropertyTarget(java.lang.Object targetObject, <any> property)

Methods
public voiddirectUpdate(java.lang.Number value)

Directly update the target using a float or int value.

public booleanisDirectMapping()

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

from ParallaxTargetupdate
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public DirectPropertyTarget(java.lang.Object targetObject, <any> property)

Parameters:

targetObject: Target object for perform Parallax
property: Target property, either an Integer Property or a Float Property.

Methods

public boolean isDirectMapping()

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

public void directUpdate(java.lang.Number value)

Directly update the target using a float or int value. Called when ParallaxTarget.isDirectMapping() is true.

Parameters:

value: Either int or float value.

See also: ParallaxTarget.isDirectMapping()