dev
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
package com.mogo.map;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-20
|
||||
* <p>
|
||||
* 描述
|
||||
*/
|
||||
public class MogoMap {
|
||||
|
||||
private IMogoMap mMap;
|
||||
private Context mContext;
|
||||
|
||||
private static volatile MogoMap sInstance;
|
||||
|
||||
private MogoMap() {
|
||||
}
|
||||
|
||||
public static MogoMap getInstance() {
|
||||
if ( sInstance == null ) {
|
||||
synchronized ( MogoMap.class ) {
|
||||
if ( sInstance == null ) {
|
||||
sInstance = new MogoMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
return sInstance;
|
||||
}
|
||||
|
||||
public void init( Context context, IMogoMap map ) {
|
||||
this.mContext = context;
|
||||
this.mMap = map;
|
||||
}
|
||||
|
||||
public Context getContext() {
|
||||
return mContext;
|
||||
}
|
||||
|
||||
public IMogoMap getMogoMap() {
|
||||
return mMap;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user