BaseCameraView

abstract class BaseCameraView : ViewGroup

Created by dodo on 25/08/16.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)

Types

Link copied to clipboard

Properties

Link copied to clipboard
val ALPHA: Property<View, Float>
val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE: String = "creditCardExpirationDate"
Link copied to clipboard
val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY: String = "creditCardExpirationDay"
val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH: String = "creditCardExpirationMonth"
val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR: String = "creditCardExpirationYear"
Link copied to clipboard
val AUTOFILL_HINT_CREDIT_CARD_NUMBER: String = "creditCardNumber"
Link copied to clipboard
val AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE: String = "creditCardSecurityCode"
Link copied to clipboard
val AUTOFILL_HINT_EMAIL_ADDRESS: String = "emailAddress"
Link copied to clipboard
Link copied to clipboard
val AUTOFILL_HINT_PASSWORD: String = "password"
Link copied to clipboard
Link copied to clipboard
val AUTOFILL_HINT_POSTAL_ADDRESS: String = "postalAddress"
Link copied to clipboard
val AUTOFILL_HINT_POSTAL_CODE: String = "postalCode"
Link copied to clipboard
val AUTOFILL_HINT_USERNAME: String = "username"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val FOCUS_DOWN: Int = 130
Link copied to clipboard
Link copied to clipboard
val FOCUS_LEFT: Int = 17
Link copied to clipboard
val FOCUS_RIGHT: Int = 66
Link copied to clipboard
val FOCUS_UP: Int = 33
Link copied to clipboard
val FOCUSABLE: Int = 1
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val GONE: Int = 8
Link copied to clipboard
val HAPTIC_FEEDBACK_ENABLED: Int = 268435456
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val INVISIBLE: Int = 4
Link copied to clipboard
val KEEP_SCREEN_ON: Int = 67108864
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val MEASURED_SIZE_MASK: Int = 16777215
Link copied to clipboard
val MEASURED_STATE_MASK: Int = -16777216
Link copied to clipboard
Link copied to clipboard
val NO_ID: Int = -1
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ROTATION: Property<View, Float>
Link copied to clipboard
val ROTATION_X: Property<View, Float>
Link copied to clipboard
val ROTATION_Y: Property<View, Float>
Link copied to clipboard
val SCALE_X: Property<View, Float>
Link copied to clipboard
val SCALE_Y: Property<View, Float>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val SOUND_EFFECTS_ENABLED: Int = 134217728
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val TRANSLATION_X: Property<View, Float>
Link copied to clipboard
val TRANSLATION_Y: Property<View, Float>
Link copied to clipboard
val TRANSLATION_Z: Property<View, Float>
Link copied to clipboard
val VISIBLE: Int = 0
Link copied to clipboard
val X: Property<View, Float>
Link copied to clipboard
val Y: Property<View, Float>
Link copied to clipboard
val Z: Property<View, Float>

Functions

