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 <FBSDKCoreKit/FBSDKCoreKit.h> |
|
12 |
|
|
13 |
NS_ASSUME_NONNULL_BEGIN |
|
14 |
/** |
|
15 |
NS_ENUM(NSUInteger, FBSDKGameRequestActionType) |
|
16 |
Additional context about the nature of the request. |
|
17 |
*/ |
|
18 |
typedef NS_ENUM(NSUInteger, FBSDKGameRequestActionType) { |
|
19 |
/** No action type */ |
|
20 |
FBSDKGameRequestActionTypeNone = 0, |
|
21 |
/** Send action type: The user is sending an object to the friends. */ |
|
22 |
FBSDKGameRequestActionTypeSend, |
|
23 |
/** Ask For action type: The user is asking for an object from friends. */ |
|
24 |
FBSDKGameRequestActionTypeAskFor, |
|
25 |
/** Turn action type: It is the turn of the friends to play against the user in a match. (no object) */ |
|
26 |
FBSDKGameRequestActionTypeTurn, |
|
27 |
/** Invite action type: The user is inviting a friend. */ |
|
28 |
FBSDKGameRequestActionTypeInvite, |
|
29 |
} NS_SWIFT_NAME(GameRequestActionType); |
|
30 |
|
|
31 |
/** |
|
32 |
NS_ENUM(NSUInteger, FBSDKGameRequestFilters) |
|
33 |
Filter for who can be displayed in the multi-friend selector. |
|
34 |
*/ |
|
35 |
typedef NS_ENUM(NSUInteger, FBSDKGameRequestFilter) { |
|
36 |
/** No filter, all friends can be displayed. */ |
|
37 |
FBSDKGameRequestFilterNone = 0, |
|
38 |
/** Friends using the app can be displayed. */ |
|
39 |
FBSDKGameRequestFilterAppUsers, |
|
40 |
/** Friends not using the app can be displayed. */ |
|
41 |
FBSDKGameRequestFilterAppNonUsers, |
|
42 |
/**All friends can be displayed if FB app is installed.*/ |
|
43 |
FBSDKGameRequestFilterEverybody, |
|
44 |
} NS_SWIFT_NAME(GameRequestFilter); |
|
45 |
|
|
46 |
NS_SWIFT_NAME(GameRequestURLProvider) |
|
47 |
@interface FBSDKGameRequestURLProvider : NSObject |
|
48 |
+ (NSURL *_Nullable)createDeepLinkURLWithQueryDictionary:(NSDictionary<NSString *, id> *_Nonnull)queryDictionary; |
|
49 |
+ (NSString *_Nullable)filtersNameForFilters:(FBSDKGameRequestFilter)filters; |
|
50 |
+ (NSString *_Nullable)actionTypeNameForActionType:(FBSDKGameRequestActionType)actionType; |
|
51 |
@end |
|
52 |
NS_ASSUME_NONNULL_END |