commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
NS_ASSUME_NONNULL_BEGIN |
|
12 |
|
|
13 |
/** |
|
14 |
NS_ENUM(NSUInteger, FBSDKShareDialogMode) |
|
15 |
Modes for the FBSDKShareDialog. |
|
16 |
|
|
17 |
The automatic mode will progressively check the availability of different modes and open the most |
|
18 |
appropriate mode for the dialog that is available. |
|
19 |
*/ |
|
20 |
typedef NS_ENUM(NSUInteger, FBSDKShareDialogMode) { |
|
21 |
/** |
|
22 |
Acts with the most appropriate mode that is available. |
|
23 |
*/ |
|
24 |
FBSDKShareDialogModeAutomatic = 0, |
|
25 |
/** |
|
26 |
@Displays the dialog in the main native Facebook app. |
|
27 |
*/ |
|
28 |
FBSDKShareDialogModeNative, |
|
29 |
/** |
|
30 |
@Displays the dialog in the iOS integrated share sheet. |
|
31 |
*/ |
|
32 |
FBSDKShareDialogModeShareSheet, |
|
33 |
/** |
|
34 |
@Displays the dialog in Safari. |
|
35 |
*/ |
|
36 |
FBSDKShareDialogModeBrowser, |
|
37 |
/** |
|
38 |
@Displays the dialog in a WKWebView within the app. |
|
39 |
*/ |
|
40 |
FBSDKShareDialogModeWeb, |
|
41 |
/** |
|
42 |
@Displays the feed dialog in Safari. |
|
43 |
*/ |
|
44 |
FBSDKShareDialogModeFeedBrowser, |
|
45 |
/** |
|
46 |
@Displays the feed dialog in a WKWebView within the app. |
|
47 |
*/ |
|
48 |
FBSDKShareDialogModeFeedWeb, |
|
49 |
} NS_SWIFT_NAME(ShareDialog.Mode); |
|
50 |
|
|
51 |
/** |
|
52 |
Converts an FBSDKShareDialogMode to an NSString. |
|
53 |
*/ |
|
54 |
FOUNDATION_EXPORT NSString *NSStringFromFBSDKShareDialogMode(FBSDKShareDialogMode dialogMode) |
|
55 |
DEPRECATED_MSG_ATTRIBUTE("`NSStringFromFBSDKShareDialogMode` is deprecated and will be removed in the next major release; please use `ShareDialog.Mode.description` instead") |
|
56 |
NS_REFINED_FOR_SWIFT; |
|
57 |
|
|
58 |
NS_ASSUME_NONNULL_END |