A Sceneform SurfaceView that manages rendering and interaction with the scene.
Nested Classes
Inherited Constants
int | ACCESSIBILITY_LIVE_REGION_ASSERTIVE | |
int | ACCESSIBILITY_LIVE_REGION_NONE | |
int | ACCESSIBILITY_LIVE_REGION_POLITE | |
int | AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS | |
String | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE | |
String | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY | |
String | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH | |
String | AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR | |
String | AUTOFILL_HINT_CREDIT_CARD_NUMBER | |
String | AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE | |
String | AUTOFILL_HINT_EMAIL_ADDRESS | |
String | AUTOFILL_HINT_NAME | |
String | AUTOFILL_HINT_PASSWORD | |
String | AUTOFILL_HINT_PHONE | |
String | AUTOFILL_HINT_POSTAL_ADDRESS | |
String | AUTOFILL_HINT_POSTAL_CODE | |
String | AUTOFILL_HINT_USERNAME | |
int | AUTOFILL_TYPE_DATE | |
int | AUTOFILL_TYPE_LIST | |
int | AUTOFILL_TYPE_NONE | |
int | AUTOFILL_TYPE_TEXT | |
int | AUTOFILL_TYPE_TOGGLE | |
int | DRAG_FLAG_GLOBAL | |
int | DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION | |
int | DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION | |
int | DRAG_FLAG_GLOBAL_URI_READ | |
int | DRAG_FLAG_GLOBAL_URI_WRITE | |
int | DRAG_FLAG_OPAQUE | |
int | DRAWING_CACHE_QUALITY_AUTO | |
int | DRAWING_CACHE_QUALITY_HIGH | |
int | DRAWING_CACHE_QUALITY_LOW | |
int | FIND_VIEWS_WITH_CONTENT_DESCRIPTION | |
int | FIND_VIEWS_WITH_TEXT | |
int | FOCUSABLE | |
int | FOCUSABLES_ALL | |
int | FOCUSABLES_TOUCH_MODE | |
int | FOCUSABLE_AUTO | |
int | FOCUS_BACKWARD | |
int | FOCUS_DOWN | |
int | FOCUS_FORWARD | |
int | FOCUS_LEFT | |
int | FOCUS_RIGHT | |
int | FOCUS_UP | |
int | GONE | |
int | HAPTIC_FEEDBACK_ENABLED | |
int | IMPORTANT_FOR_ACCESSIBILITY_AUTO | |
int | IMPORTANT_FOR_ACCESSIBILITY_NO | |
int | IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS | |
int | IMPORTANT_FOR_ACCESSIBILITY_YES | |
int | IMPORTANT_FOR_AUTOFILL_AUTO | |
int | IMPORTANT_FOR_AUTOFILL_NO | |
int | IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS | |
int | IMPORTANT_FOR_AUTOFILL_YES | |
int | IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS | |
int | INVISIBLE | |
int | KEEP_SCREEN_ON | |
int | LAYER_TYPE_HARDWARE | |
int | LAYER_TYPE_NONE | |
int | LAYER_TYPE_SOFTWARE | |
int | LAYOUT_DIRECTION_INHERIT | |
int | LAYOUT_DIRECTION_LOCALE | |
int | LAYOUT_DIRECTION_LTR | |
int | LAYOUT_DIRECTION_RTL | |
int | MEASURED_HEIGHT_STATE_SHIFT | |
int | MEASURED_SIZE_MASK | |
int | MEASURED_STATE_MASK | |
int | MEASURED_STATE_TOO_SMALL | |
int | NOT_FOCUSABLE | |
int | NO_ID | |
int | OVER_SCROLL_ALWAYS | |
int | OVER_SCROLL_IF_CONTENT_SCROLLS | |
int | OVER_SCROLL_NEVER | |
int | SCREEN_STATE_OFF | |
int | SCREEN_STATE_ON | |
int | SCROLLBARS_INSIDE_INSET | |
int | SCROLLBARS_INSIDE_OVERLAY | |
int | SCROLLBARS_OUTSIDE_INSET | |
int | SCROLLBARS_OUTSIDE_OVERLAY | |
int | SCROLLBAR_POSITION_DEFAULT | |
int | SCROLLBAR_POSITION_LEFT | |
int | SCROLLBAR_POSITION_RIGHT | |
int | SCROLL_AXIS_HORIZONTAL | |
int | SCROLL_AXIS_NONE | |
int | SCROLL_AXIS_VERTICAL | |
int | SCROLL_INDICATOR_BOTTOM | |
int | SCROLL_INDICATOR_END | |
int | SCROLL_INDICATOR_LEFT | |
int | SCROLL_INDICATOR_RIGHT | |
int | SCROLL_INDICATOR_START | |
int | SCROLL_INDICATOR_TOP | |
int | SOUND_EFFECTS_ENABLED | |
int | STATUS_BAR_HIDDEN | |
int | STATUS_BAR_VISIBLE | |
int | SYSTEM_UI_FLAG_FULLSCREEN | |
int | SYSTEM_UI_FLAG_HIDE_NAVIGATION | |
int | SYSTEM_UI_FLAG_IMMERSIVE | |
int | SYSTEM_UI_FLAG_IMMERSIVE_STICKY | |
int | SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | |
int | SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | |
int | SYSTEM_UI_FLAG_LAYOUT_STABLE | |
int | SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR | |
int | SYSTEM_UI_FLAG_LIGHT_STATUS_BAR | |
int | SYSTEM_UI_FLAG_LOW_PROFILE | |
int | SYSTEM_UI_FLAG_VISIBLE | |
int | SYSTEM_UI_LAYOUT_FLAGS | |
int | TEXT_ALIGNMENT_CENTER | |
int | TEXT_ALIGNMENT_GRAVITY | |
int | TEXT_ALIGNMENT_INHERIT | |
int | TEXT_ALIGNMENT_TEXT_END | |
int | TEXT_ALIGNMENT_TEXT_START | |
int | TEXT_ALIGNMENT_VIEW_END | |
int | TEXT_ALIGNMENT_VIEW_START | |
int | TEXT_DIRECTION_ANY_RTL | |
int | TEXT_DIRECTION_FIRST_STRONG | |
int | TEXT_DIRECTION_FIRST_STRONG_LTR | |
int | TEXT_DIRECTION_FIRST_STRONG_RTL | |
int | TEXT_DIRECTION_INHERIT | |
int | TEXT_DIRECTION_LOCALE | |
int | TEXT_DIRECTION_LTR | |
int | TEXT_DIRECTION_RTL | |
String | VIEW_LOG_TAG | |
int | VISIBLE |
Inherited Fields
public static final Property < View , Float > | ALPHA | |
protected static final int[] | EMPTY_STATE_SET | |
protected static final int[] | ENABLED_FOCUSED_SELECTED_STATE_SET | |
protected static final int[] | ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | ENABLED_FOCUSED_STATE_SET | |
protected static final int[] | ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | ENABLED_SELECTED_STATE_SET | |
protected static final int[] | ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | ENABLED_STATE_SET | |
protected static final int[] | ENABLED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | FOCUSED_SELECTED_STATE_SET | |
protected static final int[] | FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | FOCUSED_STATE_SET | |
protected static final int[] | FOCUSED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET | |
protected static final int[] | PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_ENABLED_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_ENABLED_SELECTED_STATE_SET | |
protected static final int[] | PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_ENABLED_STATE_SET | |
protected static final int[] | PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_FOCUSED_SELECTED_STATE_SET | |
protected static final int[] | PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_SELECTED_STATE_SET | |
protected static final int[] | PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
protected static final int[] | PRESSED_STATE_SET | |
protected static final int[] | PRESSED_WINDOW_FOCUSED_STATE_SET | |
public static final Property < View , Float > | ROTATION | |
public static final Property < View , Float > | ROTATION_X | |
public static final Property < View , Float > | ROTATION_Y | |
public static final Property < View , Float > | SCALE_X | |
public static final Property < View , Float > | SCALE_Y | |
protected static final int[] | SELECTED_STATE_SET | |
protected static final int[] | SELECTED_WINDOW_FOCUSED_STATE_SET | |
public static final Property < View , Float > | TRANSLATION_X | |
public static final Property < View , Float > | TRANSLATION_Y | |
public static final Property < View , Float > | TRANSLATION_Z | |
protected static final int[] | WINDOW_FOCUSED_STATE_SET | |
public static final Property < View , Float > | X | |
public static final Property < View , Float > | Y | |
public static final Property < View , Float > | Z |
Public Constructors
* | |
* | SceneView
( Context
context, AttributeSet
attrs)
Constructs a SceneView object and binds it to an Android Context.
|
Public Methods
void | |
static void | |
void | |
Scene | |
boolean | |
boolean | |
void | |
static long | reclaimReleasedResources
()
Releases rendering resources ready for garbage collection
Called every frame to collect unused resources. |
void | |
void | setAnimationTimeTransformer
( SceneView.AnimationTimeTransformer
animationTimeTransformer)
To control the animation playback rate, the
SceneView
customer can supply a function to
return the time to update the global animation cursor time. |
void | |
void | startMirroringToSurface
( Surface
surface, int left, int bottom, int width, int height)
To capture the contents of this view, designate a
Surface
onto which this SceneView
should be mirrored. |
void | stopMirroringToSurface
( Surface
surface)
When capturing is complete, call this method to stop mirroring the SceneView to the specified
Surface
. |
Inherited Methods
void | |
void | |
boolean | |
SurfaceHolder | getHolder
()
|
SurfaceControl | getSurfaceControl
()
|
void | onAttachedToWindow
()
|
void | onDetachedFromWindow
()
|
void | onMeasure
(int arg0, int arg1)
|
void | onWindowVisibilityChanged
(int arg0)
|
void | setSecure
(boolean arg0)
|
void | setVisibility
(int arg0)
|
void | setZOrderMediaOverlay
(boolean arg0)
|
void | setZOrderOnTop
(boolean arg0)
|
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | addOnUnhandledKeyEventListener
(View.OnUnhandledKeyEventListener arg0)
|
void | |
ViewPropertyAnimator | animate
()
|
void | |
void | autofill
(AutofillValue arg0)
|
void | |
boolean | awakenScrollBars
(int arg0, boolean arg1)
|
boolean | awakenScrollBars
(int arg0)
|
boolean | awakenScrollBars
()
|
void | bringToFront
()
|
void | buildDrawingCache
(boolean arg0)
|
void | buildDrawingCache
()
|
void | buildLayer
()
|
boolean | callOnClick
()
|
boolean | canResolveLayoutDirection
()
|
boolean | canResolveTextAlignment
()
|
boolean | canResolveTextDirection
()
|
boolean | canScrollHorizontally
(int arg0)
|
boolean | canScrollVertically
(int arg0)
|
final void | cancelDragAndDrop
()
|
void | cancelLongPress
()
|
final void | cancelPendingInputEvents
()
|
boolean | |
void | clearAnimation
()
|
void | clearFocus
()
|
static int | combineMeasuredStates
(int arg0, int arg1)
|
int | computeHorizontalScrollExtent
()
|
int | computeHorizontalScrollOffset
()
|
int | computeHorizontalScrollRange
()
|
void | computeScroll
()
|
WindowInsets | |
int | computeVerticalScrollExtent
()
|
int | computeVerticalScrollOffset
()
|
int | computeVerticalScrollRange
()
|
AccessibilityNodeInfo | createAccessibilityNodeInfo
()
|
void | |
void | destroyDrawingCache
()
|
WindowInsets | |
boolean | |
void | |
void | dispatchDisplayHint
(int arg0)
|
boolean | |
void | |
void | dispatchDrawableHotspotChanged
(float arg0, float arg1)
|
void | dispatchFinishTemporaryDetach
()
|
boolean | |
boolean | |
boolean | |
boolean | |
boolean | |
boolean | |
boolean | |
boolean | dispatchNestedFling
(float arg0, float arg1, boolean arg2)
|
boolean | dispatchNestedPreFling
(float arg0, float arg1)
|
boolean | |
boolean | dispatchNestedPreScroll
(int arg0, int arg1, int[] arg2, int[] arg3)
|
boolean | dispatchNestedScroll
(int arg0, int arg1, int arg2, int arg3, int[] arg4)
|
void | dispatchPointerCaptureChanged
(boolean arg0)
|
boolean | |
void | dispatchProvideAutofillStructure
(ViewStructure arg0, int arg1)
|
void | dispatchProvideStructure
(ViewStructure arg0)
|
void | |
void | |
void | dispatchSetActivated
(boolean arg0)
|
void | dispatchSetPressed
(boolean arg0)
|
void | dispatchSetSelected
(boolean arg0)
|
void | dispatchStartTemporaryDetach
()
|
void | dispatchSystemUiVisibilityChanged
(int arg0)
|
boolean | |
boolean | |
boolean | |
void | |
void | dispatchWindowFocusChanged
(boolean arg0)
|
void | dispatchWindowSystemUiVisiblityChanged
(int arg0)
|
void | dispatchWindowVisibilityChanged
(int arg0)
|
void | |
void | drawableHotspotChanged
(float arg0, float arg1)
|
void | drawableStateChanged
()
|
View | findFocus
()
|
final <T extends View > T | findViewById
(int arg0)
|
final <T extends View > T | |
void | |
boolean | |
View | focusSearch
(int arg0)
|
void | forceHasOverlappingRendering
(boolean arg0)
|
void | forceLayout
()
|
static int | generateViewId
()
|
CharSequence | getAccessibilityClassName
()
|
View.AccessibilityDelegate | getAccessibilityDelegate
()
|
int | getAccessibilityLiveRegion
()
|
AccessibilityNodeProvider | getAccessibilityNodeProvider
()
|
CharSequence | getAccessibilityPaneTitle
()
|
int | getAccessibilityTraversalAfter
()
|
int | getAccessibilityTraversalBefore
()
|
float | getAlpha
()
|
Animation | getAnimation
()
|
Matrix | getAnimationMatrix
()
|
IBinder | getApplicationWindowToken
()
|
int[] | getAttributeResolutionStack
(int arg0)
|
Map < Integer , Integer > | getAttributeSourceResourceMap
()
|
String[] | getAutofillHints
()
|
final AutofillId | getAutofillId
()
|
int | getAutofillType
()
|
AutofillValue | getAutofillValue
()
|
Drawable | getBackground
()
|
BlendMode | getBackgroundTintBlendMode
()
|
ColorStateList | getBackgroundTintList
()
|
PorterDuff.Mode | getBackgroundTintMode
()
|
int | getBaseline
()
|
final int | getBottom
()
|
float | getBottomFadingEdgeStrength
()
|
int | getBottomPaddingOffset
()
|
float | getCameraDistance
()
|
boolean | |
Rect | getClipBounds
()
|
final boolean | getClipToOutline
()
|
final ContentCaptureSession | getContentCaptureSession
()
|
CharSequence | getContentDescription
()
|
final Context | getContext
()
|
ContextMenu.ContextMenuInfo | getContextMenuInfo
()
|
final boolean | getDefaultFocusHighlightEnabled
()
|
static int | getDefaultSize
(int arg0, int arg1)
|
Display | getDisplay
()
|
final int[] | getDrawableState
()
|
Bitmap | getDrawingCache
()
|
Bitmap | getDrawingCache
(boolean arg0)
|
int | getDrawingCacheBackgroundColor
()
|
int | getDrawingCacheQuality
()
|
void | |
long | getDrawingTime
()
|
float | getElevation
()
|
int | getExplicitStyle
()
|
boolean | getFilterTouchesWhenObscured
()
|
boolean | getFitsSystemWindows
()
|
int | getFocusable
()
|
ArrayList < View > | getFocusables
(int arg0)
|
void | |
Drawable | getForeground
()
|
int | getForegroundGravity
()
|
BlendMode | getForegroundTintBlendMode
()
|
ColorStateList | getForegroundTintList
()
|
PorterDuff.Mode | getForegroundTintMode
()
|
final boolean | |
boolean | |
Handler | getHandler
()
|
final boolean | getHasOverlappingRendering
()
|
final int | getHeight
()
|
void | |
int | getHorizontalFadingEdgeLength
()
|
int | getHorizontalScrollbarHeight
()
|
Drawable | getHorizontalScrollbarThumbDrawable
()
|
Drawable | getHorizontalScrollbarTrackDrawable
()
|
int | getId
()
|
int | getImportantForAccessibility
()
|
int | getImportantForAutofill
()
|
boolean | getKeepScreenOn
()
|
KeyEvent.DispatcherState | getKeyDispatcherState
()
|
int | getLabelFor
()
|
int | getLayerType
()
|
int | getLayoutDirection
()
|
ViewGroup.LayoutParams | getLayoutParams
()
|
final int | getLeft
()
|
float | getLeftFadingEdgeStrength
()
|
int | getLeftPaddingOffset
()
|
final boolean | |
void | getLocationInSurface
(int[] arg0)
|
void | getLocationInWindow
(int[] arg0)
|
void | getLocationOnScreen
(int[] arg0)
|
Matrix | getMatrix
()
|
final int | getMeasuredHeight
()
|
final int | getMeasuredHeightAndState
()
|
final int | getMeasuredState
()
|
final int | getMeasuredWidth
()
|
final int | getMeasuredWidthAndState
()
|
int | getMinimumHeight
()
|
int | getMinimumWidth
()
|
int | getNextClusterForwardId
()
|
int | getNextFocusDownId
()
|
int | getNextFocusForwardId
()
|
int | getNextFocusLeftId
()
|
int | getNextFocusRightId
()
|
int | getNextFocusUpId
()
|
View.OnFocusChangeListener | getOnFocusChangeListener
()
|
int | getOutlineAmbientShadowColor
()
|
ViewOutlineProvider | getOutlineProvider
()
|
int | getOutlineSpotShadowColor
()
|
int | getOverScrollMode
()
|
ViewOverlay | getOverlay
()
|
int | getPaddingBottom
()
|
int | getPaddingEnd
()
|
int | getPaddingLeft
()
|
int | getPaddingRight
()
|
int | getPaddingStart
()
|
int | getPaddingTop
()
|
final ViewParent | getParent
()
|
ViewParent | getParentForAccessibility
()
|
float | getPivotX
()
|
float | getPivotY
()
|
PointerIcon | getPointerIcon
()
|
Resources | getResources
()
|
final boolean | getRevealOnFocusHint
()
|
final int | getRight
()
|
float | getRightFadingEdgeStrength
()
|
int | getRightPaddingOffset
()
|
View | getRootView
()
|
WindowInsets | getRootWindowInsets
()
|
float | getRotation
()
|
float | getRotationX
()
|
float | getRotationY
()
|
float | getScaleX
()
|
float | getScaleY
()
|
int | getScrollBarDefaultDelayBeforeFade
()
|
int | getScrollBarFadeDuration
()
|
int | getScrollBarSize
()
|
int | getScrollBarStyle
()
|
int | getScrollIndicators
()
|
final int | getScrollX
()
|
final int | getScrollY
()
|
int | getSolidColor
()
|
int | getSourceLayoutResId
()
|
StateListAnimator | getStateListAnimator
()
|
int | getSuggestedMinimumHeight
()
|
int | getSuggestedMinimumWidth
()
|
List < Rect > | getSystemGestureExclusionRects
()
|
int | getSystemUiVisibility
()
|
Object | getTag
()
|
Object | getTag
(int arg0)
|
int | getTextAlignment
()
|
int | getTextDirection
()
|
CharSequence | getTooltipText
()
|
final int | getTop
()
|
float | getTopFadingEdgeStrength
()
|
int | getTopPaddingOffset
()
|
TouchDelegate | getTouchDelegate
()
|
ArrayList < View > | getTouchables
()
|
float | getTransitionAlpha
()
|
String | getTransitionName
()
|
float | getTranslationX
()
|
float | getTranslationY
()
|
float | getTranslationZ
()
|
long | getUniqueDrawingId
()
|
int | getVerticalFadingEdgeLength
()
|
int | getVerticalScrollbarPosition
()
|
Drawable | getVerticalScrollbarThumbDrawable
()
|
Drawable | getVerticalScrollbarTrackDrawable
()
|
int | getVerticalScrollbarWidth
()
|
ViewTreeObserver | getViewTreeObserver
()
|
int | getVisibility
()
|
final int | getWidth
()
|
int | getWindowAttachCount
()
|
WindowId | getWindowId
()
|
int | getWindowSystemUiVisibility
()
|
IBinder | getWindowToken
()
|
int | getWindowVisibility
()
|
void | |
float | getX
()
|
float | getY
()
|
float | getZ
()
|
boolean | hasExplicitFocusable
()
|
boolean | hasFocus
()
|
boolean | hasFocusable
()
|
boolean | hasNestedScrollingParent
()
|
boolean | hasOnClickListeners
()
|
boolean | hasOverlappingRendering
()
|
boolean | hasPointerCapture
()
|
boolean | hasTransientState
()
|
boolean | hasWindowFocus
()
|
static View | |
void | invalidate
()
|
void | |
void | invalidate
(int arg0, int arg1, int arg2, int arg3)
|
void | |
void | invalidateOutline
()
|
boolean | isAccessibilityFocused
()
|
boolean | isAccessibilityHeading
()
|
boolean | isActivated
()
|
boolean | isAttachedToWindow
()
|
boolean | isClickable
()
|
boolean | isContextClickable
()
|
boolean | isDirty
()
|
boolean | isDrawingCacheEnabled
()
|
boolean | isDuplicateParentStateEnabled
()
|
boolean | isEnabled
()
|
final boolean | isFocusable
()
|
final boolean | isFocusableInTouchMode
()
|
boolean | isFocused
()
|
final boolean | isFocusedByDefault
()
|
boolean | isForceDarkAllowed
()
|
boolean | isHapticFeedbackEnabled
()
|
boolean | isHardwareAccelerated
()
|
boolean | isHorizontalFadingEdgeEnabled
()
|
boolean | isHorizontalScrollBarEnabled
()
|
boolean | isHovered
()
|
boolean | isImportantForAccessibility
()
|
final boolean | isImportantForAutofill
()
|
boolean | isInEditMode
()
|
boolean | isInLayout
()
|
boolean | isInTouchMode
()
|
final boolean | isKeyboardNavigationCluster
()
|
boolean | isLaidOut
()
|
boolean | isLayoutDirectionResolved
()
|
boolean | isLayoutRequested
()
|
boolean | isLongClickable
()
|
boolean | isNestedScrollingEnabled
()
|
boolean | isOpaque
()
|
boolean | isPaddingOffsetRequired
()
|
boolean | isPaddingRelative
()
|
boolean | isPivotSet
()
|
boolean | isPressed
()
|
boolean | isSaveEnabled
()
|
boolean | isSaveFromParentEnabled
()
|
boolean | isScreenReaderFocusable
()
|
boolean | isScrollContainer
()
|
boolean | isScrollbarFadingEnabled
()
|
boolean | isSelected
()
|
boolean | isShown
()
|
boolean | isSoundEffectsEnabled
()
|
final boolean | isTemporarilyDetached
()
|
boolean | isTextAlignmentResolved
()
|
boolean | isTextDirectionResolved
()
|
boolean | isVerticalFadingEdgeEnabled
()
|
boolean | isVerticalScrollBarEnabled
()
|
boolean | isVisibleToUserForAutofill
(int arg0)
|
void | jumpDrawablesToCurrentState
()
|
View | |
void | layout
(int arg0, int arg1, int arg2, int arg3)
|
final void | measure
(int arg0, int arg1)
|
static int[] | mergeDrawableStates
(int[] arg0, int[] arg1)
|
void | offsetLeftAndRight
(int arg0)
|
void | offsetTopAndBottom
(int arg0)
|
void | onAnimationEnd
()
|
void | onAnimationStart
()
|
WindowInsets | |
void | onAttachedToWindow
()
|
void | onCancelPendingInputEvents
()
|
boolean | |
boolean | onCheckIsTextEditor
()
|
void | |
void | |
int[] | onCreateDrawableState
(int arg0)
|
InputConnection | |
void | onDetachedFromWindow
()
|
void | onDisplayHint
(int arg0)
|
boolean | |
void | |
void | |
final void | |
boolean | |
void | onFinishInflate
()
|
void | onFinishTemporaryDetach
()
|
void | |
boolean | |
void | onHoverChanged
(boolean arg0)
|
boolean | |
void | |
void | |
boolean | |
boolean | |
boolean | |
boolean | |
boolean | |
boolean | |
void | onLayout
(boolean arg0, int arg1, int arg2, int arg3, int arg4)
|
void | onMeasure
(int arg0, int arg1)
|
void | onOverScrolled
(int arg0, int arg1, boolean arg2, boolean arg3)
|
void | onPointerCaptureChange
(boolean arg0)
|
void | |
void | onProvideAutofillStructure
(ViewStructure arg0, int arg1)
|
void | onProvideAutofillVirtualStructure
(ViewStructure arg0, int arg1)
|
void | onProvideStructure
(ViewStructure arg0)
|
void | onProvideVirtualStructure
(ViewStructure arg0)
|
PointerIcon | |
void | |
void | onRtlPropertiesChanged
(int arg0)
|
Parcelable | onSaveInstanceState
()
|
void | onScreenStateChanged
(int arg0)
|
void | onScrollChanged
(int arg0, int arg1, int arg2, int arg3)
|
boolean | onSetAlpha
(int arg0)
|
void | onSizeChanged
(int arg0, int arg1, int arg2, int arg3)
|
void | onStartTemporaryDetach
()
|
boolean | |
boolean | |
void | onVisibilityAggregated
(boolean arg0)
|
void | |
void | onWindowFocusChanged
(boolean arg0)
|
void | onWindowSystemUiVisibilityChanged
(int arg0)
|
void | onWindowVisibilityChanged
(int arg0)
|
boolean | overScrollBy
(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8)
|
boolean | |
boolean | performClick
()
|
boolean | performContextClick
(float arg0, float arg1)
|
boolean | performContextClick
()
|
boolean | performHapticFeedback
(int arg0)
|
boolean | performHapticFeedback
(int arg0, int arg1)
|
boolean | performLongClick
(float arg0, float arg1)
|
boolean | performLongClick
()
|
void | playSoundEffect
(int arg0)
|
boolean | |
boolean | |
void | postInvalidate
()
|
void | postInvalidate
(int arg0, int arg1, int arg2, int arg3)
|
void | postInvalidateDelayed
(long arg0, int arg1, int arg2, int arg3, int arg4)
|
void | postInvalidateDelayed
(long arg0)
|
void | postInvalidateOnAnimation
(int arg0, int arg1, int arg2, int arg3)
|
void | postInvalidateOnAnimation
()
|
void | |
void | |
void | refreshDrawableState
()
|
void | releasePointerCapture
()
|
boolean | |
void | |
void | |
void | removeOnUnhandledKeyEventListener
(View.OnUnhandledKeyEventListener arg0)
|
void | requestApplyInsets
()
|
void | requestFitSystemWindows
()
|
final boolean | requestFocus
(int arg0)
|
final boolean | requestFocus
()
|
boolean | |
final boolean | requestFocusFromTouch
()
|
void | requestLayout
()
|
void | requestPointerCapture
()
|
boolean | |
boolean | |
final void | |
final <T extends View > T | requireViewById
(int arg0)
|
void | resetPivot
()
|
static int | resolveSize
(int arg0, int arg1)
|
static int | resolveSizeAndState
(int arg0, int arg1, int arg2)
|
boolean | restoreDefaultFocus
()
|
void | |
final void | saveAttributeDataForStyleable
( Context
arg0, int[] arg1, AttributeSet
arg2, TypedArray
arg3, int arg4, int arg5)
|
void | |
void | |
void | scrollBy
(int arg0, int arg1)
|
void | scrollTo
(int arg0, int arg1)
|
void | sendAccessibilityEvent
(int arg0)
|
void | |
void | |
void | setAccessibilityHeading
(boolean arg0)
|
void | setAccessibilityLiveRegion
(int arg0)
|
void | |
void | setAccessibilityTraversalAfter
(int arg0)
|
void | setAccessibilityTraversalBefore
(int arg0)
|
void | setActivated
(boolean arg0)
|
void | setAlpha
(float arg0)
|
void | |
void | |
void | |
void | setAutofillId
(AutofillId arg0)
|
void | |
void | setBackgroundColor
(int arg0)
|
void | |
void | setBackgroundResource
(int arg0)
|
void | setBackgroundTintBlendMode
(BlendMode arg0)
|
void | |
void | |
final void | setBottom
(int arg0)
|
void | setCameraDistance
(float arg0)
|
void | setClickable
(boolean arg0)
|
void | |
void | setClipToOutline
(boolean arg0)
|
void | setContentCaptureSession
(ContentCaptureSession arg0)
|
void | |
void | setContextClickable
(boolean arg0)
|
void | setDefaultFocusHighlightEnabled
(boolean arg0)
|
void | setDrawingCacheBackgroundColor
(int arg0)
|
void | setDrawingCacheEnabled
(boolean arg0)
|
void | setDrawingCacheQuality
(int arg0)
|
void | setDuplicateParentStateEnabled
(boolean arg0)
|
void | setElevation
(float arg0)
|
void | setEnabled
(boolean arg0)
|
void | setFadingEdgeLength
(int arg0)
|
void | setFilterTouchesWhenObscured
(boolean arg0)
|
void | setFitsSystemWindows
(boolean arg0)
|
void | setFocusable
(boolean arg0)
|
void | setFocusable
(int arg0)
|
void | setFocusableInTouchMode
(boolean arg0)
|
void | setFocusedByDefault
(boolean arg0)
|
void | setForceDarkAllowed
(boolean arg0)
|
void | |
void | setForegroundGravity
(int arg0)
|
void | setForegroundTintBlendMode
(BlendMode arg0)
|
void | |
void | |
void | setHapticFeedbackEnabled
(boolean arg0)
|
void | setHasTransientState
(boolean arg0)
|
void | setHorizontalFadingEdgeEnabled
(boolean arg0)
|
void | setHorizontalScrollBarEnabled
(boolean arg0)
|
void | |
void | |
void | setHovered
(boolean arg0)
|
void | setId
(int arg0)
|
void | setImportantForAccessibility
(int arg0)
|
void | setImportantForAutofill
(int arg0)
|
void | setKeepScreenOn
(boolean arg0)
|
void | setKeyboardNavigationCluster
(boolean arg0)
|
void | setLabelFor
(int arg0)
|
void | |
void | |
void | setLayoutDirection
(int arg0)
|
void | |
final void | setLeft
(int arg0)
|
final void | setLeftTopRightBottom
(int arg0, int arg1, int arg2, int arg3)
|
void | setLongClickable
(boolean arg0)
|
final void | setMeasuredDimension
(int arg0, int arg1)
|
void | setMinimumHeight
(int arg0)
|
void | setMinimumWidth
(int arg0)
|
void | setNestedScrollingEnabled
(boolean arg0)
|
void | setNextClusterForwardId
(int arg0)
|
void | setNextFocusDownId
(int arg0)
|
void | setNextFocusForwardId
(int arg0)
|
void | setNextFocusLeftId
(int arg0)
|
void | setNextFocusRightId
(int arg0)
|
void | setNextFocusUpId
(int arg0)
|
void | |
void | setOnCapturedPointerListener
(View.OnCapturedPointerListener arg0)
|
void | |
void | setOnContextClickListener
(View.OnContextClickListener arg0)
|
void | |
void | |
void | |
void | |
void | |
void | |
void | |
void | setOnScrollChangeListener
(View.OnScrollChangeListener arg0)
|
void | |
void | |
void | setOutlineAmbientShadowColor
(int arg0)
|
void | |
void | setOutlineSpotShadowColor
(int arg0)
|
void | setOverScrollMode
(int arg0)
|
void | setPadding
(int arg0, int arg1, int arg2, int arg3)
|
void | setPaddingRelative
(int arg0, int arg1, int arg2, int arg3)
|
void | setPivotX
(float arg0)
|
void | setPivotY
(float arg0)
|
void | setPointerIcon
(PointerIcon arg0)
|
void | setPressed
(boolean arg0)
|
final void | setRevealOnFocusHint
(boolean arg0)
|
final void | setRight
(int arg0)
|
void | setRotation
(float arg0)
|
void | setRotationX
(float arg0)
|
void | setRotationY
(float arg0)
|
void | setSaveEnabled
(boolean arg0)
|
void | setSaveFromParentEnabled
(boolean arg0)
|
void | setScaleX
(float arg0)
|
void | setScaleY
(float arg0)
|
void | setScreenReaderFocusable
(boolean arg0)
|
void | setScrollBarDefaultDelayBeforeFade
(int arg0)
|
void | setScrollBarFadeDuration
(int arg0)
|
void | setScrollBarSize
(int arg0)
|
void | setScrollBarStyle
(int arg0)
|
void | setScrollContainer
(boolean arg0)
|
void | setScrollIndicators
(int arg0, int arg1)
|
void | setScrollIndicators
(int arg0)
|
void | setScrollX
(int arg0)
|
void | setScrollY
(int arg0)
|
void | setScrollbarFadingEnabled
(boolean arg0)
|
void | setSelected
(boolean arg0)
|
void | setSoundEffectsEnabled
(boolean arg0)
|
void | |
void | |
void | setSystemUiVisibility
(int arg0)
|
void | |
void | |
void | setTextAlignment
(int arg0)
|
void | setTextDirection
(int arg0)
|
void | |
final void | setTop
(int arg0)
|
void | |
void | setTransitionAlpha
(float arg0)
|
final void | |
void | setTransitionVisibility
(int arg0)
|
void | setTranslationX
(float arg0)
|
void | setTranslationY
(float arg0)
|
void | setTranslationZ
(float arg0)
|
void | setVerticalFadingEdgeEnabled
(boolean arg0)
|
void | setVerticalScrollBarEnabled
(boolean arg0)
|
void | setVerticalScrollbarPosition
(int arg0)
|
void | |
void | |
void | setVisibility
(int arg0)
|
void | setWillNotCacheDrawing
(boolean arg0)
|
void | setWillNotDraw
(boolean arg0)
|
void | setX
(float arg0)
|
void | setY
(float arg0)
|
void | setZ
(float arg0)
|
boolean | showContextMenu
()
|
boolean | showContextMenu
(float arg0, float arg1)
|
ActionMode | |
ActionMode | |
void | |
final boolean | |
final boolean | |
boolean | startNestedScroll
(int arg0)
|
void | stopNestedScroll
()
|
String | toString
()
|
void | |
void | |
void | |
void | |
final void | |
boolean | |
boolean | willNotCacheDrawing
()
|
boolean | willNotDraw
()
|
abstract void | sendAccessibilityEvent
(int arg0)
|
abstract void |
Public Constructors
public SceneView ( Context context)
Constructs a SceneView object and binds it to an Android Context.
Parameters
See Also
public SceneView ( Context context, AttributeSet attrs)
Constructs a SceneView object and binds it to an Android Context.
Parameters
context | the Android Context to use |
---|---|
attrs | the Android AttributeSet to associate with |
Public Methods
public void destroy ()
Required to exit Sceneform.
Typically called from onDestroy().
public static void destroyAllResources ()
Immediately releases all rendering resources, even if in use.
Use this if nothing more will be rendered in this scene or any other, and the memory must be released immediately.
public void enableDebug (boolean enable)
If enabled, provides various visualizations for debugging.
Parameters
public Scene getScene ()
Returns the Sceneform Scene created by this view.
public boolean isDebugEnabled ()
Indicates whether debugging is enabled for this view.
public boolean onTouchEvent ( MotionEvent motionEvent)
Parameters
public void pause ()
Pause Sceneform, which pauses the rendering thread.
Typically called from onPause().
public static long reclaimReleasedResources ()
Releases rendering resources ready for garbage collection
Called every frame to collect unused resources. May be called manually to release resources after rendering has stopped.
Returns
- Count of resources currently in use
public void resume ()
Resume Sceneform, which resumes the rendering thread.
Typically called from onResume().
Throws
public void setAnimationTimeTransformer ( SceneView.AnimationTimeTransformer animationTimeTransformer)
To control the animation playback rate, the SceneView
customer can supply a function to
return the time to update the global animation cursor time. Note that the returned times must
be monotonically increasing.
Parameters
Choreographer
to generate the animation update time. Note that the default
implementation uses the Choreographer
time untransformed. If overridden during
playback, the returned times must still monitonically increase from the previous values
that were returned (i.e. the Choreographer
values). The input nano time can be used
to ensure that returned times never decrease.public void setBackground ( Drawable background)
Set the background to a given Drawable
, or remove the background. If the background is
a ColorDrawable
, then the background color of the Scene
is set to getColor()
(the alpha of the color is ignored). Otherwise, default to the
behavior of setBackground(Drawable)
.
Parameters
public void startMirroringToSurface ( Surface surface, int left, int bottom, int width, int height)
To capture the contents of this view, designate a Surface
onto which this SceneView
should be mirrored. Use getSurface()
, createInputSurface()
or createPersistentInputSurface()
to obtain the input surface for
recording. This will incur a rendering performance cost and should only be set when capturing
this view. To stop the additional rendering, call stopMirroringToSurface.
Parameters
surface | the Surface onto which the rendered scene should be mirrored. |
---|---|
left | the left edge of the rectangle into which the view should be mirrored on surface. |
bottom | the bottom edge of the rectangle into which the view should be mirrored on surface. |
width | the width of the rectangle into which the SceneView should be mirrored on surface. |
height | the height of the rectangle into which the SceneView should be mirrored on surface. |