SubtitleView

com.bitmovin.player

SubtitleView

class SubtitleView@JvmOverloadsconstructor(context: Context, attrs: AttributeSet? = null) : SubtitleRendererView

A view that renders subtitles for a Player. Can be used to customize subtitles rendering when subtitles are not already rendered as part of the PlayerView's UI handling (see UiConfig.Disabled).

Constructors

SubtitleView@JvmOverloads
constructor(context: Context, attrs: AttributeSet? = null)

Properties

NameSummary
accessibilityClassNameopen val accessibilityClassName: CharSequence?
accessibilityDelegateopen var accessibilityDelegate: View.AccessibilityDelegate?
accessibilityLiveRegionopen var accessibilityLiveRegion: Int
accessibilityNodeProvideropen val accessibilityNodeProvider: AccessibilityNodeProvider?
accessibilityPaneTitleopen var accessibilityPaneTitle: CharSequence?
accessibilityTraversalAfteropen var accessibilityTraversalAfter: Int
accessibilityTraversalBeforeopen var accessibilityTraversalBefore: Int
allowedHandwritingDelegatePackageNameopen val allowedHandwritingDelegatePackageName: String?
allowedHandwritingDelegatorPackageNameopen val allowedHandwritingDelegatorPackageName: String?
alphaopen var alpha: Float
animationopen var animation: Animation?
animationMatrixopen var animationMatrix: Matrix?
applicationWindowTokenopen val applicationWindowToken: IBinder?
attributeSourceResourceMapopen val attributeSourceResourceMap: Map<Int?, Int?>
autofillHintsopen val autofillHints: Array<out String?>??
autofillIdvar autofillId: AutofillId?
autofillTypeopen val autofillType: Int
autofillValueopen val autofillValue: AutofillValue?
backgroundopen var background: Drawable?
backgroundTintBlendModeopen var backgroundTintBlendMode: BlendMode?
backgroundTintListopen var backgroundTintList: ColorStateList?
backgroundTintModeopen var backgroundTintMode: PorterDuff.Mode?
baselineopen val baseline: Int
bottomvar bottom: Int
cameraDistanceopen var cameraDistance: Float
childCountopen val childCount: Int
clipBoundsopen var clipBounds: Rect?
clipChildrenopen var clipChildren: Boolean
clipToOutlinevar clipToOutline: Boolean
clipToPaddingopen var clipToPadding: Boolean
considerGoneChildrenWhenMeasuringopen val considerGoneChildrenWhenMeasuring: Boolean
contentCaptureSessionvar contentCaptureSession: ContentCaptureSession?
contentDescriptionopen var contentDescription: CharSequence?
contentSensitivityvar contentSensitivity: Int
contextval context: Context?
defaultFocusHighlightEnabledvar defaultFocusHighlightEnabled: Boolean
descendantFocusabilityopen var descendantFocusability: Int
displayopen val display: Display?
drawableStateval drawableState: IntArray?
drawingCacheopen val drawingCache: Bitmap?
drawingCacheBackgroundColoropen var drawingCacheBackgroundColor: Int
drawingCacheQualityopen var drawingCacheQuality: Int
drawingTimeopen val drawingTime: Long
elevationopen var elevation: Float
explicitStyleopen val explicitStyle: Int
filterTouchesWhenObscuredopen var filterTouchesWhenObscured: Boolean
fitsSystemWindowsopen var fitsSystemWindows: Boolean
focusableopen var focusable: Int
focusedChildopen val focusedChild: View?
foregroundopen var foreground: Drawable?
foregroundGravityopen var foregroundGravity: Int
foregroundTintBlendModeopen var foregroundTintBlendMode: BlendMode?
foregroundTintListopen var foregroundTintList: ColorStateList?
foregroundTintModeopen var foregroundTintMode: PorterDuff.Mode?
frameContentVelocityopen var frameContentVelocity: Float
handleropen val handler: Handler?
handwritingBoundsOffsetBottomopen val handwritingBoundsOffsetBottom: Float
handwritingBoundsOffsetLeftopen val handwritingBoundsOffsetLeft: Float
handwritingBoundsOffsetRightopen val handwritingBoundsOffsetRight: Float
handwritingBoundsOffsetTopopen val handwritingBoundsOffsetTop: Float
handwritingDelegateFlagsopen var handwritingDelegateFlags: Int
handwritingDelegatorCallbackopen var handwritingDelegatorCallback: Runnable?
hasOverlappingRenderingval hasOverlappingRendering: Boolean
heightval height: Int
horizontalFadingEdgeLengthopen val horizontalFadingEdgeLength: Int
horizontalScrollbarThumbDrawableopen var horizontalScrollbarThumbDrawable: Drawable?
horizontalScrollbarTrackDrawableopen var horizontalScrollbarTrackDrawable: Drawable?
idopen var id: Int
importantForAccessibilityopen var importantForAccessibility: Int
importantForAutofillopen var importantForAutofill: Int
importantForContentCaptureopen var importantForContentCapture: Int
isAccessibilityDataSensitiveopen val isAccessibilityDataSensitive: Boolean
isAccessibilityFocusedopen val isAccessibilityFocused: Boolean
isAccessibilityHeadingopen var isAccessibilityHeading: Boolean
isActivatedopen var isActivated: Boolean
isAlwaysDrawnWithCacheEnabledopen var isAlwaysDrawnWithCacheEnabled: Boolean
isAnimationCacheEnabledopen var isAnimationCacheEnabled: Boolean
isAttachedToWindowopen val isAttachedToWindow: Boolean
isAutoHandwritingEnabledopen var isAutoHandwritingEnabled: Boolean
isClickableopen var isClickable: Boolean
isContentSensitiveval isContentSensitive: Boolean
isContextClickableopen var isContextClickable: Boolean
isCredentialopen val isCredential: Boolean
isDirtyopen val isDirty: Boolean
isDrawingCacheEnabledopen var isDrawingCacheEnabled: Boolean
isDuplicateParentStateEnabledopen var isDuplicateParentStateEnabled: Boolean
isEnabledopen var isEnabled: Boolean
isFocusablevar isFocusable: Boolean
isFocusableInTouchModevar isFocusableInTouchMode: Boolean
isFocusedopen val isFocused: Boolean
isFocusedByDefaultvar isFocusedByDefault: Boolean
isForceDarkAllowedopen var isForceDarkAllowed: Boolean
isHandwritingDelegateopen val isHandwritingDelegate: Boolean
isHapticFeedbackEnabledopen var isHapticFeedbackEnabled: Boolean
isHardwareAcceleratedopen val isHardwareAccelerated: Boolean
isHorizontalFadingEdgeEnabledopen var isHorizontalFadingEdgeEnabled: Boolean
isHorizontalScrollBarEnabledopen var isHorizontalScrollBarEnabled: Boolean
isHoveredopen var isHovered: Boolean
isImportantForAccessibilityopen val isImportantForAccessibility: Boolean
isImportantForAutofillval isImportantForAutofill: Boolean
isImportantForContentCaptureval isImportantForContentCapture: Boolean
isInEditModeopen val isInEditMode: Boolean
isInLayoutopen val isInLayout: Boolean
isInTouchModeopen val isInTouchMode: Boolean
isKeyboardNavigationClustervar isKeyboardNavigationCluster: Boolean
isLaidOutopen val isLaidOut: Boolean
isLayoutDirectionResolvedopen override val isLayoutDirectionResolved: Boolean
isLayoutRequestedopen override val isLayoutRequested: Boolean
isLayoutSuppressedopen val isLayoutSuppressed: Boolean
isLongClickableopen var isLongClickable: Boolean
isMotionEventSplittingEnabledopen var isMotionEventSplittingEnabled: Boolean
isNestedScrollingEnabledopen var isNestedScrollingEnabled: Boolean
isOpaqueopen val isOpaque: Boolean
isPaddingRelativeopen val isPaddingRelative: Boolean
isPivotSetopen val isPivotSet: Boolean
isPreferKeepClearvar isPreferKeepClear: Boolean
isPressedopen var isPressed: Boolean
isSaveEnabledopen var isSaveEnabled: Boolean
isSaveFromParentEnabledopen var isSaveFromParentEnabled: Boolean
isScreenReaderFocusableopen var isScreenReaderFocusable: Boolean
isScrollbarFadingEnabledopen var isScrollbarFadingEnabled: Boolean
isScrollContaineropen var isScrollContainer: Boolean
isSelectedopen var isSelected: Boolean
isShowingLayoutBoundsval isShowingLayoutBounds: Boolean
isShownopen val isShown: Boolean
isSoundEffectsEnabledopen var isSoundEffectsEnabled: Boolean
isTemporarilyDetachedval isTemporarilyDetached: Boolean
isTextAlignmentResolvedopen override val isTextAlignmentResolved: Boolean
isTextDirectionResolvedopen override val isTextDirectionResolved: Boolean
isTransitionGroupopen var isTransitionGroup: Boolean
isVerticalFadingEdgeEnabledopen var isVerticalFadingEdgeEnabled: Boolean
isVerticalScrollBarEnabledopen var isVerticalScrollBarEnabled: Boolean
keepScreenOnopen var keepScreenOn: Boolean
keyDispatcherStateopen val keyDispatcherState: KeyEvent.DispatcherState?
labelForopen var labelFor: Int
layerTypeopen val layerType: Int
layoutAnimationopen var layoutAnimation: LayoutAnimationController?
layoutAnimationListeneropen var layoutAnimationListener: Animation.AnimationListener?
layoutDirectionopen override var layoutDirection: Int
layoutModeopen var layoutMode: Int
layoutParamsopen var layoutParams: ViewGroup.LayoutParams?
layoutTransitionopen var layoutTransition: LayoutTransition?
leftvar left: Int
matrixopen val matrix: Matrix?
measureAllChildrenopen var measureAllChildren: Boolean
measuredHeightval measuredHeight: Int
measuredHeightAndStateval measuredHeightAndState: Int
measuredStateval measuredState: Int
measuredWidthval measuredWidth: Int
measuredWidthAndStateval measuredWidthAndState: Int
minimumHeightopen var minimumHeight: Int
minimumWidthopen var minimumWidth: Int
nestedScrollAxesopen val nestedScrollAxes: Int
nextClusterForwardIdopen var nextClusterForwardId: Int
nextFocusDownIdopen var nextFocusDownId: Int
nextFocusForwardIdopen var nextFocusForwardId: Int
nextFocusLeftIdopen var nextFocusLeftId: Int
nextFocusRightIdopen var nextFocusRightId: Int
nextFocusUpIdopen var nextFocusUpId: Int
onFocusChangeListeneropen var onFocusChangeListener: View.OnFocusChangeListener?
outlineAmbientShadowColoropen var outlineAmbientShadowColor: Int
outlineProvideropen var outlineProvider: ViewOutlineProvider?
outlineSpotShadowColoropen var outlineSpotShadowColor: Int
overlayopen val overlay: ViewGroupOverlay?
overScrollModeopen var overScrollMode: Int
paddingBottomopen val paddingBottom: Int
paddingEndopen val paddingEnd: Int
paddingLeftopen val paddingLeft: Int
paddingRightopen val paddingRight: Int
paddingStartopen val paddingStart: Int
paddingTopopen val paddingTop: Int
parentoverride val parent: ViewParent?
parentForAccessibilityopen override val parentForAccessibility: ViewParent?
pendingCredentialCallbackval pendingCredentialCallback: OutcomeReceiver<GetCredentialResponse?, GetCredentialException?>?
pendingCredentialRequestval pendingCredentialRequest: GetCredentialRequest?
persistentDrawingCacheopen var persistentDrawingCache: Int
pivotXopen var pivotX: Float
pivotYopen var pivotY: Float
pointerIconopen var pointerIcon: PointerIcon?
preferKeepClearRectsvar preferKeepClearRects: List<Rect?>
receiveContentMimeTypesopen val receiveContentMimeTypes: Array<out String?>??
requestedFrameRateopen var requestedFrameRate: Float
resourcesopen val resources: Resources?
revealOnFocusHintvar revealOnFocusHint: Boolean
rightvar right: Int
rootSurfaceControlopen val rootSurfaceControl: AttachedSurfaceControl?
rootViewopen val rootView: View?
rootWindowInsetsopen val rootWindowInsets: WindowInsets?
rotationopen var rotation: Float
rotationXopen var rotationX: Float
rotationYopen var rotationY: Float
scaleXopen var scaleX: Float
scaleYopen var scaleY: Float
scrollBarDefaultDelayBeforeFadeopen var scrollBarDefaultDelayBeforeFade: Int
scrollBarFadeDurationopen var scrollBarFadeDuration: Int
scrollBarSizeopen var scrollBarSize: Int
scrollBarStyleopen var scrollBarStyle: Int
scrollCaptureHintopen var scrollCaptureHint: Int
scrollIndicatorsopen var scrollIndicators: Int
scrollXvar scrollX: Int
scrollYvar scrollY: Int
solidColoropen val solidColor: Int
sourceLayoutResIdopen val sourceLayoutResId: Int
stateDescriptionvar stateDescription: CharSequence?
stateListAnimatoropen var stateListAnimator: StateListAnimator?
supplementalDescriptionopen var supplementalDescription: CharSequence?
systemGestureExclusionRectsopen var systemGestureExclusionRects: List<Rect?>
systemUiVisibilityopen var systemUiVisibility: Int
tagopen var tag: Any?
textAlignmentopen override var textAlignment: Int
textDirectionopen override var textDirection: Int
tooltipTextopen var tooltipText: CharSequence?
topvar top: Int
touchablesopen val touchables: ArrayList<View?>?
touchDelegateopen var touchDelegate: TouchDelegate?
touchscreenBlocksFocusopen var touchscreenBlocksFocus: Boolean
transitionAlphaopen var transitionAlpha: Float
transitionNameopen var transitionName: String?
translationXopen var translationX: Float
translationYopen var translationY: Float
translationZopen var translationZ: Float
uniqueDrawingIdopen val uniqueDrawingId: Long
verticalFadingEdgeLengthopen val verticalFadingEdgeLength: Int
verticalScrollbarPositionopen var verticalScrollbarPosition: Int
verticalScrollbarThumbDrawableopen var verticalScrollbarThumbDrawable: Drawable?
verticalScrollbarTrackDrawableopen var verticalScrollbarTrackDrawable: Drawable?
verticalScrollbarWidthopen val verticalScrollbarWidth: Int
viewTranslationResponseopen val viewTranslationResponse: ViewTranslationResponse?
viewTreeObserveropen val viewTreeObserver: ViewTreeObserver?
visibilityopen var visibility: Int
widthval width: Int
windowIdopen val windowId: WindowId?
windowInsetsControlleropen val windowInsetsController: WindowInsetsController?
windowSystemUiVisibilityopen val windowSystemUiVisibility: Int
windowTokenopen val windowToken: IBinder?
windowVisibilityopen val windowVisibility: Int
xopen var x: Float
yopen var y: Float
zopen var z: Float

