Sceneform SDK for Android was open sourced and archived (github.com/google-ar/sceneform-android-sdk ) with version 1.16.0.
This site (developers.google.com/sceneform ) serves as the documentation archive for the previous version, Sceneform SDK for Android 1.15.0.
Do not use version 1.17.0 of the Sceneform Maven artifacts .
The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.
HandMotionAnimation
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
HandMotionAnimation
drives AR hand motion animation in Android applications.
It provides a constructor to initialize with container and hand image views.
The applyTransformation
method is used to control the animation's progress and appearance.
It inherits various constants and methods from the Animation
class for animation control.
This drives the AR hand motion animation.
Inherited Constants
From class
android.view.animation.Animation
int
ABSOLUTE
int
INFINITE
int
RELATIVE_TO_PARENT
int
RELATIVE_TO_SELF
int
RESTART
int
REVERSE
int
START_ON_FIRST_FRAME
int
ZORDER_BOTTOM
int
ZORDER_NORMAL
int
ZORDER_TOP
Inherited Methods
From class
android.view.animation.Animation
void
void
cancel ()
Object
clone ()
long
computeDurationHint ()
void
ensureInterpolator ()
void
finalize ()
int
getBackgroundColor ()
boolean
getDetachWallpaper ()
long
getDuration ()
boolean
getFillAfter ()
boolean
getFillBefore ()
Interpolator
getInterpolator ()
int
getRepeatCount ()
int
getRepeatMode ()
float
getScaleFactor ()
long
getStartOffset ()
long
getStartTime ()
boolean
boolean
int
getZAdjustment ()
boolean
hasEnded ()
boolean
hasStarted ()
void
initialize (int arg0, int arg1, int arg2, int arg3)
boolean
isFillEnabled ()
boolean
isInitialized ()
void
reset ()
float
resolveSize (int arg0, float arg1, int arg2, int arg3)
void
restrictDuration (long arg0)
void
scaleCurrentDuration (float arg0)
void
void
setBackgroundColor (int arg0)
void
setDetachWallpaper (boolean arg0)
void
setDuration (long arg0)
void
setFillAfter (boolean arg0)
void
setFillBefore (boolean arg0)
void
setFillEnabled (boolean arg0)
void
setInterpolator (
Context arg0, int arg1)
void
void
setRepeatCount (int arg0)
void
setRepeatMode (int arg0)
void
setStartOffset (long arg0)
void
setStartTime (long arg0)
void
setZAdjustment (int arg0)
void
start ()
void
startNow ()
boolean
willChangeBounds ()
boolean
willChangeTransformationMatrix ()
From class
java.lang.Object
Object
clone ()
boolean
void
finalize ()
final
Class <?>
getClass ()
int
hashCode ()
final
void
notify ()
final
void
notifyAll ()
String
toString ()
final
void
wait (long arg0, int arg1)
final
void
wait (long arg0)
final
void
wait ()
Public Constructors
public
HandMotionAnimation
(View containerView, View handImageView)
Parameters
containerView
handImageView
Protected Methods
Parameters
interpolatedTime
transformation
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[],["The `HandMotionAnimation` class drives AR hand motion animation, inheriting constants and methods from `android.view.animation.Animation`. It has one public constructor, taking `containerView` and `handImageView` parameters, and one protected method, `applyTransformation`, which takes `interpolatedTime` and `transformation` parameters to modify animations. Inherited methods manage animation properties like duration, repeat count, fill behavior, and listener interactions. `HandMotionAnimation` enables creating custom animations by overriding `applyTransformation`.\n"]]