commit | author | age
|
330f2f
|
1 |
// |
H |
2 |
// GHWAppleLogin.h |
|
3 |
// GHWSdk |
|
4 |
// |
|
5 |
// Created by wuyx on 15/5/17. |
|
6 |
// Copyright (c) 2015年 Wuyx. All rights reserved. |
|
7 |
// |
|
8 |
#import <GameKit/GameKit.h> |
|
9 |
#import <WASdkIntf/WASdkIntf.h> |
|
10 |
#import "WAAPLoginInfo.h" |
|
11 |
typedef enum APLoginError{ |
|
12 |
APLoginErrorIOS7 = 30 |
|
13 |
}APLoginError; |
|
14 |
@interface WAAPLogin : NSObject |
|
15 |
// currentPlayerID is the value of the playerID last time GameKit authenticated. |
|
16 |
@property (retain,readwrite) NSString* currentPlayerID; |
|
17 |
|
|
18 |
// isGameCenterAuthenticationComplete is set after authentication, and authenticateWithCompletionHandler's completionHandler block has been run. It is unset when the applicaiton is backgrounded. |
|
19 |
@property (readwrite, getter=isGameCenterAuthenticationComplete) BOOL gameCenterAuthenticationComplete; |
|
20 |
+(id)shareInstance; |
|
21 |
-(void)loginWithCompletionHandler:(void (^)(WAAPLoginInfo* loginInfo, NSError *error))completionHandler; |
|
22 |
@end |