Functions

NameSummary
addChildrenForAccessibilityopen fun addChildrenForAccessibility(outChildren: ArrayList<View?>?)
addExtraDataToAccessibilityNodeInfoopen fun addExtraDataToAccessibilityNodeInfo(info: AccessibilityNodeInfo, extraDataKey: String, arguments: Bundle?)
addFocusablesopen fun addFocusables(views: ArrayList<View?>?, direction: Int)
open fun addFocusables(views: ArrayList<View?>?, direction: Int, focusableMode: Int)
addKeyboardNavigationClustersopen fun addKeyboardNavigationClusters(views: Collection<View?>, direction: Int)
addOnAttachStateChangeListeneropen fun addOnAttachStateChangeListener(listener: View.OnAttachStateChangeListener?)
addOnLayoutChangeListeneropen fun addOnLayoutChangeListener(listener: View.OnLayoutChangeListener?)
addOnUnhandledKeyEventListeneropen fun addOnUnhandledKeyEventListener(listener: View.OnUnhandledKeyEventListener?)
addStatesFromChildrenopen fun addStatesFromChildren(): Boolean
addTouchablesopen fun addTouchables(views: ArrayList<View?>?)
addViewopen fun addView(child: View?)
open fun addView(child: View?, index: Int)
open fun addView(child: View?, index: Int, params: ViewGroup.LayoutParams?)
open fun addView(child: View?, width: Int, height: Int)
open fun addView(child: View?, params: ViewGroup.LayoutParams?)
animateopen fun animate(): ViewPropertyAnimator?
announceForAccessibilityopen fun announceForAccessibility(text: CharSequence?)
autofillopen fun autofill(values: SparseArray<AutofillValue?>)
open fun autofill(value: AutofillValue?)
bringChildToFrontopen fun bringChildToFront(child: View?)
bringToFrontopen fun bringToFront()
buildDrawingCacheopen fun buildDrawingCache()
open fun buildDrawingCache(autoScale: Boolean)
buildLayeropen fun buildLayer()
callOnClickopen fun callOnClick(): Boolean
cancelDragAndDropfun cancelDragAndDrop()
cancelLongPressopen fun cancelLongPress()
cancelPendingInputEventsfun cancelPendingInputEvents()
canResolveLayoutDirectionopen fun canResolveLayoutDirection(): Boolean
canResolveTextAlignmentopen fun canResolveTextAlignment(): Boolean
canResolveTextDirectionopen fun canResolveTextDirection(): Boolean
canScrollHorizontallyopen fun canScrollHorizontally(direction: Int): Boolean
canScrollVerticallyopen fun canScrollVertically(direction: Int): Boolean
checkInputConnectionProxyopen fun checkInputConnectionProxy(view: View?): Boolean
childDrawableStateChangedopen fun childDrawableStateChanged(child: View)
childHasTransientStateChangedopen fun childHasTransientStateChanged(child: View, childHasTransientState: Boolean)
clearAnimationopen fun clearAnimation()
clearChildFocusopen fun clearChildFocus(child: View?)
clearDisappearingChildrenopen fun clearDisappearingChildren()
clearFocusopen fun clearFocus()
clearPendingCredentialRequestopen fun clearPendingCredentialRequest()
clearViewTranslationCallbackopen fun clearViewTranslationCallback()
computeScrollopen fun computeScroll()
computeSystemWindowInsetsopen fun computeSystemWindowInsets(in: WindowInsets?, outLocalInsets: Rect?): WindowInsets?
createAccessibilityNodeInfoopen fun createAccessibilityNodeInfo(): AccessibilityNodeInfo?
createContextMenuopen fun createContextMenu(menu: ContextMenu?)
destroyDrawingCacheopen fun destroyDrawingCache()
dispatchApplyWindowInsetsopen fun dispatchApplyWindowInsets(insets: WindowInsets?): WindowInsets?
dispatchCapturedPointerEventopen fun dispatchCapturedPointerEvent(event: MotionEvent?): Boolean
dispatchConfigurationChangedopen fun dispatchConfigurationChanged(newConfig: Configuration?)
dispatchCreateViewTranslationRequestopen fun dispatchCreateViewTranslationRequest(viewIds: Map<AutofillId?, LongArray?>, supportedFormats: IntArray, capability: TranslationCapability?, requests: List<ViewTranslationRequest?>)
dispatchDisplayHintopen fun dispatchDisplayHint(hint: Int)
dispatchDragEventopen fun dispatchDragEvent(event: DragEvent?): Boolean
dispatchDrawableHotspotChangedopen fun dispatchDrawableHotspotChanged(x: Float, y: Float)
dispatchFinishTemporaryDetachopen fun dispatchFinishTemporaryDetach()
dispatchGenericMotionEventopen fun dispatchGenericMotionEvent(event: MotionEvent?): Boolean
dispatchKeyEventopen fun dispatchKeyEvent(event: KeyEvent?): Boolean
dispatchKeyEventPreImeopen fun dispatchKeyEventPreIme(event: KeyEvent?): Boolean
dispatchKeyShortcutEventopen fun dispatchKeyShortcutEvent(event: KeyEvent?): Boolean
dispatchNestedFlingopen fun dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
dispatchNestedPreFlingopen fun dispatchNestedPreFling(velocityX: Float, velocityY: Float): Boolean
dispatchNestedPrePerformAccessibilityActionopen fun dispatchNestedPrePerformAccessibilityAction(action: Int, arguments: Bundle?): Boolean
dispatchNestedPreScrollopen fun dispatchNestedPreScroll(dx: Int, dy: Int, consumed: IntArray?, offsetInWindow: IntArray?): Boolean
dispatchNestedScrollopen fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: IntArray?): Boolean
dispatchPointerCaptureChangedopen fun dispatchPointerCaptureChanged(hasCapture: Boolean)
dispatchPopulateAccessibilityEventopen fun dispatchPopulateAccessibilityEvent(event: AccessibilityEvent?): Boolean
dispatchProvideAutofillStructureopen fun dispatchProvideAutofillStructure(structure: ViewStructure, flags: Int)
dispatchProvideStructureopen fun dispatchProvideStructure(structure: ViewStructure?)
dispatchScrollCaptureSearchopen fun dispatchScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget?>)
dispatchSetActivatedopen fun dispatchSetActivated(activated: Boolean)
dispatchSetSelectedopen fun dispatchSetSelected(selected: Boolean)
dispatchStartTemporaryDetachopen fun dispatchStartTemporaryDetach()
dispatchSystemUiVisibilityChangedopen fun dispatchSystemUiVisibilityChanged(visible: Int)
dispatchTouchEventopen fun dispatchTouchEvent(ev: MotionEvent?): Boolean
dispatchTrackballEventopen fun dispatchTrackballEvent(event: MotionEvent?): Boolean
dispatchUnhandledMoveopen fun dispatchUnhandledMove(focused: View?, direction: Int): Boolean
dispatchWindowFocusChangedopen fun dispatchWindowFocusChanged(hasFocus: Boolean)
dispatchWindowInsetsAnimationEndopen fun dispatchWindowInsetsAnimationEnd(animation: WindowInsetsAnimation)
dispatchWindowInsetsAnimationPrepareopen fun dispatchWindowInsetsAnimationPrepare(animation: WindowInsetsAnimation)
dispatchWindowInsetsAnimationProgressopen fun dispatchWindowInsetsAnimationProgress(insets: WindowInsets, runningAnimations: List<WindowInsetsAnimation?>): WindowInsets
dispatchWindowInsetsAnimationStartopen fun dispatchWindowInsetsAnimationStart(animation: WindowInsetsAnimation, bounds: WindowInsetsAnimation.Bounds): WindowInsetsAnimation.Bounds
dispatchWindowSystemUiVisiblityChangedopen fun dispatchWindowSystemUiVisiblityChanged(visible: Int)
dispatchWindowVisibilityChangedopen fun dispatchWindowVisibilityChanged(visibility: Int)
drawopen fun draw(canvas: Canvas)
drawableHotspotChangedopen fun drawableHotspotChanged(x: Float, y: Float)
endViewTransitionopen fun endViewTransition(view: View?)
findFocusopen fun findFocus(): View?
findOnBackInvokedDispatcherfun findOnBackInvokedDispatcher(): OnBackInvokedDispatcher?
findOnBackInvokedDispatcherForChildopen fun findOnBackInvokedDispatcherForChild(child: View, requester: View): OnBackInvokedDispatcher?
findViewByIdfun <T : View?> findViewById(id: Int): T?
findViewsWithTextopen fun findViewsWithText(outViews: ArrayList<View?>?, text: CharSequence?, flags: Int)
findViewWithTagfun <T : View?> findViewWithTag(tag: Any?): T?
focusableViewAvailableopen fun focusableViewAvailable(v: View?)
focusSearchopen fun focusSearch(direction: Int): View?
open fun focusSearch(focused: View?, direction: Int): View?
forceHasOverlappingRenderingopen fun forceHasOverlappingRendering(hasOverlappingRendering: Boolean)
forceLayoutopen fun forceLayout()
gatherTransparentRegionopen fun gatherTransparentRegion(region: Region?): Boolean
generateDisplayHashopen fun generateDisplayHash(hashAlgorithm: String, bounds: Rect?, executor: Executor, callback: DisplayHashResultCallback)
generateLayoutParamsopen fun generateLayoutParams(attrs: AttributeSet?): FrameLayout.LayoutParams?
getAttributeResolutionStackopen fun getAttributeResolutionStack(attribute: Int): IntArray
getChildAtopen fun getChildAt(index: Int): View?
getChildDrawingOrderfun getChildDrawingOrder(drawingPosition: Int): Int
getChildVisibleRectopen fun getChildVisibleRect(child: View?, r: Rect?, offset: Point?): Boolean
getDrawingRectopen fun getDrawingRect(outRect: Rect?)
getFocusablesopen fun getFocusables(direction: Int): ArrayList<View?>?
getFocusedRectopen fun getFocusedRect(r: Rect?)
getGlobalVisibleRectfun getGlobalVisibleRect(r: Rect?): Boolean
open fun getGlobalVisibleRect(r: Rect?, globalOffset: Point?): Boolean
getHitRectopen fun getHitRect(outRect: Rect?)
getLayoutDirectionopen fun getLayoutDirection(): Int
getLocalVisibleRectfun getLocalVisibleRect(r: Rect?): Boolean
getLocationInSurfaceopen fun getLocationInSurface(location: IntArray)
getLocationInWindowopen fun getLocationInWindow(outLocation: IntArray?)
getLocationOnScreenopen fun getLocationOnScreen(outLocation: IntArray?)
getParentfun getParent(): ViewParent?
getParentForAccessibilityopen fun getParentForAccessibility(): ViewParent?
getTextAlignmentopen fun getTextAlignment(): Int
getTextDirectionopen fun getTextDirection(): Int
getWindowVisibleDisplayFrameopen fun getWindowVisibleDisplayFrame(outRect: Rect?)
hasExplicitFocusableopen fun hasExplicitFocusable(): Boolean
hasFocusopen fun hasFocus(): Boolean
hasFocusableopen fun hasFocusable(): Boolean
hasNestedScrollingParentopen fun hasNestedScrollingParent(): Boolean
hasOnClickListenersopen fun hasOnClickListeners(): Boolean
hasOnLongClickListenersopen fun hasOnLongClickListeners(): Boolean
hasOverlappingRenderingopen fun hasOverlappingRendering(): Boolean
hasPointerCaptureopen fun hasPointerCapture(): Boolean
hasTransientStateopen fun hasTransientState(): Boolean
hasWindowFocusopen fun hasWindowFocus(): Boolean
indexOfChildopen fun indexOfChild(child: View?): Int
invalidateopen fun invalidate()
open fun invalidate(dirty: Rect?)
open fun invalidate(l: Int, t: Int, r: Int, b: Int)
invalidateChildfun invalidateChild(child: View?, dirty: Rect?)
invalidateChildInParentopen fun invalidateChildInParent(location: IntArray?, dirty: Rect?): ViewParent?
invalidateDrawableopen fun invalidateDrawable(drawable: Drawable)
invalidateOutlineopen fun invalidateOutline()
isLayoutDirectionResolvedopen fun isLayoutDirectionResolved(): Boolean
isLayoutRequestedopen fun isLayoutRequested(): Boolean
isTextAlignmentResolvedopen fun isTextAlignmentResolved(): Boolean
isTextDirectionResolvedopen fun isTextDirectionResolved(): Boolean
isVisibleToUserForAutofillopen fun isVisibleToUserForAutofill(virtualId: Int): Boolean
jumpDrawablesToCurrentStateopen fun jumpDrawablesToCurrentState()
keyboardNavigationClusterSearchopen fun keyboardNavigationClusterSearch(currentCluster: View?, direction: Int): View?
layoutfun layout(l: Int, t: Int, r: Int, b: Int)
measurefun measure(widthMeasureSpec: Int, heightMeasureSpec: Int)
notifySubtreeAccessibilityStateChangedopen fun notifySubtreeAccessibilityStateChanged(child: View, source: View, changeType: Int)
offsetDescendantRectToMyCoordsfun offsetDescendantRectToMyCoords(descendant: View?, rect: Rect?)
offsetLeftAndRightopen fun offsetLeftAndRight(offset: Int)
offsetRectIntoDescendantCoordsfun offsetRectIntoDescendantCoords(descendant: View?, rect: Rect?)
offsetTopAndBottomopen fun offsetTopAndBottom(offset: Int)
onApplyWindowInsetsopen fun onApplyWindowInsets(insets: WindowInsets?): WindowInsets?
onCancelPendingInputEventsopen fun onCancelPendingInputEvents()
onCapturedPointerEventopen fun onCapturedPointerEvent(event: MotionEvent?): Boolean
onCheckIsTextEditoropen fun onCheckIsTextEditor(): Boolean
onCreateInputConnectionopen fun onCreateInputConnection(outAttrs: EditorInfo?): InputConnection?
onCreateViewTranslationRequestopen fun onCreateViewTranslationRequest(supportedFormats: IntArray, requestsCollector: Consumer<ViewTranslationRequest?>)
onCreateVirtualViewTranslationRequestsopen fun onCreateVirtualViewTranslationRequests(virtualIds: LongArray, supportedFormats: IntArray, requestsCollector: Consumer<ViewTranslationRequest?>)
onDescendantInvalidatedopen fun onDescendantInvalidated(child: View, target: View)
onDragEventopen fun onDragEvent(event: DragEvent?): Boolean
onDrawForegroundopen fun onDrawForeground(canvas: Canvas)
onFilterTouchEventForSecurityopen fun onFilterTouchEventForSecurity(event: MotionEvent?): Boolean
onFinishTemporaryDetachopen fun onFinishTemporaryDetach()
onGenericMotionEventopen fun onGenericMotionEvent(event: MotionEvent?): Boolean
onHoverChangedopen fun onHoverChanged(hovered: Boolean)
onHoverEventopen fun onHoverEvent(event: MotionEvent?): Boolean
onInitializeAccessibilityEventopen fun onInitializeAccessibilityEvent(event: AccessibilityEvent?)
onInitializeAccessibilityNodeInfoopen fun onInitializeAccessibilityNodeInfo(info: AccessibilityNodeInfo?)
onInterceptHoverEventopen fun onInterceptHoverEvent(event: MotionEvent?): Boolean
onInterceptTouchEventopen fun onInterceptTouchEvent(ev: MotionEvent?): Boolean
onKeyDownopen fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean
onKeyLongPressopen fun onKeyLongPress(keyCode: Int, event: KeyEvent?): Boolean
onKeyMultipleopen fun onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent?): Boolean
onKeyPreImeopen fun onKeyPreIme(keyCode: Int, event: KeyEvent?): Boolean
onKeyShortcutopen fun onKeyShortcut(keyCode: Int, event: KeyEvent?): Boolean
onKeyUpopen fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean
onNestedFlingopen fun onNestedFling(target: View, velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
onNestedPreFlingopen fun onNestedPreFling(target: View, velocityX: Float, velocityY: Float): Boolean
onNestedPrePerformAccessibilityActionopen fun onNestedPrePerformAccessibilityAction(target: View, action: Int, args: Bundle?): Boolean
onNestedPreScrollopen fun onNestedPreScroll(target: View, dx: Int, dy: Int, consumed: IntArray)
onNestedScrollopen fun onNestedScroll(target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int)
onNestedScrollAcceptedopen fun onNestedScrollAccepted(child: View, target: View, axes: Int)
onPointerCaptureChangeopen fun onPointerCaptureChange(hasCapture: Boolean)
onPopulateAccessibilityEventopen fun onPopulateAccessibilityEvent(event: AccessibilityEvent?)
onProvideAutofillStructureopen fun onProvideAutofillStructure(structure: ViewStructure?, flags: Int)
onProvideAutofillVirtualStructureopen fun onProvideAutofillVirtualStructure(structure: ViewStructure?, flags: Int)
onProvideContentCaptureStructureopen fun onProvideContentCaptureStructure(structure: ViewStructure, flags: Int)
onProvideStructureopen fun onProvideStructure(structure: ViewStructure?)
onProvideVirtualStructureopen fun onProvideVirtualStructure(structure: ViewStructure?)
onReceiveContentopen fun onReceiveContent(payload: ContentInfo): ContentInfo?
onRequestSendAccessibilityEventopen fun onRequestSendAccessibilityEvent(child: View?, event: AccessibilityEvent?): Boolean
onResolvePointerIconopen fun onResolvePointerIcon(event: MotionEvent?, pointerIndex: Int): PointerIcon?
onRtlPropertiesChangedopen fun onRtlPropertiesChanged(layoutDirection: Int)
onScreenStateChangedopen fun onScreenStateChanged(screenState: Int)
onScrollCaptureSearchopen fun onScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget?>)
onStartNestedScrollopen fun onStartNestedScroll(child: View, target: View, nestedScrollAxes: Int): Boolean
onStartTemporaryDetachopen fun onStartTemporaryDetach()
onStopNestedScrollopen fun onStopNestedScroll(child: View)
onTouchEventopen fun onTouchEvent(event: MotionEvent?): Boolean
onTrackballEventopen fun onTrackballEvent(event: MotionEvent?): Boolean
onViewAddedopen fun onViewAdded(child: View?)
onViewRemovedopen fun onViewRemoved(child: View?)
onViewTranslationResponseopen fun onViewTranslationResponse(response: ViewTranslationResponse)
onVirtualViewTranslationResponsesopen fun onVirtualViewTranslationResponses(response: LongSparseArray<ViewTranslationResponse?>)
onVisibilityAggregatedopen fun onVisibilityAggregated(isVisible: Boolean)
onWindowFocusChangedopen fun onWindowFocusChanged(hasWindowFocus: Boolean)
onWindowSystemUiVisibilityChangedopen fun onWindowSystemUiVisibilityChanged(visible: Int)
performAccessibilityActionopen fun performAccessibilityAction(action: Int, arguments: Bundle?): Boolean
performClickopen fun performClick(): Boolean
performContextClickopen fun performContextClick(): Boolean
open fun performContextClick(x: Float, y: Float): Boolean
performHapticFeedbackopen fun performHapticFeedback(request: HapticFeedbackRequest): Boolean
open fun performHapticFeedback(feedbackConstant: Int): Boolean
open fun performHapticFeedback(feedbackConstant: Int, flags: Int): Boolean
performLongClickopen fun performLongClick(): Boolean
open fun performLongClick(x: Float, y: Float): Boolean
performReceiveContentopen fun performReceiveContent(payload: ContentInfo): ContentInfo?
playSoundEffectopen fun playSoundEffect(soundConstant: Int)
postopen fun post(action: Runnable?): Boolean
postDelayedopen fun postDelayed(action: Runnable?, delayMillis: Long): Boolean
postInvalidateopen fun postInvalidate()
open fun postInvalidate(left: Int, top: Int, right: Int, bottom: Int)
postInvalidateDelayedopen fun postInvalidateDelayed(delayMilliseconds: Long)
open fun postInvalidateDelayed(delayMilliseconds: Long, left: Int, top: Int, right: Int, bottom: Int)
postInvalidateOnAnimationopen fun postInvalidateOnAnimation()
open fun postInvalidateOnAnimation(left: Int, top: Int, right: Int, bottom: Int)
postOnAnimationopen fun postOnAnimation(action: Runnable?)
postOnAnimationDelayedopen fun postOnAnimationDelayed(action: Runnable?, delayMillis: Long)
propagateRequestedFrameRateopen fun propagateRequestedFrameRate(frameRate: Float, forceOverride: Boolean)
recomputeViewAttributesopen fun recomputeViewAttributes(child: View?)
refreshDrawableStateopen fun refreshDrawableState()
releasePointerCaptureopen fun releasePointerCapture()
removeAllViewsopen fun removeAllViews()
removeAllViewsInLayoutopen fun removeAllViewsInLayout()
removeCallbacksopen fun removeCallbacks(action: Runnable?): Boolean
removeOnAttachStateChangeListeneropen fun removeOnAttachStateChangeListener(listener: View.OnAttachStateChangeListener?)
removeOnLayoutChangeListeneropen fun removeOnLayoutChangeListener(listener: View.OnLayoutChangeListener?)
removeOnUnhandledKeyEventListeneropen fun removeOnUnhandledKeyEventListener(listener: View.OnUnhandledKeyEventListener?)
removeViewopen fun removeView(view: View?)
removeViewAtopen fun removeViewAt(index: Int)
removeViewInLayoutopen fun removeViewInLayout(view: View?)
removeViewsopen fun removeViews(start: Int, count: Int)
removeViewsInLayoutopen fun removeViewsInLayout(start: Int, count: Int)
reportAppJankStatsopen fun reportAppJankStats(appJankStats: AppJankStats)
requestApplyInsetsopen fun requestApplyInsets()
requestChildFocusopen fun requestChildFocus(child: View?, focused: View?)
requestChildRectangleOnScreenopen fun requestChildRectangleOnScreen(child: View, rectangle: Rect?, immediate: Boolean): Boolean
open fun requestChildRectangleOnScreen(child: View, rectangle: Rect, immediate: Boolean, source: Int): Boolean
requestDisallowInterceptTouchEventopen fun requestDisallowInterceptTouchEvent(disallowIntercept: Boolean)
requestFitSystemWindowsopen fun requestFitSystemWindows()
requestFocusfun requestFocus(): Boolean
fun requestFocus(direction: Int): Boolean
open fun requestFocus(direction: Int, previouslyFocusedRect: Rect?): Boolean
requestFocusFromTouchfun requestFocusFromTouch(): Boolean
requestLayoutopen fun requestLayout()
requestPointerCaptureopen fun requestPointerCapture()
open fun requestPointerCapture(mode: Int)
requestRectangleOnScreenopen fun requestRectangleOnScreen(rectangle: Rect?): Boolean
open fun requestRectangleOnScreen(rectangle: Rect?, immediate: Boolean): Boolean
open fun requestRectangleOnScreen(rectangle: Rect, immediate: Boolean, source: Int): Boolean
requestSendAccessibilityEventopen fun requestSendAccessibilityEvent(child: View, event: AccessibilityEvent?): Boolean
requestTransparentRegionopen fun requestTransparentRegion(child: View?)
requestUnbufferedDispatchfun requestUnbufferedDispatch(event: MotionEvent?)
fun requestUnbufferedDispatch(source: Int)
requireViewByIdfun <T : View?> requireViewById(id: Int): T & Any
resetPivotopen fun resetPivot()
restoreDefaultFocusopen fun restoreDefaultFocus(): Boolean
restoreHierarchyStateopen fun restoreHierarchyState(container: SparseArray<Parcelable?>?)
saveAttributeDataForStyleablefun saveAttributeDataForStyleable(context: Context, styleable: IntArray, attrs: AttributeSet?, t: TypedArray, defStyleAttr: Int, defStyleRes: Int)
saveHierarchyStateopen fun saveHierarchyState(container: SparseArray<Parcelable?>?)
scheduleDrawableopen fun scheduleDrawable(who: Drawable, what: Runnable, when: Long)
scheduleLayoutAnimationopen fun scheduleLayoutAnimation()
scrollByopen fun scrollBy(x: Int, y: Int)
scrollToopen fun scrollTo(x: Int, y: Int)
sendAccessibilityEventopen fun sendAccessibilityEvent(eventType: Int)
sendAccessibilityEventUncheckedopen fun sendAccessibilityEventUnchecked(event: AccessibilityEvent?)
setAccessibilityDataSensitiveopen fun setAccessibilityDataSensitive(accessibilityDataSensitive: Int)
setAddStatesFromChildrenopen fun setAddStatesFromChildren(addsStates: Boolean)
setAllowClickWhenDisabledopen fun setAllowClickWhenDisabled(clickableWhenDisabled: Boolean)
setAllowedHandwritingDelegatePackageopen fun setAllowedHandwritingDelegatePackage(allowedPackageName: String?)
setAllowedHandwritingDelegatorPackageopen fun setAllowedHandwritingDelegatorPackage(allowedPackageName: String?)
setApplyEmbeddedFontSizesopen override fun setApplyEmbeddedFontSizes(applyEmbeddedFontSizes: Boolean)
Sets whether font sizes embedded within the cues should be applied. Enabled by default. Only takes effect if setApplyEmbeddedStyles is set to true.
setApplyEmbeddedStylesopen override fun setApplyEmbeddedStyles(applyEmbeddedStyles: Boolean)
Sets whether styling embedded within the cues should be applied. Enabled by default. Overrides any setting made with setApplyEmbeddedFontSizes.
setAutofillHintsopen fun setAutofillHints(vararg autofillHints: String?)
setBackgroundColoropen fun setBackgroundColor(color: Int)
setBackgroundDrawableopen fun setBackgroundDrawable(background: Drawable?)
setBackgroundResourceopen fun setBackgroundResource(resid: Int)
setBottomPaddingFractionopen override fun setBottomPaddingFraction(bottomPaddingFraction: Float)
Sets the bottom padding fraction to apply when getLine is DIMEN_UNSET, as a fraction of the view's remaining height after its top and bottom padding have been subtracted.
setFadingEdgeLengthopen fun setFadingEdgeLength(length: Int)
setFixedTextSizeopen override fun setFixedTextSize(unit: Int, size: Float)
Set the text size to a given unit and value.
setFractionalTextSizeopen override fun setFractionalTextSize(fractionOfHeight: Float)
Sets the text size to be a fraction of the views remaining height after its top and bottom padding have been subtracted.
open override fun setFractionalTextSize(fractionOfHeight: Float, ignorePadding: Boolean)
Sets the text size to be a fraction of the height of this view.
setHandwritingBoundsOffsetsopen fun setHandwritingBoundsOffsets(offsetLeft: Float, offsetTop: Float, offsetRight: Float, offsetBottom: Float)
setHasTransientStateopen fun setHasTransientState(hasTransientState: Boolean)
setIsCredentialopen fun setIsCredential(isCredential: Boolean)
setIsHandwritingDelegateopen fun setIsHandwritingDelegate(isHandwritingDelegate: Boolean)
setLayerPaintopen fun setLayerPaint(paint: Paint?)
setLayerTypeopen fun setLayerType(layerType: Int, paint: Paint?)
setLeftTopRightBottomfun setLeftTopRightBottom(left: Int, top: Int, right: Int, bottom: Int)
setOnApplyWindowInsetsListeneropen fun setOnApplyWindowInsetsListener(listener: View.OnApplyWindowInsetsListener?)
setOnCapturedPointerListeneropen fun setOnCapturedPointerListener(l: View.OnCapturedPointerListener?)
setOnClickListeneropen fun setOnClickListener(l: View.OnClickListener?)
setOnContextClickListeneropen fun setOnContextClickListener(l: View.OnContextClickListener?)
setOnCreateContextMenuListeneropen fun setOnCreateContextMenuListener(l: View.OnCreateContextMenuListener?)
setOnDragListeneropen fun setOnDragListener(l: View.OnDragListener?)
setOnGenericMotionListeneropen fun setOnGenericMotionListener(l: View.OnGenericMotionListener?)
setOnHierarchyChangeListeneropen fun setOnHierarchyChangeListener(listener: ViewGroup.OnHierarchyChangeListener?)
setOnHoverListeneropen fun setOnHoverListener(l: View.OnHoverListener?)
setOnKeyListeneropen fun setOnKeyListener(l: View.OnKeyListener?)
setOnLongClickListeneropen fun setOnLongClickListener(l: View.OnLongClickListener?)
setOnReceiveContentListeneropen fun setOnReceiveContentListener(mimeTypes: Array<out String?>??, listener: OnReceiveContentListener?)
setOnScrollChangeListeneropen fun setOnScrollChangeListener(l: View.OnScrollChangeListener?)
setOnSystemUiVisibilityChangeListeneropen fun setOnSystemUiVisibilityChangeListener(l: View.OnSystemUiVisibilityChangeListener?)
setOnTouchListeneropen fun setOnTouchListener(l: View.OnTouchListener?)
setPaddingopen fun setPadding(left: Int, top: Int, right: Int, bottom: Int)
setPaddingRelativeopen fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)
setPendingCredentialRequestopen fun setPendingCredentialRequest(request: GetCredentialRequest, callback: OutcomeReceiver<GetCredentialResponse?, GetCredentialException?>)
setPlayeropen override fun setPlayer(player: Player?)
Set the Player for which the Cues should be rendered.
setRenderEffectopen fun setRenderEffect(renderEffect: RenderEffect?)
setScrollCaptureCallbackfun setScrollCaptureCallback(callback: ScrollCaptureCallback?)
setStyleopen override fun setStyle(style: CaptionStyle)
Sets the caption style.
setTransitionVisibilityopen fun setTransitionVisibility(visibility: Int)
setUserDefaultStyleopen override fun setUserDefaultStyle()
Sets the caption style to be equivalent to the one returned by getUserStyle, or to a default style before API level 19.
setUserDefaultTextSizeopen override fun setUserDefaultTextSize()
Sets the text size to one derived from getFontScale, or to a default size before API level 19.
setViewTranslationCallbackopen fun setViewTranslationCallback(callback: ViewTranslationCallback)
setWillNotCacheDrawingopen fun setWillNotCacheDrawing(willNotCacheDrawing: Boolean)
setWillNotDrawopen fun setWillNotDraw(willNotDraw: Boolean)
setWindowInsetsAnimationCallbackopen fun setWindowInsetsAnimationCallback(callback: WindowInsetsAnimation.Callback?)
shouldDelayChildPressedStateopen fun shouldDelayChildPressedState(): Boolean
showContextMenuopen fun showContextMenu(): Boolean
open fun showContextMenu(x: Float, y: Float): Boolean
showContextMenuForChildopen fun showContextMenuForChild(originalView: View?): Boolean
open fun showContextMenuForChild(originalView: View?, x: Float, y: Float): Boolean
startActionModeopen fun startActionMode(callback: ActionMode.Callback?): ActionMode?
open fun startActionMode(callback: ActionMode.Callback?, type: Int): ActionMode?
startActionModeForChildopen fun startActionModeForChild(originalView: View?, callback: ActionMode.Callback?): ActionMode?
open fun startActionModeForChild(originalView: View?, callback: ActionMode.Callback?, type: Int): ActionMode?
startAnimationopen fun startAnimation(animation: Animation?)
startDragfun startDrag(data: ClipData?, shadowBuilder: View.DragShadowBuilder?, myLocalState: Any?, flags: Int): Boolean
startDragAndDropfun startDragAndDrop(data: ClipData?, shadowBuilder: View.DragShadowBuilder?, myLocalState: Any?, flags: Int): Boolean
startLayoutAnimationopen fun startLayoutAnimation()
startNestedScrollopen fun startNestedScroll(axes: Int): Boolean
startViewTransitionopen fun startViewTransition(view: View?)
stopNestedScrollopen fun stopNestedScroll()
suppressLayoutopen fun suppressLayout(suppress: Boolean)
transformMatrixToGlobalopen fun transformMatrixToGlobal(matrix: Matrix)
transformMatrixToLocalopen fun transformMatrixToLocal(matrix: Matrix)
unscheduleDrawableopen fun unscheduleDrawable(who: Drawable, what: Runnable)
open fun unscheduleDrawable(who: Drawable?)
updateDragShadowfun updateDragShadow(shadowBuilder: View.DragShadowBuilder?)
updateViewLayoutopen fun updateViewLayout(view: View?, params: ViewGroup.LayoutParams?)
willNotCacheDrawingopen fun willNotCacheDrawing(): Boolean
willNotDrawopen fun willNotDraw(): Boolean