commit | author | age
|
dcdc07
|
1 |
// |
W |
2 |
// WAFBGameRequestDialog.h |
|
3 |
// WASdkIntfUI |
|
4 |
// |
|
5 |
// Created by wuyx on 16/3/15. |
|
6 |
// Copyright © 2016年 GHW-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
@class WAGameRequestDialog,WAGameRequestContent; |
|
11 |
/*! |
|
12 |
@abstract A delegate for WAFBGameRequestDialog. |
|
13 |
@discussion The delegate is notified with the results of the game request as long as the application has permissions to |
|
14 |
receive the information. For example, if the person is not signed into the containing app, the shower may not be able |
|
15 |
to distinguish between completion of a game request and cancellation. |
|
16 |
*/ |
|
17 |
@protocol WAGameRequestDialogDelegate <NSObject> |
|
18 |
|
|
19 |
/*! |
|
20 |
@abstract Sent to the delegate when the game request completes without error. |
|
21 |
@param gameRequestDialog The WAFBGameRequestDialog that completed. |
|
22 |
@param platform The platform from the dialog . |
|
23 |
@param results The results from the dialog. This may be nil or empty. |
|
24 |
*/ |
|
25 |
- (void)gameRequestDialog:(WAGameRequestDialog *)gameRequestDialog platform:(NSString *const)platform didCompleteWithResults:(NSDictionary *)results; |
|
26 |
|
|
27 |
/*! |
|
28 |
@abstract Sent to the delegate when the game request encounters an error. |
|
29 |
@param gameRequestDialog The WAFBGameRequestDialog that completed. |
|
30 |
@param platform The platform from the dialog . |
|
31 |
@param error The error. |
|
32 |
*/ |
|
33 |
- (void)gameRequestDialog:(WAGameRequestDialog *)gameRequestDialog platform:(NSString *const)platform didFailWithError:(NSError *)error; |
|
34 |
|
|
35 |
/*! |
|
36 |
@abstract Sent to the delegate when the game request dialog is cancelled. |
|
37 |
@param gameRequestDialog The WAFBGameRequestDialog that completed. |
|
38 |
@param platform The platform from the dialog . |
|
39 |
*/ |
|
40 |
- (void)gameRequestDialogDidCancel:(WAGameRequestDialog *)gameRequestDialog platform:(NSString *const)platform; |
|
41 |
|
|
42 |
@end |
|
43 |
|
|
44 |
@interface WAGameRequestDialog : NSObject |
|
45 |
/*! |
|
46 |
@abstract The receiver's delegate or nil if it doesn't have a delegate. |
|
47 |
*/ |
|
48 |
@property (nonatomic, weak) id<WAGameRequestDialogDelegate> delegate; |
|
49 |
|
|
50 |
/*! |
|
51 |
@abstract The content for game request. |
|
52 |
*/ |
|
53 |
@property (nonatomic, strong) WAGameRequestContent *content; |
|
54 |
@end |