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 |
The error domain for all errors from FBSDKShareKit. |
|
15 |
|
|
16 |
Error codes from the SDK in the range 200-299 are reserved for this domain. |
|
17 |
*/ |
|
18 |
FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain |
|
19 |
NS_SWIFT_NAME(ShareErrorDomain); |
|
20 |
|
|
21 |
#ifndef NS_ERROR_ENUM |
|
22 |
#define NS_ERROR_ENUM(_domain, _name) \ |
|
23 |
enum _name : NSInteger _name; \ |
|
24 |
enum __attribute__((ns_error_domain(_domain))) _name: NSInteger |
|
25 |
#endif |
|
26 |
|
|
27 |
/** |
|
28 |
FBSDKShareError |
|
29 |
Error codes for FBSDKShareErrorDomain. |
|
30 |
*/ |
|
31 |
typedef NS_ERROR_ENUM (FBSDKShareErrorDomain, FBSDKShareError) |
|
32 |
{ |
|
33 |
/** |
|
34 |
Reserved. |
|
35 |
*/ |
|
36 |
FBSDKShareErrorReserved = 200, |
|
37 |
|
|
38 |
/** |
|
39 |
The error code for errors from uploading open graph objects. |
|
40 |
*/ |
|
41 |
FBSDKShareErrorOpenGraph, |
|
42 |
|
|
43 |
/** |
|
44 |
The error code for when a sharing dialog is not available. |
|
45 |
|
|
46 |
Use the canShare methods to check for this case before calling show. |
|
47 |
*/ |
|
48 |
FBSDKShareErrorDialogNotAvailable, |
|
49 |
|
|
50 |
/** |
|
51 |
@The error code for unknown errors. |
|
52 |
*/ |
|
53 |
FBSDKShareErrorUnknown, |
|
54 |
} NS_SWIFT_NAME(ShareError); |
|
55 |
|
|
56 |
NS_ASSUME_NONNULL_END |