HIVE SDK for iOS

HIVEPush.h
Go to the documentation of this file.
1 
19 #import <Foundation/Foundation.h>
20 
21 @class HIVEResultAPI;
22 
30 @interface HIVERemotePush : NSObject <NSCopying>
31 
32  @property BOOL isAgreeNotice;
33  @property BOOL isAgreeNight;
34 
35  + (instancetype)remotePushWithNotice:(BOOL)useNotice night:(BOOL)useNight;
36  - (NSString *)toJson;
37 @end
38 
39 
47 @interface HIVELocalPush : NSObject <NSCopying>
48 
49  @property NSUInteger noticeId;
50  @property (strong) NSString* title;
51  @property (strong) NSString* msg;
52  @property NSTimeInterval after;
53 
54  + (instancetype)localPushWith:(NSUInteger)noticeId after:(NSTimeInterval)after title:(NSString *)title message:(NSString *)message;
55  - (NSString *)toJson;
56 @end
57 
58 
59 @interface HIVEPushSetting : NSObject <NSCopying>
60 
61 @property BOOL useForegroundRemotePush;
62 @property BOOL useForegroundLocalPush;
63 
64 + (instancetype)pushSettingWithRemote:(BOOL)useRemote local:(BOOL)useLocal;
65 - (NSString *)toJson;
66 
67 @end
68 
69 
83 typedef void (^HIVERemotePushHandler)(HIVEResultAPI* result, HIVERemotePush* remotePush);
84 
85 
98 typedef void (^HIVELocalPushHandler)(HIVEResultAPI* result, HIVELocalPush* localPush);
99 
100 
101 typedef void (^HIVEPushSettingHandler) (HIVEResultAPI *result, HIVEPushSetting *pushSetting);
102 
103 
117 @interface HIVEPush : NSObject
118 
119 
120 
132 +(void)getRemotePush:(HIVERemotePushHandler)handler;
133 
134 
147 +(void)setRemotePush:(HIVERemotePush*)remotePush handler:(HIVERemotePushHandler)handler;
148 
149 
163 +(void)registerLocalPush:(HIVELocalPush*)localPush handler:(HIVELocalPushHandler)handler;
164 
165 
177 +(void)unregisterLocalPush:(NSUInteger)noticeId;
178 
192 +(void)setForegroundPush:(HIVEPushSetting *)setting handler:(HIVEPushSettingHandler)handler;
193 
206 +(void)getForegroundPush:(HIVEPushSettingHandler)handler;
207 
208 @end
209 
210 
BOOL isAgreeNight
Whether to receive night-time notification or not.
Definition: HIVEPush.h:33
void(^ HIVERemotePushHandler)(HIVEResultAPI *result, HIVERemotePush *remotePush)
Returns information of receiving the remote push.
Definition: HIVEPush.h:83
In mobile games, push notification service provides an important method to increase the retention of ...
Definition: HIVEPush.h:117
NSTimeInterval after
Notification timer.
Definition: HIVEPush.h:52
Local push registration information.
Definition: HIVEPush.h:47
BOOL isAgreeNotice
Whether to receive announcement notification or not.
Definition: HIVEPush.h:32
API 호출에 대한 결과를 담는 클래스
Definition: HIVEResultAPI.h:25
void(^ HIVELocalPushHandler)(HIVEResultAPI *result, HIVELocalPush *localPush)
Returns information of receiving the local push.
Definition: HIVEPush.h:98
Information about the status of receiving push notification.
Definition: HIVEPush.h:30
NSUInteger noticeId
Local push notification ID.
Definition: HIVEPush.h:49
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. Terms of Use Privacy Policy