Public Member Functions | |
V2TIMOfflinePushInfo () | |
String | getTitle () |
void | setTitle (String title) |
String | getDesc () |
void | setDesc (String description) |
void | setExt (byte[] ext) |
byte [] | getExt () |
void | disablePush (boolean disable) |
boolean | isDisablePush () |
void | setIOSSound (String sound) |
void | setAndroidSound (String sound) |
void | setIgnoreIOSBadge (boolean ignoreIOSBadge) |
void | setAndroidOPPOChannelID (String channelID) |
void | setAndroidFCMChannelID (String channelID) |
void | setAndroidXiaoMiChannelID (String channelID) |
void | setAndroidVIVOClassification (int classification) |
void | setAndroidVIVOCategory (String category) |
void | setIOSPushType (int iosPushType) |
void | setAndroidHuaWeiCategory (String category) |
Static Public Attributes | |
static final String | IOS_OFFLINE_PUSH_NO_SOUND = "push.no_sound" |
static final String | IOS_OFFLINE_PUSH_DEFAULT_SOUND = "default" |
static final int | IOS_OFFLINE_PUSH_TYPE_APNS = 0 |
static final int | IOS_OFFLINE_PUSH_TYPE_VOIP = 1 |
|
inline |
|
inline |
Get the offline push notification title
|
inline |
Set the offline push display title
title | Notification bar title |
|
inline |
Get the offline push notification content
|
inline |
Set the offline push display content
description | Notification bar content |
|
inline |
Set the extended field passed through by offline push
ext | Notification bar passthrough message |
|
inline |
Get the extended field passed through by offline push
|
inline |
Whether to disable push (push enabled by default)
disable | true: disable; false: enable |
|
inline |
Get the offline push disablement status
|
inline |
Offline push sound setting (valid only for iOS) When sound is IOS_OFFLINE_PUSH_NO_SOUND, no sound is played when a message is received. When sound is IOS_OFFLINE_PUSH_DEFAULT_SOUND, the system alert sound is played when a message is received. To customize iOSSound, link the audio file to the Xcode project and set iOSSound to the audio filename (with the extension name).
sound | iOS Sound path |
|
inline |
Offline push sound setting (valid only for Android, supported only in imsdk 6.1 and later versions)
Only Huawei and Google phones support setting ringtone. And Xiaomi needs refer to https://dev.mi.com/console/doc/detail?pId=1278%23_3_0 . In addition, Google phones using FCM to set the sound prompt on Android 8.0 and above systems, which needs to be configured in notification channel, please refer to the interface setAndroidFCMChannelID
sound | The ringtone file name in the raw directory of the Android project, no suffix is required. |
|
inline |
Whether to ignore the badge count for offline push (valid only for iOS) If this parameter is set to true, the unread message count on the app badge will not increase when the message is received by the iOS device.
ignoreIOSBadge | iOS Status of the unread message count on the app badge. true: ignore; false: enable |
|
inline |
Offline push channel ID for OPPO phones that run Android 8.0 or later
channelID | OPPO phone channel ID |
|
inline |
Offline push channel ID for Google FCM phones that run Android 8.0 or later
channelID | FCM Channel ID |
|
inline |
Offline push channel ID for XiaoMi phones that run Android 8.0 or later
channelID | XiaoMi Channel ID |
|
inline |
Offline push setting for VIVO push classification. (It is deprecated and discouraged to call this function. The VIVO push service has optimize the message classification rules on April 3, 2023. Please call API setAndroidVIVOCategory instead.)
classification | Offline push message classification for vivo phones. 0: operation message; 1: system message. The default value is 1. |
|
inline |
Offline push setting for VIVO push category,See details:https://dev.vivo.com.cn/documentCenter/doc/359. (The VIVO push service has optimize the message classification rules on April 3, 2023. Please call API setAndroidVIVOCategory instead.)
category | vivo message category |
|
inline |
The type of offline push on iOS (valid only for iOS)
iosPushType | IOS_OFFLINE_PUSH_TYPE_APNS: APNs; IOS_OFFLINE_PUSH_TYPE_VOIP: VoIP. The default value is IOS_OFFLINE_PUSH_TYPE_APNS |
|
inline |
Offline push setting for HuaWei push category,See details:https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/message-classification-0000001149358835
category | HuaWei push category |
|
static |
|
static |
|
static |
|
static |