Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
5package dev.flutter.scenarios;
6
7import android.graphics.Bitmap;
8import androidx.annotation.Nullable;
9
10public class GetBitmapActivity extends TestActivity {
11
12 @Nullable private volatile Bitmap bitmap;
13
14 @Nullable
15 public Bitmap getBitmap() {
17 return bitmap;
18 }
19
20 @Nullable
21 protected void notifyFlutterRendered() {
22 bitmap = getFlutterEngine().getRenderer().getBitmap();
23 super.notifyFlutterRendered();
24 }
25}