Class FlutterTextureView

    • Constructor Detail

      • FlutterTextureView

        public FlutterTextureView​(@NonNull
                                  Context context)
        Constructs a FlutterTextureView programmatically, without any XML attributes.
      • FlutterTextureView

        public FlutterTextureView​(@NonNull
                                  Context context,
                                  @Nullable
                                  AttributeSet attrs)
        Constructs a FlutterTextureView in an XML-inflation-compliant manner.
    • Method Detail

      • getAttachedRenderer

        @Nullable
        public FlutterRenderer getAttachedRenderer()
        Description copied from interface: RenderSurface
        Returns the FlutterRenderer that is attached to this RenderSurface, or null if no FlutterRenderer is currently attached.
        Specified by:
        getAttachedRenderer in interface RenderSurface
      • detachFromRenderer

        public void detachFromRenderer()
        Invoked by the owner of this FlutterTextureView when it no longer wants to render a Flutter UI to this FlutterTextureView.

        This method will cease any on-going rendering from Flutter to this FlutterTextureView.

        Specified by:
        detachFromRenderer in interface RenderSurface
      • pause

        public void pause()
        Invoked by the owner of this FlutterTextureView when it should pause rendering Flutter UI to this FlutterTextureView.
        Specified by:
        pause in interface RenderSurface
      • setRenderSurface

        public void setRenderSurface​(Surface renderSurface)
        Manually set the render surface for this view.

        This should only be used for testing purposes.