| Flutter iOS Embedder |

Public Member Functions | List of all members
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 17 of file platform_message_response_darwin.mm.

17 {
18 fml::RefPtr<PlatformMessageResponseDarwin> self(this);
19 platform_task_runner_->PostTask(fml::MakeCopyable([self, data = std::move(data)]() mutable {
20 self->callback_.get()(CopyMappingPtrToNSData(std::move(data)));
21 }));
22 }

References flutter::CopyMappingPtrToNSData().

## ◆ CompleteEmpty()

void flutter::PlatformMessageResponseDarwin::CompleteEmpty | ( |  | ) |
| override

Definition at line 24 of file platform_message_response_darwin.mm.

24 {
25 fml::RefPtr<PlatformMessageResponseDarwin> self(this);
26 platform_task_runner_->PostTask(
27 fml::MakeCopyable([self]() mutable { self->callback_.get()(nil); }));
28 }

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

- shell/platform/darwin/ios/framework/Source/platform_message_response_darwin.h
- shell/platform/darwin/ios/framework/Source/platform_message_response_darwin.mm

flutter::CopyMappingPtrToNSData
NSData * CopyMappingPtrToNSData(std::unique_ptr< fml::Mapping > mapping)
Definition: buffer_conversions.mm:44