# PushNotificationMessage

public class PushNotificationMessage

## Constructors

PushNotificationMessage
Link copied to clipboard
public void PushNotificationMessage()

## Types

PushSourceType
Link copied to clipboard
public enum PushSourceType

## Properties

busChannel
Link copied to clipboard
public String busChannel
channelIdFCM
Link copied to clipboard
public String channelIdFCM
channelIdHW
Link copied to clipboard
public String channelIdHW
channelIdMi
Link copied to clipboard
public String channelIdMi
channelIdOPPO
Link copied to clipboard
public String channelIdOPPO
collapseKeyFCM
Link copied to clipboard
public String collapseKeyFCM
conversationType
Link copied to clipboard
public RongPushClient.ConversationType conversationType
CREATOR
Link copied to clipboard
public final static Creator<PushNotificationMessage> CREATOR
extra
Link copied to clipboard
public String extra
imageUrlFCM
Link copied to clipboard
public String imageUrlFCM
imageUrlHW
Link copied to clipboard
public String imageUrlHW
华为通知类型的推送所使用的通知图片 url
imageUrlMi
Link copied to clipboard
public String imageUrlMi
小米通知类型的推送所使用的通知图片 url
intent
Link copied to clipboard
public String intent
isShowDetail
Link copied to clipboard
public boolean isShowDetail
notificationId
Link copied to clipboard
public String notificationId
objectName
Link copied to clipboard
public String objectName
pid
Link copied to clipboard
public String pid
pushContent
Link copied to clipboard
public String pushContent
pushData
Link copied to clipboard
public String pushData
pushId
Link copied to clipboard
public String pushId
pushTitle
Link copied to clipboard
public String pushTitle
receivedTime
Link copied to clipboard
public long receivedTime
senderId
Link copied to clipboard
public String senderId
senderName
Link copied to clipboard
public String senderName
senderPortrait
Link copied to clipboard
public Uri senderPortrait
sourceType
Link copied to clipboard
public PushNotificationMessage.PushSourceType sourceType
targetId
Link copied to clipboard
public String targetId
targetUserName
Link copied to clipboard
public String targetUserName
toId
Link copied to clipboard
public String toId
voip
Link copied to clipboard
public int voip

## Functions

