commit | author | age
|
bad748
|
1 |
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
W |
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 <UIKit/UIKit.h> |
|
20 |
|
|
21 |
#import <FBSDKCoreKit/FBSDKCopying.h> |
|
22 |
|
|
23 |
@class FBSDKSharePhoto; |
|
24 |
|
9febd9
|
25 |
/** |
W |
26 |
A video for sharing. |
bad748
|
27 |
*/ |
W |
28 |
@interface FBSDKShareVideo : NSObject <FBSDKCopying, NSSecureCoding> |
|
29 |
|
9febd9
|
30 |
/** |
W |
31 |
Convenience method to build a new video object with a videoURL. |
|
32 |
- Parameter videoURL: The URL to the video |
bad748
|
33 |
*/ |
W |
34 |
+ (instancetype)videoWithVideoURL:(NSURL *)videoURL; |
|
35 |
|
9febd9
|
36 |
/** |
W |
37 |
Convenience method to build a new video object with a videoURL and a previewPhoto |
|
38 |
- Parameter videoURL: The URL to the video |
|
39 |
- Parameter previewPhoto: The photo that represents the video |
bad748
|
40 |
*/ |
W |
41 |
+ (instancetype)videoWithVideoURL:(NSURL *)videoURL previewPhoto:(FBSDKSharePhoto *)previewPhoto; |
|
42 |
|
9febd9
|
43 |
/** |
W |
44 |
The file URL to the video. |
|
45 |
- Returns: URL that points to the location of the video on disk |
bad748
|
46 |
*/ |
W |
47 |
@property (nonatomic, copy) NSURL *videoURL; |
|
48 |
|
9febd9
|
49 |
/** |
W |
50 |
The photo that represents the video. |
|
51 |
- Returns: The photo |
bad748
|
52 |
*/ |
W |
53 |
@property (nonatomic, copy) FBSDKSharePhoto *previewPhoto; |
|
54 |
|
9febd9
|
55 |
/** |
W |
56 |
Compares the receiver to another video. |
|
57 |
- Parameter video: The other video |
|
58 |
- Returns: YES if the receiver's values are equal to the other video's values; otherwise NO |
bad748
|
59 |
*/ |
W |
60 |
- (BOOL)isEqualToShareVideo:(FBSDKShareVideo *)video; |
|
61 |
|
|
62 |
@end |