mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-31 22:42:51 +08:00
Format api doc
This commit is contained in:
parent
83293656da
commit
fa256bfb46
@ -528,11 +528,13 @@ document.addEventListener("jpush.receiveMessage", function (event) {
|
|||||||
|
|
||||||
在 iOS 中,返回值为 0 时,代表系统设置中关闭了推送;大于 0 时,代表打开了推送,且能够根据返回值判断具体通知形式:
|
在 iOS 中,返回值为 0 时,代表系统设置中关闭了推送;大于 0 时,代表打开了推送,且能够根据返回值判断具体通知形式:
|
||||||
|
|
||||||
|
```js
|
||||||
UIRemoteNotificationTypeNone = 0, // 0
|
UIRemoteNotificationTypeNone = 0, // 0
|
||||||
UIRemoteNotificationTypeBadge = 1 << 0, // 1
|
UIRemoteNotificationTypeBadge = 1 << 0, // 1
|
||||||
UIRemoteNotificationTypeSound = 1 << 1, // 2
|
UIRemoteNotificationTypeSound = 1 << 1, // 2
|
||||||
UIRemoteNotificationTypeAlert = 1 << 2, // 4
|
UIRemoteNotificationTypeAlert = 1 << 2, // 4
|
||||||
UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3 // 8
|
UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3 // 8
|
||||||
|
```
|
||||||
|
|
||||||
#### 代码示例
|
#### 代码示例
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user