commit | author | age
|
27832c
|
1 |
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
H |
2 |
// |
|
3 |
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, |
|
4 |
// copy, modify, and distribute this software in source code or binary form for use |
|
5 |
// in connection with the web services and APIs provided by Facebook. |
|
6 |
// |
|
7 |
// As with any software that integrates with the Facebook platform, your use of |
|
8 |
// this software is subject to the Facebook Developer Principles and Policies |
|
9 |
// [http://developers.facebook.com/policy/]. This copyright notice shall be |
|
10 |
// included in all copies or substantial portions of the software. |
|
11 |
// |
|
12 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
13 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
|
14 |
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
|
15 |
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
|
16 |
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
17 |
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
18 |
|
|
19 |
#import <Foundation/Foundation.h> |
|
20 |
|
|
21 |
#import <FBSDKShareKit/FBSDKShareMessengerActionButton.h> |
|
22 |
|
e81c27
|
23 |
NS_ASSUME_NONNULL_BEGIN |
H |
24 |
|
27832c
|
25 |
typedef NS_ENUM(NSUInteger, FBSDKShareMessengerURLActionButtonWebviewHeightRatio) { |
H |
26 |
FBSDKShareMessengerURLActionButtonWebviewHeightRatioFull = 0, |
|
27 |
FBSDKShareMessengerURLActionButtonWebviewHeightRatioTall, |
|
28 |
FBSDKShareMessengerURLActionButtonWebviewHeightRatioCompact |
e81c27
|
29 |
} NS_SWIFT_NAME(ShareMessengerURLActionButton.WebviewHeightRatio); |
27832c
|
30 |
|
H |
31 |
/** |
|
32 |
A model for a Messenger share URL action button. |
|
33 |
*/ |
88188e
|
34 |
DEPRECATED_FOR_MESSENGER |
e81c27
|
35 |
NS_SWIFT_NAME(ShareMessengerURLActionButton) |
27832c
|
36 |
@interface FBSDKShareMessengerURLActionButton : NSObject <FBSDKShareMessengerActionButton> |
H |
37 |
|
|
38 |
/** |
|
39 |
The url that this button should open when tapped. Required. |
|
40 |
*/ |
|
41 |
@property (nonatomic, copy) NSURL *url; |
|
42 |
|
|
43 |
/** |
|
44 |
This controls the display height of the webview when shown in the Messenger app. Defaults to Full. |
|
45 |
*/ |
|
46 |
@property (nonatomic, assign) FBSDKShareMessengerURLActionButtonWebviewHeightRatio webviewHeightRatio; |
|
47 |
|
|
48 |
/** |
|
49 |
This must be true if the url is a Messenger Extensions url. Defaults to NO. |
|
50 |
*/ |
|
51 |
@property (nonatomic, assign) BOOL isMessengerExtensionURL; |
|
52 |
|
|
53 |
/** |
|
54 |
This is a fallback url for a Messenger Extensions enabled button. It is used on clients that do not support |
|
55 |
Messenger Extensions. If this is not defined, the url will be used as a fallback. Optional, but ignored |
|
56 |
unless isMessengerExtensionURL == YES. |
|
57 |
*/ |
e81c27
|
58 |
@property (nonatomic, copy, nullable) NSURL *fallbackURL; |
27832c
|
59 |
|
H |
60 |
/** |
|
61 |
This controls whether we want to hide the share button in the webview or not. It is useful to hide the share |
|
62 |
button when the webview is user-specific and contains sensitive information. Defaults to NO. |
|
63 |
*/ |
|
64 |
@property (nonatomic, assign) BOOL shouldHideWebviewShareButton; |
|
65 |
|
|
66 |
@end |
e81c27
|
67 |
|
H |
68 |
NS_ASSUME_NONNULL_END |