describeContents
Link copied to clipboard
public int describeContents()
getBusChannel
Link copied to clipboard
public String getBusChannel()
getChannelIdFCM
Link copied to clipboard
public String getChannelIdFCM()
getChannelIdHW
Link copied to clipboard
public String getChannelIdHW()
getChannelIdMi
Link copied to clipboard
public String getChannelIdMi()
getChannelIdOPPO
Link copied to clipboard
public String getChannelIdOPPO()
getCollapseKeyFCM
Link copied to clipboard
public String getCollapseKeyFCM()
getConversationType
Link copied to clipboard
public RongPushClient.ConversationType getConversationType()
获取该推送消息所属的会话类型。比如单聊，群组，讨论组等。
getExtra
Link copied to clipboard
public String getExtra()
获取从开发者后台使用推送服务时，自定义的附加信息键值对。 该字段仅为开发者后台的推送服务使用，其余情况为null。
getImageUrlFCM
Link copied to clipboard
public String getImageUrlFCM()
getImageUrlHW
Link copied to clipboard
public String getImageUrlHW()
getImageUrlMi
Link copied to clipboard
public String getImageUrlMi()
getIntent
Link copied to clipboard
public String getIntent()
针对于华为和 FCM 的跳转意图
getNotificationId
Link copied to clipboard
public String getNotificationId()
getObjectName
Link copied to clipboard
public String getObjectName()
获取该推送消息的类型.
getPid
Link copied to clipboard
public String getPid()
getPushContent
Link copied to clipboard
public String getPushContent()
获取推送通知的显示内容。 当该推送消息是自定义消息时，此处的值对应 sendMessage() 的参数 pushContent 的内容。如果您在发送自定义消息时， 没有填写 pushContent， 则收不到推送。
getPushData
Link copied to clipboard
public String getPushData()
获取推送消息携带的附加信息。此处的值对应 sendMessage() 的参数 pushData 的内容。 使用场景：发送自定义消息时，如果在sendMessage()时填写参数pushData, 则收到这条消息的推送时，可以通过该方法获取 pushData 的内容。
getPushFlag
Link copied to clipboard
public String getPushFlag()
标识该消息是推送消息还是后台消息。
getPushId
Link copied to clipboard
public String getPushId()
获取标识该推送消息的唯一Id.
getPushTitle
Link copied to clipboard
public String getPushTitle()
推送标题。目前此字段没有启用。
getReceivedTime
Link copied to clipboard
public long getReceivedTime()
获取该推送消息的到达时间.
getSenderId
Link copied to clipboard
public String getSenderId()
获取该推送消息的发送者Id。
getSenderName
Link copied to clipboard
public String getSenderName()
获取该推送消息的发送者名称。
getSenderPortrait
Link copied to clipboard
public Uri getSenderPortrait()
获取该推送消息的发送者头像。
getSourceType
Link copied to clipboard
public PushNotificationMessage.PushSourceType getSourceType()
获取该推送的来源。PushSourceType
getTargetId
Link copied to clipboard
public String getTargetId()
获取该推送消息的目标Id.
getTargetUserName
Link copied to clipboard
public String getTargetUserName()
获取该推送消息的目标名称.
getToId
Link copied to clipboard
public String getToId()
获取推送的目标用户 id.
getVoip
Link copied to clipboard
public int getVoip()
isDisablePushTitle
Link copied to clipboard
public boolean isDisablePushTitle()
isShowDetail
Link copied to clipboard
public boolean isShowDetail()
setBusChannel
Link copied to clipboard
public void setBusChannel(String busChannel)
setChannelIdFCM
Link copied to clipboard
public void setChannelIdFCM(String channelIdFCM)
setChannelIdHW
Link copied to clipboard
public void setChannelIdHW(String channelIdHW)
setChannelIdMi
Link copied to clipboard
public void setChannelIdMi(String channelIdMi)
setChannelIdOPPO
Link copied to clipboard
public void setChannelIdOPPO(String channelIdOPPO)
setCollapseKeyFCM
Link copied to clipboard
public void setCollapseKeyFCM(String collapseKeyFCM)
setConversationType
Link copied to clipboard
public void setConversationType(RongPushClient.ConversationType type)
setDisablePushTitle
Link copied to clipboard
public void setDisablePushTitle(boolean disablePushTitle)
setExtra
Link copied to clipboard
public void setExtra(String extra)
setImageUrlFCM
Link copied to clipboard
public void setImageUrlFCM(String imageUrlFCM)
setImageUrlHW
Link copied to clipboard
public void setImageUrlHW(String imageUrlHW)
setImageUrlMi
Link copied to clipboard
public void setImageUrlMi(String imageUrlMi)
setIntent
Link copied to clipboard
public void setIntent(String intent)
setNotificationId
Link copied to clipboard
public void setNotificationId(String notificationId)
setObjectName
Link copied to clipboard
public void setObjectName(String objectName)
setPid
Link copied to clipboard
public void setPid(String pid)
setPushContent
Link copied to clipboard
public void setPushContent(String content)
setPushData
Link copied to clipboard
public void setPushData(String appDataContent)
setPushFlag
Link copied to clipboard
public void setPushFlag(String value)
setPushId
Link copied to clipboard
public void setPushId(String id)
setPushTitle
Link copied to clipboard
public void setPushTitle(String title)
setReceivedTime
Link copied to clipboard
public void setReceivedTime(long time)
setSenderId
Link copied to clipboard
public void setSenderId(String id)
setSenderName
Link copied to clipboard
public void setSenderName(String name)
setSenderPortrait
Link copied to clipboard
public void setSenderPortrait(Uri uri)
setShowDetail
Link copied to clipboard
public void setShowDetail(boolean showDetail)
setSourceType
Link copied to clipboard
public void setSourceType(PushNotificationMessage.PushSourceType type)
setTargetId
Link copied to clipboard
public void setTargetId(String id)
setTargetUserName
Link copied to clipboard
public void setTargetUserName(String name)
setToId
Link copied to clipboard
public void setToId(String id)
setVoip
Link copied to clipboard
public void setVoip(int isVoip)
toString
Link copied to clipboard
public String toString()
writeToParcel
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)