| Flutter Windows Embedder |

Namespaces | Functions | Variables
platform_handler.cc File Reference
`#include "flutter/shell/platform/windows/platform_handler.h"`
`#include <windows.h>`
`#include <cstring>`
`#include <optional>`
`#include "flutter/fml/logging.h"`
`#include "flutter/fml/macros.h"`
`#include "flutter/fml/platform/win/wstring_conversion.h"`
`#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_result_functions.h"`
`#include "flutter/shell/platform/common/json_method_codec.h"`
`#include "flutter/shell/platform/windows/flutter_windows_view.h"`

Go to the source code of this file.

## Namespaces
| flutter

## Functions
static AppExitType | flutter::StringToAppExitType (const std::string &string)

## Variables
static constexpr char | kChannelName [] = "flutter/platform"
static constexpr char | kGetClipboardDataMethod [] = "Clipboard.getData"
static constexpr char | kHasStringsClipboardMethod [] = "Clipboard.hasStrings"
static constexpr char | kSetClipboardDataMethod [] = "Clipboard.setData"
static constexpr char | kExitApplicationMethod [] = "System.exitApplication"
static constexpr char | kRequestAppExitMethod [] = "System.requestAppExit"
static constexpr char | kInitializationCompleteMethod []
static constexpr char | kPlaySoundMethod [] = "SystemSound.play"
static constexpr char | kExitCodeKey [] = "exitCode"
static constexpr char | kExitTypeKey [] = "type"
static constexpr char | kExitResponseKey [] = "response"
static constexpr char | kExitResponseCancel [] = "cancel"
static constexpr char | kExitResponseExit [] = "exit"
static constexpr char | kTextPlainFormat [] = "text/plain"
static constexpr char | kTextKey [] = "text"
static constexpr char | kUnknownClipboardFormatMessage []
static constexpr char | kValueKey [] = "value"
static constexpr int | kAccessDeniedErrorCode = 5
static constexpr int | kErrorSuccess = 0
static constexpr char | kExitRequestError [] = "ExitApplication error"
static constexpr char | kInvalidExitRequestMessage []
static constexpr const char * | flutter::kExitTypeNames []

## Variable Documentation

## ◆ kAccessDeniedErrorCode

constexpr int kAccessDeniedErrorCode = 5
| static constexpr

Definition at line 44 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::GetHasStrings(), and flutter::testing::TEST_F().

## ◆ kChannelName

constexpr char kChannelName[] = "flutter/platform"
| static constexpr

Definition at line 19 of file platform_handler.cc.

## ◆ kErrorSuccess

constexpr int kErrorSuccess = 0
| static constexpr

Definition at line 45 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::GetHasStrings(), flutter::PlatformHandler::GetPlainText(), flutter::PlatformHandler::SetPlainText(), and flutter::testing::TEST_F().

## ◆ kExitApplicationMethod

constexpr char kExitApplicationMethod[] = "System.exitApplication"
| static constexpr

Definition at line 24 of file platform_handler.cc.

## ◆ kExitCodeKey

constexpr char kExitCodeKey[] = "exitCode"
| static constexpr

Definition at line 30 of file platform_handler.cc.

## ◆ kExitRequestError

constexpr char kExitRequestError[] = "ExitApplication error"
| static constexpr

Definition at line 47 of file platform_handler.cc.

## ◆ kExitResponseCancel

constexpr char kExitResponseCancel[] = "cancel"
| static constexpr

Definition at line 35 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::SystemExitApplication().

## ◆ kExitResponseExit

constexpr char kExitResponseExit[] = "exit"
| static constexpr

Definition at line 36 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::RequestAppExitSuccess(), and flutter::PlatformHandler::SystemExitApplication().

## ◆ kExitResponseKey

constexpr char kExitResponseKey[] = "response"
| static constexpr

Definition at line 34 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::RequestAppExitSuccess(), and flutter::PlatformHandler::SystemExitApplication().

## ◆ kExitTypeKey

constexpr char kExitTypeKey[] = "type"
| static constexpr

Definition at line 32 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::RequestAppExit().

## ◆ kGetClipboardDataMethod

constexpr char kGetClipboardDataMethod[] = "Clipboard.getData"
| static constexpr

Definition at line 21 of file platform_handler.cc.

## ◆ kHasStringsClipboardMethod

constexpr char kHasStringsClipboardMethod[] = "Clipboard.hasStrings"
| static constexpr

Definition at line 22 of file platform_handler.cc.

## ◆ kInitializationCompleteMethod

constexpr char kInitializationCompleteMethod[]
| static constexpr

Initial value:
=
"System.initializationComplete"

Definition at line 26 of file platform_handler.cc.

## ◆ kInvalidExitRequestMessage

constexpr char kInvalidExitRequestMessage[]
| static constexpr

Initial value:
=
"Invalid application exit request"

Definition at line 48 of file platform_handler.cc.

## ◆ kPlaySoundMethod

constexpr char kPlaySoundMethod[] = "SystemSound.play"
| static constexpr

Definition at line 28 of file platform_handler.cc.

## ◆ kRequestAppExitMethod

constexpr char kRequestAppExitMethod[] = "System.requestAppExit"
| static constexpr

Definition at line 25 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::RequestAppExit().

## ◆ kSetClipboardDataMethod

constexpr char kSetClipboardDataMethod[] = "Clipboard.setData"
| static constexpr

Definition at line 23 of file platform_handler.cc.

## ◆ kTextKey

constexpr char kTextKey[] = "text"
| static constexpr

Definition at line 39 of file platform_handler.cc.

## ◆ kTextPlainFormat

constexpr char kTextPlainFormat[] = "text/plain"
| static constexpr

Definition at line 38 of file platform_handler.cc.

## ◆ kUnknownClipboardFormatMessage

constexpr char kUnknownClipboardFormatMessage[]
| static constexpr

Initial value:
=
"Unknown clipboard format"

Definition at line 40 of file platform_handler.cc.

## ◆ kValueKey

constexpr char kValueKey[] = "value"
| static constexpr

Definition at line 43 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::GetHasStrings().