Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shell
platform
android
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
14
namespace
flutter
{
15
16
class
PlatformMessageResponseAndroid
:
public
flutter::PlatformMessageResponse
{
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
:
25
PlatformMessageResponseAndroid
(
26
int
response_id,
27
std::shared_ptr<PlatformViewAndroidJNI> jni_facade,
28
fml::RefPtr<fml::TaskRunner>
platform_task_runner);
29
30
~PlatformMessageResponseAndroid
()
override
;
31
32
const
int
response_id_;
33
const
std::shared_ptr<PlatformViewAndroidJNI> jni_facade_;
34
const
fml::RefPtr<fml::TaskRunner>
platform_task_runner_;
35
36
FML_FRIEND_MAKE_REF_COUNTED
(
PlatformMessageResponseAndroid
);
37
FML_DISALLOW_COPY_AND_ASSIGN
(
PlatformMessageResponseAndroid
);
38
};
39
40
}
// namespace flutter
41
42
#endif
// FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_MESSAGE_RESPONSE_ANDROID_H_
flutter::PlatformMessageResponseAndroid
Definition
platform_message_response_android.h:16
flutter::PlatformMessageResponseAndroid::Complete
void Complete(std::unique_ptr< fml::Mapping > data) override
Definition
platform_message_response_android.cc:25
flutter::PlatformMessageResponseAndroid::CompleteEmpty
void CompleteEmpty() override
Definition
platform_message_response_android.cc:37
flutter::PlatformMessageResponseAndroid::~PlatformMessageResponseAndroid
~PlatformMessageResponseAndroid() override
flutter::PlatformMessageResponse
Definition
platform_message_response.h:17
fml::RefPtr
Definition
ref_ptr.h:65
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter
Definition
asset_manager.cc:10
flutter::data
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
FML_FRIEND_MAKE_REF_COUNTED
#define FML_FRIEND_MAKE_REF_COUNTED(T)
Definition
ref_counted.h:132
Generated on Fri Apr 26 2024 06:14:21 for Flutter Engine by
1.9.8