Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::PlatformMessageResponseAndroid Class Reference

#include <platform_message_response_android.h>

Inheritance diagram for flutter::PlatformMessageResponseAndroid:
flutter::PlatformMessageResponse fml::RefCountedThreadSafe< PlatformMessageResponse > fml::internal::RefCountedThreadSafeBase

Public Member Functions

void Complete (std::unique_ptr< fml::Mapping > data) override
 
void CompleteEmpty () override
 
- Public Member Functions inherited from flutter::PlatformMessageResponse
virtual void Complete (std::unique_ptr< fml::Mapping > data)=0
 
virtual void CompleteEmpty ()=0
 
bool is_complete () const
 
- Public Member Functions inherited from fml::RefCountedThreadSafe< PlatformMessageResponse >
void Release () const
 
- Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase
void AddRef () const
 
bool HasOneRef () const
 
void AssertHasOneRef () const
 

Additional Inherited Members

- Protected Member Functions inherited from flutter::PlatformMessageResponse
 PlatformMessageResponse ()
 
virtual ~PlatformMessageResponse ()
 
- Protected Member Functions inherited from fml::RefCountedThreadSafe< PlatformMessageResponse >
 RefCountedThreadSafe ()
 
 ~RefCountedThreadSafe ()
 
- Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase
 RefCountedThreadSafeBase ()
 
 ~RefCountedThreadSafeBase ()
 
bool Release () const
 
void Adopt ()
 
- Protected Attributes inherited from flutter::PlatformMessageResponse
bool is_complete_ = false
 

Detailed Description

Definition at line 16 of file platform_message_response_android.h.

Member Function Documentation

◆ Complete()

void flutter::PlatformMessageResponseAndroid::Complete ( std::unique_ptr< fml::Mapping data)
overridevirtual

Implements flutter::PlatformMessageResponse.

Definition at line 25 of file platform_message_response_android.cc.

26 {
27 platform_task_runner_->PostTask(
28 fml::MakeCopyable([response_id = response_id_, //
29 data = std::move(data), //
30 jni_facade = jni_facade_]() mutable {
31 jni_facade->FlutterViewHandlePlatformMessageResponse(response_id,
32 std::move(data));
33 }));
34}
virtual void PostTask(const fml::closure &task) override
Definition: task_runner.cc:24
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
internal::CopyableLambda< T > MakeCopyable(T lambda)
Definition: make_copyable.h:57

◆ CompleteEmpty()

void flutter::PlatformMessageResponseAndroid::CompleteEmpty ( )
overridevirtual

Implements flutter::PlatformMessageResponse.

Definition at line 37 of file platform_message_response_android.cc.

37 {
38 platform_task_runner_->PostTask(
39 fml::MakeCopyable([response_id = response_id_, //
40 jni_facade = jni_facade_ //
41 ]() {
42 // Make the response call into Java.
43 jni_facade->FlutterViewHandlePlatformMessageResponse(response_id,
44 nullptr);
45 }));
46}

The documentation for this class was generated from the following files: