Flutter Engine
The Flutter Engine
shell
platform
android
io
flutter
plugin
platform
PlatformViewRenderTarget.java
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
package
io.flutter.plugin.platform;
6
7
import
android
.view.Surface;
8
9
/**
10
* A PlatformViewRenderTarget interface allows an Android Platform View to be rendered into an
11
* offscreen buffer (usually a texture is involved) that the engine can compose into the
12
* FlutterView.
13
*/
14
public
interface
PlatformViewRenderTarget
{
15
// Called when the render target should be resized.
16
public
void
resize
(
int
width
,
int
height
);
17
18
// Returns the currently specified width.
19
public
int
getWidth
();
20
21
// Returns the currently specified height.
22
public
int
getHeight
();
23
24
// The id of this render target.
25
public
long
getId
();
26
27
// Releases backing resources.
28
public
void
release
();
29
30
// Returns true in the case that backing resource have been released.
31
public
boolean
isReleased
();
32
33
// Returns the Surface to be rendered on to.
34
public
Surface
getSurface
();
35
36
// Schedules a frame to be drawn.
37
public
default
void
scheduleFrame
() {}
38
}
io.flutter.plugin.platform.PlatformViewRenderTarget
Definition:
PlatformViewRenderTarget.java:14
io.flutter.plugin.platform.PlatformViewRenderTarget.isReleased
boolean isReleased()
io.flutter.plugin.platform.PlatformViewRenderTarget.resize
void resize(int width, int height)
io.flutter.plugin.platform.PlatformViewRenderTarget.getId
long getId()
io.flutter.plugin.platform.PlatformViewRenderTarget.getHeight
int getHeight()
io.flutter.plugin.platform.PlatformViewRenderTarget.getSurface
Surface getSurface()
io.flutter.plugin.platform.PlatformViewRenderTarget.getWidth
int getWidth()
io.flutter.plugin.platform.PlatformViewRenderTarget.scheduleFrame
default void scheduleFrame()
Definition:
PlatformViewRenderTarget.java:37
io.flutter.plugin.platform.PlatformViewRenderTarget.release
void release()
android
Definition:
BitmapRegionDecoder.cpp:14
height
int32_t height
Definition:
serialization_callbacks.cc:1
width
int32_t width
Definition:
serialization_callbacks.cc:0
Generated on Sun Jun 23 2024 21:55:10 for Flutter Engine by
1.9.4