PropertyValuesHolder.OfObject Method

Definition

Overloads

OfObject(Property, ITypeEvaluator, Object[])

Constructs and returns a PropertyValuesHolder with a given property and set of Object values.

OfObject(Property, TypeConverter, Path)

Constructs and returns a PropertyValuesHolder with a given property and a Path along which the values should be animated.

OfObject(String, ITypeEvaluator, Object[])

Constructs and returns a PropertyValuesHolder with a given property and set of Object values.

OfObject(String, TypeConverter, Path)

Constructs and returns a PropertyValuesHolder with a given property name and a Path along which the values should be animated.

OfObject(Property, TypeConverter, ITypeEvaluator, Object[])

Constructs and returns a PropertyValuesHolder with a given property and set of Object values.

OfObject(Property, ITypeEvaluator, Object[])

Constructs and returns a PropertyValuesHolder with a given property and set of Object values.

[Android.Runtime.Register("ofObject", "(Landroid/util/Property;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/PropertyValuesHolder;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "V" })]
public static Android.Animation.PropertyValuesHolder? OfObject (Android.Util.Property? property, Android.Animation.ITypeEvaluator? evaluator, params Java.Lang.Object[]? values);
[<Android.Runtime.Register("ofObject", "(Landroid/util/Property;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/PropertyValuesHolder;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "V" })>]
static member OfObject : Android.Util.Property * Android.Animation.ITypeEvaluator * Java.Lang.Object[] -> Android.Animation.PropertyValuesHolder

Parameters

property
Property

The property being animated. Should not be null.

evaluator
ITypeEvaluator

A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value.

values
Object[]

The values that the property will animate between.

Returns

PropertyValuesHolder The constructed PropertyValuesHolder object.

Attributes

Remarks

Constructs and returns a PropertyValuesHolder with a given property and set of Object values. This variant also takes a TypeEvaluator because the system cannot automatically interpolate between objects of unknown type.

<strong>Note:</strong> The Object values are stored as references to the original objects, which means that changes to those objects after this method is called will affect the values on the PropertyValuesHolder. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

Java documentation for android.animation.PropertyValuesHolder.ofObject(android.util.Property, android.animation.TypeEvaluator<V>, V...).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OfObject(Property, TypeConverter, Path)

Constructs and returns a PropertyValuesHolder with a given property and a Path along which the values should be animated.

[Android.Runtime.Register("ofObject", "(Landroid/util/Property;Landroid/animation/TypeConverter;Landroid/graphics/Path;)Landroid/animation/PropertyValuesHolder;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "V" })]
public static Android.Animation.PropertyValuesHolder? OfObject (Android.Util.Property? property, Android.Animation.TypeConverter? converter, Android.Graphics.Path? path);
[<Android.Runtime.Register("ofObject", "(Landroid/util/Property;Landroid/animation/TypeConverter;Landroid/graphics/Path;)Landroid/animation/PropertyValuesHolder;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "V" })>]
static member OfObject : Android.Util.Property * Android.Animation.TypeConverter * Android.Graphics.Path -> Android.Animation.PropertyValuesHolder

Parameters

property
Property

The property being animated. Should not be null.

converter
TypeConverter

Converts a PointF to the type associated with the setter. May be null if conversion is unnecessary.

path
Path

The Path along which the values should be animated.

Returns

PropertyValuesHolder The constructed PropertyValuesHolder object.

Attributes

Remarks

Constructs and returns a PropertyValuesHolder with a given property and a Path along which the values should be animated. This variant supports a TypeConverter to convert from PointF to the target type.

The PointF passed to converter or property, if converter is null, is reused on each animation frame and should not be stored by the setter or TypeConverter.

Java documentation for android.animation.PropertyValuesHolder.ofObject(android.util.Property<?, V>, android.animation.TypeConverter<android.graphics.PointF, V>, android.graphics.Path).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OfObject(String, ITypeEvaluator, Object[])

Constructs and returns a PropertyValuesHolder with a given property and set of Object values.

[Android.Runtime.Register("ofObject", "(Ljava/lang/String;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/PropertyValuesHolder;", "")]
public static Android.Animation.PropertyValuesHolder? OfObject (string? propertyName, Android.Animation.ITypeEvaluator? evaluator, params Java.Lang.Object[]? values);
[<Android.Runtime.Register("ofObject", "(Ljava/lang/String;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/PropertyValuesHolder;", "")>]
static member OfObject : string * Android.Animation.ITypeEvaluator * Java.Lang.Object[] -> Android.Animation.PropertyValuesHolder

Parameters

propertyName
String
evaluator
ITypeEvaluator

A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value.

values
Object[]

The values that the property will animate between.

Returns

PropertyValuesHolder The constructed PropertyValuesHolder object.

Attributes

Remarks

Java documentation for android.animation.PropertyValuesHolder.ofObject(android.util.Property, android.animation.TypeConverter, android.animation.TypeEvaluator, java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OfObject(String, TypeConverter, Path)

Constructs and returns a PropertyValuesHolder with a given property name and a Path along which the values should be animated.

[Android.Runtime.Register("ofObject", "(Ljava/lang/String;Landroid/animation/TypeConverter;Landroid/graphics/Path;)Landroid/animation/PropertyValuesHolder;", "")]
public static Android.Animation.PropertyValuesHolder? OfObject (string? propertyName, Android.Animation.TypeConverter? converter, Android.Graphics.Path? path);
[<Android.Runtime.Register("ofObject", "(Ljava/lang/String;Landroid/animation/TypeConverter;Landroid/graphics/Path;)Landroid/animation/PropertyValuesHolder;", "")>]
static member OfObject : string * Android.Animation.TypeConverter * Android.Graphics.Path -> Android.Animation.PropertyValuesHolder

Parameters

propertyName
String

The name of the property being animated.

converter
TypeConverter

Converts a PointF to the type associated with the setter. May be null if conversion is unnecessary.

path
Path

The Path along which the values should be animated.

Returns

PropertyValuesHolder The constructed PropertyValuesHolder object.

Attributes

Remarks

Constructs and returns a PropertyValuesHolder with a given property name and a Path along which the values should be animated. This variant supports a TypeConverter to convert from PointF to the target type.

The PointF passed to converter or property, if converter is null, is reused on each animation frame and should not be stored by the setter or TypeConverter.

Java documentation for android.animation.PropertyValuesHolder.ofObject(java.lang.String, android.animation.TypeConverter<android.graphics.PointF, ?>, android.graphics.Path).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OfObject(Property, TypeConverter, ITypeEvaluator, Object[])

Constructs and returns a PropertyValuesHolder with a given property and set of Object values.

[Android.Runtime.Register("ofObject", "(Landroid/util/Property;Landroid/animation/TypeConverter;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/PropertyValuesHolder;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T", "V" })]
public static Android.Animation.PropertyValuesHolder? OfObject (Android.Util.Property? property, Android.Animation.TypeConverter? converter, Android.Animation.ITypeEvaluator? evaluator, params Java.Lang.Object[]? values);
[<Android.Runtime.Register("ofObject", "(Landroid/util/Property;Landroid/animation/TypeConverter;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/PropertyValuesHolder;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "V" })>]
static member OfObject : Android.Util.Property * Android.Animation.TypeConverter * Android.Animation.ITypeEvaluator * Java.Lang.Object[] -> Android.Animation.PropertyValuesHolder

Parameters

property
Property

The property being animated. Should not be null.

converter
TypeConverter

Converts the animated object to the Property type.

evaluator
ITypeEvaluator

A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value.

values
Object[]

The values that the property will animate between.

Returns

PropertyValuesHolder The constructed PropertyValuesHolder object.

Attributes

Remarks

Constructs and returns a PropertyValuesHolder with a given property and set of Object values. This variant also takes a TypeEvaluator because the system cannot automatically interpolate between objects of unknown type. This variant also takes a TypeConverter to convert from animated values to the type of the property. If only one value is supplied, the TypeConverter must be a android.animation.BidirectionalTypeConverter to retrieve the current value.

<strong>Note:</strong> The Object values are stored as references to the original objects, which means that changes to those objects after this method is called will affect the values on the PropertyValuesHolder. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

Java documentation for android.animation.PropertyValuesHolder.ofObject(android.util.Property<?, V>, android.animation.TypeConverter<T, V>, android.animation.TypeEvaluator<T>, T...).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to