Class PushNotificationMessage
- 
                    
                    - All Implemented Interfaces:
 
 public class PushNotificationMessage
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public enumPushNotificationMessage.PushSourceType
 - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description public StringpushIdpublic RongPushClient.ConversationTypeconversationTypepublic longreceivedTimepublic StringobjectNamepublic StringsenderIdpublic StringsenderNamepublic UrisenderPortraitpublic StringtargetIdpublic StringtargetUserNamepublic StringtoIdpublic StringpushTitlepublic StringpushContentpublic StringpushDatapublic Stringextrapublic PushNotificationMessage.PushSourceTypesourceTypepublic Stringintentpublic intvoippublic StringnotificationIdpublic booleanisShowDetailpublic StringchannelIdMipublic StringchannelIdHWpublic StringchannelIdOPPOpublic StringchannelIdFCMpublic StringcollapseKeyFCMpublic StringimageUrlFCMpublic StringimageUrlHWpublic StringimageUrlMipublic StringbusChannelpublic Stringpidpublic final static Creator<PushNotificationMessage>CREATOR
 - 
                                
                            
                                Constructor SummaryConstructors Constructor Description PushNotificationMessage()
 - 
                                
                            
                                Method SummaryModifier and Type Method Description StringgetPushId()Retrieves the unique ID that identifies this push notification. voidsetPushId(String id)RongPushClient.ConversationTypegetConversationType()Retrieves the conversation type of the push notification. voidsetConversationType(RongPushClient.ConversationType type)longgetReceivedTime()Get the arrival time of the push notification. voidsetReceivedTime(long time)StringgetObjectName()Get the type of the push notification. voidsetObjectName(String objectName)StringgetSenderId()Retrieves the sender ID of the push notification. voidsetSenderId(String id)StringgetSenderName()Retrieves the sender's name of the push notification. voidsetSenderName(String name)UrigetSenderPortrait()Retrieves the sender's avatar for this push notification. voidsetSenderPortrait(Uri uri)StringgetTargetId()Retrieves the target ID of the push notification. voidsetTargetId(String id)StringgetTargetUserName()Retrieves the target name of the push notification. voidsetTargetUserName(String name)StringgetToId()Retrieves the target user ID for the push notification. voidsetToId(String id)StringgetPushTitle()Push Notification Title.** Currently, this field is not enabled. voidsetPushTitle(String title)StringgetPushContent()Retrieves the display content of the push notification. voidsetPushContent(String content)StringgetPushData()Retrieves the additional information carried by the push notification. voidsetPushData(String appDataContent)StringgetExtra()Retrieves the key-value pairs of custom additional information when using the push notification service from the developer console. voidsetExtra(String extra)PushNotificationMessage.PushSourceTypegetSourceType()Retrieve the source of the push notification. voidsetSourceType(PushNotificationMessage.PushSourceType type)StringgetIntent()For Huawei and FCM redirection intent voidsetIntent(String intent)intgetVoip()voidsetVoip(int isVoip)StringgetNotificationId()voidsetNotificationId(String notificationId)booleanisShowDetail()voidsetShowDetail(boolean showDetail)StringgetChannelIdMi()voidsetChannelIdMi(String channelIdMi)StringgetChannelIdHW()voidsetChannelIdHW(String channelIdHW)StringgetChannelIdOPPO()voidsetChannelIdOPPO(String channelIdOPPO)StringgetChannelIdFCM()voidsetChannelIdFCM(String channelIdFCM)StringgetCollapseKeyFCM()voidsetCollapseKeyFCM(String collapseKeyFCM)StringgetImageUrlFCM()voidsetImageUrlFCM(String imageUrlFCM)StringgetImageUrlHW()voidsetImageUrlHW(String imageUrlHW)StringgetImageUrlMi()voidsetImageUrlMi(String imageUrlMi)StringgetBusChannel()voidsetBusChannel(String busChannel)StringgetPid()voidsetPid(String pid)voidsetPushFlag(String value)StringgetPushFlag()Indicates whether the message is a push notification or a background message. booleanisDisablePushTitle()intdescribeContents()voidwriteToParcel(Parcel dest, int flags)StringtoString()voidsetDisablePushTitle(boolean disablePushTitle)- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        getPushIdString getPushId() Retrieves the unique ID that identifies this push notification. When using the broadcast push service from the developer console, this ID is used to track the push open rate. If you customize the display of push notifications, you must call recordNotificationEvent to upload the push open event when the notification is clicked. This ensures that RCbackend can accurately calculate the push open rate for you. - Returns:
- When using the broadcast push service from the developer console, returns a string representing the pushId. If the push is converted from a message, it represents the message's UID. 
 
 - 
                                        setPushIdvoid setPushId(String id) 
 - 
                                        getConversationTypeRongPushClient.ConversationType getConversationType() Retrieves the conversation type of the push notification. For example, one-to-one chat, group, discussion group, etc. 
 - 
                                        setConversationTypevoid setConversationType(RongPushClient.ConversationType type) 
 - 
                                        getReceivedTimelong getReceivedTime() Get the arrival time of the push notification. This time indicates when the message arrived at the RCserver. 
 - 
                                        setReceivedTimevoid setReceivedTime(long time) 
 - 
                                        getObjectNameString getObjectName() Get the type of the push notification. For example, RC:TxtMsg for text messages, RC:ImgMsg for image messages, RC:VcMsg for voice messages. If it is a custom message, the value corresponds to the `value` in the `MessageTag` annotation of the custom message. 
 - 
                                        setObjectNamevoid setObjectName(String objectName) 
 - 
                                        getSenderIdString getSenderId() Retrieves the sender ID of the push notification. 
 - 
                                        setSenderIdvoid setSenderId(String id) 
 - 
                                        getSenderNameString getSenderName() Retrieves the sender's name of the push notification. 
 - 
                                        setSenderNamevoid setSenderName(String name) 
 - 
                                        getSenderPortraitUri getSenderPortrait() Retrieves the sender's avatar for this push notification. 
 - 
                                        setSenderPortraitvoid setSenderPortrait(Uri uri) 
 - 
                                        getTargetIdString getTargetId() Retrieves the target ID of the push notification. For example, if the push is sent to group 123 of user A, the ID of group 123 is returned here. - Returns:
