| 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 20 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 20 of file platform_message_response_darwin.mm.

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

References flutter::CopyMappingPtrToNSData().

## ◆ CompleteEmpty()

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

Definition at line 27 of file platform_message_response_darwin.mm.

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

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:43