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 |
*/ |
e81c27
|
34 |
NS_SWIFT_NAME(ShareMessengerURLActionButton) |
27832c
|
35 |
@interface FBSDKShareMessengerURLActionButton : NSObject <FBSDKShareMessengerActionButton> |
H |
36 |
|
|
37 |
/** |
|
38 |
The url that this button should open when tapped. Required. |
|
39 |
*/ |
|
40 |
@property (nonatomic, copy) NSURL *url; |
|
41 |
|
|
42 |
/** |
|
43 |
This controls the display height of the webview when shown in the Messenger app. Defaults to Full. |
|
44 |
*/ |
|
45 |
@property (nonatomic, assign) FBSDKShareMessengerURLActionButtonWebviewHeightRatio webviewHeightRatio; |
|
46 |
|
|
47 |
/** |
|
48 |
This must be true if the url is a Messenger Extensions url. Defaults to NO. |
|
49 |
*/ |
|
50 |
@property (nonatomic, assign) BOOL isMessengerExtensionURL; |
|
51 |
|
|
52 |
/** |
|
53 |
This is a fallback url for a Messenger Extensions enabled button. It is used on clients that do not support |
|
54 |
Messenger Extensions. If this is not defined, the url will be used as a fallback. Optional, but ignored |
|
55 |
unless isMessengerExtensionURL == YES. |
|
56 |
*/ |
e81c27
|
57 |
@property (nonatomic, copy, nullable) NSURL *fallbackURL; |
27832c
|
58 |
|
H |
59 |
/** |
|
60 |
This controls whether we want to hide the share button in the webview or not. It is useful to hide the share |
|
61 |
button when the webview is user-specific and contains sensitive information. Defaults to NO. |
|
62 |
*/ |
|
63 |
@property (nonatomic, assign) BOOL shouldHideWebviewShareButton; |
|
64 |
|
|
65 |
@end |
e81c27
|
66 |
|
H |
67 |
NS_ASSUME_NONNULL_END |