美文网首页
Arouter PendingIntent

Arouter PendingIntent

作者: 被时光移动的城 | 来源:发表于2020-04-09 23:36 被阅读0次

    Arouter PendingIntent

      Postcard postcard = ARouter.getInstance().build("/im/MessageActivity");
                        LogisticsCenter.completion(postcard);
                        Class<?> destination = postcard.getDestination();
                        Intent intent = new Intent(context, destination);
                        Bundle bundle = new Bundle();
                        bundle.putString("KEY_RECEIVER_IS_GROUP", "2");
                        bundle.putString("KEY_RECEIVER_ID", model.getOrganizeId());
                        bundle.putString("KEY_CHAT_TITLE", model.getOrganizeName());
                        intent.putExtras(bundle);
                        PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
                        new NotificationUtils(context, noticeNum, R.mipmap.logo).sendNotification(title, contentStr, pendingIntent);
    

    相关文章

      网友评论

          本文标题:Arouter PendingIntent

          本文链接:https://www.haomeiwen.com/subject/gfqlyhtx.html