|
virtual | ~PlatformViewAndroidJNI () |
|
virtual void | FlutterViewHandlePlatformMessage (std::unique_ptr< flutter::PlatformMessage > message, int responseId)=0 |
| Sends a platform message. The message may be empty. More...
|
|
virtual void | FlutterViewHandlePlatformMessageResponse (int responseId, std::unique_ptr< fml::Mapping > data)=0 |
| Responds to a platform message. The data may be a nullptr . More...
|
|
virtual void | FlutterViewUpdateSemantics (std::vector< uint8_t > buffer, std::vector< std::string > strings, std::vector< std::vector< uint8_t > > string_attribute_args)=0 |
| Sends semantics tree updates. More...
|
|
virtual void | FlutterViewUpdateCustomAccessibilityActions (std::vector< uint8_t > actions_buffer, std::vector< std::string > strings)=0 |
| Sends new custom accessibility events. More...
|
|
virtual void | FlutterViewOnFirstFrame ()=0 |
| Indicates that FlutterView should start painting pixels. More...
|
|
virtual void | FlutterViewOnPreEngineRestart ()=0 |
| Indicates that a hot restart is about to happen. More...
|
|
virtual void | SurfaceTextureAttachToGLContext (JavaLocalRef surface_texture, int textureId)=0 |
| Attach the SurfaceTexture to the OpenGL ES context that is current on the calling thread. More...
|
|
virtual bool | SurfaceTextureShouldUpdate (JavaLocalRef surface_texture)=0 |
| Returns true if surface_texture should be updated. More...
|
|
virtual void | SurfaceTextureUpdateTexImage (JavaLocalRef surface_texture)=0 |
| Updates the texture image to the most recent frame from the image stream. More...
|
|
virtual void | SurfaceTextureGetTransformMatrix (JavaLocalRef surface_texture, SkMatrix &transform)=0 |
| Gets the transform matrix from the SurfaceTexture. Then, it updates the transform matrix, so it fill the canvas and preserve the aspect ratio. More...
|
|
virtual void | SurfaceTextureDetachFromGLContext (JavaLocalRef surface_texture)=0 |
| Detaches a SurfaceTexture from the OpenGL ES context. More...
|
|
virtual JavaLocalRef | ImageProducerTextureEntryAcquireLatestImage (JavaLocalRef image_texture_entry)=0 |
| Acquire the latest image available. More...
|
|
virtual JavaLocalRef | ImageGetHardwareBuffer (JavaLocalRef image)=0 |
| Grab the HardwareBuffer from image. More...
|
|
virtual void | ImageClose (JavaLocalRef image)=0 |
| Call close on image. More...
|
|
virtual void | HardwareBufferClose (JavaLocalRef hardware_buffer)=0 |
| Call close on hardware_buffer. More...
|
|
virtual void | FlutterViewOnDisplayPlatformView (int view_id, int x, int y, int width, int height, int viewWidth, int viewHeight, MutatorsStack mutators_stack)=0 |
| Positions and sizes a platform view if using hybrid composition. More...
|
|
virtual void | FlutterViewDisplayOverlaySurface (int surface_id, int x, int y, int width, int height)=0 |
| Positions and sizes an overlay surface in hybrid composition. More...
|
|
virtual void | FlutterViewBeginFrame ()=0 |
| Initiates a frame if using hybrid composition. More...
|
|
virtual void | FlutterViewEndFrame ()=0 |
| Indicates that the current frame ended. It's used to clean up state. More...
|
|
virtual std::unique_ptr< PlatformViewAndroidJNI::OverlayMetadata > | FlutterViewCreateOverlaySurface ()=0 |
| Instantiates an overlay surface in hybrid composition and provides the necessary metadata to operate the surface in C. More...
|
|
virtual void | FlutterViewDestroyOverlaySurfaces ()=0 |
| Destroys the overlay surfaces. More...
|
|
virtual std::unique_ptr< std::vector< std::string > > | FlutterViewComputePlatformResolvedLocale (std::vector< std::string > supported_locales_data)=0 |
| Computes the locale Android would select. More...
|
|
virtual double | GetDisplayRefreshRate ()=0 |
|
virtual double | GetDisplayWidth ()=0 |
|
virtual double | GetDisplayHeight ()=0 |
|
virtual double | GetDisplayDensity ()=0 |
|
virtual bool | RequestDartDeferredLibrary (int loading_unit_id)=0 |
|
virtual double | FlutterViewGetScaledFontSize (double unscaled_font_size, int configuration_id) const =0 |
|
Allows to call Java code running in the JVM from any thread. However, most methods can only be called from the platform thread as that is where the Java code runs.
This interface must not depend on the Android toolchain directly, so it can be used in unit tests compiled with the host toolchain.
Definition at line 38 of file platform_view_android_jni.h.