public final class

ParallaxTarget.PropertyValuesHolderTarget

extends ParallaxTarget

 java.lang.Object

androidx.leanback.widget.ParallaxTarget

↳androidx.leanback.widget.ParallaxTarget.PropertyValuesHolderTarget

Overview

PropertyValuesHolderTarget is an implementation of ParallaxTarget that uses to update the target object.

Summary

Constructors
publicPropertyValuesHolderTarget(java.lang.Object targetObject, PropertyValuesHolder values)

Methods
public voidupdate(float fraction)

Implementation class is supposed to update target with the provided fraction (between 0 and 1).

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

Constructors

public PropertyValuesHolderTarget(java.lang.Object targetObject, PropertyValuesHolder values)

Methods

public void update(float fraction)

Implementation class is supposed to update target with the provided fraction (between 0 and 1). The fraction represents percentage of completed change (e.g. scroll) on target. Called only when ParallaxTarget.isDirectMapping() is false.

Parameters:

fraction: Fraction between 0 to 1.

See also: ParallaxTarget.isDirectMapping()