lmw
2023-06-13 4b7d8d9a038f6522df46d0f14fa07eb940a1b34d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.kuanzhai.driver.ui.push;
 
import android.content.Context;
import android.util.Log;
 
import com.kuanzhai.driver.base.MyApplication;
 
import cn.jpush.android.api.CustomMessage;
import cn.jpush.android.api.NotificationMessage;
import cn.jpush.android.service.JPushMessageReceiver;
 
public class JPushReceiver extends JPushMessageReceiver {
    private static final String TAG = "JPushReceiver";
 
    @Override
    public void onConnected(Context context, boolean b) {
        super.onConnected(context, b);
        Log.i(TAG, "onConnected: ");
    }
 
    @Override
    public void onMessage(Context context, CustomMessage customMessage) {
        super.onMessage(context, customMessage);
        Log.i(TAG, "onMessage: ");
    }
 
 
    @Override
    public void onNotifyMessageOpened(Context context, NotificationMessage notificationMessage) {
        super.onNotifyMessageOpened(context, notificationMessage);
        Log.i(TAG, "onNotifyMessageOpened: ");
    }
 
    @Override
    public void onNotifyMessageArrived(Context context, NotificationMessage notificationMessage) {
        super.onNotifyMessageArrived(context, notificationMessage);
        MyApplication.Companion.getTTsManager().setVideoText(notificationMessage.notificationContent);
    }
}