UNPKG

711 Btext/x-cView Raw
1#pragma once
2#include "pch.h"
3
4#include <functional>
5#include <string>
6#include <NativeModules.h>
7
8#include <winrt/Windows.Foundation.h>
9#include <winrt/Windows.ApplicationModel.DataTransfer.h>
10
11using namespace winrt::Microsoft::ReactNative;
12using namespace winrt::Windows::Foundation;
13namespace datatransfer = winrt::Windows::ApplicationModel::DataTransfer;
14
15namespace NativeClipboard {
16 REACT_MODULE(ClipboardModule, L"RNCClipboard");
17 struct ClipboardModule
18 {
19
20 REACT_METHOD(GetString, L"getString");
21 void GetString(React::ReactPromise<std::string>&& result) noexcept;
22
23 REACT_METHOD(SetString, L"setString");
24 void SetString(std::string const& str) noexcept;
25 };
26}
\No newline at end of file