|
6 | 6 |
|
7 | 7 | import android.content.Context; |
8 | 8 | import android.util.Log; |
| 9 | +import io.flutter.embedding.engine.FlutterEngine; |
9 | 10 | import io.flutter.embedding.engine.plugins.FlutterPlugin; |
10 | 11 | import io.flutter.plugin.common.BinaryMessenger; |
11 | 12 | import io.flutter.plugin.common.JSONMethodCodec; |
12 | 13 | import io.flutter.plugin.common.MethodCall; |
13 | 14 | import io.flutter.plugin.common.MethodChannel; |
14 | 15 | import io.flutter.plugin.common.MethodChannel.MethodCallHandler; |
15 | 16 | import io.flutter.plugin.common.MethodChannel.Result; |
16 | | -import io.flutter.view.FlutterNativeView; |
17 | 17 | import org.json.JSONArray; |
18 | 18 | import org.json.JSONException; |
19 | 19 | import org.json.JSONObject; |
|
28 | 28 | * <li>The Dart side of this plugin sends the Android side a "AlarmService.start" message, along |
29 | 29 | * with a Dart callback handle for a Dart callback that should be immediately invoked by a |
30 | 30 | * background Dart isolate. |
31 | | - * <li>The Android side of this plugin spins up a background {@link FlutterNativeView}, which |
32 | | - * includes a background Dart isolate. |
| 31 | + * <li>The Android side of this plugin spins up a background {@link FlutterEngine} to run a |
| 32 | + * background Dart isolate. |
33 | 33 | * <li>The Android side of this plugin instructs the new background Dart isolate to execute the |
34 | 34 | * callback that was received in the "AlarmService.start" message. |
35 | 35 | * <li>The Dart side of this plugin, running within the new background isolate, executes the |
|
0 commit comments