5package dev.flutter.scenarios;
8import android.view.WindowManager;
9import androidx.annotation.NonNull;
10import androidx.annotation.Nullable;
11import io.flutter.embedding.android.FlutterActivity;
12import io.flutter.embedding.engine.FlutterEngine;
13import java.util.concurrent.CountDownLatch;
16 private final CountDownLatch flutterUiRenderedLatch =
new CountDownLatch(1);
28 protected void onCreate(@Nullable Bundle savedInstanceState) {
29 super.onCreate(savedInstanceState);
38 getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
42 flutterUiRenderedLatch.countDown();
47 flutterUiRenderedLatch.await();
48 }
catch (InterruptedException
e) {
49 throw new RuntimeException(
e);
void notifyFlutterRendered()
void waitUntilFlutterRendered()
void configureFlutterEngine(@NonNull FlutterEngine flutterEngine)
void onCreate(@Nullable Bundle savedInstanceState)