mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This patch cleans up the public Java interface to the Flutter engine. The code that we intend to be re-usable is now in the io.flutter.view package. The two public classes are: * FlutterMain, which controls initialization of the system, and * FlutterView, which is an Android view that hosts a Flutter app. We'll need to interate on these interface over time, but at least these names are more reasonable.
19 lines
459 B
C++
19 lines
459 B
C++
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef SKY_SHELL_PLATFORM_ANDROID_FLUTTER_MAIN_H_
|
|
#define SKY_SHELL_PLATFORM_ANDROID_FLUTTER_MAIN_H_
|
|
|
|
#include <jni.h>
|
|
|
|
namespace sky {
|
|
namespace shell {
|
|
|
|
bool RegisterFlutterMain(JNIEnv* env);
|
|
|
|
} // namespace shell
|
|
} // namespace sky
|
|
|
|
#endif // SKY_SHELL_PLATFORM_ANDROID_FLUTTER_MAIN_H_
|