Fission FSN
Loading...
Searching...
No Matches
fsShareSheetServiceApple.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsShareSheetServiceApple.h
4*
5* Purpose: iOS: UIActivityViewController. macOS: NSSharingServicePicker,
6* plus a save target from fsShareSheetServiceSave.
7*
8*********************************************************************/
9
10#ifndef fsShareSheetServiceApplehdr
11#define fsShareSheetServiceApplehdr
12
15
16#include <memory>
17
19
21{
22public:
23 fsShareSheetServiceApple(std::string saveFolderName, bool saveReveal);
25
26 std::vector<fsShareTarget> targetsGet() const override;
27 void share(const fsShareRequest& request, const std::string& targetId, DoneCallback done) override;
28 void update() override;
29
30private:
31 fsShareCompletions mCompletions;
32 std::unique_ptr<fsShareSheetServiceSave> mSave;
33 // macOS: the open picker and its delegate, retained (Objective-C objects, opaque here).
34 [[maybe_unused]] void* mPicker = nullptr;
35 [[maybe_unused]] void* mPickerDelegate = nullptr;
36};
37
38#endif
Definition fsShareCompletions.h:20
void share(const fsShareRequest &request, const std::string &targetId, DoneCallback done) override
Definition fsShareSheetServiceApple.mm:155
std::vector< fsShareTarget > targetsGet() const override
Definition fsShareSheetServiceApple.mm:143
~fsShareSheetServiceApple() override
Definition fsShareSheetServiceApple.mm:128
fsShareSheetServiceApple(std::string saveFolderName, bool saveReveal)
Definition fsShareSheetServiceApple.mm:123
void update() override
Definition fsShareSheetServiceApple.mm:229
Definition fsShareSheetService.h:20
std::function< void(fsShareResult, const std::string &detail)> DoneCallback
Definition fsShareSheetService.h:22
Definition fsShareSheetServiceSave.h:18
Definition fsShareTypes.h:24