> Documentation index: https://developer.android.com/reference/llms.txt

# SphericalGLSurfaceView

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/video/spherical/SphericalGLSurfaceView.java+class:androidx.media3.exoplayer.video.spherical.SphericalGLSurfaceView)

*** ** * ** ***


```
@UnstableApi
class SphericalGLSurfaceView : GLSurfaceView
```

<br />

|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||||
| ↳ | [android.view.View](https://developer.android.com/reference/android/view/View.md.txt) ||||
|   | ↳ | [android.view.SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.md.txt) |||
|   |   | ↳ | [android.opengl.GLSurfaceView](https://developer.android.com/reference/android/opengl/GLSurfaceView.md.txt) ||
|   |   |   | ↳ | [androidx.media3.exoplayer.video.spherical.SphericalGLSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/spherical/SphericalGLSurfaceView.md.txt) |

*** ** * ** ***

Renders a GL scene in a non-VR Activity that is affected by phone orientation and touch input.

The two input components are the TYPE_GAME_ROTATION_VECTOR Sensor and a TouchListener. The GL renderer combines these two inputs to render a scene with the appropriate camera orientation.

The primary complexity in this class is related to the various rotations. It is important to apply the touch and sensor rotations in the correct order or the user's touch manipulations won't match what they expect.

## Summary

| ### Nested types |
|---|
| `interface SphericalGLSurfaceView.VideoSurfaceListener` Listener for the `Surface` to which video frames should be rendered. |

| ### Public constructors |
|---|
| `SphericalGLSurfaceView(context: Context!)` |
| `SphericalGLSurfaceView(context: Context!, attributeSet: AttributeSet?)` |

| ### Public functions |
|---|---|
| `Unit` | `addVideoSurfaceListener( listener: SphericalGLSurfaceView.VideoSurfaceListener! )` Adds a `VideoSurfaceListener`. |
| `CameraMotionListener!` | `getCameraMotionListener()` Returns the `CameraMotionListener` that should be registered during playback. |
| `VideoFrameMetadataListener!` | `getVideoFrameMetadataListener()` Returns the `VideoFrameMetadataListener` that should be registered during playback. |
| `Surface?` | `getVideoSurface()` Returns the `Surface` to which video frames should be rendered, or `null` if it has not been created. |
| `Unit` | `onPause()` |
| `Unit` | `onResume()` |
| `Unit` | `removeVideoSurfaceListener( listener: SphericalGLSurfaceView.VideoSurfaceListener! )` Removes a `VideoSurfaceListener`. |
| `Unit` | `setDefaultStereoMode(@C.StereoMode stereoMode: Int)` Sets the default stereo mode. |
| `Unit` | `setUseSensorRotation(useSensorRotation: Boolean)` Sets whether to use the orientation sensor for rotation (if available). |

| ### Protected functions |
|---|---|
| `Unit` | `onDetachedFromWindow()` |

### Inherited Constants

From [android.opengl.GLSurfaceView](https://developer.android.com/reference/android/opengl/GLSurfaceView.md.txt) `const Int` `DEBUG_CHECK_GL_ERROR = 1` `const Int` `DEBUG_LOG_GL_CALLS = 2` `const Int` `RENDERMODE_CONTINUOUSLY = 1` `const Int` `RENDERMODE_WHEN_DIRTY = 0` From [android.view.SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.md.txt) `const Int` `SURFACE_LIFECYCLE_DEFAULT = 0` `const Int` `SURFACE_LIFECYCLE_FOLLOWS_ATTACHMENT = 2` `const Int` `SURFACE_LIFECYCLE_FOLLOWS_VISIBILITY = 1` From [android.view.View](https://developer.android.com/reference/android/view/View.md.txt) `const Int` `ACCESSIBILITY_DATA_SENSITIVE_AUTO = 0` `const Int` `ACCESSIBILITY_DATA_SENSITIVE_NO = 2` `const Int` `ACCESSIBILITY_DATA_SENSITIVE_YES = 1` `const Int` `ACCESSIBILITY_LIVE_REGION_ASSERTIVE = 2` `const Int` `ACCESSIBILITY_LIVE_REGION_NONE = 0` `const Int` `ACCESSIBILITY_LIVE_REGION_POLITE = 1` `const Property<View!, Float!>!` `ALPHA` `const Int` `AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS = 1` `const String!` `AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE = "creditCardExpirationDate"` `const String!` `AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY = "creditCardExpirationDay"` `const String!` `AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH = "creditCardExpirationMonth"` `const String!` `AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR = "creditCardExpirationYear"` `const String!` `AUTOFILL_HINT_CREDIT_CARD_NUMBER = "creditCardNumber"` `const String!` `AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE = "creditCardSecurityCode"` `const String!` `AUTOFILL_HINT_EMAIL_ADDRESS = "emailAddress"` `const String!` `AUTOFILL_HINT_NAME = "name"` `const String!` `AUTOFILL_HINT_PASSWORD = "password"` `const String!` `AUTOFILL_HINT_PHONE = "phone"` `const String!` `AUTOFILL_HINT_POSTAL_ADDRESS = "postalAddress"` `const String!` `AUTOFILL_HINT_POSTAL_CODE = "postalCode"` `const String!` `AUTOFILL_HINT_USERNAME = "username"` `const Int` `AUTOFILL_TYPE_DATE = 4` `const Int` `AUTOFILL_TYPE_LIST = 3` `const Int` `AUTOFILL_TYPE_NONE = 0` `const Int` `AUTOFILL_TYPE_TEXT = 1` `const Int` `AUTOFILL_TYPE_TOGGLE = 2` `const Int` `CONTENT_SENSITIVITY_AUTO = 0` `const Int` `CONTENT_SENSITIVITY_NOT_SENSITIVE = 2` `const Int` `CONTENT_SENSITIVITY_SENSITIVE = 1` `const Int` `DRAG_FLAG_ACCESSIBILITY_ACTION = 1024` `const Int` `DRAG_FLAG_GLOBAL = 256` `const Int` `DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION = 64` `const Int` `DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION = 128` `const Int` `DRAG_FLAG_GLOBAL_SAME_APPLICATION = 4096` `const Int` `DRAG_FLAG_GLOBAL_URI_READ = 1` `const Int` `DRAG_FLAG_GLOBAL_URI_WRITE = 2` `const Int` `DRAG_FLAG_HIDE_CALLING_TASK_ON_DRAG_START = 16384` `const Int` `DRAG_FLAG_OPAQUE = 512` `const Int` `DRAG_FLAG_START_INTENT_SENDER_ON_UNHANDLED_DRAG = 8192` `const Int` `DRAWING_CACHE_QUALITY_AUTO = 0`

**This property is deprecated.**
`const Int` `DRAWING_CACHE_QUALITY_HIGH = 1048576`

**This property is deprecated.**
`const Int` `DRAWING_CACHE_QUALITY_LOW = 524288`

**This property is deprecated.**
`const Array<Int>!` `EMPTY_STATE_SET` `const Array<Int>!` `ENABLED_FOCUSED_SELECTED_STATE_SET` `const Array<Int>!` `ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `ENABLED_FOCUSED_STATE_SET` `const Array<Int>!` `ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `ENABLED_SELECTED_STATE_SET` `const Array<Int>!` `ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `ENABLED_STATE_SET` `const Array<Int>!` `ENABLED_WINDOW_FOCUSED_STATE_SET` `const Int` `FIND_VIEWS_WITH_CONTENT_DESCRIPTION = 2` `const Int` `FIND_VIEWS_WITH_TEXT = 1` `const Int` `FOCUSABLE = 1` `const Int` `FOCUSABLES_ALL = 0` `const Int` `FOCUSABLES_TOUCH_MODE = 1` `const Int` `FOCUSABLE_AUTO = 16` `const Array<Int>!` `FOCUSED_SELECTED_STATE_SET` `const Array<Int>!` `FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `FOCUSED_STATE_SET` `const Array<Int>!` `FOCUSED_WINDOW_FOCUSED_STATE_SET` `const Int` `FOCUS_BACKWARD = 1` `const Int` `FOCUS_DOWN = 130` `const Int` `FOCUS_FORWARD = 2` `const Int` `FOCUS_LEFT = 17` `const Int` `FOCUS_RIGHT = 66` `const Int` `FOCUS_UP = 33` `const Int` `GONE = 8` `const Int` `HAPTIC_FEEDBACK_ENABLED = 268435456` `const Int` `IMPORTANT_FOR_ACCESSIBILITY_AUTO = 0` `const Int` `IMPORTANT_FOR_ACCESSIBILITY_NO = 2` `const Int` `IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS = 4` `const Int` `IMPORTANT_FOR_ACCESSIBILITY_YES = 1` `const Int` `IMPORTANT_FOR_AUTOFILL_AUTO = 0` `const Int` `IMPORTANT_FOR_AUTOFILL_NO = 2` `const Int` `IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS = 8` `const Int` `IMPORTANT_FOR_AUTOFILL_YES = 1` `const Int` `IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS = 4` `const Int` `IMPORTANT_FOR_CONTENT_CAPTURE_AUTO = 0` `const Int` `IMPORTANT_FOR_CONTENT_CAPTURE_NO = 2` `const Int` `IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS = 8` `const Int` `IMPORTANT_FOR_CONTENT_CAPTURE_YES = 1` `const Int` `IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS = 4` `const Int` `INVISIBLE = 4` `const Int` `KEEP_SCREEN_ON = 67108864` `const Int` `LAYER_TYPE_HARDWARE = 2` `const Int` `LAYER_TYPE_NONE = 0` `const Int` `LAYER_TYPE_SOFTWARE = 1` `const Int` `LAYOUT_DIRECTION_INHERIT = 2` `const Int` `LAYOUT_DIRECTION_LOCALE = 3` `const Int` `LAYOUT_DIRECTION_LTR = 0` `const Int` `LAYOUT_DIRECTION_RTL = 1` `const Int` `MEASURED_HEIGHT_STATE_SHIFT = 16` `const Int` `MEASURED_SIZE_MASK = 16777215` `const Int` `MEASURED_STATE_MASK = -16777216` `const Int` `MEASURED_STATE_TOO_SMALL = 16777216` `const Int` `NOT_FOCUSABLE = 0` `const Int` `NO_ID = -1` `const Int` `OVER_SCROLL_ALWAYS = 0` `const Int` `OVER_SCROLL_IF_CONTENT_SCROLLS = 1` `const Int` `OVER_SCROLL_NEVER = 2` `const Int` `POINTER_CAPTURE_MODE_ABSOLUTE = 1` `const Int` `POINTER_CAPTURE_MODE_RELATIVE = 2` `const Int` `POINTER_CAPTURE_MODE_UNCAPTURED = 0` `const Array<Int>!` `PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET` `const Array<Int>!` `PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `PRESSED_ENABLED_FOCUSED_STATE_SET` `const Array<Int>!` `PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `PRESSED_ENABLED_SELECTED_STATE_SET` `const Array<Int>!` `PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `PRESSED_ENABLED_STATE_SET` `const Array<Int>!` `PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `PRESSED_FOCUSED_SELECTED_STATE_SET` `const Array<Int>!` `PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `PRESSED_FOCUSED_STATE_SET` `const Array<Int>!` `PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `PRESSED_SELECTED_STATE_SET` `const Array<Int>!` `PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET` `const Array<Int>!` `PRESSED_STATE_SET` `const Array<Int>!` `PRESSED_WINDOW_FOCUSED_STATE_SET` `const Int` `RECTANGLE_ON_SCREEN_REQUEST_SOURCE_INPUT_FOCUS = 3` `const Int` `RECTANGLE_ON_SCREEN_REQUEST_SOURCE_SCROLL_ONLY = 1` `const Int` `RECTANGLE_ON_SCREEN_REQUEST_SOURCE_TEXT_CURSOR = 2` `const Int` `RECTANGLE_ON_SCREEN_REQUEST_SOURCE_UNDEFINED = 0` `const Float` `REQUESTED_FRAME_RATE_CATEGORY_DEFAULT` `const Float` `REQUESTED_FRAME_RATE_CATEGORY_HIGH = -4.0f` `const Float` `REQUESTED_FRAME_RATE_CATEGORY_LOW = -2.0f` `const Float` `REQUESTED_FRAME_RATE_CATEGORY_NORMAL = -3.0f` `const Float` `REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE = -1.0f` `const Property<View!, Float!>!` `ROTATION` `const Property<View!, Float!>!` `ROTATION_X` `const Property<View!, Float!>!` `ROTATION_Y` `const Property<View!, Float!>!` `SCALE_X` `const Property<View!, Float!>!` `SCALE_Y` `const Int` `SCREEN_STATE_OFF = 0` `const Int` `SCREEN_STATE_ON = 1` `const Int` `SCROLLBARS_INSIDE_INSET = 16777216` `const Int` `SCROLLBARS_INSIDE_OVERLAY = 0` `const Int` `SCROLLBARS_OUTSIDE_INSET = 50331648` `const Int` `SCROLLBARS_OUTSIDE_OVERLAY = 33554432` `const Int` `SCROLLBAR_POSITION_DEFAULT = 0` `const Int` `SCROLLBAR_POSITION_LEFT = 1` `const Int` `SCROLLBAR_POSITION_RIGHT = 2` `const Int` `SCROLL_AXIS_HORIZONTAL = 1` `const Int` `SCROLL_AXIS_NONE = 0` `const Int` `SCROLL_AXIS_VERTICAL = 2` `const Int` `SCROLL_CAPTURE_HINT_AUTO = 0` `const Int` `SCROLL_CAPTURE_HINT_EXCLUDE = 1` `const Int` `SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS = 4` `const Int` `SCROLL_CAPTURE_HINT_INCLUDE = 2` `const Int` `SCROLL_INDICATOR_BOTTOM = 2` `const Int` `SCROLL_INDICATOR_END = 32` `const Int` `SCROLL_INDICATOR_LEFT = 4` `const Int` `SCROLL_INDICATOR_RIGHT = 8` `const Int` `SCROLL_INDICATOR_START = 16` `const Int` `SCROLL_INDICATOR_TOP = 1` `const Array<Int>!` `SELECTED_STATE_SET` `const Array<Int>!` `SELECTED_WINDOW_FOCUSED_STATE_SET` `const Int` `SOUND_EFFECTS_ENABLED = 134217728` `const Int` `STATUS_BAR_HIDDEN = 1`

**This property is deprecated.**
`const Int` `STATUS_BAR_VISIBLE = 0`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_FULLSCREEN = 4`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_IMMERSIVE = 2048`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 4096`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 1024`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 512`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_LAYOUT_STABLE = 256`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR = 16`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_LIGHT_STATUS_BAR = 8192`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_LOW_PROFILE = 1`

**This property is deprecated.**
`const Int` `SYSTEM_UI_FLAG_VISIBLE = 0`

**This property is deprecated.**
`const Int` `SYSTEM_UI_LAYOUT_FLAGS = 1536`

**This property is deprecated.**
`const Int` `TEXT_ALIGNMENT_CENTER = 4` `const Int` `TEXT_ALIGNMENT_GRAVITY = 1` `const Int` `TEXT_ALIGNMENT_INHERIT = 0` `const Int` `TEXT_ALIGNMENT_TEXT_END = 3` `const Int` `TEXT_ALIGNMENT_TEXT_START = 2` `const Int` `TEXT_ALIGNMENT_VIEW_END = 6` `const Int` `TEXT_ALIGNMENT_VIEW_START = 5` `const Int` `TEXT_DIRECTION_ANY_RTL = 2` `const Int` `TEXT_DIRECTION_FIRST_STRONG = 1` `const Int` `TEXT_DIRECTION_FIRST_STRONG_LTR = 6` `const Int` `TEXT_DIRECTION_FIRST_STRONG_RTL = 7` `const Int` `TEXT_DIRECTION_INHERIT = 0` `const Int` `TEXT_DIRECTION_LOCALE = 5` `const Int` `TEXT_DIRECTION_LTR = 3` `const Int` `TEXT_DIRECTION_RTL = 4` `const Property<View!, Float!>!` `TRANSLATION_X` `const Property<View!, Float!>!` `TRANSLATION_Y` `const Property<View!, Float!>!` `TRANSLATION_Z` `const String!` `VIEW_LOG_TAG = "View"` `const Int` `VISIBLE = 0` `const Array<Int>!` `WINDOW_FOCUSED_STATE_SET` `const Property<View!, Float!>!` `X` `const Property<View!, Float!>!` `Y` `const Property<View!, Float!>!` `Z`

### Inherited functions

From [android.opengl.GLSurfaceView](https://developer.android.com/reference/android/opengl/GLSurfaceView.md.txt) `Unit` `finalize()` `Int` `getDebugFlags()` `Boolean` `getPreserveEGLContextOnPause()` `Int` `getRenderMode()` `Unit` `onAttachedToWindow()` `Unit` `queueEvent(r: Runnable!)` `Unit` `requestRender()` `Unit` `setDebugFlags(debugFlags: Int)` `Unit` `setEGLConfigChooser(configChooser: GLSurfaceView.EGLConfigChooser!)` `Unit` `setEGLContextClientVersion(version: Int)` `Unit` `setEGLContextFactory(factory: GLSurfaceView.EGLContextFactory!)` `Unit` `setEGLWindowSurfaceFactory(
factory: GLSurfaceView.EGLWindowSurfaceFactory!
)` `Unit` `setGLWrapper(glWrapper: GLSurfaceView.GLWrapper!)` `Unit` `setPreserveEGLContextOnPause(preserveOnPause: Boolean)` `Unit` `setRenderMode(renderMode: Int)` `Unit` `setRenderer(renderer: GLSurfaceView.Renderer!)` `Unit` `surfaceChanged(holder: SurfaceHolder!, format: Int, w: Int, h: Int)` `Unit` `surfaceCreated(holder: SurfaceHolder!)` `Unit` `surfaceDestroyed(holder: SurfaceHolder!)` `Unit` `surfaceRedrawNeeded(holder: SurfaceHolder!)`

**This function is deprecated.**
`Unit` `surfaceRedrawNeededAsync(holder: SurfaceHolder!, finishDrawing: Runnable!)` From [android.view.SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.md.txt) `Unit` `applyTransactionToFrame(transaction: SurfaceControl.Transaction!)` `Unit` `clearChildSurfacePackage()` `Unit` `dispatchDraw(canvas: Canvas!)` `Unit` `draw(canvas: Canvas!)` `Boolean` `gatherTransparentRegion(region: Region!)` `CharSequence!` `getAccessibilityClassName()` `(Mutable)List<BlurRegion!>!` `getBlurRegions()` `SurfaceControlViewHost.SurfacePackage!` `getChildSurfacePackage()` `Int` `getCompositionOrder()` `SurfaceHolder!` `getHolder()` `IBinder!` `getHostToken()`

**This function is deprecated.**
`Int` `getImportantForAccessibility()` `SurfaceControl!` `getSurfaceControl()` `Boolean` `hasOverlappingRendering()` `Unit` `onFocusChanged(
gainFocus: Boolean,
direction: Int,
previouslyFocusedRect: Rect!
)` `Unit` `onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)` `Boolean` `onSetAlpha(alpha: Int)` `Unit` `onWindowVisibilityChanged(visibility: Int)` `SurfaceControl.OnJankDataListenerRegistration!` `registerOnJankDataListener(
executor: Executor!,
listener: SurfaceControl.OnJankDataListener!
)` `Unit` `setAlpha(alpha: Float)` `Unit` `setBlurRegions(blurRegions: (Mutable)Collection<BlurRegion!>!)` `Unit` `setChildSurfacePackage(p: SurfaceControlViewHost.SurfacePackage!)` `Unit` `setClipBounds(clipBounds: Rect!)` `Unit` `setCompositionOrder(compositionOrder: Int)` `Unit` `setDesiredHdrHeadroom(desiredHeadroom: Float)` `Unit` `setSecure(isSecure: Boolean)` `Unit` `setSurfaceLifecycle(lifecycleStrategy: Int)` `Unit` `setVisibility(visibility: Int)` `Unit` `setZOrderMediaOverlay(isMediaOverlay: Boolean)` `Unit` `setZOrderOnTop(onTop: Boolean)` From [android.view.View](https://developer.android.com/reference/android/view/View.html) `Unit` `addChildrenForAccessibility(outChildren: ArrayList<View!>!)` `Unit` `addExtraDataToAccessibilityNodeInfo(
info: AccessibilityNodeInfo!,
extraDataKey: String!,
arguments: Bundle!
)` `Unit` `addFocusables(views: ArrayList<View!>!, direction: Int)` `Unit` `addKeyboardNavigationClusters(
views: (Mutable)Collection<View!>!,
direction: Int
)` `Unit` `addOnAttachStateChangeListener(
listener: View.OnAttachStateChangeListener!
)` `Unit` `addOnLayoutChangeListener(listener: View.OnLayoutChangeListener!)` `Unit` `addOnUnhandledKeyEventListener(
listener: View.OnUnhandledKeyEventListener!
)` `Unit` `addTouchables(views: ArrayList<View!>!)` `ViewPropertyAnimator!` `animate()` `Unit` `announceForAccessibility(text: CharSequence!)`

**This function is deprecated.**
`Unit` `autofill(values: SparseArray<AutofillValue!>!)` `Boolean` `awakenScrollBars()` `Unit` `bringToFront()` `Unit` `buildDrawingCache()`

**This function is deprecated.**
`Unit` `buildLayer()` `Boolean` `callOnClick()` `Boolean` `canResolveLayoutDirection()` `Boolean` `canResolveTextAlignment()` `Boolean` `canResolveTextDirection()` `Boolean` `canScrollHorizontally(direction: Int)` `Boolean` `canScrollVertically(direction: Int)` `Unit` `cancelDragAndDrop()` `Unit` `cancelLongPress()` `Unit` `cancelPendingInputEvents()` `Boolean` `checkInputConnectionProxy(view: View!)` `Unit` `clearAnimation()` `Unit` `clearFocus()` `Unit` `clearPendingCredentialRequest()` `Unit` `clearViewTranslationCallback()` `java-static Int` `combineMeasuredStates(curState: Int, newState: Int)` `Int` `computeHorizontalScrollExtent()` `Int` `computeHorizontalScrollOffset()` `Int` `computeHorizontalScrollRange()` `Unit` `computeScroll()` `WindowInsets!` `computeSystemWindowInsets(in: WindowInsets!, outLocalInsets: Rect!)` `Int` `computeVerticalScrollExtent()` `Int` `computeVerticalScrollOffset()` `Int` `computeVerticalScrollRange()` `AccessibilityNodeInfo!` `createAccessibilityNodeInfo()` `Unit` `createContextMenu(menu: ContextMenu!)` `Unit` `destroyDrawingCache()`

**This function is deprecated.**
`WindowInsets!` `dispatchApplyWindowInsets(insets: WindowInsets!)` `Boolean` `dispatchCapturedPointerEvent(event: MotionEvent!)` `Unit` `dispatchConfigurationChanged(newConfig: Configuration!)` `Unit` `dispatchCreateViewTranslationRequest(
viewIds: (Mutable)Map<AutofillId!, LongArray<Long>!>!,
supportedFormats: IntArray<Int>!,
capability: TranslationCapability!,
requests: (Mutable)List<ViewTranslationRequest!>!
)` `Unit` `dispatchDisplayHint(hint: Int)` `Boolean` `dispatchDragEvent(event: DragEvent!)` `Unit` `dispatchDrawableHotspotChanged(x: Float, y: Float)` `Unit` `dispatchFinishTemporaryDetach()` `Boolean` `dispatchGenericFocusedEvent(event: MotionEvent!)` `Boolean` `dispatchGenericMotionEvent(event: MotionEvent!)` `Boolean` `dispatchGenericPointerEvent(event: MotionEvent!)` `Boolean` `dispatchHoverEvent(event: MotionEvent!)` `Boolean` `dispatchKeyEvent(event: KeyEvent!)` `Boolean` `dispatchKeyEventPreIme(event: KeyEvent!)` `Boolean` `dispatchKeyShortcutEvent(event: KeyEvent!)` `Boolean` `dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean)` `Boolean` `dispatchNestedPreFling(velocityX: Float, velocityY: Float)` `Boolean` `dispatchNestedPrePerformAccessibilityAction(
action: Int,
arguments: Bundle!
)` `Boolean` `dispatchNestedPreScroll(
dx: Int,
dy: Int,
consumed: IntArray<Int>!,
offsetInWindow: IntArray<Int>!
)` `Boolean` `dispatchNestedScroll(
dxConsumed: Int,
dyConsumed: Int,
dxUnconsumed: Int,
dyUnconsumed: Int,
offsetInWindow: IntArray<Int>!
)` `Unit` `dispatchPointerCaptureChanged(hasCapture: Boolean)` `Boolean` `dispatchPopulateAccessibilityEvent(event: AccessibilityEvent!)` `Unit` `dispatchProvideAutofillStructure(structure: ViewStructure!, flags: Int)` `Unit` `dispatchProvideStructure(structure: ViewStructure!)` `Unit` `dispatchRestoreInstanceState(container: SparseArray<Parcelable!>!)` `Unit` `dispatchSaveInstanceState(container: SparseArray<Parcelable!>!)` `Unit` `dispatchScrollCaptureSearch(
localVisibleRect: Rect!,
windowOffset: Point!,
targets: Consumer<ScrollCaptureTarget!>!
)` `Unit` `dispatchSetActivated(activated: Boolean)` `Unit` `dispatchSetPressed(pressed: Boolean)` `Unit` `dispatchSetSelected(selected: Boolean)` `Unit` `dispatchStartTemporaryDetach()` `Unit` `dispatchSystemUiVisibilityChanged(visibility: Int)`

**This function is deprecated.**
`Boolean` `dispatchTouchEvent(event: MotionEvent!)` `Boolean` `dispatchTrackballEvent(event: MotionEvent!)` `Boolean` `dispatchUnhandledMove(focused: View!, direction: Int)` `Unit` `dispatchVisibilityChanged(changedView: View!, visibility: Int)` `Unit` `dispatchWindowFocusChanged(hasFocus: Boolean)` `Unit` `dispatchWindowInsetsAnimationEnd(animation: WindowInsetsAnimation!)` `Unit` `dispatchWindowInsetsAnimationPrepare(animation: WindowInsetsAnimation!)` `WindowInsets!` `dispatchWindowInsetsAnimationProgress(
insets: WindowInsets!,
runningAnimations: (Mutable)List<WindowInsetsAnimation!>!
)` `WindowInsetsAnimation.Bounds!` `dispatchWindowInsetsAnimationStart(
animation: WindowInsetsAnimation!,
bounds: WindowInsetsAnimation.Bounds!
)` `Unit` `dispatchWindowSystemUiVisiblityChanged(visible: Int)`

**This function is deprecated.**
`Unit` `dispatchWindowVisibilityChanged(visibility: Int)` `Unit` `drawableHotspotChanged(x: Float, y: Float)` `Unit` `drawableStateChanged()` `View!` `findFocus()` `OnBackInvokedDispatcher!` `findOnBackInvokedDispatcher()` `T!` `<T : View?> findViewById(id: Int)` `T!` `<T : View?> findViewWithTag(tag: Any!)` `Unit` `findViewsWithText(
outViews: ArrayList<View!>!,
searched: CharSequence!,
flags: Int
)` `Boolean` `fitSystemWindows(insets: Rect!)`

**This function is deprecated.**
`View!` `focusSearch(direction: Int)` `Unit` `forceHasOverlappingRendering(hasOverlappingRendering: Boolean)` `Unit` `forceLayout()` `Unit` `generateDisplayHash(
hashAlgorithm: String!,
bounds: Rect!,
executor: Executor!,
callback: DisplayHashResultCallback!
)` `java-static Int` `generateViewId()` `View.AccessibilityDelegate!` `getAccessibilityDelegate()` `Int` `getAccessibilityLiveRegion()` `AccessibilityNodeProvider!` `getAccessibilityNodeProvider()` `CharSequence!` `getAccessibilityPaneTitle()` `Int` `getAccessibilityTraversalAfter()` `Int` `getAccessibilityTraversalBefore()` `String!` `getAllowedHandwritingDelegatePackageName()` `String!` `getAllowedHandwritingDelegatorPackageName()` `Float` `getAlpha()` `Animation!` `getAnimation()` `Matrix!` `getAnimationMatrix()` `IBinder!` `getApplicationWindowToken()` `Array<Int>!` `getAttributeResolutionStack(attribute: Int)` `(Mutable)Map<Int!, Int!>!` `getAttributeSourceResourceMap()` `Array<String!>!` `getAutofillHints()` `AutofillId!` `getAutofillId()` `Int` `getAutofillType()` `AutofillValue!` `getAutofillValue()` `Drawable!` `getBackground()` `BlendMode!` `getBackgroundTintBlendMode()` `ColorStateList!` `getBackgroundTintList()` `PorterDuff.Mode!` `getBackgroundTintMode()` `Int` `getBaseline()` `Int` `getBottom()` `Float` `getBottomFadingEdgeStrength()` `Int` `getBottomPaddingOffset()` `Float` `getCameraDistance()` `Rect!` `getClipBounds()` `Boolean` `getClipBounds(outRect: Rect!)` `Boolean` `getClipToOutline()` `ContentCaptureSession!` `getContentCaptureSession()` `CharSequence!` `getContentDescription()` `Int` `getContentSensitivity()` `Context!` `getContext()` `ContextMenu.ContextMenuInfo!` `getContextMenuInfo()` `Boolean` `getDefaultFocusHighlightEnabled()` `java-static Int` `getDefaultSize(size: Int, measureSpec: Int)` `Display!` `getDisplay()` `Array<Int>!` `getDrawableState()` `Bitmap!` `getDrawingCache()`

**This function is deprecated.**
`Int` `getDrawingCacheBackgroundColor()`

**This function is deprecated.**
`Int` `getDrawingCacheQuality()`

**This function is deprecated.**
`Unit` `getDrawingRect(outRect: Rect!)` `Long` `getDrawingTime()` `Float` `getElevation()` `Int` `getExplicitStyle()` `Boolean` `getFilterTouchesWhenObscured()` `Boolean` `getFitsSystemWindows()` `Int` `getFocusable()` `ArrayList<View!>!` `getFocusables(direction: Int)` `Unit` `getFocusedRect(r: Rect!)` `Drawable!` `getForeground()` `Int` `getForegroundGravity()` `BlendMode!` `getForegroundTintBlendMode()` `ColorStateList!` `getForegroundTintList()` `PorterDuff.Mode!` `getForegroundTintMode()` `Float` `getFrameContentVelocity()` `Boolean` `getGlobalVisibleRect(r: Rect!)` `Handler!` `getHandler()` `Float` `getHandwritingBoundsOffsetBottom()` `Float` `getHandwritingBoundsOffsetLeft()` `Float` `getHandwritingBoundsOffsetRight()` `Float` `getHandwritingBoundsOffsetTop()` `Int` `getHandwritingDelegateFlags()` `Runnable!` `getHandwritingDelegatorCallback()` `Boolean` `getHasOverlappingRendering()` `Int` `getHeight()` `Unit` `getHitRect(outRect: Rect!)` `Int` `getHorizontalFadingEdgeLength()` `Int` `getHorizontalScrollbarHeight()` `Drawable!` `getHorizontalScrollbarThumbDrawable()` `Drawable!` `getHorizontalScrollbarTrackDrawable()` `Int` `getId()` `Int` `getImportantForAutofill()` `Int` `getImportantForContentCapture()` `Boolean` `getKeepScreenOn()` `KeyEvent.DispatcherState!` `getKeyDispatcherState()` `Int` `getLabelFor()` `Int` `getLayerType()` `Int` `getLayoutDirection()` `ViewGroup.LayoutParams!` `getLayoutParams()` `Int` `getLeft()` `Float` `getLeftFadingEdgeStrength()` `Int` `getLeftPaddingOffset()` `Boolean` `getLocalVisibleRect(r: Rect!)` `Unit` `getLocationInSurface(location: IntArray<Int>!)` `Unit` `getLocationInWindow(outLocation: IntArray<Int>!)` `Unit` `getLocationOnScreen(outLocation: IntArray<Int>!)` `Matrix!` `getMatrix()` `Int` `getMeasuredHeight()` `Int` `getMeasuredHeightAndState()` `Int` `getMeasuredState()` `Int` `getMeasuredWidth()` `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()` `ViewParent!` `getParent()` `ViewParent!` `getParentForAccessibility()` `OutcomeReceiver<GetCredentialResponse!, GetCredentialException!>!` `getPendingCredentialCallback()` `GetCredentialRequest!` `getPendingCredentialRequest()` `Float` `getPivotX()` `Float` `getPivotY()` `PointerIcon!` `getPointerIcon()` `(Mutable)List<Rect!>!` `getPreferKeepClearRects()` `Array<String!>!` `getReceiveContentMimeTypes()` `Float` `getRequestedFrameRate()` `Resources!` `getResources()` `Boolean` `getRevealOnFocusHint()` `Int` `getRight()` `Float` `getRightFadingEdgeStrength()` `Int` `getRightPaddingOffset()` `AttachedSurfaceControl!` `getRootSurfaceControl()` `View!` `getRootView()` `WindowInsets!` `getRootWindowInsets()` `Float` `getRotation()` `Float` `getRotationX()` `Float` `getRotationY()` `Float` `getScaleX()` `Float` `getScaleY()` `Int` `getScrollBarDefaultDelayBeforeFade()` `Int` `getScrollBarFadeDuration()` `Int` `getScrollBarSize()` `Int` `getScrollBarStyle()` `Int` `getScrollCaptureHint()` `Int` `getScrollIndicators()` `Int` `getScrollX()` `Int` `getScrollY()` `Int` `getSolidColor()` `Int` `getSourceLayoutResId()` `CharSequence!` `getStateDescription()` `StateListAnimator!` `getStateListAnimator()` `Int` `getSuggestedMinimumHeight()` `Int` `getSuggestedMinimumWidth()` `CharSequence!` `getSupplementalDescription()` `(Mutable)List<Rect!>!` `getSystemGestureExclusionRects()` `Int` `getSystemUiVisibility()`

**This function is deprecated.**
`Any!` `getTag()` `Int` `getTextAlignment()` `Int` `getTextDirection()` `CharSequence!` `getTooltipText()` `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()` `ViewTranslationResponse!` `getViewTranslationResponse()` `ViewTreeObserver!` `getViewTreeObserver()` `Int` `getVisibility()` `Int` `getWidth()` `Int` `getWindowAttachCount()` `WindowId!` `getWindowId()` `WindowInsetsController!` `getWindowInsetsController()` `Int` `getWindowSystemUiVisibility()`

**This function is deprecated.**
`IBinder!` `getWindowToken()` `Int` `getWindowVisibility()` `Unit` `getWindowVisibleDisplayFrame(outRect: Rect!)` `Float` `getX()` `Float` `getY()` `Float` `getZ()` `Boolean` `hasExplicitFocusable()` `Boolean` `hasFocus()` `Boolean` `hasFocusable()` `Boolean` `hasNestedScrollingParent()` `Boolean` `hasOnClickListeners()` `Boolean` `hasOnLongClickListeners()` `Boolean` `hasPointerCapture()` `Boolean` `hasTransientState()` `Boolean` `hasWindowFocus()` `java-static View!` `inflate(context: Context!, resource: Int, root: ViewGroup!)` `Unit` `invalidate()` `Unit` `invalidateDrawable(drawable: Drawable!)` `Unit` `invalidateOutline()` `Boolean` `isAccessibilityDataSensitive()` `Boolean` `isAccessibilityFocused()` `Boolean` `isAccessibilityHeading()` `Boolean` `isActivated()` `Boolean` `isAttachedToWindow()` `Boolean` `isAutoHandwritingEnabled()` `Boolean` `isClickable()` `Boolean` `isContentCaptureSelfReportingEnabled()` `Boolean` `isContentSensitive()` `Boolean` `isContextClickable()` `Boolean` `isCredential()`

**This function is deprecated.**
`Boolean` `isDirty()` `Boolean` `isDrawingCacheEnabled()`

**This function is deprecated.**
`Boolean` `isDuplicateParentStateEnabled()` `Boolean` `isEnabled()` `Boolean` `isFocusable()` `Boolean` `isFocusableInTouchMode()` `Boolean` `isFocused()` `Boolean` `isFocusedByDefault()` `Boolean` `isForceDarkAllowed()` `Boolean` `isHandwritingDelegate()` `Boolean` `isHapticFeedbackEnabled()` `Boolean` `isHardwareAccelerated()` `Boolean` `isHorizontalFadingEdgeEnabled()` `Boolean` `isHorizontalScrollBarEnabled()` `Boolean` `isHovered()` `Boolean` `isImportantForAccessibility()` `Boolean` `isImportantForAutofill()` `Boolean` `isImportantForContentCapture()` `Boolean` `isInEditMode()` `Boolean` `isInLayout()` `Boolean` `isInTouchMode()` `Boolean` `isKeyboardNavigationCluster()` `Boolean` `isLaidOut()` `Boolean` `isLayoutDirectionResolved()` `Boolean` `isLayoutRequested()` `Boolean` `isLongClickable()` `Boolean` `isNestedScrollingEnabled()` `Boolean` `isOpaque()` `Boolean` `isPaddingOffsetRequired()` `Boolean` `isPaddingRelative()` `Boolean` `isPivotSet()` `Boolean` `isPreferKeepClear()` `Boolean` `isPressed()` `Boolean` `isSaveEnabled()` `Boolean` `isSaveFromParentEnabled()` `Boolean` `isScreenReaderFocusable()` `Boolean` `isScrollContainer()` `Boolean` `isScrollbarFadingEnabled()` `Boolean` `isSelected()` `Boolean` `isShowingLayoutBounds()` `Boolean` `isShown()` `Boolean` `isSoundEffectsEnabled()` `Boolean` `isTemporarilyDetached()` `Boolean` `isTextAlignmentResolved()` `Boolean` `isTextDirectionResolved()` `Boolean` `isVerticalFadingEdgeEnabled()` `Boolean` `isVerticalScrollBarEnabled()` `Boolean` `isVisibleToUserForAutofill(virtualId: Int)` `Unit` `jumpDrawablesToCurrentState()` `View!` `keyboardNavigationClusterSearch(currentCluster: View!, direction: Int)` `Unit` `layout(l: Int, t: Int, r: Int, b: Int)` `Unit` `measure(widthMeasureSpec: Int, heightMeasureSpec: Int)` `java-static Array<Int>!` `mergeDrawableStates(
baseState: IntArray<Int>!,
additionalState: IntArray<Int>!
)` `Unit` `offsetLeftAndRight(offset: Int)` `Unit` `offsetTopAndBottom(offset: Int)` `Unit` `onAnimationEnd()` `Unit` `onAnimationStart()` `WindowInsets!` `onApplyWindowInsets(insets: WindowInsets!)` `Unit` `onCancelPendingInputEvents()` `Boolean` `onCapturedPointerEvent(event: MotionEvent!)` `Boolean` `onCheckIsTextEditor()` `Unit` `onConfigurationChanged(newConfig: Configuration!)` `Unit` `onCreateContextMenu(menu: ContextMenu!)` `Array<Int>!` `onCreateDrawableState(extraSpace: Int)` `InputConnection!` `onCreateInputConnection(outAttrs: EditorInfo!)` `Unit` `onCreateViewTranslationRequest(
supportedFormats: IntArray<Int>!,
requestsCollector: Consumer<ViewTranslationRequest!>!
)` `Unit` `onCreateVirtualViewTranslationRequests(
virtualIds: LongArray<Long>!,
supportedFormats: IntArray<Int>!,
requestsCollector: Consumer<ViewTranslationRequest!>!
)` `Unit` `onDisplayHint(hint: Int)` `Boolean` `onDragEvent(event: DragEvent!)` `Unit` `onDraw(canvas: Canvas!)` `Unit` `onDrawForeground(canvas: Canvas!)` `Unit` `onDrawScrollBars(canvas: Canvas!)` `Boolean` `onFilterTouchEventForSecurity(event: MotionEvent!)` `Unit` `onFinishInflate()` `Unit` `onFinishTemporaryDetach()` `Boolean` `onGenericMotionEvent(event: MotionEvent!)` `Unit` `onHoverChanged(hovered: Boolean)` `Boolean` `onHoverEvent(event: MotionEvent!)` `Unit` `onInitializeAccessibilityEvent(event: AccessibilityEvent!)` `Unit` `onInitializeAccessibilityNodeInfo(info: AccessibilityNodeInfo!)` `Boolean` `onKeyDown(keyCode: Int, event: KeyEvent!)` `Boolean` `onKeyLongPress(keyCode: Int, event: KeyEvent!)` `Boolean` `onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent!)` `Boolean` `onKeyPreIme(keyCode: Int, event: KeyEvent!)` `Boolean` `onKeyShortcut(keyCode: Int, event: KeyEvent!)` `Boolean` `onKeyUp(keyCode: Int, event: KeyEvent!)` `Unit` `onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int)` `Unit` `onOverScrolled(
scrollX: Int,
scrollY: Int,
clampedX: Boolean,
clampedY: Boolean
)` `Unit` `onPointerCaptureChange(hasCapture: Boolean)` `Unit` `onPopulateAccessibilityEvent(event: AccessibilityEvent!)` `Unit` `onProvideAutofillStructure(structure: ViewStructure!, flags: Int)` `Unit` `onProvideAutofillVirtualStructure(structure: ViewStructure!, flags: Int)` `Unit` `onProvideContentCaptureNodeProperties(
properties: ContentCaptureNodeProperties!
)` `Unit` `onProvideContentCaptureStructure(structure: ViewStructure!, flags: Int)` `Unit` `onProvideStructure(structure: ViewStructure!)` `Unit` `onProvideVirtualStructure(structure: ViewStructure!)` `ContentInfo!` `onReceiveContent(payload: ContentInfo!)` `PointerIcon!` `onResolvePointerIcon(event: MotionEvent!, pointerIndex: Int)` `Unit` `onRestoreInstanceState(state: Parcelable!)` `Unit` `onRtlPropertiesChanged(layoutDirection: Int)` `Parcelable!` `onSaveInstanceState()` `Unit` `onScreenStateChanged(screenState: Int)` `Unit` `onScrollCaptureSearch(
localVisibleRect: Rect!,
windowOffset: Point!,
targets: Consumer<ScrollCaptureTarget!>!
)` `Unit` `onScrollChanged(l: Int, t: Int, oldl: Int, oldt: Int)` `Unit` `onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int)` `Unit` `onStartTemporaryDetach()` `Boolean` `onTouchEvent(event: MotionEvent!)` `Boolean` `onTrackballEvent(event: MotionEvent!)` `Unit` `onViewTranslationResponse(response: ViewTranslationResponse!)` `Unit` `onVirtualViewTranslationResponses(
response: LongSparseArray<ViewTranslationResponse!>!
)` `Unit` `onVisibilityAggregated(isVisible: Boolean)` `Unit` `onVisibilityChanged(changedView: View!, visibility: Int)` `Unit` `onWindowFocusChanged(hasWindowFocus: Boolean)` `Unit` `onWindowSystemUiVisibilityChanged(visible: Int)`

**This function is deprecated.**
`Boolean` `overScrollBy(
deltaX: Int,
deltaY: Int,
scrollX: Int,
scrollY: Int,
scrollRangeX: Int,
scrollRangeY: Int,
maxOverScrollX: Int,
maxOverScrollY: Int,
isTouchEvent: Boolean
)` `Boolean` `performAccessibilityAction(action: Int, arguments: Bundle!)` `Boolean` `performClick()` `Boolean` `performContextClick()` `Boolean` `performHapticFeedback(request: HapticFeedbackRequest!)` `Boolean` `performLongClick()` `ContentInfo!` `performReceiveContent(payload: ContentInfo!)` `Unit` `playSoundEffect(soundConstant: Int)` `Boolean` `post(action: Runnable!)` `Boolean` `postDelayed(action: Runnable!, delayMillis: Long)` `Unit` `postInvalidate()` `Unit` `postInvalidateDelayed(delayMilliseconds: Long)` `Unit` `postInvalidateOnAnimation()` `Unit` `postOnAnimation(action: Runnable!)` `Unit` `postOnAnimationDelayed(action: Runnable!, delayMillis: Long)` `Unit` `refreshDrawableState()` `java-static Unit` `registerCalledFromWrongThreadListener(
listener: View.CalledFromWrongThreadListener!
)` `Unit` `releasePointerCapture()` `Boolean` `removeCallbacks(action: Runnable!)` `Unit` `removeOnAttachStateChangeListener(
listener: View.OnAttachStateChangeListener!
)` `Unit` `removeOnLayoutChangeListener(listener: View.OnLayoutChangeListener!)` `Unit` `removeOnUnhandledKeyEventListener(
listener: View.OnUnhandledKeyEventListener!
)` `Unit` `reportAppJankStats(appJankStats: AppJankStats!)` `Unit` `requestApplyInsets()` `Unit` `requestFitSystemWindows()`

**This function is deprecated.**
`Boolean` `requestFocus()` `Boolean` `requestFocusFromTouch()` `Unit` `requestLayout()` `Unit` `requestPointerCapture()` `Boolean` `requestRectangleOnScreen(rectangle: Rect!)` `Unit` `requestUnbufferedDispatch(event: MotionEvent!)` `T!` `<T : View?> requireViewById(id: Int)` `Unit` `resetPivot()` `java-static Int` `resolveSize(size: Int, measureSpec: Int)` `java-static Int` `resolveSizeAndState(size: Int, measureSpec: Int, childMeasuredState: Int)` `Boolean` `restoreDefaultFocus()` `Unit` `restoreHierarchyState(container: SparseArray<Parcelable!>!)` `Unit` `saveAttributeDataForStyleable(
context: Context!,
styleable: IntArray<Int>!,
attrs: AttributeSet!,
t: TypedArray!,
defStyleAttr: Int,
defStyleRes: Int
)` `Unit` `saveHierarchyState(container: SparseArray<Parcelable!>!)` `Unit` `scheduleDrawable(who: Drawable!, what: Runnable!, when: Long)` `Unit` `scrollBy(x: Int, y: Int)` `Unit` `scrollTo(x: Int, y: Int)` `Unit` `sendAccessibilityEvent(eventType: Int)` `Unit` `sendAccessibilityEventUnchecked(event: AccessibilityEvent!)` `Unit` `setAccessibilityDataSensitive(accessibilityDataSensitive: Int)` `Unit` `setAccessibilityDelegate(delegate: View.AccessibilityDelegate!)` `Unit` `setAccessibilityHeading(isHeading: Boolean)` `Unit` `setAccessibilityLiveRegion(mode: Int)` `Unit` `setAccessibilityPaneTitle(accessibilityPaneTitle: CharSequence!)` `Unit` `setAccessibilityTraversalAfter(afterId: Int)` `Unit` `setAccessibilityTraversalBefore(beforeId: Int)` `Unit` `setActivated(activated: Boolean)` `Unit` `setAllowClickWhenDisabled(clickableWhenDisabled: Boolean)` `Unit` `setAllowedHandwritingDelegatePackage(allowedPackageName: String!)` `Unit` `setAllowedHandwritingDelegatorPackage(allowedPackageName: String!)` `Unit` `setAnimation(animation: Animation!)` `Unit` `setAnimationMatrix(matrix: Matrix!)` `Unit` `setAutoHandwritingEnabled(enabled: Boolean)` `Unit` `setAutofillHints(autofillHints: Array<String!>!)` `Unit` `setAutofillId(id: AutofillId!)` `Unit` `setBackdropRenderEffect(renderEffect: RenderEffect!)` `Unit` `setBackground(background: Drawable!)` `Unit` `setBackgroundColor(color: Int)` `Unit` `setBackgroundDrawable(background: Drawable!)`

**This function is deprecated.**
`Unit` `setBackgroundResource(resid: Int)` `Unit` `setBackgroundTintBlendMode(blendMode: BlendMode!)` `Unit` `setBackgroundTintList(tint: ColorStateList!)` `Unit` `setBackgroundTintMode(tintMode: PorterDuff.Mode!)` `Unit` `setBottom(bottom: Int)` `Unit` `setCameraDistance(distance: Float)` `Unit` `setClickable(clickable: Boolean)` `Unit` `setClipToOutline(clipToOutline: Boolean)` `Unit` `setContentCaptureSession(contentCaptureSession: ContentCaptureSession!)` `Unit` `setContentDescription(contentDescription: CharSequence!)` `Unit` `setContentSensitivity(mode: Int)` `Unit` `setContextClickable(contextClickable: Boolean)` `Unit` `setDefaultFocusHighlightEnabled(defaultFocusHighlightEnabled: Boolean)` `Unit` `setDrawingCacheBackgroundColor(color: Int)`

**This function is deprecated.**
`Unit` `setDrawingCacheEnabled(enabled: Boolean)`

**This function is deprecated.**
`Unit` `setDrawingCacheQuality(quality: Int)`

**This function is deprecated.**
`Unit` `setDuplicateParentStateEnabled(enabled: Boolean)` `Unit` `setElevation(elevation: Float)` `Unit` `setEnabled(enabled: Boolean)` `Unit` `setFadingEdgeLength(length: Int)` `Unit` `setFilterTouchesWhenObscured(enabled: Boolean)` `Unit` `setFitsSystemWindows(fitSystemWindows: Boolean)` `Unit` `setFocusable(focusable: Boolean)` `Unit` `setFocusableInTouchMode(focusableInTouchMode: Boolean)` `Unit` `setFocusedByDefault(isFocusedByDefault: Boolean)` `Unit` `setForceDarkAllowed(allow: Boolean)` `Unit` `setForeground(foreground: Drawable!)` `Unit` `setForegroundGravity(gravity: Int)` `Unit` `setForegroundTintBlendMode(blendMode: BlendMode!)` `Unit` `setForegroundTintList(tint: ColorStateList!)` `Unit` `setForegroundTintMode(tintMode: PorterDuff.Mode!)` `Unit` `setFrameContentVelocity(pixelsPerSecond: Float)` `Unit` `setHandwritingBoundsOffsets(
offsetLeft: Float,
offsetTop: Float,
offsetRight: Float,
offsetBottom: Float
)` `Unit` `setHandwritingDelegateFlags(flags: Int)` `Unit` `setHandwritingDelegatorCallback(callback: Runnable!)` `Unit` `setHapticFeedbackEnabled(hapticFeedbackEnabled: Boolean)` `Unit` `setHasTransientState(hasTransientState: Boolean)` `Unit` `setHorizontalFadingEdgeEnabled(horizontalFadingEdgeEnabled: Boolean)` `Unit` `setHorizontalScrollBarEnabled(horizontalScrollBarEnabled: Boolean)` `Unit` `setHorizontalScrollbarThumbDrawable(drawable: Drawable!)` `Unit` `setHorizontalScrollbarTrackDrawable(drawable: Drawable!)` `Unit` `setHovered(hovered: Boolean)` `Unit` `setId(id: Int)` `Unit` `setImportantForAccessibility(mode: Int)` `Unit` `setImportantForAutofill(mode: Int)` `Unit` `setImportantForContentCapture(mode: Int)` `Unit` `setIsCredential(isCredential: Boolean)`

**This function is deprecated.**
`Unit` `setIsHandwritingDelegate(isHandwritingDelegate: Boolean)` `Unit` `setKeepScreenOn(keepScreenOn: Boolean)` `Unit` `setKeyboardNavigationCluster(isCluster: Boolean)` `Unit` `setLabelFor(id: Int)` `Unit` `setLayerPaint(paint: Paint!)` `Unit` `setLayerType(layerType: Int, paint: Paint!)` `Unit` `setLayoutDirection(layoutDirection: Int)` `Unit` `setLayoutParams(params: ViewGroup.LayoutParams!)` `Unit` `setLeft(left: Int)` `Unit` `setLeftTopRightBottom(left: Int, top: Int, right: Int, bottom: Int)` `Unit` `setLongClickable(longClickable: Boolean)` `Unit` `setMeasuredDimension(measuredWidth: Int, measuredHeight: Int)` `Unit` `setMinimumHeight(minHeight: Int)` `Unit` `setMinimumWidth(minWidth: Int)` `Unit` `setNestedScrollingEnabled(enabled: Boolean)` `Unit` `setNextClusterForwardId(nextClusterForwardId: Int)` `Unit` `setNextFocusDownId(nextFocusDownId: Int)` `Unit` `setNextFocusForwardId(nextFocusForwardId: Int)` `Unit` `setNextFocusLeftId(nextFocusLeftId: Int)` `Unit` `setNextFocusRightId(nextFocusRightId: Int)` `Unit` `setNextFocusUpId(nextFocusUpId: Int)` `Unit` `setOnApplyWindowInsetsListener(
listener: View.OnApplyWindowInsetsListener!
)` `Unit` `setOnCapturedPointerListener(l: View.OnCapturedPointerListener!)` `Unit` `setOnClickListener(l: View.OnClickListener!)` `Unit` `setOnContextClickListener(l: View.OnContextClickListener!)` `Unit` `setOnCreateContextMenuListener(l: View.OnCreateContextMenuListener!)` `Unit` `setOnDragListener(l: View.OnDragListener!)` `Unit` `setOnFocusChangeListener(l: View.OnFocusChangeListener!)` `Unit` `setOnGenericMotionListener(l: View.OnGenericMotionListener!)` `Unit` `setOnHoverListener(l: View.OnHoverListener!)` `Unit` `setOnKeyListener(l: View.OnKeyListener!)` `Unit` `setOnLongClickListener(l: View.OnLongClickListener!)` `Unit` `setOnReceiveContentListener(
mimeTypes: Array<String!>!,
listener: OnReceiveContentListener!
)` `Unit` `setOnScrollChangeListener(l: View.OnScrollChangeListener!)` `Unit` `setOnSystemUiVisibilityChangeListener(
l: View.OnSystemUiVisibilityChangeListener!
)`

**This function is deprecated.**
`Unit` `setOnTouchListener(l: View.OnTouchListener!)` `Unit` `setOutlineAmbientShadowColor(color: Int)` `Unit` `setOutlineProvider(provider: ViewOutlineProvider!)` `Unit` `setOutlineSpotShadowColor(color: Int)` `Unit` `setOverScrollMode(overScrollMode: Int)` `Unit` `setPadding(left: Int, top: Int, right: Int, bottom: Int)` `Unit` `setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)` `Unit` `setPendingCredentialRequest(
request: GetCredentialRequest!,
callback: OutcomeReceiver<GetCredentialResponse!, GetCredentialException!>!
)` `Unit` `setPivotX(pivotX: Float)` `Unit` `setPivotY(pivotY: Float)` `Unit` `setPointerIcon(pointerIcon: PointerIcon!)` `Unit` `setPreferKeepClear(preferKeepClear: Boolean)` `Unit` `setPreferKeepClearRects(rects: (Mutable)List<Rect!>!)` `Unit` `setPressed(pressed: Boolean)` `Unit` `setRenderEffect(renderEffect: RenderEffect!)` `Unit` `setRequestedFrameRate(frameRate: Float)` `Unit` `setRevealOnFocusHint(revealOnFocus: Boolean)` `Unit` `setRight(right: Int)` `Unit` `setRotation(rotation: Float)` `Unit` `setRotationX(rotationX: Float)` `Unit` `setRotationY(rotationY: Float)` `Unit` `setSaveEnabled(enabled: Boolean)` `Unit` `setSaveFromParentEnabled(enabled: Boolean)` `Unit` `setScaleX(scaleX: Float)` `Unit` `setScaleY(scaleY: Float)` `Unit` `setScreenReaderFocusable(screenReaderFocusable: Boolean)` `Unit` `setScrollBarDefaultDelayBeforeFade(
scrollBarDefaultDelayBeforeFade: Int
)` `Unit` `setScrollBarFadeDuration(scrollBarFadeDuration: Int)` `Unit` `setScrollBarSize(scrollBarSize: Int)` `Unit` `setScrollBarStyle(style: Int)` `Unit` `setScrollCaptureCallback(callback: ScrollCaptureCallback!)` `Unit` `setScrollCaptureHint(hint: Int)` `Unit` `setScrollContainer(isScrollContainer: Boolean)` `Unit` `setScrollIndicators(indicators: Int)` `Unit` `setScrollX(value: Int)` `Unit` `setScrollY(value: Int)` `Unit` `setScrollbarFadingEnabled(fadeScrollbars: Boolean)` `Unit` `setSelected(selected: Boolean)` `Unit` `setSoundEffectsEnabled(soundEffectsEnabled: Boolean)` `Unit` `setStateDescription(stateDescription: CharSequence!)` `Unit` `setStateListAnimator(stateListAnimator: StateListAnimator!)` `Unit` `setSupplementalDescription(supplementalDescription: CharSequence!)` `Unit` `setSystemGestureExclusionRects(rects: (Mutable)List<Rect!>!)` `Unit` `setSystemUiVisibility(visibility: Int)`

**This function is deprecated.**
`Unit` `setTag(key: Int, tag: Any!)` `Unit` `setTextAlignment(textAlignment: Int)` `Unit` `setTextDirection(textDirection: Int)` `Unit` `setTooltipText(tooltipText: CharSequence!)` `Unit` `setTop(top: Int)` `Unit` `setTouchDelegate(delegate: TouchDelegate!)` `Unit` `setTransitionAlpha(alpha: Float)` `Unit` `setTransitionName(transitionName: String!)` `Unit` `setTransitionVisibility(visibility: Int)` `Unit` `setTranslationX(translationX: Float)` `Unit` `setTranslationY(translationY: Float)` `Unit` `setTranslationZ(translationZ: Float)` `Unit` `setVerticalFadingEdgeEnabled(verticalFadingEdgeEnabled: Boolean)` `Unit` `setVerticalScrollBarEnabled(verticalScrollBarEnabled: Boolean)` `Unit` `setVerticalScrollbarPosition(position: Int)` `Unit` `setVerticalScrollbarThumbDrawable(drawable: Drawable!)` `Unit` `setVerticalScrollbarTrackDrawable(drawable: Drawable!)` `Unit` `setViewTranslationCallback(callback: ViewTranslationCallback!)` `Unit` `setWillNotCacheDrawing(willNotCacheDrawing: Boolean)`

**This function is deprecated.**
`Unit` `setWillNotDraw(willNotDraw: Boolean)` `Unit` `setWindowInsetsAnimationCallback(
callback: WindowInsetsAnimation.Callback!
)` `Unit` `setX(x: Float)` `Unit` `setY(y: Float)` `Unit` `setZ(z: Float)` `Boolean` `showContextMenu()` `ActionMode!` `startActionMode(callback: ActionMode.Callback!)` `Unit` `startAnimation(animation: Animation!)` `Boolean` `startDrag(
data: ClipData!,
shadowBuilder: View.DragShadowBuilder!,
myLocalState: Any!,
flags: Int
)`

**This function is deprecated.**
`Boolean` `startDragAndDrop(
data: ClipData!,
shadowBuilder: View.DragShadowBuilder!,
myLocalState: Any!,
flags: Int
)` `Boolean` `startNestedScroll(axes: Int)` `Unit` `stopNestedScroll()` `String!` `toString()` `Unit` `transformMatrixToGlobal(matrix: Matrix!)` `Unit` `transformMatrixToLocal(matrix: Matrix!)` `java-static Unit` `unregisterCalledFromWrongThreadListener(
listener: View.CalledFromWrongThreadListener!
)` `Unit` `unscheduleDrawable(who: Drawable!)` `Unit` `updateDragShadow(shadowBuilder: View.DragShadowBuilder!)` `Boolean` `verifyDrawable(who: Drawable!)` `Boolean` `willNotCacheDrawing()`

**This function is deprecated.**
`Boolean` `willNotDraw()`

## Public constructors

### SphericalGLSurfaceView

```
SphericalGLSurfaceView(context: Context!)
```

### SphericalGLSurfaceView

```
SphericalGLSurfaceView(context: Context!, attributeSet: AttributeSet?)
```

## Public functions

### addVideoSurfaceListener

```
fun addVideoSurfaceListener(
    listener: SphericalGLSurfaceView.VideoSurfaceListener!
): Unit
```

Adds a `VideoSurfaceListener`.

| Parameters |
|---|---|
| `listener: SphericalGLSurfaceView.VideoSurfaceListener!` | The listener to add. |

### getCameraMotionListener

```
fun getCameraMotionListener(): CameraMotionListener!
```

Returns the `CameraMotionListener` that should be registered during playback.

### getVideoFrameMetadataListener

```
fun getVideoFrameMetadataListener(): VideoFrameMetadataListener!
```

Returns the `VideoFrameMetadataListener` that should be registered during playback.

### getVideoSurface

```
fun getVideoSurface(): Surface?
```

Returns the `Surface` to which video frames should be rendered, or `null` if it has not been created.

### onPause

```
fun onPause(): Unit
```

### onResume

```
fun onResume(): Unit
```

### removeVideoSurfaceListener

```
fun removeVideoSurfaceListener(
    listener: SphericalGLSurfaceView.VideoSurfaceListener!
): Unit
```

Removes a `VideoSurfaceListener`.

| Parameters |
|---|---|
| `listener: SphericalGLSurfaceView.VideoSurfaceListener!` | The listener to remove. |

### setDefaultStereoMode

```
fun setDefaultStereoMode(@C.StereoMode stereoMode: Int): Unit
```

Sets the default stereo mode. If the played video doesn't contain a stereo mode the default one is used.

| Parameters |
|---|---|
| `@C.StereoMode stereoMode: Int` | A `C.StereoMode` value. Value is one of the following: - `Format.NO_VALUE` <br /> |

### setUseSensorRotation

```
fun setUseSensorRotation(useSensorRotation: Boolean): Unit
```

Sets whether to use the orientation sensor for rotation (if available).

## Protected functions

### onDetachedFromWindow

```
protected fun onDetachedFromWindow(): Unit
```