Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shell
platform
android
flutter_main.h
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
#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_FLUTTER_MAIN_H_
6
#define FLUTTER_SHELL_PLATFORM_ANDROID_FLUTTER_MAIN_H_
7
8
#include <jni.h>
9
10
#include "flutter/common/settings.h"
11
#include "flutter/fml/macros.h"
12
#include "flutter/runtime/dart_service_isolate.h"
13
14
namespace
flutter
{
15
16
class
FlutterMain
{
17
public
:
18
~FlutterMain
();
19
20
static
bool
Register
(JNIEnv*
env
);
21
22
static
FlutterMain
&
Get
();
23
24
const
flutter::Settings
&
GetSettings
()
const
;
25
26
static
AndroidRenderingAPI
SelectedRenderingAPI
(
27
const
flutter::Settings
& settings);
28
29
private
:
30
const
flutter::Settings
settings_;
31
DartServiceIsolate::CallbackHandle
vm_service_uri_callback_ = 0;
32
33
explicit
FlutterMain
(
const
flutter::Settings
& settings);
34
35
static
void
Init
(JNIEnv*
env
,
36
jclass clazz,
37
jobject context,
38
jobjectArray jargs,
39
jstring kernelPath,
40
jstring appStoragePath,
41
jstring engineCachesPath,
42
jlong initTimeMillis);
43
44
void
SetupDartVMServiceUriCallback(JNIEnv*
env
);
45
46
FML_DISALLOW_COPY_AND_ASSIGN
(
FlutterMain
);
47
};
48
49
}
// namespace flutter
50
51
#endif
// FLUTTER_SHELL_PLATFORM_ANDROID_FLUTTER_MAIN_H_
flutter::DartServiceIsolate::CallbackHandle
ptrdiff_t CallbackHandle
Definition
dart_service_isolate.h:27
flutter::FlutterMain
Definition
flutter_main.h:16
flutter::FlutterMain::GetSettings
const flutter::Settings & GetSettings() const
Definition
flutter_main.cc:64
flutter::FlutterMain::Get
static FlutterMain & Get()
Definition
flutter_main.cc:58
flutter::FlutterMain::Register
static bool Register(JNIEnv *env)
Definition
flutter_main.cc:209
flutter::FlutterMain::~FlutterMain
~FlutterMain()
flutter::FlutterMain::SelectedRenderingAPI
static AndroidRenderingAPI SelectedRenderingAPI(const flutter::Settings &settings)
Definition
flutter_main.cc:234
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
Init
void Init()
Definition
gm_bindings.cpp:346
env
Definition
__init__.py:1
flutter
Definition
asset_manager.cc:10
flutter::AndroidRenderingAPI
AndroidRenderingAPI
Definition
settings.h:26
flutter::Settings
Definition
settings.h:104
Generated on Fri Apr 26 2024 06:14:19 for Flutter Engine by
1.9.8