- The target ID of the push notification. For one-to-one chat, it is the ID of the other user; for group chat, it is the group ID. 
 
 - 
                                        setTargetIdvoid setTargetId(String id) 
 - 
                                        getTargetUserNameString getTargetUserName() Retrieves the target name of the push notification. For example, if the push is sent to group 123 of user A, the name of group 123 is returned here. - Returns:
- The target name of the push notification. For instance, in a one-to-one chat, it is the name of the other party; in a group chat, it is the group name. 
 
 - 
                                        setTargetUserNamevoid setTargetUserName(String name) 
 - 
                                        getToIdString getToId() Retrieves the target user ID for the push notification. For example, if this push notification is sent to user A's group 123, it returns the ID of user A. - Returns:
- The target user ID for the push notification. 
 
 - 
                                        setToIdvoid setToId(String id) 
 - 
                                        getPushTitleString getPushTitle() Push Notification Title.** Currently, this field is not enabled. 
 - 
                                        setPushTitlevoid setPushTitle(String title) 
 - 
                                        getPushContentString getPushContent() Retrieves the display content of the push notification. When the push message is a custom message, this value corresponds to the content of the `pushContent` parameter in `sendMessage()`. If `pushContent` is not provided when sending a custom message, no push notification will be received. 
 - 
                                        setPushContentvoid setPushContent(String content) 
 - 
                                        getPushDataString getPushData() Retrieves the additional information carried by the push notification. The value here corresponds to the content of the `pushData` parameter in `sendMessage()`. Usage scenario: When sending a custom message, if the `pushData` parameter is filled in `sendMessage()`, the content of `pushData` can be retrieved through this method when the push notification for this message is received. 
 - 
                                        setPushDatavoid setPushData(String appDataContent) 
 - 
                                        getExtraString getExtra() Retrieves the key-value pairs of custom additional information when using the push notification service from the developer console. This field is exclusively used for the push notification service in the developer console and is null in all other cases. 
 - 
                                        setExtravoid setExtra(String extra) 
 - 
                                        getSourceTypePushNotificationMessage.PushSourceType getSourceType() Retrieve the source of the push notification. PushSourceType - Returns:
- The source of the push notification. 
 
 - 
                                        setSourceTypevoid setSourceType(PushNotificationMessage.PushSourceType type) 
 - 
                                        getIntentString getIntent() For Huawei and FCM redirection intent 
 - 
                                        setIntentvoid setIntent(String intent) 
 - 
                                        getVoipint getVoip() 
 - 
                                        setVoipvoid setVoip(int isVoip) 
 - 
                                        getNotificationIdString getNotificationId() 
 - 
                                        setNotificationIdvoid setNotificationId(String notificationId) 
 - 
                                        isShowDetailboolean isShowDetail() 
 - 
                                        setShowDetailvoid setShowDetail(boolean showDetail) 
 - 
                                        getChannelIdMiString getChannelIdMi() 
 - 
                                        setChannelIdMivoid setChannelIdMi(String channelIdMi) 
 - 
                                        getChannelIdHWString getChannelIdHW() 
 - 
                                        setChannelIdHWvoid setChannelIdHW(String channelIdHW) 
 - 
                                        getChannelIdOPPOString getChannelIdOPPO() 
 - 
                                        setChannelIdOPPOvoid setChannelIdOPPO(String channelIdOPPO) 
 - 
                                        getChannelIdFCMString getChannelIdFCM() 
 - 
                                        setChannelIdFCMvoid setChannelIdFCM(String channelIdFCM) 
 - 
                                        getCollapseKeyFCMString getCollapseKeyFCM() 
 - 
                                        setCollapseKeyFCMvoid setCollapseKeyFCM(String collapseKeyFCM) 
 - 
                                        getImageUrlFCMString getImageUrlFCM() 
 - 
                                        setImageUrlFCMvoid setImageUrlFCM(String imageUrlFCM) 
 - 
                                        getImageUrlHWString getImageUrlHW() 
 - 
                                        setImageUrlHWvoid setImageUrlHW(String imageUrlHW) 
 - 
                                        getImageUrlMiString getImageUrlMi() 
 - 
                                        setImageUrlMivoid setImageUrlMi(String imageUrlMi) 
 - 
                                        getBusChannelString getBusChannel() 
 - 
                                        setBusChannelvoid setBusChannel(String busChannel) 
 - 
                                        getPidString getPid() 
 - 
                                        setPidvoid setPid(String pid) 
 - 
                                        setPushFlagvoid setPushFlag(String value) 
 - 
                                        getPushFlagString getPushFlag() Indicates whether the message is a push notification or a background message. 
 - 
                                        isDisablePushTitleboolean isDisablePushTitle() 
 - 
                                        describeContentsint describeContents() 
 - 
                                        writeToParcelvoid writeToParcel(Parcel dest, int flags) 
 - 
                                        toStringString toString() 
 - 
                                        setDisablePushTitlevoid setDisablePushTitle(boolean disablePushTitle) 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-