Flutter Engine
The Flutter Engine
testing
scenario_app
android
app
src
main
java
dev
flutter
scenarios
GetBitmapActivity.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
dev.flutter.scenarios;
6
7
import
android
.graphics.Bitmap;
8
import
androidx.annotation.Nullable;
9
10
public
class
GetBitmapActivity
extends
TestActivity
{
11
12
@Nullable
private
volatile
Bitmap
bitmap
;
13
14
@Nullable
15
public
Bitmap
getBitmap
() {
16
waitUntilFlutterRendered
();
17
return
bitmap
;
18
}
19
20
@Nullable
21
protected
void
notifyFlutterRendered
() {
22
bitmap
=
getFlutterEngine
().
getRenderer
().
getBitmap
();
23
super.notifyFlutterRendered();
24
}
25
}
dev.flutter.scenarios.GetBitmapActivity
Definition:
GetBitmapActivity.java:10
dev.flutter.scenarios.GetBitmapActivity.notifyFlutterRendered
void notifyFlutterRendered()
Definition:
GetBitmapActivity.java:21
dev.flutter.scenarios.GetBitmapActivity.getBitmap
Bitmap getBitmap()
Definition:
GetBitmapActivity.java:15
dev.flutter.scenarios.TestActivity
Definition:
TestActivity.java:28
dev.flutter.scenarios.TestableFlutterActivity.waitUntilFlutterRendered
void waitUntilFlutterRendered()
Definition:
TestableFlutterActivity.java:45
io.flutter.embedding.android.FlutterActivity.getFlutterEngine
FlutterEngine getFlutterEngine()
Definition:
FlutterActivity.java:1290
io.flutter.embedding.engine.FlutterEngine.getRenderer
FlutterRenderer getRenderer()
Definition:
FlutterEngine.java:519
io.flutter.embedding.engine.renderer.FlutterRenderer.getBitmap
Bitmap getBitmap()
Definition:
FlutterRenderer.java:1194
android
Definition:
BitmapRegionDecoder.cpp:14
bitmap
Definition:
bitmap.py:1
Generated on Sun Jun 23 2024 21:55:19 for Flutter Engine by
1.9.4