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 |
NS_ASSUME_NONNULL_BEGIN |
|
10 |
|
|
11 |
/** |
|
12 |
A delegate for FBSDKGameRequestDialog. |
|
13 |
|
|
14 |
The delegate is notified with the results of the game request as long as the application has permissions to |
|
15 |
receive the information. For example, if the person is not signed into the containing app, the shower may not be able |
|
16 |
to distinguish between completion of a game request and cancellation. |
|
17 |
*/ |
|
18 |
NS_SWIFT_NAME(GameRequestDialogDelegate) |
|
19 |
@protocol FBSDKGameRequestDialogDelegate <NSObject> |
|
20 |
|
|
21 |
/** |
|
22 |
Sent to the delegate when the game request completes without error. |
|
23 |
@param gameRequestDialog The FBSDKGameRequestDialog that completed. |
|
24 |
@param results The results from the dialog. This may be nil or empty. |
|
25 |
*/ |
|
26 |
- (void)gameRequestDialog:(FBSDKGameRequestDialog *)gameRequestDialog didCompleteWithResults:(NSDictionary<NSString *, id> *)results; |
|
27 |
|
|
28 |
/** |
|
29 |
Sent to the delegate when the game request encounters an error. |
|
30 |
@param gameRequestDialog The FBSDKGameRequestDialog that completed. |
|
31 |
@param error The error. |
|
32 |
*/ |
|
33 |
- (void)gameRequestDialog:(FBSDKGameRequestDialog *)gameRequestDialog didFailWithError:(NSError *)error; |
|
34 |
|
|
35 |
/** |
|
36 |
Sent to the delegate when the game request dialog is cancelled. |
|
37 |
@param gameRequestDialog The FBSDKGameRequestDialog that completed. |
|
38 |
*/ |
|
39 |
- (void)gameRequestDialogDidCancel:(FBSDKGameRequestDialog *)gameRequestDialog; |
|
40 |
|
|
41 |
@end |
|
42 |
|
|
43 |
NS_ASSUME_NONNULL_END |