Class FlutterView

    • Method Detail

      • getDartExecutor

        @NonNull
        public DartExecutor getDartExecutor()
        Deprecated.
      • getLookupKeyForAsset

        public String getLookupKeyForAsset​(String asset)
        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 this FlutterView has 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.
      • disableTransparentBackground

        public void disableTransparentBackground()
        Deprecated.
        Reverts this back to the SurfaceView defaults, 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.
      • destroy

        public void destroy()
        Deprecated.
      • 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 MotionEvent data from Android to Flutter.

        Overrides:
        onGenericMotionEvent in class View
      • onSizeChanged

        protected void onSizeChanged​(int width,
                                     int height,
                                     int oldWidth,
                                     int oldHeight)
        Deprecated.
        Overrides:
        onSizeChanged in class View
      • fitSystemWindows

        protected boolean fitSystemWindows​(Rect insets)
        Deprecated.
        Overrides:
        fitSystemWindows in class View
      • getBitmap

        public Bitmap getBitmap()
        Deprecated.
        Return the most recent frame as a bitmap.
        Returns:
        A bitmap.
      • onFirstFrame

        public void onFirstFrame()
        Deprecated.
      • getSystemPointerIcon

        @RequiresApi(24)
        @NonNull
        public PointerIcon getSystemPointerIcon​(int type)
        Deprecated.
        Description copied from interface: io.flutter.plugin.mouse.MouseCursorPlugin.MouseCursorViewDelegate
        Gets a system pointer icon object for the given type.

        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:
        getSystemPointerIcon in interface io.flutter.plugin.mouse.MouseCursorPlugin.MouseCursorViewDelegate
      • makeBackgroundTaskQueue

        @UiThread
        public BinaryMessenger.TaskQueue makeBackgroundTaskQueue()
        Deprecated.
        Description copied from interface: BinaryMessenger
        Creates a TaskQueue that executes the tasks serially on a background thread.

        There is no guarantee that the tasks will execute on the same thread, just that execution is serial.

        Specified by:
        makeBackgroundTaskQueue in interface BinaryMessenger
      • send

        @UiThread
        public void send​(String channel,
                         ByteBuffer message)
        Deprecated.
        Description copied from interface: BinaryMessenger
        Sends a binary message to the Flutter application.
        Specified by:
        send in interface BinaryMessenger
        Parameters:
        channel - the name String of the logical channel used for the message.
        message - the message payload, a direct-allocated ByteBuffer with 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: BinaryMessenger
        Sends 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:
        send in interface BinaryMessenger
        Parameters:
        channel - the name String of the logical channel used for the message.
        message - the message payload, a direct-allocated ByteBuffer with the message bytes between position zero and current position, or null.
        callback - a BinaryMessenger.BinaryReply callback invoked when the Flutter application responds to the message, possibly null.
      • setMessageHandler

        @UiThread
        public void setMessageHandler​(String channel,
                                      BinaryMessenger.BinaryMessageHandler handler)
        Deprecated.
        Description copied from interface: BinaryMessenger
        Registers 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:
        setMessageHandler in interface BinaryMessenger
        Parameters:
        channel - the name String of the channel.
        handler - a BinaryMessenger.BinaryMessageHandler to be invoked on incoming messages, or null.
      • setMessageHandler

        @UiThread
        public void setMessageHandler​(String channel,
                                      BinaryMessenger.BinaryMessageHandler handler,
                                      BinaryMessenger.TaskQueue taskQueue)
        Deprecated.
        Description copied from interface: BinaryMessenger
        Registers 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:
        setMessageHandler in interface BinaryMessenger
        Parameters:
        channel - the name String of the channel.
        handler - a BinaryMessenger.BinaryMessageHandler to be invoked on incoming messages, or null.
        taskQueue - a BinaryMessenger.TaskQueue that specifies what thread will execute the handler. Specifying null means execute on the platform thread.