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 |
#import <FBSDKShareKit/FBSDKSharingContent.h> |
|
12 |
|
|
13 |
NS_ASSUME_NONNULL_BEGIN |
|
14 |
|
|
15 |
/** |
|
16 |
A protocol for media content (photo or video) to be shared. |
|
17 |
*/ |
|
18 |
NS_SWIFT_NAME(ShareMedia) |
|
19 |
@protocol FBSDKShareMedia <NSObject> |
|
20 |
|
|
21 |
@end |
|
22 |
|
|
23 |
/** |
|
24 |
A model for media content (photo or video) to be shared. |
|
25 |
*/ |
|
26 |
NS_SWIFT_NAME(ShareMediaContent) |
|
27 |
@interface FBSDKShareMediaContent : NSObject <FBSDKSharingContent> |
|
28 |
|
|
29 |
/** |
|
30 |
Media to be shared. |
|
31 |
@return Array of the media (FBSDKSharePhoto or FBSDKShareVideo) |
|
32 |
*/ |
|
33 |
@property (nonatomic, copy) NSArray<id<FBSDKShareMedia>> *media; |
|
34 |
|
|
35 |
/** |
|
36 |
Compares the receiver to another media content. |
|
37 |
@param content The other content |
|
38 |
@return YES if the receiver's values are equal to the other content's values; otherwise NO |
|
39 |
*/ |
|
40 |
- (BOOL)isEqualToShareMediaContent:(FBSDKShareMediaContent *)content; |
|
41 |
|
|
42 |
@end |
|
43 |
|
|
44 |
NS_ASSUME_NONNULL_END |