Link copied to clipboard
open fun addChildrenForAccessibility(outChildren: ArrayList<View>)
Link copied to clipboard
open fun addExtraDataToAccessibilityNodeInfo(info: AccessibilityNodeInfo, extraDataKey: String, arguments: Bundle)
Link copied to clipboard
open fun addFocusables(views: ArrayList<View>, direction: Int, focusableMode: Int)
Link copied to clipboard
open fun addKeyboardNavigationClusters(views: Collection<View>, direction: Int)
Link copied to clipboard
open fun addOnAttachStateChangeListener(listener: View.OnAttachStateChangeListener)
Link copied to clipboard
open fun addOnLayoutChangeListener(listener: View.OnLayoutChangeListener)
Link copied to clipboard
open fun addOnUnhandledKeyEventListener(listener: View.OnUnhandledKeyEventListener)
Link copied to clipboard
open fun addOrientationChangeListener(@NonNull orientationChangeListener: OrientationChangeListener)
Adds the orientation listener that will receive orientation change events that are already reported to BaseCameraView.
Link copied to clipboard
Link copied to clipboard
open fun addTouchables(views: ArrayList<View>)
Link copied to clipboard
open fun addView(child: View)
Link copied to clipboard
open fun animate(): ViewPropertyAnimator
Link copied to clipboard
Link copied to clipboard
open fun autofill(values: SparseArray<AutofillValue>)
Link copied to clipboard
open fun bringChildToFront(child: View)
Link copied to clipboard
open fun bringToFront()
Link copied to clipboard
Link copied to clipboard
open fun buildLayer()
Link copied to clipboard
open fun callOnClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun cancelLongPress()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun canScrollHorizontally(direction: Int): Boolean
Link copied to clipboard
open fun canScrollVertically(direction: Int): Boolean
Link copied to clipboard
open fun changeConfiguration(@Nullable newConfiguration: Configuration)
This method changes the view's configuration.
Link copied to clipboard
open fun checkInputConnectionProxy(view: View): Boolean
Link copied to clipboard
open fun childDrawableStateChanged(child: View)
Link copied to clipboard
open fun childHasTransientStateChanged(child: View, childHasTransientState: Boolean)
Link copied to clipboard
open fun clearAnimation()
Link copied to clipboard
open fun clearChildFocus(child: View)
Link copied to clipboard
Link copied to clipboard
open fun clearFocus()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun combineMeasuredStates(curState: Int, newState: Int): Int
Link copied to clipboard
open fun computeScroll()
Link copied to clipboard
open fun computeSystemWindowInsets(in: WindowInsets, outLocalInsets: Rect): WindowInsets
Link copied to clipboard
@CallSuper
open fun create()
Creates the view and its subviews and initializes camera settings.
Link copied to clipboard
open fun createAccessibilityNodeInfo(): AccessibilityNodeInfo
Link copied to clipboard
open fun createContextMenu(menu: ContextMenu)
Link copied to clipboard
@CallSuper
open fun destroy()
Link copied to clipboard
Link copied to clipboard
open fun dispatchApplyWindowInsets(insets: WindowInsets): WindowInsets
Link copied to clipboard
open fun dispatchCapturedPointerEvent(event: MotionEvent): Boolean
Link copied to clipboard
open fun dispatchConfigurationChanged(newConfig: Configuration)
Link copied to clipboard
open fun dispatchCreateViewTranslationRequest(viewIds: Map<AutofillId, Array<Long>>, supportedFormats: Array<Int>, capability: TranslationCapability, requests: List<ViewTranslationRequest>)
Link copied to clipboard
open fun dispatchDisplayHint(hint: Int)
Link copied to clipboard
open fun dispatchDragEvent(event: DragEvent): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchGenericMotionEvent(event: MotionEvent): Boolean
Link copied to clipboard
open fun dispatchKeyEvent(event: KeyEvent): Boolean
Link copied to clipboard
open fun dispatchKeyEventPreIme(event: KeyEvent): Boolean
Link copied to clipboard
open fun dispatchKeyShortcutEvent(event: KeyEvent): Boolean
Link copied to clipboard
open fun dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
Link copied to clipboard
open fun dispatchNestedPreFling(velocityX: Float, velocityY: Float): Boolean
open fun dispatchNestedPrePerformAccessibilityAction(action: Int, arguments: Bundle): Boolean
Link copied to clipboard
open fun dispatchNestedPreScroll(dx: Int, dy: Int, consumed: Array<Int>, offsetInWindow: Array<Int>): Boolean
Link copied to clipboard
open fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: Array<Int>): Boolean
Link copied to clipboard
Link copied to clipboard
open fun dispatchPopulateAccessibilityEvent(event: AccessibilityEvent): Boolean
Link copied to clipboard
open fun dispatchProvideAutofillStructure(structure: ViewStructure, flags: Int)
Link copied to clipboard
open fun dispatchProvideStructure(structure: ViewStructure)
Link copied to clipboard
open fun dispatchScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget>)
Link copied to clipboard
open fun dispatchSetActivated(activated: Boolean)
Link copied to clipboard
open fun dispatchSetSelected(selected: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchTouchEvent(@Nullable ev: MotionEvent): Boolean
Link copied to clipboard
open fun dispatchTrackballEvent(event: MotionEvent): Boolean
Link copied to clipboard
open fun dispatchUnhandledMove(focused: View, direction: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun dispatchWindowInsetsAnimationEnd(animation: WindowInsetsAnimation)
Link copied to clipboard
open fun dispatchWindowInsetsAnimationPrepare(animation: WindowInsetsAnimation)
Link copied to clipboard
open fun dispatchWindowInsetsAnimationProgress(insets: WindowInsets, runningAnimations: List<WindowInsetsAnimation>): WindowInsets
Link copied to clipboard
open fun dispatchWindowInsetsAnimationStart(animation: WindowInsetsAnimation, bounds: WindowInsetsAnimation.Bounds): WindowInsetsAnimation.Bounds
Link copied to clipboard
open fun dispatchWindowVisibilityChanged(visibility: Int)
Link copied to clipboard
open fun draw(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
open fun endViewTransition(view: View)
Link copied to clipboard
open fun findFocus(): View
Link copied to clipboard
fun findOnBackInvokedDispatcher(): OnBackInvokedDispatcher
Link copied to clipboard
open fun findOnBackInvokedDispatcherForChild(child: View, requester: View): OnBackInvokedDispatcher
Link copied to clipboard
fun <T : View?> findViewById(id: Int): T
Link copied to clipboard
open fun findViewsWithText(outViews: ArrayList<View>, text: CharSequence, flags: Int)
Link copied to clipboard
fun <T : View?> findViewWithTag(tag: Any): T
Link copied to clipboard
open fun focusableViewAvailable(v: View)
Link copied to clipboard
Request a new autofocus cycle from camera.
Link copied to clipboard
open fun focusSearch(focused: View, direction: Int): View
Link copied to clipboard
open fun forceHasOverlappingRendering(hasOverlappingRendering: Boolean)
Link copied to clipboard
open fun forceLayout()
Link copied to clipboard
open fun gatherTransparentRegion(region: Region): Boolean
Link copied to clipboard
open fun generateDisplayHash(hashAlgorithm: String, bounds: Rect, executor: Executor, callback: DisplayHashResultCallback)
Link copied to clipboard
open fun generateLayoutParams(attrs: AttributeSet): ViewGroup.LayoutParams
Link copied to clipboard
open fun generateViewId(): Int
Link copied to clipboard
open fun getAccessibilityDelegate(): View.AccessibilityDelegate
Link copied to clipboard
Link copied to clipboard
open fun getAccessibilityNodeProvider(): AccessibilityNodeProvider
Link copied to clipboard
open fun getAlpha(): Float
Link copied to clipboard
open fun getAnimation(): Animation
Link copied to clipboard
open fun getAnimationMatrix(): Matrix
Link copied to clipboard
open fun getApplicationWindowToken(): IBinder
Link copied to clipboard
@NonNull
open fun getAspectMode(): CameraAspectMode
Returns the aspect mode of camera preview.
Link copied to clipboard
open fun getAttributeResolutionStack(attribute: Int): Array<Int>
Link copied to clipboard
Link copied to clipboard
fun getAutofillId(): AutofillId
Link copied to clipboard
open fun getAutofillType(): Int
Link copied to clipboard
open fun getAutofillValue(): AutofillValue
Link copied to clipboard
open fun getBackground(): Drawable
Link copied to clipboard
open fun getBackgroundTintBlendMode(): BlendMode
Link copied to clipboard
open fun getBackgroundTintList(): ColorStateList
Link copied to clipboard
open fun getBackgroundTintMode(): PorterDuff.Mode
Link copied to clipboard
open fun getBaseline(): Int
Link copied to clipboard
fun getBottom(): Int
Link copied to clipboard
Link copied to clipboard
Returns the current camera events listener.
Link copied to clipboard
Returns the height in pixels of the actual camera preview (does not have to be same as getHeight).
Link copied to clipboard
Returns the width in pixels of the actual camera preview (does not have to be same as getWidth).
Link copied to clipboard
Returns the current lifecycle state of camera view.
Link copied to clipboard
open fun getChildAt(index: Int): View
Link copied to clipboard
open fun getChildCount(): Int
Link copied to clipboard
fun getChildDrawingOrder(drawingPosition: Int): Int
Link copied to clipboard
open fun getChildMeasureSpec(spec: Int, padding: Int, childDimension: Int): Int
Link copied to clipboard
open fun getChildVisibleRect(child: View, r: Rect, offset: Point): Boolean
Link copied to clipboard
open fun getClipBounds(): Rect
open fun getClipBounds(outRect: Rect): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getContentCaptureSession(): ContentCaptureSession
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getContext(): Context
Link copied to clipboard
Link copied to clipboard
open fun getDefaultSize(size: Int, measureSpec: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun getDisplay(): Display
Link copied to clipboard
Link copied to clipboard
open fun getDrawingCache(): Bitmap
Link copied to clipboard
Link copied to clipboard
open fun getDrawingRect(outRect: Rect)
Link copied to clipboard
open fun getDrawingTime(): Long
Link copied to clipboard
open fun getElevation(): Float
Link copied to clipboard
open fun getExplicitStyle(): Int
Link copied to clipboard
Link copied to clipboard
open fun getFocusable(): Int
Link copied to clipboard
open fun getFocusables(direction: Int): ArrayList<View>
Link copied to clipboard
open fun getFocusedChild(): View
Link copied to clipboard
open fun getFocusedRect(r: Rect)
Link copied to clipboard
open fun getForeground(): Drawable
Link copied to clipboard
Link copied to clipboard
open fun getForegroundTintBlendMode(): BlendMode
Link copied to clipboard
open fun getForegroundTintList(): ColorStateList
Link copied to clipboard
open fun getForegroundTintMode(): PorterDuff.Mode
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getHandler(): Handler
Link copied to clipboard
Link copied to clipboard
fun getHeight(): Int
Link copied to clipboard
Returns the current high res frame limit
Link copied to clipboard
open fun getHitRect(outRect: Rect)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the host's screen orientation as detected internally.
Link copied to clipboard
open fun getId(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the initial orientation of rotatable view as set by setInitialOrientation.
Link copied to clipboard
Link copied to clipboard
open fun getKeyDispatcherState(): KeyEvent.DispatcherState
Link copied to clipboard
open fun getLabelFor(): Int
Link copied to clipboard
open fun getLayerType(): Int
Link copied to clipboard
open fun getLayoutAnimation(): LayoutAnimationController
Link copied to clipboard
open fun getLayoutAnimationListener(): Animation.AnimationListener
Link copied to clipboard
Link copied to clipboard
open fun getLayoutMode(): Int
Link copied to clipboard
open fun getLayoutParams(): ViewGroup.LayoutParams
Link copied to clipboard
open fun getLayoutTransition(): LayoutTransition
Link copied to clipboard
fun getLeft(): Int
Link copied to clipboard
Link copied to clipboard
open fun getLocationInSurface(location: Array<Int>)
Link copied to clipboard
open fun getLocationInWindow(outLocation: Array<Int>)
Link copied to clipboard
open fun getLocationOnScreen(outLocation: Array<Int>)
Link copied to clipboard
open fun getMatrix(): Matrix
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMinimumHeight(): Int
Link copied to clipboard
open fun getMinimumWidth(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getNextFocusUpId(): Int
Link copied to clipboard
open fun getOnFocusChangeListener(): View.OnFocusChangeListener
Link copied to clipboard
Returns the type of the currently opened camera or null if currently there is no opened camera.
Link copied to clipboard
Link copied to clipboard
open fun getOutlineProvider(): ViewOutlineProvider
Link copied to clipboard
Link copied to clipboard
open fun getOverlay(): ViewOverlay
open fun getOverlay(): ViewGroupOverlay
Link copied to clipboard
Link copied to clipboard
open fun getPaddingBottom(): Int
Link copied to clipboard
open fun getPaddingEnd(): Int
Link copied to clipboard
open fun getPaddingLeft(): Int
Link copied to clipboard
open fun getPaddingRight(): Int
Link copied to clipboard
open fun getPaddingStart(): Int
Link copied to clipboard
open fun getPaddingTop(): Int
Link copied to clipboard
fun getParent(): ViewParent
Link copied to clipboard
open fun getParentForAccessibility(): ViewParent
Link copied to clipboard
fun getPendingCredentialCallback(): OutcomeReceiver<GetCredentialResponse, GetCredentialException>
Link copied to clipboard
fun getPendingCredentialRequest(): GetCredentialRequest
Link copied to clipboard
Link copied to clipboard
open fun getPivotX(): Float
Link copied to clipboard
open fun getPivotY(): Float
Link copied to clipboard
open fun getPointerIcon(): PointerIcon
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getResources(): Resources
Link copied to clipboard
Link copied to clipboard
fun getRight(): Int
Link copied to clipboard
open fun getRootSurfaceControl(): AttachedSurfaceControl
Link copied to clipboard
open fun getRootView(): View
Link copied to clipboard
open fun getRootWindowInsets(): WindowInsets
Link copied to clipboard
open fun getRotation(): Float
Link copied to clipboard
open fun getRotationX(): Float
Link copied to clipboard
open fun getRotationY(): Float
Link copied to clipboard
open fun getScaleX(): Float
Link copied to clipboard
open fun getScaleY(): Float
Link copied to clipboard
Link copied to clipboard
open fun getScrollBarSize(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSolidColor(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getStateListAnimator(): StateListAnimator
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getTag(): Any
Link copied to clipboard
open fun getTextAlignment(): Int
Link copied to clipboard
open fun getTextDirection(): Int
Link copied to clipboard
Link copied to clipboard
fun getTop(): Int
Link copied to clipboard
open fun getTouchables(): ArrayList<View>
Link copied to clipboard
open fun getTouchDelegate(): TouchDelegate
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getViewTranslationResponse(): ViewTranslationResponse
Link copied to clipboard
open fun getViewTreeObserver(): ViewTreeObserver
Link copied to clipboard
open fun getVisibility(): Int
Link copied to clipboard
@NonNull
open fun getVisiblePart(): RectF
Returns the rectangle that which part of camera frame is visible in view
Link copied to clipboard
fun getWidth(): Int
Link copied to clipboard
open fun getWindowId(): WindowId
Link copied to clipboard
open fun getWindowInsetsController(): WindowInsetsController
Link copied to clipboard
Link copied to clipboard
open fun getWindowToken(): IBinder
Link copied to clipboard
Link copied to clipboard
open fun getWindowVisibleDisplayFrame(outRect: Rect)
Link copied to clipboard
open fun getX(): Float
Link copied to clipboard
open fun getY(): Float
Link copied to clipboard
open fun getZ(): Float
Link copied to clipboard
Returns the current camera zoom level.
Link copied to clipboard
Link copied to clipboard
open fun hasFocus(): Boolean
Link copied to clipboard
open fun hasFocusable(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun indexOfChild(child: View): Int
Link copied to clipboard
open fun inflate(context: Context, resource: Int, root: ViewGroup): View
Link copied to clipboard
open fun invalidate()
Link copied to clipboard
fun invalidateChild(child: View, dirty: Rect)
Link copied to clipboard
open fun invalidateChildInParent(location: Array<Int>, dirty: Rect): ViewParent
Link copied to clipboard
open fun invalidateDrawable(drawable: Drawable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isActivated(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns true if opened camera supports autofocus.
Link copied to clipboard
Link copied to clipboard
@AnyThread
fun isCameraActive(): Boolean
Returns true if camera is currently active.
Link copied to clipboard
Returns true if camera is currently in focus
Link copied to clipboard
Returns true if camera has got torch.
Link copied to clipboard
open fun isClickable(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isCredential(): Boolean
Link copied to clipboard
Returns true if the device is being shaken
Link copied to clipboard
open fun isDirty(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isEnabled(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isFocused(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns true if high res frame capture was enabled.
Link copied to clipboard
open fun isHovered(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isInEditMode(): Boolean
Link copied to clipboard
open fun isInLayout(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isLaidOut(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isOpaque(): Boolean
Link copied to clipboard
Link copied to clipboard
Returns true if camera view will handle pinch events to manage camera zoom level.
Link copied to clipboard
open fun isPivotSet(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isPressed(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isSelected(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isShown(): Boolean
Link copied to clipboard
Link copied to clipboard
Returns true if camera view will handle tap events to ask camera to perform autofocus on tapped area.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isVisibleToUserForAutofill(virtualId: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun keyboardNavigationClusterSearch(currentCluster: View, direction: Int): View
Link copied to clipboard
fun layout(l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
fun measure(widthMeasureSpec: Int, heightMeasureSpec: Int)
Link copied to clipboard
open fun notifySubtreeAccessibilityStateChanged(child: View, source: View, changeType: Int)
Link copied to clipboard
fun offsetDescendantRectToMyCoords(descendant: View, rect: Rect)
Link copied to clipboard
open fun offsetLeftAndRight(offset: Int)
Link copied to clipboard
fun offsetRectIntoDescendantCoords(descendant: View, rect: Rect)
Link copied to clipboard
open fun offsetTopAndBottom(offset: Int)
Link copied to clipboard
open fun onApplyWindowInsets(insets: WindowInsets): WindowInsets
Link copied to clipboard
Link copied to clipboard
open fun onCapturedPointerEvent(event: MotionEvent): Boolean
Link copied to clipboard
Link copied to clipboard
open fun onCreateInputConnection(outAttrs: EditorInfo): InputConnection
Link copied to clipboard
open fun onCreateViewTranslationRequest(supportedFormats: Array<Int>, requestsCollector: Consumer<ViewTranslationRequest>)
Link copied to clipboard
open fun onCreateVirtualViewTranslationRequests(virtualIds: Array<Long>, supportedFormats: Array<Int>, requestsCollector: Consumer<ViewTranslationRequest>)
Link copied to clipboard
open fun onDescendantInvalidated(child: View, target: View)
Link copied to clipboard
open fun onDragEvent(event: DragEvent): Boolean
Link copied to clipboard
open fun onDrawForeground(canvas: Canvas)
Link copied to clipboard
open fun onFilterTouchEventForSecurity(event: MotionEvent): Boolean
Link copied to clipboard
Link copied to clipboard
open fun onGenericMotionEvent(event: MotionEvent): Boolean
Link copied to clipboard
open fun onHoverChanged(hovered: Boolean)
Link copied to clipboard
open fun onHoverEvent(event: MotionEvent): Boolean
Link copied to clipboard
open fun onInitializeAccessibilityEvent(event: AccessibilityEvent)
Link copied to clipboard
open fun onInitializeAccessibilityNodeInfo(info: AccessibilityNodeInfo)
Link copied to clipboard
open fun onInterceptHoverEvent(event: MotionEvent): Boolean
Link copied to clipboard
open fun onInterceptTouchEvent(ev: MotionEvent): Boolean
Link copied to clipboard
open fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyLongPress(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyPreIme(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyShortcut(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onNestedFling(target: View, velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
Link copied to clipboard
open fun onNestedPreFling(target: View, velocityX: Float, velocityY: Float): Boolean
Link copied to clipboard
open fun onNestedPrePerformAccessibilityAction(target: View, action: Int, args: Bundle): Boolean
Link copied to clipboard
open fun onNestedPreScroll(target: View, dx: Int, dy: Int, consumed: Array<Int>)
Link copied to clipboard
open fun onNestedScroll(target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int)
Link copied to clipboard
open fun onNestedScrollAccepted(child: View, target: View, axes: Int)
Link copied to clipboard
open fun onPointerCaptureChange(hasCapture: Boolean)
Link copied to clipboard
open fun onPopulateAccessibilityEvent(event: AccessibilityEvent)
Link copied to clipboard
open fun onProvideAutofillStructure(structure: ViewStructure, flags: Int)
Link copied to clipboard
open fun onProvideAutofillVirtualStructure(structure: ViewStructure, flags: Int)
Link copied to clipboard
open fun onProvideContentCaptureStructure(structure: ViewStructure, flags: Int)
Link copied to clipboard
open fun onProvideStructure(structure: ViewStructure)
Link copied to clipboard
open fun onProvideVirtualStructure(structure: ViewStructure)
Link copied to clipboard
open fun onReceiveContent(payload: ContentInfo): ContentInfo
Link copied to clipboard
open fun onRequestSendAccessibilityEvent(child: View, event: AccessibilityEvent): Boolean
Link copied to clipboard
open fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): PointerIcon
Link copied to clipboard
open fun onRtlPropertiesChanged(layoutDirection: Int)
Link copied to clipboard
open fun onScreenStateChanged(screenState: Int)
Link copied to clipboard
open fun onScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget>)
Link copied to clipboard
open fun onStartNestedScroll(child: View, target: View, nestedScrollAxes: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun onStopNestedScroll(child: View)
Link copied to clipboard
open fun onTouchEvent(event: MotionEvent): Boolean
Link copied to clipboard
open fun onTrackballEvent(event: MotionEvent): Boolean
Link copied to clipboard
open fun onViewAdded(child: View)
Link copied to clipboard
open fun onViewRemoved(child: View)
Link copied to clipboard
open fun onViewTranslationResponse(response: ViewTranslationResponse)
Link copied to clipboard
open fun onVirtualViewTranslationResponses(response: LongSparseArray<ViewTranslationResponse>)
Link copied to clipboard
open fun onVisibilityAggregated(isVisible: Boolean)
Link copied to clipboard
open fun onWindowFocusChanged(hasWindowFocus: Boolean)
Link copied to clipboard
Link copied to clipboard
@MainThread
@CallSuper
open fun pause()
This method must be called from activity's onPause.
Link copied to clipboard
open fun performAccessibilityAction(action: Int, arguments: Bundle): Boolean
Link copied to clipboard
open fun performClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun performHapticFeedback(feedbackConstant: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun performReceiveContent(payload: ContentInfo): ContentInfo
Link copied to clipboard
open fun playSoundEffect(soundConstant: Int)
Link copied to clipboard
open fun post(action: Runnable): Boolean
Link copied to clipboard
open fun postDelayed(action: Runnable, delayMillis: Long): Boolean
Link copied to clipboard
open fun postInvalidate()
Link copied to clipboard
open fun postInvalidateDelayed(delayMilliseconds: Long)
Link copied to clipboard
Link copied to clipboard
open fun postOnAnimation(action: Runnable)
Link copied to clipboard
open fun postOnAnimationDelayed(action: Runnable, delayMillis: Long)
Link copied to clipboard
open fun propagateRequestedFrameRate(frameRate: Float, forceOverride: Boolean)
Link copied to clipboard
open fun recomputeViewAttributes(child: View)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun removeAllViews()
Link copied to clipboard
Link copied to clipboard
open fun removeCallbacks(action: Runnable): Boolean
Link copied to clipboard
open fun removeOnAttachStateChangeListener(listener: View.OnAttachStateChangeListener)
Link copied to clipboard
open fun removeOnLayoutChangeListener(listener: View.OnLayoutChangeListener)
Link copied to clipboard
open fun removeOnUnhandledKeyEventListener(listener: View.OnUnhandledKeyEventListener)
Link copied to clipboard
open fun removeOrientationChangeListener(@NonNull orientationChangeListener: OrientationChangeListener)
Removes a single listener instance from listeners collection, if it is present.
Link copied to clipboard
open fun removeView(view: View)
Link copied to clipboard
open fun removeViewAt(index: Int)
Link copied to clipboard
open fun removeViewInLayout(view: View)
Link copied to clipboard
open fun removeViews(start: Int, count: Int)
Link copied to clipboard
open fun removeViewsInLayout(start: Int, count: Int)
Link copied to clipboard
open fun reportAppJankStats(appJankStats: AppJankStats)
Link copied to clipboard
Link copied to clipboard
open fun requestChildFocus(child: View, focused: View)
Link copied to clipboard
open fun requestChildRectangleOnScreen(child: View, rectangle: Rect, immediate: Boolean): Boolean
Link copied to clipboard
open fun requestDisallowInterceptTouchEvent(disallowIntercept: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun requestFocus(direction: Int, previouslyFocusedRect: Rect): Boolean
Link copied to clipboard
Link copied to clipboard
open fun requestLayout()
Link copied to clipboard
Link copied to clipboard
open fun requestRectangleOnScreen(rectangle: Rect): Boolean
Link copied to clipboard
open fun requestSendAccessibilityEvent(child: View, event: AccessibilityEvent): Boolean
Link copied to clipboard
open fun requestTransparentRegion(child: View)
Link copied to clipboard
fun requestUnbufferedDispatch(event: MotionEvent)
Link copied to clipboard
fun <T : View?> requireViewById(id: Int): T
Link copied to clipboard
open fun resetPivot()
Link copied to clipboard
open fun resolveSize(size: Int, measureSpec: Int): Int
Link copied to clipboard
open fun resolveSizeAndState(size: Int, measureSpec: Int, childMeasuredState: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun restoreHierarchyState(container: SparseArray<Parcelable>)
Link copied to clipboard
@MainThread
@CallSuper
open fun resume()
This method must be called from activity's onResume.
Link copied to clipboard
fun saveAttributeDataForStyleable(context: Context, styleable: Array<Int>, attrs: AttributeSet, t: TypedArray, defStyleAttr: Int, defStyleRes: Int)
Link copied to clipboard
open fun saveHierarchyState(container: SparseArray<Parcelable>)
Link copied to clipboard
open fun scheduleDrawable(who: Drawable, what: Runnable, when: Long)
Link copied to clipboard
Link copied to clipboard
open fun scrollBy(x: Int, y: Int)
Link copied to clipboard
open fun scrollTo(x: Int, y: Int)
Link copied to clipboard
open fun sendAccessibilityEvent(eventType: Int)
Link copied to clipboard
open fun sendAccessibilityEventUnchecked(event: AccessibilityEvent)
Link copied to clipboard
open fun setAccessibilityDataSensitive(accessibilityDataSensitive: Int)
Link copied to clipboard
open fun setAccessibilityDelegate(delegate: View.AccessibilityDelegate)
Link copied to clipboard
open fun setAccessibilityHeading(isHeading: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setAccessibilityPaneTitle(accessibilityPaneTitle: CharSequence)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setActivated(activated: Boolean)
Link copied to clipboard
open fun setAddStatesFromChildren(addsStates: Boolean)
Link copied to clipboard
open fun setAllowClickWhenDisabled(clickableWhenDisabled: Boolean)
Link copied to clipboard
open fun setAllowedHandwritingDelegatePackage(allowedPackageName: String)
Link copied to clipboard
open fun setAllowedHandwritingDelegatorPackage(allowedPackageName: String)
Link copied to clipboard
open fun setAlpha(alpha: Float)
Link copied to clipboard
Link copied to clipboard
open fun setAnimation(animation: Animation)
Link copied to clipboard
Link copied to clipboard
open fun setAnimationMatrix(matrix: Matrix)
Link copied to clipboard
open fun setAspectMode(@NonNull aspectMode: CameraAspectMode)
Defines the aspect mode of camera preview.
Link copied to clipboard
open fun setAutofillHints(autofillHints: Array<String>)
Link copied to clipboard
open fun setAutofillId(id: AutofillId)
Link copied to clipboard
Link copied to clipboard
open fun setBackground(background: Drawable)
Link copied to clipboard
open fun setBackgroundColor(color: Int)
Link copied to clipboard
open fun setBackgroundDrawable(background: Drawable)
Link copied to clipboard
open fun setBackgroundResource(resid: Int)
Link copied to clipboard
open fun setBackgroundTintBlendMode(blendMode: BlendMode)
Link copied to clipboard
open fun setBackgroundTintList(tint: ColorStateList)
Link copied to clipboard
open fun setBackgroundTintMode(tintMode: PorterDuff.Mode)
Link copied to clipboard
fun setBottom(bottom: Int)
Link copied to clipboard
open fun setCameraDistance(distance: Float)
Link copied to clipboard
open fun setCameraEventsListener(@Nullable cameraEventsListener: CameraEventsListener)
Sets the listener that will receive various camera events, such as when camera preview has started or camera initialization error has occurred.
Link copied to clipboard
fun setCameraFrameFactory(cameraFrameFactory: CameraFrameFactory)
Set your custom implementation of camera frame factory.
Link copied to clipboard
open fun setCameraType(@NonNull cameraType: CameraType)
Sets the camera type that will be used.
Link copied to clipboard
open fun setClickable(clickable: Boolean)
Link copied to clipboard
open fun setClipBounds(clipBounds: Rect)
Link copied to clipboard
open fun setClipChildren(clipChildren: Boolean)
Link copied to clipboard
open fun setClipToOutline(clipToOutline: Boolean)
Link copied to clipboard
open fun setClipToPadding(clipToPadding: Boolean)
Link copied to clipboard
open fun setContentCaptureSession(contentCaptureSession: ContentCaptureSession)
Link copied to clipboard
open fun setContentDescription(contentDescription: CharSequence)
Link copied to clipboard
Link copied to clipboard
open fun setContextClickable(contextClickable: Boolean)
Link copied to clipboard
open fun setDefaultFocusHighlightEnabled(defaultFocusHighlightEnabled: Boolean)
Link copied to clipboard
open fun setDescendantFocusability(focusability: Int)
Link copied to clipboard
Link copied to clipboard
open fun setDrawingCacheEnabled(enabled: Boolean)
Link copied to clipboard
open fun setDrawingCacheQuality(quality: Int)
Link copied to clipboard
Link copied to clipboard
open fun setElevation(elevation: Float)
Link copied to clipboard
open fun setEnabled(enabled: Boolean)
Link copied to clipboard
open fun setFadingEdgeLength(length: Int)
Link copied to clipboard
Link copied to clipboard
open fun setFitsSystemWindows(fitSystemWindows: Boolean)
Link copied to clipboard
open fun setFocusable(focusable: Boolean)
Link copied to clipboard
open fun setFocusableInTouchMode(focusableInTouchMode: Boolean)
Link copied to clipboard
open fun setFocusedByDefault(isFocusedByDefault: Boolean)
Link copied to clipboard
open fun setForceDarkAllowed(allow: Boolean)
Link copied to clipboard
fun setForceUseLegacyCamera(useLegacyCamera: Boolean)
With this method you can request using legacy Camera API even on devices that natively support new Camera2 API.
Link copied to clipboard
open fun setForeground(foreground: Drawable)
Link copied to clipboard
open fun setForegroundGravity(gravity: Int)
Link copied to clipboard
open fun setForegroundTintBlendMode(blendMode: BlendMode)
Link copied to clipboard
open fun setForegroundTintList(tint: ColorStateList)
Link copied to clipboard
open fun setForegroundTintMode(tintMode: PorterDuff.Mode)
Link copied to clipboard
open fun setFrameContentVelocity(pixelsPerSecond: Float)
Link copied to clipboard
open fun setHandwritingBoundsOffsets(offsetLeft: Float, offsetTop: Float, offsetRight: Float, offsetBottom: Float)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setHapticFeedbackEnabled(hapticFeedbackEnabled: Boolean)
Link copied to clipboard
open fun setHasTransientState(hasTransientState: Boolean)
Link copied to clipboard
High res frame capture is disabled by default and needs to be enabled by using this method.
Link copied to clipboard
fun setHighResFrameLimit(@IntRange(from = 0) highResFrameLimit: Int)
Sets the maximum number of high res frames that can be active at a given moment.
Link copied to clipboard
open fun setHorizontalFadingEdgeEnabled(horizontalFadingEdgeEnabled: Boolean)
Link copied to clipboard
open fun setHorizontalScrollBarEnabled(horizontalScrollBarEnabled: Boolean)
Link copied to clipboard
open fun setHorizontalScrollbarThumbDrawable(drawable: Drawable)
Link copied to clipboard
open fun setHorizontalScrollbarTrackDrawable(drawable: Drawable)
Link copied to clipboard
open fun setHovered(hovered: Boolean)
Link copied to clipboard
open fun setId(id: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@CallSuper
open fun setInitialOrientation(@Nullable initialOrientation: Orientation)
Sets the initial orientation of rotatable view and recognizer.
Link copied to clipboard
open fun setIsCredential(isCredential: Boolean)
Link copied to clipboard
open fun setIsHandwritingDelegate(isHandwritingDelegate: Boolean)
Link copied to clipboard
open fun setKeepScreenOn(keepScreenOn: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setLabelFor(id: Int)
Link copied to clipboard
open fun setLayerPaint(paint: Paint)
Link copied to clipboard
open fun setLayerType(layerType: Int, paint: Paint)
Link copied to clipboard
open fun setLayoutAnimation(controller: LayoutAnimationController)
Link copied to clipboard
open fun setLayoutAnimationListener(animationListener: Animation.AnimationListener)
Link copied to clipboard
open fun setLayoutDirection(layoutDirection: Int)
Link copied to clipboard
open fun setLayoutMode(layoutMode: Int)
Link copied to clipboard
open fun setLayoutParams(params: ViewGroup.LayoutParams)
Link copied to clipboard
open fun setLayoutTransition(transition: LayoutTransition)
Link copied to clipboard
fun setLeft(left: Int)
Link copied to clipboard
fun setLeftTopRightBottom(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun setLongClickable(longClickable: Boolean)
Link copied to clipboard
fun setMeteringAreas(@NonNull meteringAreas: Array<RectF>, rotateAreasWithDevice: Boolean)
Sets the areas where camera will perform focus, exposure and white balance meterings.
Link copied to clipboard
open fun setMinimumHeight(minHeight: Int)
Link copied to clipboard
open fun setMinimumWidth(minWidth: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setNextClusterForwardId(nextClusterForwardId: Int)
Link copied to clipboard
open fun setNextFocusDownId(nextFocusDownId: Int)
Link copied to clipboard
open fun setNextFocusForwardId(nextFocusForwardId: Int)
Link copied to clipboard
open fun setNextFocusLeftId(nextFocusLeftId: Int)
Link copied to clipboard
open fun setNextFocusRightId(nextFocusRightId: Int)
Link copied to clipboard
open fun setNextFocusUpId(nextFocusUpId: Int)
Link copied to clipboard
fun setOnActivityFlipListener(@NonNull onActivityFlipListener: OnActivityFlipListener)
Sets the listener that will be notified when activity flip event occurs.
Link copied to clipboard
open fun setOnApplyWindowInsetsListener(listener: View.OnApplyWindowInsetsListener)
Link copied to clipboard
open fun setOnCapturedPointerListener(l: View.OnCapturedPointerListener)
Link copied to clipboard
open fun setOnClickListener(l: View.OnClickListener)
Link copied to clipboard
open fun setOnContextClickListener(l: View.OnContextClickListener)
Link copied to clipboard
open fun setOnCreateContextMenuListener(l: View.OnCreateContextMenuListener)
Link copied to clipboard
open fun setOnDragListener(l: View.OnDragListener)
Link copied to clipboard
open fun setOnFocusChangeListener(l: View.OnFocusChangeListener)
Link copied to clipboard
open fun setOnGenericMotionListener(l: View.OnGenericMotionListener)
Link copied to clipboard
open fun setOnHierarchyChangeListener(listener: ViewGroup.OnHierarchyChangeListener)
Link copied to clipboard
open fun setOnHoverListener(l: View.OnHoverListener)
Link copied to clipboard
open fun setOnKeyListener(l: View.OnKeyListener)
Link copied to clipboard
open fun setOnLongClickListener(l: View.OnLongClickListener)
Link copied to clipboard
open fun setOnReceiveContentListener(mimeTypes: Array<String>, listener: OnReceiveContentListener)
Link copied to clipboard
open fun setOnScrollChangeListener(l: View.OnScrollChangeListener)
Link copied to clipboard
fun setOnSizeChangedListener(@NonNull onSizeChangedListener: OnSizeChangedListener)
Sets the listener that will be notified when size of child views changes.
Link copied to clipboard
open fun setOnSystemUiVisibilityChangeListener(l: View.OnSystemUiVisibilityChangeListener)
Link copied to clipboard
open fun setOnTouchListener(l: View.OnTouchListener)
Link copied to clipboard
Link copied to clipboard
open fun setOrientationAllowedListener(@NonNull orientationAllowedListener: OrientationAllowedListener)
Sets the listener that will be asked if device orientation is allowed prior rotating rotatable view and native recognizer to that orientation.
Link copied to clipboard
Link copied to clipboard
open fun setOutlineProvider(provider: ViewOutlineProvider)
Link copied to clipboard
Link copied to clipboard
open fun setOverScrollMode(overScrollMode: Int)
Link copied to clipboard
open fun setPadding(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)
Link copied to clipboard
open fun setPendingCredentialRequest(request: GetCredentialRequest, callback: OutcomeReceiver<GetCredentialResponse, GetCredentialException>)
Link copied to clipboard
open fun setPersistentDrawingCache(drawingCacheToKeep: Int)
Link copied to clipboard
fun setPinchToZoomAllowed(allowPinchToZoom: Boolean)
Sets whether camear view will handle pinch events to manage camera zoom level.
Link copied to clipboard
open fun setPivotX(pivotX: Float)
Link copied to clipboard
open fun setPivotY(pivotY: Float)
Link copied to clipboard
open fun setPointerIcon(pointerIcon: PointerIcon)
Link copied to clipboard
fun setPreferKeepClear(preferKeepClear: Boolean)
Link copied to clipboard
fun setPreferKeepClearRects(rects: List<Rect>)
Link copied to clipboard
open fun setPressed(pressed: Boolean)
Link copied to clipboard
open fun setRenderEffect(renderEffect: RenderEffect)
fun setRequestAutofocusOnShakingStopInContinousAutofocusMode(requestAutofocusOnShakingStopInContinousAutofocusMode: Boolean)
If device supports continous autofocus mode, enabling this feature will request normal autofocus every time device shaking stops.
Link copied to clipboard
open fun setRequestedFrameRate(frameRate: Float)
Link copied to clipboard
In order to display camera preview, camera view must use one of two android's view's that are capable of displaying camera preview video stream: android.view.SurfaceView and android.view.TextureView.
Link copied to clipboard
fun setRevealOnFocusHint(revealOnFocus: Boolean)
Link copied to clipboard
fun setRight(right: Int)
Link copied to clipboard
open fun setRotation(rotation: Float)
Link copied to clipboard
open fun setRotationX(rotationX: Float)
Link copied to clipboard
open fun setRotationY(rotationY: Float)
Link copied to clipboard
open fun setSaveEnabled(enabled: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setScaleX(scaleX: Float)
Link copied to clipboard
open fun setScaleY(scaleY: Float)
Link copied to clipboard
open fun setScreenReaderFocusable(screenReaderFocusable: Boolean)
Link copied to clipboard
open fun setScrollBarDefaultDelayBeforeFade(scrollBarDefaultDelayBeforeFade: Int)
Link copied to clipboard
open fun setScrollBarFadeDuration(scrollBarFadeDuration: Int)
Link copied to clipboard
open fun setScrollbarFadingEnabled(fadeScrollbars: Boolean)
Link copied to clipboard
open fun setScrollBarSize(scrollBarSize: Int)
Link copied to clipboard
open fun setScrollBarStyle(style: Int)
Link copied to clipboard
fun setScrollCaptureCallback(callback: ScrollCaptureCallback)
Link copied to clipboard
open fun setScrollCaptureHint(hint: Int)
Link copied to clipboard
open fun setScrollContainer(isScrollContainer: Boolean)
Link copied to clipboard
open fun setScrollIndicators(indicators: Int)
Link copied to clipboard
open fun setScrollX(value: Int)
Link copied to clipboard
open fun setScrollY(value: Int)
Link copied to clipboard
open fun setSelected(selected: Boolean)
Link copied to clipboard
open fun setShakeListener(@NonNull shakeCallback: ShakeCallback)
Sets the shake callback that will be notified about device shake events.
Link copied to clipboard
open fun setSoundEffectsEnabled(soundEffectsEnabled: Boolean)
Link copied to clipboard
open fun setStateDescription(stateDescription: CharSequence)
Link copied to clipboard
open fun setStateListAnimator(stateListAnimator: StateListAnimator)
Link copied to clipboard
open fun setSupplementalDescription(supplementalDescription: CharSequence)
Link copied to clipboard
open fun setSystemGestureExclusionRects(rects: List<Rect>)
Link copied to clipboard
open fun setSystemUiVisibility(visibility: Int)
Link copied to clipboard
open fun setTag(key: Int, tag: Any)
Link copied to clipboard
fun setTapToFocusAllowed(allowTapToFocus: Boolean)
Sets whether camera view will handle tap events to ask camera to perform autofocus on tapped area.
Link copied to clipboard
open fun setTextAlignment(textAlignment: Int)
Link copied to clipboard
open fun setTextDirection(textDirection: Int)
Link copied to clipboard
open fun setTooltipText(tooltipText: CharSequence)
Link copied to clipboard
fun setTop(top: Int)
Link copied to clipboard
fun setTorchState(on: Boolean, @NonNull successCallback: SuccessCallback)
Turns the torch on the camera on or off.
Link copied to clipboard
open fun setTouchDelegate(delegate: TouchDelegate)
Link copied to clipboard
open fun setTouchscreenBlocksFocus(touchscreenBlocksFocus: Boolean)
Link copied to clipboard
open fun setTransitionAlpha(alpha: Float)
Link copied to clipboard
open fun setTransitionGroup(isTransitionGroup: Boolean)
Link copied to clipboard
fun setTransitionName(transitionName: String)
Link copied to clipboard
open fun setTransitionVisibility(visibility: Int)
Link copied to clipboard
open fun setTranslationX(translationX: Float)
Link copied to clipboard
open fun setTranslationY(translationY: Float)
Link copied to clipboard
open fun setTranslationZ(translationZ: Float)
Link copied to clipboard
open fun setVerticalFadingEdgeEnabled(verticalFadingEdgeEnabled: Boolean)
Link copied to clipboard
open fun setVerticalScrollBarEnabled(verticalScrollBarEnabled: Boolean)
Link copied to clipboard
open fun setVerticalScrollbarPosition(position: Int)
Link copied to clipboard
open fun setVerticalScrollbarThumbDrawable(drawable: Drawable)
Link copied to clipboard
open fun setVerticalScrollbarTrackDrawable(drawable: Drawable)
Link copied to clipboard
Link copied to clipboard
open fun setViewTranslationCallback(callback: ViewTranslationCallback)
Link copied to clipboard
open fun setVisibility(visibility: Int)
Link copied to clipboard
open fun setWillNotCacheDrawing(willNotCacheDrawing: Boolean)
Link copied to clipboard
open fun setWillNotDraw(willNotDraw: Boolean)
Link copied to clipboard
open fun setWindowInsetsAnimationCallback(callback: WindowInsetsAnimation.Callback)
Link copied to clipboard
open fun setX(x: Float)
Link copied to clipboard
open fun setY(y: Float)
Link copied to clipboard
open fun setZ(z: Float)
Link copied to clipboard
fun setZoomLevel(@FloatRange(from = 0.0, to = 1.0) zoomLevel: Float)
Sets the camera zoom level.
Link copied to clipboard
Link copied to clipboard
open fun showContextMenuForChild(originalView: View): Boolean
Link copied to clipboard
@MainThread
@CallSuper
open fun start()
Link copied to clipboard
open fun startActionMode(callback: ActionMode.Callback): ActionMode
Link copied to clipboard
open fun startActionModeForChild(originalView: View, callback: ActionMode.Callback): ActionMode
Link copied to clipboard
open fun startAnimation(animation: Animation)
Link copied to clipboard
fun startDrag(data: ClipData, shadowBuilder: View.DragShadowBuilder, myLocalState: Any, flags: Int): Boolean
Link copied to clipboard
fun startDragAndDrop(data: ClipData, shadowBuilder: View.DragShadowBuilder, myLocalState: Any, flags: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun startNestedScroll(axes: Int): Boolean
Link copied to clipboard
open fun startViewTransition(view: View)
Link copied to clipboard
@MainThread
@CallSuper
open fun stop()
Link copied to clipboard
open fun stopNestedScroll()
Link copied to clipboard
open fun suppressLayout(suppress: Boolean)
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun transformMatrixToGlobal(matrix: Matrix)
Link copied to clipboard
open fun transformMatrixToLocal(matrix: Matrix)
Link copied to clipboard
open fun unscheduleDrawable(who: Drawable)
Link copied to clipboard
fun updateDragShadow(shadowBuilder: View.DragShadowBuilder)
Link copied to clipboard
open fun updateViewLayout(view: View, params: ViewGroup.LayoutParams)
Link copied to clipboard
Link copied to clipboard
open fun willNotDraw(): Boolean