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) |
String | getAndroidSound () |
void | setIgnoreIOSBadge (boolean ignoreIOSBadge) |
void | setIOSPushType (int iosPushType) |
void | setAndroidOPPOChannelID (String channelID) |
void | setAndroidFCMChannelID (String channelID) |
void | setAndroidXiaoMiChannelID (String channelID) |
void | setAndroidVIVOClassification (int classification) |
void | setAndroidVIVOCategory (String category) |
void | setAndroidHuaWeiCategory (String category) |
void | setAndroidOPPOCategory (String category) |
void | setAndroidOPPONotifyLevel (int level) |
void | setAndroidHuaWeiImage (String imageUrl) |
void | setAndroidHonorImage (String imageUrl) |
void | setAndroidFCMImage (String imageUrl) |
void | setIOSImage (String imageUrl) |
void | setHarmonyImage (String imageUrl) |
void | setHarmonyCategory (String category) |
void | setIgnoreHarmonyBadge (boolean ignoreHarmonyBadge) |
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 notification content
description | Notification content |
|
inline |
Set the extended field passed through by offline push
ext | Notification passthrough message |
|
inline |
Get the extended field passed through by offline push
|
inline |
Whether to disable push (enabled by default)
disable | true: disable; false: enable |
|
inline |
Get whether offline push is disabled
|
inline |
Set the sound effect for offline push (valid only for iOS). If "sound" is IOS_OFFLINE_PUSH_NO_SOUND, no sound will be played when a notification is received. If "sound" is IOS_OFFLINE_PUSH_DEFAULT_SOUND, the system notification sound will be played when a notification is received. To customize the sound, link an audio file to your Xcode project and set iOSSound to the filename (including the extension).
sound | Path of the audio file for iOS systems |
|
inline |
Set the sound effect for offline push (valid only for Android and supported in imsdk 6.1 and later versions).
Only Huawei and Google phones support configuring sound effects for offline push notifications. To configure offline push sound effects for Xiaomi phones, please see https://dev.mi.com/console/doc/detail?pId=1278%23_3_0. For FCM notifications on Google phones, in order for the configured sound effect to take effect, you need to call setAndroidFCMChannelID to set the channel ID first.
sound | The name of the audio file in the raw directory of your Android project (leave out the extension) |
|
inline |
Get the offline push android sound
|
inline |
Whether to exclude an offline push notification from the badge count (valid only for iOS). If the parameter is set to true, on an iOS device, the app's unread badge will not increase after the notification is sent.
ignoreIOSBadge | true: exclude the offline push notification from the badge count; false: include the offline push notification in the badge count |
|
inline |
Set the offline push type for iOS systems
iosPushType | IOS_OFFLINE_PUSH_TYPE_APNS: APNs; IOS_OFFLINE_PUSH_TYPE_VOIP: VoIP. The default value is IOS_OFFLINE_PUSH_TYPE_APNS |
|
inline |
Configure the channel ID for offline push on OPPO phones with Android 8.0 and later
channelID | OPPO phone channel ID |
|
inline |
Configure the channel ID for FCM offline push on phones with Android 8.0 and later
channelID | FCM Channel ID |
|
inline |
Configure the channel ID for offline push on Xiaomi phones with Android 8.0 and later
channelID | XiaoMi Channel ID |
|
inline |
Set the notification type for offline push on vivo phones (to be deprecated). The vivo push service optimized its message classification rules on April 3, 2023. We recommend you use setAndroidVIVOCategory instead.
classification | Offline push notification type on vivo phones. 0: operation notification; 1 (default): system notification. |
|
inline |
Set the notification type for offline push on vivo phones. For details, see https://dev.vivo.com.cn/documentCenter/doc/359. The vivo push service optimized its message classification rules on April 3, 2023. We recommend you use this API now instead of setAndroidVIVOClassification.
category | Notification type on vivo phones |
|
inline |
Set the offline push notification type for Huawei phones. For details, see https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/message-classification-0000001149358835
category | Huawei push notification type |
|
inline |
Set the offline push notification type for OPPO phones. For details, see https://open.oppomobile.com/new/developmentDoc/info?id=13189
category | OPPO push notification type 1、Communication and service types include: "IM", "ACCOUNT", etc. 2、Content and marketing types include: "NEWS", "CONTENT", etc. |
|
inline |
Set the message reminder level for push notification bar in OPPO phones, see details:https://open.oppomobile.com/new/developmentDoc/info?id=13189
level | OPPO notification bar message reminder levels: 1 Notification bar 2 Notification bar + lock screen (default) 16 Notification bar + lock screen + banner + vibration + ringtone |
|
inline |
Set the notification image for Huawei device offline push.
imageUrl | The protocol used must be HTTPS. Here is an example of the value: https://example.com/image.png |
|
inline |
Set the notification image for Honor device offline push.
imageUrl | The protocol used must be HTTPS. Here is an example of the value:https://example.com/image.png |
|
inline |
Set the notification image for Google FCM device offline push. Display as a large icon when the message is not expanded, and show as a large image when the message is expanded.
imageUrl | The protocol used must be HTTPS. Here is an example of the value:https://example.com/image.png |
|
inline |
Set the notification image for APNs offline push, leveraging the iOS 10 Service Extension feature to download and display it in the popup.
imageUrl | The protocol used must be HTTPS. Here is an example of the value:https://example.com/image.png |
|
inline |
Set the notification image for offline push by Harmony device.
imageUrl | The protocol used must be HTTPS. Example value: https://example.com/image.png. |
|
inline |
Set the offline push notification category for HarmonyOS devices. For details, see https://developer.huawei.com/consumer/cn/doc/HMSCore-Guides/message-classification-0000001149358835
category | HarmonyOS devices push notification category |
|
inline |
Whether to exclude an offline push notification from the badge count (valid only for Harmony). If the parameter is set to true, on an Harmony device, the app's unread badge will not increase after the notification is sent.
ignoreHarmonyBadge | true: exclude the offline push notification from the badge count; false: include the offline push notification in the badge count |
|
static |
|
static |
|
static |
|
static |