AI-generated Key Takeaways
-
Sceneform provides a variety of interfaces and classes for building AR experiences, enabling interactions like tapping, dragging, pinching, and twisting.
-
The
ArFragmentandBaseArFragmentclasses are fundamental for setting up the AR environment and handling session initialization. -
Gestures are managed through classes like
DragGesture,PinchGesture, andTwistGesture, along with their corresponding recognizers and event listeners. -
BaseTransformableNodeand its subclasses enable the manipulation of objects in the AR scene using gestures. -
TransformationSystemcoordinates the selection and transformation of nodes, while controllers likeRotationController,ScaleController, andTranslationControllerhandle specific aspects of object manipulation.
Interfaces
| BaseArFragment.OnSessionInitializationListener | Invoked when the ARCore Session is initialized. |
| BaseArFragment.OnTapArPlaneListener | Invoked when an ARCore plane is tapped. |
| BaseGesture.OnGestureEventListener<T extends BaseGesture<T>> | Interface definition for callbacks to be invoked by a BaseGesture. |
| BaseGestureRecognizer.OnGestureStartedListener<T extends BaseGesture<T>> | Interface definition for a callbacks to be invoked when a BaseGesture starts. |
| DragGesture.OnGestureEventListener | Interface definition for callbacks to be invoked by a DragGesture. |
| DragGestureRecognizer.OnGestureStartedListener | Interface definition for a callbacks to be invoked when a DragGesture starts. |
| PinchGesture.OnGestureEventListener | Interface definition for callbacks to be invoked by a PinchGesture. |
| PinchGestureRecognizer.OnGestureStartedListener | Interface definition for a callbacks to be invoked when a PinchGesture starts. |
| SelectionVisualizer | Interface to visual when a BaseTransformableNode is selected. |
| TwistGesture.OnGestureEventListener | Interface definition for callbacks to be invoked by a TwistGesture. |
| TwistGestureRecognizer.OnGestureStartedListener | Interface definition for a callbacks to be invoked when a TwistGesture starts. |
Classes
| ArFragment | Implements AR Required ArFragment. |
| AugmentedFaceNode | Node used to render visual effects on a face with ARCore's AugmentedFace feature. |
| BaseArFragment | The AR fragment brings in the required view layout and controllers for common AR features. |
| BaseGesture<T extends BaseGesture<T>> | Base class for a gesture. |
| BaseGestureRecognizer<T extends BaseGesture<T>> | Base class for all Gesture Recognizers (i.e. |
| BaseTransformableNode | Base class for nodes that can be transformed using gestures from TransformationSystem. |
| BaseTransformationController<T extends BaseGesture<T>> | Manipulates the transform properties (i.e. |
| DragGesture | Gesture for when the user performs a drag motion on the touch screen. |
| DragGestureRecognizer | Gesture Recognizer for when the user performs a drag motion on the touch screen. |
| FootprintSelectionVisualizer | Visualizes that a BaseTransformableNode is selected by rendering a footprint for the
selected node. |
| GesturePointersUtility | Retains/Releases pointer Ids so that each pointer can only be used in one gesture at a time. |
| HandMotionAnimation | This drives the AR hand motion animation. |
| HandMotionView | This view contains the hand motion instructions with animation. |
| PinchGesture | Gesture for when the user performs a two-finger pinch motion on the touch screen. |
| PinchGestureRecognizer | Gesture Recognizer for when the user performs a two-finger pinch motion on the touch screen. |
| PlaneDiscoveryController | This view manages showing the plane discovery instructions view. |
| RotationController | Manipulates the rotation of a BaseTransformableNode using a TwistGestureRecognizer. |
| ScaleController | Manipulates the Scale of a BaseTransformableNode using a Pinch PinchGestureRecognizer. |
| TransformableNode | Node that can be selected, translated, rotated, and scaled using gestures from TransformationSystem. |
| TransformationSystem | Coordinates which BaseTransformableNode is currently selected. |
| TranslationController | Manipulates the position of a BaseTransformableNode using a DragGestureRecognizer. |
| TwistGesture | Gesture for when the user performs a two-finger twist motion on the touch screen. |
| TwistGestureRecognizer | Gesture Recognizer for when the user performs a two-finger twist motion on the touch screen. |