本文整理汇总了Java中cn.bmob.im.config.BmobConfig.BROADCAST_NEW_MESSAGE属性的典型用法代码示例。如果您正苦于以下问题:Java BmobConfig.BROADCAST_NEW_MESSAGE属性的具体用法?Java BmobConfig.BROADCAST_NEW_MESSAGE怎么用?Java BmobConfig.BROADCAST_NEW_MESSAGE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类cn.bmob.im.config.BmobConfig
的用法示例。
在下文中一共展示了BmobConfig.BROADCAST_NEW_MESSAGE属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initNewMessageBroadCast
private void initNewMessageBroadCast(){
// 注册接收消息广播 更新小圆点
receiver = new NewMessageReceiver();
IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
intentFilter.setPriority(3);
registerReceiver(receiver, intentFilter);
}
示例2: initNewMessageBroadCast
private void initNewMessageBroadCast(){
// 注册接收消息广播
receiver = new NewMessageReceiver();
IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
//设置广播的优先级别大于Mainacitivity,这样如果消息来的时候正好在chat页面,直接显示消息,而不是提示消息未读
intentFilter.setPriority(5);
registerReceiver(receiver, intentFilter);
}
示例3: initNewMessageBroadCast
private void initNewMessageBroadCast() {
//ע�������Ϣ�㲥
receiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
//���ù㲥�����ȼ�����MainActivity,���������Ϣ����ʱ�����������chatҳ�棬ֱ����ʾ��Ϣ����������ʾ��Ϣδ��
intentFilter.setPriority(5);
registerReceiver(receiver, intentFilter);
}
示例4: initNewMessageBroadCast
private void initNewMessageBroadCast() {
// ע�������Ϣ�㲥
newBroadCastReceiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(
BmobConfig.BROADCAST_NEW_MESSAGE);
// ���ȼ�Ҫ����ChatActivity
intentFilter.setPriority(3);
registerReceiver(newBroadCastReceiver, intentFilter);
}
示例5: initNewMessageBroadCast
private void initNewMessageBroadCast() {
// 注册接收消息广播
receiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(
BmobConfig.BROADCAST_NEW_MESSAGE);
// 设置广播的优先级别大于Mainacitivity,这样如果消息来的时候正好在chat页面,直接显示消息,而不是提示消息未读
intentFilter.setPriority(5);
registerReceiver(receiver, intentFilter);
}
示例6: initNewMessageBroadCast
private void initNewMessageBroadCast() {
// 注册接收消息广播
newReceiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(
BmobConfig.BROADCAST_NEW_MESSAGE);
// 优先级要低于ChatActivity
intentFilter.setPriority(3);
registerReceiver(newReceiver, intentFilter);
}
示例7: initNewMessageBroadCast
private void initNewMessageBroadCast(){
receiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
intentFilter.setPriority(5);
registerReceiver(receiver, intentFilter);
}
示例8: initNewMessageBroadCast
private void initNewMessageBroadCast(){
newReceiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
intentFilter.setPriority(3);
registerReceiver(newReceiver, intentFilter);
}
示例9: initNewMessageBroadCast
private void initNewMessageBroadCast(){
// ע�������Ϣ�㲥
receiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
//���ù㲥�����ȼ������Mainacitivity,���������Ϣ����ʱ��������chatҳ�棬ֱ����ʾ��Ϣ����������ʾ��Ϣδ��
intentFilter.setPriority(5);
registerReceiver(receiver, intentFilter);
}
示例10: initNewMessageBroadCast
private void initNewMessageBroadCast() {
// ע�������Ϣ�㲥
newReceiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
// ���ȼ�Ҫ����ChatActivity
intentFilter.setPriority(3);
registerReceiver(newReceiver, intentFilter);
}
示例11: initNewMessageBroadCast
private void initNewMessageBroadCast(){
// ע�������Ϣ�㲥
newReceiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
//���ȼ�Ҫ����ChatActivity
intentFilter.setPriority(3);
registerReceiver(newReceiver, intentFilter);
}
示例12: initNewMessageBroadCast
private void initNewMessageBroadCast() {
// 注册接收消息广播
receiver = new NewBroadcastReceiver();
IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
// 设置广播的优先级别大于Mainacitivity,这样如果消息来的时候正好在chat页面,直接显示消息,而不是提示消息未读
intentFilter.setPriority(5);
registerReceiver(receiver, intentFilter);
}