admin
2021-05-08 f93ff67ed4681f416a653370aa1e7995a56940ef
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
package com.huawei.android.hms.agent.common;
 
import com.huawei.hms.api.HuaweiApiClient;
 
/**
 * 连接client空回调
 */
public class EmptyConnectCallback implements IClientConnectCallback {
 
    private String msgPre;
 
    public EmptyConnectCallback(String msgPre){
        this.msgPre = msgPre;
    }
 
    /**
     * HuaweiApiClient 连接结果回调
     *
     * @param rst    结果码
     * @param client HuaweiApiClient 实例
     */
    @Override
    public void onConnect(int rst, HuaweiApiClient client) {
        HMSAgentLog.d(msgPre + rst);
    }
}