Flutter iOS Embedder
flutter::PlatformMessageResponseDarwin Class Reference

#include <platform_message_response_darwin.h>

Inheritance diagram for flutter::PlatformMessageResponseDarwin:

Public Member Functions

void Complete (std::unique_ptr< fml::Mapping > data) override
 
void CompleteEmpty () override
 

Detailed Description

Definition at line 21 of file platform_message_response_darwin.h.

Member Function Documentation

◆ Complete()

void flutter::PlatformMessageResponseDarwin::Complete ( std::unique_ptr< fml::Mapping >  data)
override

Definition at line 21 of file platform_message_response_darwin.mm.

21  {
22  fml::RefPtr<PlatformMessageResponseDarwin> self(this);
23  platform_task_runner_->PostTask(fml::MakeCopyable([self, data = std::move(data)]() mutable {
24  self->callback_.get()(CopyMappingPtrToNSData(std::move(data)));
25  }));
26 }

References flutter::CopyMappingPtrToNSData().

◆ CompleteEmpty()

void flutter::PlatformMessageResponseDarwin::CompleteEmpty ( )
override

Definition at line 28 of file platform_message_response_darwin.mm.

28  {
29  fml::RefPtr<PlatformMessageResponseDarwin> self(this);
30  platform_task_runner_->PostTask(
31  fml::MakeCopyable([self]() mutable { self->callback_.get()(nil); }));
32 }

The documentation for this class was generated from the following files:
flutter::CopyMappingPtrToNSData
NSData * CopyMappingPtrToNSData(std::unique_ptr< fml::Mapping > mapping)
Definition: buffer_conversions.mm:44