ObjectAnimator.OfObject Method

Definition

Overloads

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

Constructs and returns an ObjectAnimator that animates between Object values.

OfObject(Object, Property, TypeConverter, Path)

Constructs and returns an ObjectAnimator that animates a property along a <code>Path</code>.

OfObject(Object, String, ITypeEvaluator, Object[])

Constructs and returns an ObjectAnimator that animates between Object values.

OfObject(Object, String, TypeConverter, Path)

Constructs and returns an ObjectAnimator that animates a property along a <code>Path</code>.

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

Constructs and returns an ObjectAnimator that animates between Object values.

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

Constructs and returns an ObjectAnimator that animates between Object values.

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

Parameters

target
Object

The object whose property is to be animated.

property
Property

The property being animated.

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[]

A set of values that the animation will animate between over time.

Returns

ObjectAnimator

An ObjectAnimator object that is set up to animate between the given values.

Attributes

Remarks

Java documentation for android.animation.ObjectAnimator.ofObject(T, android.util.Property<T, V>, 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(Object, Property, TypeConverter, Path)

Constructs and returns an ObjectAnimator that animates a property along a <code>Path</code>.

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

Parameters

target
Object

The object whose property is to be animated.

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 <code>Path</code> to animate values along.

Returns

ObjectAnimator

An ObjectAnimator object that is set up to animate along <code>path</code>.

Attributes

Remarks

Java documentation for android.animation.ObjectAnimator.ofObject(T, android.util.Property<T, 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(Object, String, ITypeEvaluator, Object[])

Constructs and returns an ObjectAnimator that animates between Object values.

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

Parameters

target
Object

The object whose property is to be animated.

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[]

A set of values that the animation will animate between over time.

Returns

ObjectAnimator

An ObjectAnimator object that is set up to animate between the given values.

Attributes

Remarks

Java documentation for android.animation.ObjectAnimator.ofObject(java.lang.Object, 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(Object, String, TypeConverter, Path)

Constructs and returns an ObjectAnimator that animates a property along a <code>Path</code>.

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

Parameters

target
Object

The object whose property is to be animated. This object should have a public method on it called <code>setName()</code>, where <code>name</code> is the value of the <code>propertyName</code> parameter.

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 <code>Path</code> to animate values along.

Returns

ObjectAnimator

An ObjectAnimator object that is set up to animate along <code>path</code>.

Attributes

Remarks

Java documentation for android.animation.ObjectAnimator.ofObject(java.lang.Object, 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(Object, Property, TypeConverter, ITypeEvaluator, Object[])

Constructs and returns an ObjectAnimator that animates between Object values.

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

Parameters

target
Object

The object whose property is to be animated.

property
Property

The property being animated.

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[]

A set of values that the animation will animate between over time.

Returns

ObjectAnimator

An ObjectAnimator object that is set up to animate between the given values.

Attributes

Remarks

Java documentation for android.animation.ObjectAnimator.ofObject(T, android.util.Property<T, P>, android.animation.TypeConverter<V, P>, 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