Skip to content

Commit a14c6b9

Browse files
committed
update
1 parent 97a371e commit a14c6b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mobpush_plugin/lib/mobpush_plugin.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,28 +159,28 @@ class MobpushPlugin {
159159
/*
160160
*设置远程推送,向用户授权(仅 iOS).
161161
*/
162-
static Future<void> setCustomNotification() async {
162+
static void setCustomNotification() {
163163
_channel.invokeMethod('setCustomNotification');
164164
}
165165

166166
/*
167167
*设置远程推送环境 (仅 iOS).
168168
*/
169-
static Future<void> setAPNsForProduction(bool isPro) async {
169+
static void setAPNsForProduction(bool isPro) {
170170
_channel.invokeMethod('setAPNsForProduction', {'isPro': isPro});
171171
}
172172

173173
/*
174174
*设置角标 (仅 iOS).
175175
*/
176-
static Future<void> setBadge(int badge) async {
176+
static void setBadge(int badge) {
177177
_channel.invokeMethod('setBadge', {'badge': badge});
178178
}
179179

180180
/*
181181
*清空角标,不清除通知栏消息记录 (仅 iOS).
182182
*/
183-
static Future<void> clearBadge() async {
183+
static void clearBadge() {
184184
_channel.invokeMethod('clearBadge');
185185
}
186186

@@ -189,22 +189,22 @@ class MobpushPlugin {
189189
*默认3个选项都有
190190
*iOS 10以上设置生效.(仅 iOS).
191191
*/
192-
static Future<void> setAPNsShowForegroundType(int type) async {
192+
static void setAPNsShowForegroundType(int type) {
193193
_channel.invokeMethod('setAPNsShowForegroundType', {'type': type});
194194
}
195195

196196
/*
197197
*设置地区:regionId 默认0(国内),1:海外 (仅 iOS).
198198
*/
199-
static Future<void> setRegionId(int regionId) async {
199+
static void setRegionId(int regionId) {
200200
_channel.invokeMethod('setRegionId', {'regionId': regionId});
201201
}
202202

203203
/*
204204
*注册appkey和appsecret
205205
* (仅 iOS).
206206
*/
207-
static Future<void> registerApp(String appKey, String appSecret) async {
207+
static void registerApp(String appKey, String appSecret) {
208208
_channel.invokeMethod('registerApp', {'appKey': appKey, 'appSecret': appSecret});
209209
}
210210

0 commit comments

Comments
 (0)