Package io.rong.imlib.model
Class AndroidConfig
-
- All Implemented Interfaces:
public class AndroidConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
AndroidConfig.VivoType
public enum
AndroidConfig.ChannelKey
public enum
AndroidConfig.ImportanceHW
华为消息分类方式有两种:1、消息智能分类 2、消息自分类
默认情况下,所有消息一律通过通知消息智能分类功能进行分类,若申请自分类权益,应用的推送消息将根据NORMAL、LOW进行归类.
public enum
AndroidConfig.ImportanceHonor
荣耀消息分类
public class
AndroidConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description public final static String
OPERATE
public final static String
SYSTEM
public final static String
CHANNEL_ID
public final static Creator<AndroidConfig>
CREATOR
public String
notificationId
public String
channelIdMi
public String
imageUrlMi
public String
channelIdHW
public String
imageUrlHW
public String
importanceHW
public String
categoryHW
public String
channelIdOPPO
public String
typeVivo
public String
categoryVivo
public String
collapseKeyFCM
public String
imageUrlFCM
public String
channelIdFCM
public String
importanceHonor
public String
imageUrlHonor
-
Constructor Summary
Constructors Constructor Description AndroidConfig()
-
Method Summary
Modifier and Type Method Description String
getNotificationId()
void
setNotificationId(String notificationId)
String
getChannelIdMi()
void
setChannelIdMi(String channelIdMi)
String
getImageUrlMi()
void
setImageUrlMi(String imageUrlMi)
String
getChannelIdHW()
void
setChannelIdHW(String channelIdHW)
String
getImageUrlHW()
void
setImageUrlHW(String imageUrlHW)
String
getImportanceHW()
String
getCategoryHW()
获取华为自分类 void
setCategoryHW(String categoryHW)
设置华为自分配 String
getChannelIdOPPO()
void
setChannelIdOPPO(String channelIdOPPO)
String
getTypeVivo()
void
setTypeVivo(String typeVivo)
String
getCategoryVivo()
获取 Vivo 自分类 void
setCategoryVivo(String categoryVivo)
Vivo文档 消息分类标准 String
getCollapseKeyFCM()
void
setCollapseKeyFCM(String collapseKeyFCM)
String
getImageUrlFCM()
void
setImageUrlFCM(String fcmImageUrl)
String
getChannelIdFCM()
void
setChannelIdFCM(String channelIdFCM)
String
getImportanceHonor()
String
getImageUrlHonor()
void
setImageUrlHonor(String imageUrlHonor)
荣耀通知类型的推送所使用的通知图片 url int
describeContents()
void
writeToParcel(Parcel dest, int flags)
JSONArray
toJson()
void
setTypeVivo(AndroidConfig.VivoType typeVivo)
String
toString()
void
setImportanceHW(AndroidConfig.ImportanceHW importanceHW)
void
setImportanceHonor(AndroidConfig.ImportanceHonor importanceHonor)
LOW时,表示消息为资讯营销;NORMAL时,表示消息为服务与通讯. -
-
Method Detail
-
getNotificationId
String getNotificationId()
-
setNotificationId
void setNotificationId(String notificationId)
-
getChannelIdMi
String getChannelIdMi()
-
setChannelIdMi
void setChannelIdMi(String channelIdMi)
-
getImageUrlMi
String getImageUrlMi()
-
setImageUrlMi
void setImageUrlMi(String imageUrlMi)
-
getChannelIdHW
String getChannelIdHW()
-
setChannelIdHW
void setChannelIdHW(String channelIdHW)
-
getImageUrlHW
String getImageUrlHW()
-
setImageUrlHW
void setImageUrlHW(String imageUrlHW)
-
getImportanceHW
String getImportanceHW()
-
getCategoryHW
String getCategoryHW()
获取华为自分类
- Since:
5.4.0
-
setCategoryHW
void setCategoryHW(String categoryHW)
设置华为自分配
- Parameters:
categoryHW
- 社交通讯:即时通讯[IM],音频、视频通话[VOIP] 服务提醒:订阅[SUBSCRIPTION],出行[TRAVEL],健康[HEALTH],工作事项提醒[WORK],帐号动态[ACCOUNT],订单&物流[EXPRESS],财务[FINANCE],系统提示[SYSTEM_REMINDER],邮件[MAIL] 资讯营销类:内容资讯/新闻/财经动态/生活资讯/社交动态/调研/其他[MARKETING] 营销活动:产品促销/功能推荐/运营活动/MARKETING 备注:默认值为 null,如果为 null,则以服务配置为准- Since:
5.4.0
-
getChannelIdOPPO
String getChannelIdOPPO()
-
setChannelIdOPPO
void setChannelIdOPPO(String channelIdOPPO)
-
getTypeVivo
String getTypeVivo()
-
setTypeVivo
@Deprecated() void setTypeVivo(String typeVivo)
-
getCategoryVivo
String getCategoryVivo()
获取 Vivo 自分类
- Since:
5.4.2
-
setCategoryVivo
void setCategoryVivo(String categoryVivo)
Vivo文档 消息分类标准
- Parameters:
categoryVivo
- 系统消息分类 即时消息[IM],账号与资产[ACCOUNT],日程待办[TODO],设备信息[DEVICE_REMINDER],订单与物流[ORDER],订阅提醒[SUBSCRIPTION] 运营消息分类 新闻[NEWS],内容推荐[CONTENT],运营活动[MARKETING],社交动态[SOCIAL]- Since:
5.4.2
-
getCollapseKeyFCM
String getCollapseKeyFCM()
-
setCollapseKeyFCM
void setCollapseKeyFCM(String collapseKeyFCM)
-
getImageUrlFCM
String getImageUrlFCM()
-
setImageUrlFCM
void setImageUrlFCM(String fcmImageUrl)
-
getChannelIdFCM
String getChannelIdFCM()
-
setChannelIdFCM
void setChannelIdFCM(String channelIdFCM)
-
getImportanceHonor
String getImportanceHonor()
-
getImageUrlHonor
String getImageUrlHonor()
-
setImageUrlHonor
void setImageUrlHonor(String imageUrlHonor)
荣耀通知类型的推送所使用的通知图片 url
- Since:
5.6.7
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
toJson
JSONArray toJson()
-
setTypeVivo
@Deprecated() void setTypeVivo(AndroidConfig.VivoType typeVivo)
-
toString
String toString()
-
setImportanceHW
void setImportanceHW(AndroidConfig.ImportanceHW importanceHW)
-
setImportanceHonor
void setImportanceHonor(AndroidConfig.ImportanceHonor importanceHonor)
- Since:
5.6.7
-
-
-
-