commit | author | age
|
d1f6ab
|
1 |
// |
H |
2 |
// WAFBAppInviteDialog.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 |
#import "WAAppInviteContent.h" |
|
11 |
@class WAAppInviteDialog; |
|
12 |
/*! |
|
13 |
@discussion 应用邀请协议 |
|
14 |
- - - |
|
15 |
*/ |
|
16 |
@protocol WAAppInviteDialogDelegate <NSObject> |
|
17 |
|
|
18 |
/*! |
|
19 |
@abstract Sent to the delegate when the app invite completes without error. |
|
20 |
@param appInviteDialog The WAFBAppInviteDialog that completed. |
|
21 |
@param platform The platform from the app invite . |
|
22 |
@param results The results from the dialog. This may be nil or empty. |
|
23 |
*/ |
|
24 |
- (void)appInviteDialog:(WAAppInviteDialog *)appInviteDialog platform:(NSString *const)platform didCompleteWithResults:(NSDictionary *)results; |
|
25 |
|
|
26 |
/*! |
|
27 |
@abstract Sent to the delegate when the app invite encounters an error. |
|
28 |
@param appInviteDialog The WAFBAppInviteDialog that completed. |
|
29 |
@param platform The platform from the app invite . |
|
30 |
@param error The error. |
|
31 |
*/ |
|
32 |
- (void)appInviteDialog:(WAAppInviteDialog *)appInviteDialog platform:(NSString *const)platform didFailWithError:(NSError *)error; |
|
33 |
|
|
34 |
@end |
|
35 |
|
|
36 |
/*! |
|
37 |
@discussion WAAppInviteDialog |
|
38 |
- - - |
|
39 |
*/ |
|
40 |
@interface WAAppInviteDialog : NSObject |
|
41 |
/*! |
|
42 |
@abstract The receiver's delegate or nil if it doesn't have a delegate. |
|
43 |
*/ |
|
44 |
@property (nonatomic, weak) NSObject<WAAppInviteDialogDelegate>* delegate; |
|
45 |
|
|
46 |
/*! |
|
47 |
@abstract The content for app invite. |
|
48 |
*/ |
|
49 |
@property (nonatomic, strong) WAAppInviteContent *content; |
|
50 |
@end |