-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Core Functionality
-
-
void onDisplayPlatformView(int id, int x, int y, int width, int height, MutatorStack stack)
Issue: Implement onDisplayPlatformView JNI #60140 - Positions and sizes a platform view identified byid. When first called, a platform view must be allocated and stored for future calls. The mutator stack is used to implement the scene builder ops in Implement scene builder ops when an Android view is involved #58426 -
-
void onDisplayOverlaySurface(int id, int x, int y, int width, int height)
Issue: Implement onDisplayOverlaySurface JNI #60150 - Positions and sizes an overlay surface identified byid. -
-
FlutterOverlaySurface createOverlaySurface()
Creates an overlay surface.
Helpers
-
-
void onBeginFrame()
Called at the beginning of the frame to initialize any data structure. -
-
void onEndFrame()
Called at the end of the frame to clean up any state. For example, if a platform view isn't displayed in the current frame, then it could be deallocated. Depends on Rasterizer should always call EndFrame #60124
FlutterOverlaySurface
import android.view.Surface;
final public class FlutterOverlaySurface {
@NonNull final private final Surface surface;
final private final int id;
public FlutterOverlaySurface(int id, @NonNull Surface surface) {
this.id = id;
this.surface = surface;
}
public int getId() {
return id;
}
@NonNull
public Surface getSurface() {
return surface;
}
}