Flutter Engine
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
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 23 of file platform_message_response_android.cc.

References fml::MakeCopyable().

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

◆ CompleteEmpty()

void flutter::PlatformMessageResponseAndroid::CompleteEmpty ( )
overridevirtual

Implements flutter::PlatformMessageResponse.

Definition at line 35 of file platform_message_response_android.cc.

References fml::MakeCopyable().

35  {
36  platform_task_runner_->PostTask(
37  fml::MakeCopyable([response_id = response_id_, //
38  jni_facade = jni_facade_ //
39  ]() {
40  // Make the response call into Java.
41  jni_facade->FlutterViewHandlePlatformMessageResponse(response_id,
42  nullptr);
43  }));
44 }
virtual void PostTask(const fml::closure &task)
Definition: task_runner.cc:24
internal::CopyableLambda< T > MakeCopyable(T lambda)
Definition: make_copyable.h:57

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