Class FlutterView
- java.lang.Object
-
- android.view.View
-
- android.view.SurfaceView
-
- io.flutter.view.FlutterView
-
- All Implemented Interfaces:
Drawable.Callback,AccessibilityEventSource,KeyEvent.Callback,KeyboardManager.ViewDelegate,BinaryMessenger,io.flutter.plugin.mouse.MouseCursorPlugin.MouseCursorViewDelegate,TextureRegistry
@Deprecated public class FlutterView extends SurfaceView implements BinaryMessenger, TextureRegistry, io.flutter.plugin.mouse.MouseCursorPlugin.MouseCursorViewDelegate, KeyboardManager.ViewDelegate
Deprecated.FlutterViewis the new API that now replaces this class. See https://flutter.dev/go/android-project-migration for more migration details.Deprecated Android view containing a Flutter app.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFlutterView.FirstFrameListenerDeprecated.Listener will be called on the Android UI thread once when Flutter renders the first frame.static interfaceFlutterView.ProviderDeprecated.Interface for those objects that maintain and expose a reference to aFlutterView(such as a full-screen Flutter activity).-
Nested classes/interfaces inherited from class android.view.View
View.AccessibilityDelegate, View.BaseSavedState, View.DragShadowBuilder, View.MeasureSpec, View.OnApplyWindowInsetsListener, View.OnAttachStateChangeListener, View.OnCapturedPointerListener, View.OnClickListener, View.OnContextClickListener, View.OnCreateContextMenuListener, View.OnDragListener, View.OnFocusChangeListener, View.OnGenericMotionListener, View.OnHoverListener, View.OnKeyListener, View.OnLayoutChangeListener, View.OnLongClickListener, View.OnScrollChangeListener, View.OnSystemUiVisibilityChangeListener, View.OnTouchListener, View.OnUnhandledKeyEventListener
-
Nested classes/interfaces inherited from interface io.flutter.plugin.common.BinaryMessenger
BinaryMessenger.BinaryMessageHandler, BinaryMessenger.BinaryReply, BinaryMessenger.TaskQueue, BinaryMessenger.TaskQueueOptions
-
Nested classes/interfaces inherited from interface io.flutter.view.TextureRegistry
TextureRegistry.OnFrameConsumedListener, TextureRegistry.OnTrimMemoryListener, TextureRegistry.SurfaceTextureEntry
-
-
Field Summary
-
Fields inherited from class android.view.View
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_ACCESSIBILITY_ACTION, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, IMPORTANT_FOR_CONTENT_CAPTURE_NO, IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_YES, IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_CAPTURE_HINT_AUTO, SCROLL_CAPTURE_HINT_EXCLUDE, SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS, SCROLL_CAPTURE_HINT_INCLUDE, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
-
-
Constructor Summary
Constructors Constructor Description FlutterView(Context context)Deprecated.FlutterView(Context context, AttributeSet attrs)Deprecated.FlutterView(Context context, AttributeSet attrs, FlutterNativeView nativeView)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddActivityLifecycleListener(ActivityLifecycleListener listener)Deprecated.voidaddFirstFrameListener(FlutterView.FirstFrameListener listener)Deprecated.Provide a listener that will be called once when the FlutterView renders its first frame to the underlaying SurfaceView.voidautofill(SparseArray<AutofillValue> values)Deprecated.booleancheckInputConnectionProxy(View view)Deprecated.TextureRegistry.SurfaceTextureEntrycreateSurfaceTexture()Deprecated.Creates and registers a SurfaceTexture managed by the Flutter engine.voiddestroy()Deprecated.FlutterNativeViewdetach()Deprecated.voiddisableBufferingIncomingMessages()Deprecated.Disables the ability to queue messages received from Dart.voiddisableTransparentBackground()Deprecated.Reverts this back to theSurfaceViewdefaults, at the back of its window and opaque.booleandispatchKeyEvent(KeyEvent event)Deprecated.voidenableBufferingIncomingMessages()Deprecated.Enables the ability to queue messages received from Dart.protected booleanfitSystemWindows(Rect insets)Deprecated.AccessibilityNodeProvidergetAccessibilityNodeProvider()Deprecated.BinaryMessengergetBinaryMessenger()Deprecated.Returns aBinaryMessengerto send platform messages with.BitmapgetBitmap()Deprecated.Return the most recent frame as a bitmap.DartExecutorgetDartExecutor()Deprecated.FlutterNativeViewgetFlutterNativeView()Deprecated.StringgetLookupKeyForAsset(String asset)Deprecated.StringgetLookupKeyForAsset(String asset, String packageName)Deprecated.FlutterPluginRegistrygetPluginRegistry()Deprecated.PointerIcongetSystemPointerIcon(int type)Deprecated.Gets a system pointer icon object for the giventype.booleanhasRenderedFirstFrame()Deprecated.Returns true if the Flutter experience associated with thisFlutterViewhas rendered its first frame, or false otherwise.BinaryMessenger.TaskQueuemakeBackgroundTaskQueue(BinaryMessenger.TaskQueueOptions options)Deprecated.Creates a TaskQueue that executes the tasks serially on a background thread.WindowInsetsonApplyWindowInsets(WindowInsets insets)Deprecated.protected voidonAttachedToWindow()Deprecated.protected voidonConfigurationChanged(Configuration newConfig)Deprecated.InputConnectiononCreateInputConnection(EditorInfo outAttrs)Deprecated.protected voidonDetachedFromWindow()Deprecated.voidonFirstFrame()Deprecated.booleanonGenericMotionEvent(MotionEvent event)Deprecated.Invoked by Android when a generic motion event occurs, e.g., joystick movement, mouse hover, track pad touches, scroll wheel movements, etc.booleanonHoverEvent(MotionEvent event)Deprecated.voidonMemoryPressure()Deprecated.voidonPause()Deprecated.voidonPostResume()Deprecated.voidonProvideAutofillVirtualStructure(ViewStructure structure, int flags)Deprecated.protected voidonSizeChanged(int width, int height, int oldWidth, int oldHeight)Deprecated.voidonStart()Deprecated.voidonStop()Deprecated.booleanonTextInputKeyEvent(KeyEvent keyEvent)Deprecated.Send aKeyEventthat is not handled by the keyboard responders to the text input system.booleanonTouchEvent(MotionEvent event)Deprecated.voidpopRoute()Deprecated.voidpushRoute(String route)Deprecated.voidredispatch(KeyEvent keyEvent)Deprecated.Send aKeyEventthat is not handled by Flutter back to the platform.TextureRegistry.SurfaceTextureEntryregisterSurfaceTexture(SurfaceTexture surfaceTexture)Deprecated.Registers a SurfaceTexture managed by the Flutter engine.voidremoveFirstFrameListener(FlutterView.FirstFrameListener listener)Deprecated.Remove an existing first frame listener.voidrunFromBundle(FlutterRunArguments args)Deprecated.voidsend(String channel, ByteBuffer message)Deprecated.Sends a binary message to the Flutter application.voidsend(String channel, ByteBuffer message, BinaryMessenger.BinaryReply callback)Deprecated.Sends a binary message to the Flutter application, optionally expecting a reply.voidsetInitialRoute(String route)Deprecated.voidsetMessageHandler(String channel, BinaryMessenger.BinaryMessageHandler handler)Deprecated.Registers a handler to be invoked when the Flutter application sends a message to its host platform.voidsetMessageHandler(String channel, BinaryMessenger.BinaryMessageHandler handler, BinaryMessenger.TaskQueue taskQueue)Deprecated.Registers a handler to be invoked when the Flutter application sends a message to its host platform.-
Methods inherited from class android.view.SurfaceView
dispatchDraw, draw, gatherTransparentRegion, getHolder, getHostToken, getImportantForAccessibility, getSurfaceControl, onFocusChanged, onMeasure, onWindowVisibilityChanged, setAlpha, setChildSurfacePackage, setClipBounds, setSecure, setVisibility, setZOrderMediaOverlay, setZOrderOnTop
-
Methods inherited from class android.view.View
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addFocusables, addKeyboardNavigationClusters, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, addTouchables, animate, announceForAccessibility, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, clearAnimation, clearFocus, clearViewTranslationCallback, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPointerCaptureChanged, dispatchPopulateAccessibilityEvent, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableHotspotChanged, drawableStateChanged, findFocus, findViewById, findViewsWithText, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateDisplayHash, generateViewId, getAccessibilityClassName, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverlay, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasTransientState, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, jumpDrawablesToCurrentState, keyboardNavigationClusterSearch, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateContextMenu, onCreateDrawableState, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onHoverChanged, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onResolvePointerIcon, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollCaptureSearch, onScrollChanged, onSetAlpha, onStartTemporaryDetach, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreDefaultFocus, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setWillNotCacheDrawing, setWillNotDraw, setWindowInsetsAnimationCallback, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.flutter.plugin.common.BinaryMessenger
makeBackgroundTaskQueue
-
Methods inherited from interface io.flutter.plugin.mouse.MouseCursorPlugin.MouseCursorViewDelegate
setPointerIcon
-
Methods inherited from interface io.flutter.view.TextureRegistry
onTrimMemory
-
-
-
-
Constructor Detail
-
FlutterView
public FlutterView(Context context)
Deprecated.
-
FlutterView
public FlutterView(Context context, AttributeSet attrs)
Deprecated.
-
FlutterView
public FlutterView(Context context, AttributeSet attrs, FlutterNativeView nativeView)
Deprecated.
-
-
Method Detail
-
getDartExecutor
@NonNull public DartExecutor getDartExecutor()
Deprecated.
-
dispatchKeyEvent
public boolean dispatchKeyEvent(KeyEvent event)
Deprecated.- Overrides:
dispatchKeyEventin classView
-
getFlutterNativeView
public FlutterNativeView getFlutterNativeView()
Deprecated.
-
getPluginRegistry
public FlutterPluginRegistry getPluginRegistry()
Deprecated.
-
getLookupKeyForAsset
public String getLookupKeyForAsset(String asset, String packageName)
Deprecated.
-
addActivityLifecycleListener
public void addActivityLifecycleListener(ActivityLifecycleListener listener)
Deprecated.
-
onStart
public void onStart()
Deprecated.
-
onPause
public void onPause()
Deprecated.
-
onPostResume
public void onPostResume()
Deprecated.
-
onStop
public void onStop()
Deprecated.
-
onMemoryPressure
public void onMemoryPressure()
Deprecated.
-
hasRenderedFirstFrame
public boolean hasRenderedFirstFrame()
Deprecated.Returns true if the Flutter experience associated with thisFlutterViewhas rendered its first frame, or false otherwise.
-
addFirstFrameListener
public void addFirstFrameListener(FlutterView.FirstFrameListener listener)
Deprecated.Provide a listener that will be called once when the FlutterView renders its first frame to the underlaying SurfaceView.
-
removeFirstFrameListener
public void removeFirstFrameListener(FlutterView.FirstFrameListener listener)
Deprecated.Remove an existing first frame listener.
-
enableBufferingIncomingMessages
public void enableBufferingIncomingMessages()
Deprecated.Description copied from interface:BinaryMessengerEnables the ability to queue messages received from Dart.This is useful when there are pending channel handler registrations. For example, Dart may be initialized concurrently, and prior to the registration of the channel handlers. This implies that Dart may start sending messages while plugins are being registered.
- Specified by:
enableBufferingIncomingMessagesin interfaceBinaryMessenger
-
disableBufferingIncomingMessages
public void disableBufferingIncomingMessages()
Deprecated.Description copied from interface:BinaryMessengerDisables the ability to queue messages received from Dart.This can be used after all pending channel handlers have been registered.
- Specified by:
disableBufferingIncomingMessagesin interfaceBinaryMessenger
-
disableTransparentBackground
public void disableTransparentBackground()
Deprecated.Reverts this back to theSurfaceViewdefaults, at the back of its window and opaque.
-
setInitialRoute
public void setInitialRoute(String route)
Deprecated.
-
pushRoute
public void pushRoute(String route)
Deprecated.
-
popRoute
public void popRoute()
Deprecated.
-
onConfigurationChanged
protected void onConfigurationChanged(Configuration newConfig)
Deprecated.- Overrides:
onConfigurationChangedin classView
-
detach
public FlutterNativeView detach()
Deprecated.
-
destroy
public void destroy()
Deprecated.
-
onCreateInputConnection
public InputConnection onCreateInputConnection(EditorInfo outAttrs)
Deprecated.- Overrides:
onCreateInputConnectionin classView
-
checkInputConnectionProxy
public boolean checkInputConnectionProxy(View view)
Deprecated.- Overrides:
checkInputConnectionProxyin classView
-
onProvideAutofillVirtualStructure
public void onProvideAutofillVirtualStructure(ViewStructure structure, int flags)
Deprecated.- Overrides:
onProvideAutofillVirtualStructurein classView
-
autofill
public void autofill(SparseArray<AutofillValue> values)
Deprecated.
-
onTouchEvent
public boolean onTouchEvent(MotionEvent event)
Deprecated.- Overrides:
onTouchEventin classView
-
onHoverEvent
public boolean onHoverEvent(MotionEvent event)
Deprecated.- Overrides:
onHoverEventin classView
-
onGenericMotionEvent
public boolean onGenericMotionEvent(MotionEvent event)
Deprecated.Invoked by Android when a generic motion event occurs, e.g., joystick movement, mouse hover, track pad touches, scroll wheel movements, etc.Flutter handles all of its own gesture detection and processing, therefore this method forwards all
MotionEventdata from Android to Flutter.- Overrides:
onGenericMotionEventin classView
-
onSizeChanged
protected void onSizeChanged(int width, int height, int oldWidth, int oldHeight)Deprecated.- Overrides:
onSizeChangedin classView
-
onApplyWindowInsets
@RequiresApi(20) public final WindowInsets onApplyWindowInsets(WindowInsets insets)
Deprecated.- Overrides:
onApplyWindowInsetsin classView
-
fitSystemWindows
protected boolean fitSystemWindows(Rect insets)
Deprecated.- Overrides:
fitSystemWindowsin classView
-
runFromBundle
public void runFromBundle(FlutterRunArguments args)
Deprecated.
-
getBitmap
public Bitmap getBitmap()
Deprecated.Return the most recent frame as a bitmap.- Returns:
- A bitmap.
-
onFirstFrame
public void onFirstFrame()
Deprecated.
-
onAttachedToWindow
protected void onAttachedToWindow()
Deprecated.- Overrides:
onAttachedToWindowin classSurfaceView
-
onDetachedFromWindow
protected void onDetachedFromWindow()
Deprecated.- Overrides:
onDetachedFromWindowin classSurfaceView
-
getAccessibilityNodeProvider
public AccessibilityNodeProvider getAccessibilityNodeProvider()
Deprecated.- Overrides:
getAccessibilityNodeProviderin classView
-
getSystemPointerIcon
@RequiresApi(24) @NonNull public PointerIcon getSystemPointerIcon(int type)
Deprecated.Description copied from interface:io.flutter.plugin.mouse.MouseCursorPlugin.MouseCursorViewDelegateGets a system pointer icon object for the giventype.If typeis not recognized, returns the default pointer icon.
This is typically implemented by calling
PointerIcon.getSystemIcon(android.content.Context, int)with the context associated with this view.- Specified by:
getSystemPointerIconin interfaceio.flutter.plugin.mouse.MouseCursorPlugin.MouseCursorViewDelegate
-
getBinaryMessenger
public BinaryMessenger getBinaryMessenger()
Deprecated.Description copied from interface:KeyboardManager.ViewDelegateReturns aBinaryMessengerto send platform messages with.- Specified by:
getBinaryMessengerin interfaceKeyboardManager.ViewDelegate
-
onTextInputKeyEvent
public boolean onTextInputKeyEvent(@NonNull KeyEvent keyEvent)Deprecated.Description copied from interface:KeyboardManager.ViewDelegateSend aKeyEventthat is not handled by the keyboard responders to the text input system.- Specified by:
onTextInputKeyEventin interfaceKeyboardManager.ViewDelegate- Parameters:
keyEvent- theKeyEventthat should be processed by the text input system. It must not be null.- Returns:
- Whether the text input handles the key event.
-
redispatch
public void redispatch(@NonNull KeyEvent keyEvent)Deprecated.Description copied from interface:KeyboardManager.ViewDelegateSend aKeyEventthat is not handled by Flutter back to the platform.- Specified by:
redispatchin interfaceKeyboardManager.ViewDelegate
-
makeBackgroundTaskQueue
@UiThread public BinaryMessenger.TaskQueue makeBackgroundTaskQueue(BinaryMessenger.TaskQueueOptions options)
Deprecated.Description copied from interface:BinaryMessengerCreates a TaskQueue that executes the tasks serially on a background thread.BinaryMessenger.TaskQueueOptionscan be used to configure the task queue to execute tasks concurrently. Doing so can be more performant, though users need to ensure that the task handlers are thread-safe.- Specified by:
makeBackgroundTaskQueuein interfaceBinaryMessenger
-
send
@UiThread public void send(String channel, ByteBuffer message)
Deprecated.Description copied from interface:BinaryMessengerSends a binary message to the Flutter application.- Specified by:
sendin interfaceBinaryMessenger- Parameters:
channel- the nameStringof the logical channel used for the message.message- the message payload, a direct-allocatedByteBufferwith the message bytes between position zero and current position, or null.
-
send
@UiThread public void send(String channel, ByteBuffer message, BinaryMessenger.BinaryReply callback)
Deprecated.Description copied from interface:BinaryMessengerSends a binary message to the Flutter application, optionally expecting a reply.Any uncaught exception thrown by the reply callback will be caught and logged.
- Specified by:
sendin interfaceBinaryMessenger- Parameters:
channel- the nameStringof the logical channel used for the message.message- the message payload, a direct-allocatedByteBufferwith the message bytes between position zero and current position, or null.callback- aBinaryMessenger.BinaryReplycallback invoked when the Flutter application responds to the message, possibly null.
-
setMessageHandler
@UiThread public void setMessageHandler(@NonNull String channel, @NonNull BinaryMessenger.BinaryMessageHandler handler)Deprecated.Description copied from interface:BinaryMessengerRegisters a handler to be invoked when the Flutter application sends a message to its host platform.Registration overwrites any previous registration for the same channel name. Use a null handler to deregister.
If no handler has been registered for a particular channel, any incoming message on that channel will be handled silently by sending a null reply.
- Specified by:
setMessageHandlerin interfaceBinaryMessenger- Parameters:
channel- the nameStringof the channel.handler- aBinaryMessenger.BinaryMessageHandlerto be invoked on incoming messages, or null.
-
setMessageHandler
@UiThread public void setMessageHandler(@NonNull String channel, @NonNull BinaryMessenger.BinaryMessageHandler handler, @NonNull BinaryMessenger.TaskQueue taskQueue)Deprecated.Description copied from interface:BinaryMessengerRegisters a handler to be invoked when the Flutter application sends a message to its host platform.Registration overwrites any previous registration for the same channel name. Use a null handler to deregister.
If no handler has been registered for a particular channel, any incoming message on that channel will be handled silently by sending a null reply.
- Specified by:
setMessageHandlerin interfaceBinaryMessenger- Parameters:
channel- the nameStringof the channel.handler- aBinaryMessenger.BinaryMessageHandlerto be invoked on incoming messages, or null.taskQueue- aBinaryMessenger.TaskQueuethat specifies what thread will execute the handler. Specifying null means execute on the platform thread.
-
createSurfaceTexture
@NonNull public TextureRegistry.SurfaceTextureEntry createSurfaceTexture()
Deprecated.Description copied from interface:TextureRegistryCreates and registers a SurfaceTexture managed by the Flutter engine.- Specified by:
createSurfaceTexturein interfaceTextureRegistry- Returns:
- A SurfaceTextureEntry.
-
registerSurfaceTexture
@NonNull public TextureRegistry.SurfaceTextureEntry registerSurfaceTexture(@NonNull SurfaceTexture surfaceTexture)
Deprecated.Description copied from interface:TextureRegistryRegisters a SurfaceTexture managed by the Flutter engine.- Specified by:
registerSurfaceTexturein interfaceTextureRegistry- Returns:
- A SurfaceTextureEntry.
-
-