Flutter Engine
flutter::PlatformHandler Class Reference

#include <platform_handler.h>

Public Member Functions

 PlatformHandler (flutter::BinaryMessenger *messenger, GLFWwindow *window)
 
 PlatformHandler (flutter::BinaryMessenger *messenger, FlutterWindowsView *view)
 

Detailed Description

Definition at line 18 of file platform_handler.h.

Constructor & Destructor Documentation

◆ PlatformHandler() [1/2]

flutter::PlatformHandler::PlatformHandler ( flutter::BinaryMessenger messenger,
GLFWwindow *  window 
)
explicit

Definition at line 26 of file platform_handler.cc.

References flutter::MethodCall< T >::arguments(), kGetClipboardDataMethod, kNoWindowError, kSetClipboardDataMethod, kSystemNavigatorPopMethod, kTextKey, kTextPlainFormat, kUnknownClipboardFormatError, method_call, and flutter::MethodCall< T >::method_name().

28  : channel_(std::make_unique<flutter::MethodChannel<rapidjson::Document>>(
29  messenger,
32  window_(window) {
33  channel_->SetMethodCallHandler(
34  [this](
36  std::unique_ptr<flutter::MethodResult<rapidjson::Document>> result) {
37  HandleMethodCall(call, std::move(result));
38  });
39 }
static const JsonMethodCodec & GetInstance()
static constexpr char kChannelName[]

◆ PlatformHandler() [2/2]

flutter::PlatformHandler::PlatformHandler ( flutter::BinaryMessenger messenger,
FlutterWindowsView view 
)
explicit

Definition at line 201 of file win32_platform_handler.cc.

203  : channel_(std::make_unique<flutter::MethodChannel<rapidjson::Document>>(
204  messenger,
205  kChannelName,
207  view_(view) {
208  channel_->SetMethodCallHandler(
209  [this](
211  std::unique_ptr<flutter::MethodResult<rapidjson::Document>> result) {
212  HandleMethodCall(call, std::move(result));
213  });
214 }
static const JsonMethodCodec & GetInstance()
static constexpr char kChannelName[]

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