Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
platform_message_response_android.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_PLATFORM_MESSAGE_RESPONSE_ANDROID_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_MESSAGE_RESPONSE_ANDROID_H_
7
8#include "flutter/fml/macros.h"
9#include "flutter/fml/platform/android/jni_weak_ref.h"
10#include "flutter/fml/task_runner.h"
11#include "flutter/lib/ui/window/platform_message_response.h"
12#include "flutter/shell/platform/android/jni/platform_view_android_jni.h"
13
14namespace flutter {
15
17 public:
18 // |flutter::PlatformMessageResponse|
19 void Complete(std::unique_ptr<fml::Mapping> data) override;
20
21 // |flutter::PlatformMessageResponse|
22 void CompleteEmpty() override;
23
24 private:
26 int response_id,
27 std::shared_ptr<PlatformViewAndroidJNI> jni_facade,
28 fml::RefPtr<fml::TaskRunner> platform_task_runner);
29
31
32 const int response_id_;
33 const std::shared_ptr<PlatformViewAndroidJNI> jni_facade_;
34 const fml::RefPtr<fml::TaskRunner> platform_task_runner_;
35
38};
39
40} // namespace flutter
41
42#endif // FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_MESSAGE_RESPONSE_ANDROID_H_
void Complete(std::unique_ptr< fml::Mapping > data) override
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition switches.h:41
#define FML_FRIEND_MAKE_REF_COUNTED(T)