JLChen
2021-11-09 c584c193d5dd4290bcbeddd434e1d642db59eb13
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
package com.hdl.sdk.common;
 
import android.content.Context;
 
/**
 * Created by Tong on 2021/9/28.
 */
public class HDLSdk {
 
    private Context context;
 
    private HDLSdk() {
    }
 
    private static class SingletonInstance {
        private static final HDLSdk INSTANCE = new HDLSdk();
    }
 
    public static HDLSdk getInstance() {
        return SingletonInstance.INSTANCE;
    }
 
    public void init(Context context) {
        this.context = context.getApplicationContext();
    }
 
    public Context getContext() {
        return context;
    }
}