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 |
Flags to indicate support for newer bridge options beyond the initial 20130410 implementation. |
|
15 |
*/ |
|
16 |
typedef NS_OPTIONS(NSUInteger, FBSDKShareBridgeOptions) { |
|
17 |
FBSDKShareBridgeOptionsDefault = 0, |
|
18 |
FBSDKShareBridgeOptionsPhotoAsset = 1 << 0, |
|
19 |
FBSDKShareBridgeOptionsPhotoImageURL = 1 << 1, // if set, a web-based URL is required; asset, image, and imageURL.isFileURL not allowed |
|
20 |
FBSDKShareBridgeOptionsVideoAsset = 1 << 2, |
|
21 |
FBSDKShareBridgeOptionsVideoData = 1 << 3, |
|
22 |
FBSDKShareBridgeOptionsWebHashtag = 1 << 4, // if set, pass the hashtag as a string value, not an array of one string |
|
23 |
} NS_SWIFT_NAME(ShareBridgeOptions); |
|
24 |
|
|
25 |
/** |
|
26 |
A base interface for validation of content and media. |
|
27 |
*/ |
|
28 |
NS_SWIFT_NAME(SharingValidation) |
|
29 |
@protocol FBSDKSharingValidation |
|
30 |
|
|
31 |
/** |
|
32 |
Asks the receiver to validate that its content or media values are valid. |
|
33 |
- Parameter errorRef: Optional, will receive an FBSDKShareError if the values are not valid. |
|
34 |
- Returns: YES if the receiver's values are valid; otherwise NO |
|
35 |
*/ |
|
36 |
- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError *__autoreleasing *)errorRef; |
|
37 |
|
|
38 |
@end |
|
39 |
|
|
40 |
NS_ASSUME_NONNULL_END |