diff --git a/ApiDoc/allclasses-frame.html b/ApiDoc/allclasses-frame.html deleted file mode 100644 index 54da0e9..0000000 --- a/ApiDoc/allclasses-frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -
- - -public interface IMoGoTokenCallback
-| 限定符和类型 | -方法和说明 | -
|---|---|
void |
-onError(int code,
- java.lang.String msg) |
-
void |
-onTokenGot(java.lang.String token,
- java.lang.String sn) |
-
public class MoGoAiCloudClient
-extends java.lang.Object
-| 限定符和类型 | -方法和说明 | -
|---|---|
MoGoAiCloudClientConfig |
-getAiCloudClientConfig() |
-
static MoGoAiCloudClient |
-getInstance() |
-
MoGoAiCloudClient |
-init(android.content.Context context,
- MoGoAiCloudClientConfig aiCloudClientConfig)
-初始化
- |
-
void |
-refreshToken(IMoGoTokenCallback tokenCallback) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static MoGoAiCloudClient getInstance()-
public MoGoAiCloudClient init(android.content.Context context, - MoGoAiCloudClientConfig aiCloudClientConfig)-
context - 上下文aiCloudClientConfig - SDK配置信息public MoGoAiCloudClientConfig getAiCloudClientConfig()-
public void refreshToken(IMoGoTokenCallback tokenCallback)-
public class MoGoAiCloudClientConfig
-extends java.lang.Object
-| 构造器和说明 | -
|---|
MoGoAiCloudClientConfig() |
-
| 限定符和类型 | -方法和说明 | -
|---|---|
com.mogo.cloud.httpdns.listener.IHttpDnsCurrentLocation |
-getIHttpDnsCurrentLocation()
-返回HttpDns的位置信息,必须设置,否则将无法使用网络请求
- |
-
long |
-getLoopCheckDelay()
-获取HttpDns检查时间间隔
- |
-
int |
-getNetMode()
-获取当前网络环境
- |
-
java.lang.String |
-getSn()
-获取从AI云平台获取的SN
- |
-
java.lang.String |
-getThirdPartyAppKey()
-获取AI云平台分配给三方应用的AppKey,需要从AI云平台申请
- |
-
java.lang.String |
-getThirdPartyDeviceId()
-获取三方设备唯一ID
- |
-
java.lang.String |
-getThirdPartySignSecret()
-获取AI云平台分配给三方应用的签名密钥,需要从AI云平台申请
- |
-
java.lang.String |
-getToken()
-获取从AI云平台获取的Token
- |
-
boolean |
-isShowDebugLog()
-是否打印日志
- |
-
boolean |
-isThirdLogin()
-获取是否是第三放应用登录
- |
-
void |
-setIHttpDnsCurrentLocation(com.mogo.cloud.httpdns.listener.IHttpDnsCurrentLocation IHttpDnsCurrentLocation)
-返回HttpDns的位置信息,必须设置,否则将无法使用网络请求
- |
-
void |
-setLoopCheckDelay(long loopCheckDelay)
-设置HttpDns检查时间间隔
- |
-
void |
-setNetMode(int sNetMode)
-设置当前网络环境
- |
-
void |
-setShowDebugLog(boolean showDebugLog)
-设置是否打印日志
- |
-
void |
-setThirdLogin(boolean thirdLogin)
-设置是否是第三方应用登录
- |
-
void |
-setThirdPartyAppKey(java.lang.String thirdPartyAppKey)
-设置AI云平台分配给三方应用的AppKey,需要从AI云平台申请
- |
-
void |
-setThirdPartyDeviceId(java.lang.String thirdPartyDeviceId)
-设置三方设备唯一ID
- |
-
void |
-setThirdPartySignSecret(java.lang.String thirdPartySignSecret)
-设置AI云平台分配给三方应用的签名密钥,需要从AI云平台申请
- |
-
java.lang.String |
-toString() |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic java.lang.String getThirdPartyDeviceId()-
public void setThirdPartyDeviceId(java.lang.String thirdPartyDeviceId)-
thirdPartyDeviceId - 三方设备唯一IDpublic java.lang.String getThirdPartyAppKey()-
public void setThirdPartyAppKey(java.lang.String thirdPartyAppKey)-
thirdPartyAppKey - AppKeypublic java.lang.String getThirdPartySignSecret()-
public void setThirdPartySignSecret(java.lang.String thirdPartySignSecret)-
thirdPartySignSecret - 签名密钥public boolean isThirdLogin()-
public void setThirdLogin(boolean thirdLogin)-
thirdLogin - true-是,false-否public int getNetMode()-
研发环境,
-测试环境,
-演示环境,
-线上环境public void setNetMode(int sNetMode)-
sNetMode - 当前的网络环境MogoHttpDnsConfig.HTTP_DNS_ENV_DEV,
-MogoHttpDnsConfig.HTTP_DNS_ENV_QA,
-MogoHttpDnsConfig.HTTP_DNS_ENV_DEMO,
-MogoHttpDnsConfig.HTTP_DNS_ENV_RELEASEpublic java.lang.String getToken()-
public java.lang.String getSn()-
public boolean isShowDebugLog()-
public void setShowDebugLog(boolean showDebugLog)-
showDebugLog - true-打印日志,false-不打印日志public long getLoopCheckDelay()-
public void setLoopCheckDelay(long loopCheckDelay)-
loopCheckDelay - 时间间隔,毫秒public com.mogo.cloud.httpdns.listener.IHttpDnsCurrentLocation getIHttpDnsCurrentLocation()-
public void setIHttpDnsCurrentLocation(com.mogo.cloud.httpdns.listener.IHttpDnsCurrentLocation IHttpDnsCurrentLocation)-
IHttpDnsCurrentLocation - 返回位置信息的回调public java.lang.String toString()-
toString 在类中 java.lang.Object| 限定符和类型 | -方法和说明 | -
|---|---|
void |
-MoGoAiCloudClient.refreshToken(IMoGoTokenCallback tokenCallback) |
-
| 限定符和类型 | -方法和说明 | -
|---|---|
static MoGoAiCloudClient |
-MoGoAiCloudClient.getInstance() |
-
MoGoAiCloudClient |
-MoGoAiCloudClient.init(android.content.Context context,
- MoGoAiCloudClientConfig aiCloudClientConfig)
-初始化
- |
-
| 限定符和类型 | -方法和说明 | -
|---|---|
MoGoAiCloudClientConfig |
-MoGoAiCloudClient.getAiCloudClientConfig() |
-
| 限定符和类型 | -方法和说明 | -
|---|---|
MoGoAiCloudClient |
-MoGoAiCloudClient.init(android.content.Context context,
- MoGoAiCloudClientConfig aiCloudClientConfig)
-初始化
- |
-
public class Sample
+public static class NetConstants.Companion
+public class NetConstants
+created by wujifei on 2021/1/20 10:46 +describe:
public static int NO_DATA+
无数据
public static int OK+
数据返回正常
public static long READ_TIMEOUT+
public static long WRITE_TIMEOUT+
public static long CONNECT_TIMEOUT+
public static int HTTP_DNS_ADDRESS_TYPE_HTTP+
public static int HTTP_DNS_ADDRESS_TYPE_WS+
public static int HTTP_DNS_ADDRESS_TYPE_IM+
public static com.mogo.cloud.commons.network.NetConstants.Companion Companion+
public static class OkHttpFactory.Companion
+public class OkHttpFactory
+public class RetrofitFactory
+public static RetrofitFactory INSTANCE+
@Synchronized + @Nullable +public retrofit2.Retrofit getInstance(@NotNull + java.lang.String baseUrl)+
@Synchronized + @Nullable +public retrofit2.Retrofit getInstanceNoCallAdapter(@NotNull + java.lang.String baseUrl)+
public class HeaderNetworkInterceptor
+created by wujifei on 2021/1/20 15:18 +describe:
| 类 | +说明 | +
|---|---|
| HeaderNetworkInterceptor | +
+ created by wujifei on 2021/1/20 15:18
+describe:
+ |
+
| 类 | +说明 | +
|---|---|
| NetConstants | +
+ created by wujifei on 2021/1/20 10:46
+describe:
+ |
+
| OkHttpFactory | ++ |
| RetrofitFactory | ++ |
public class CoordinateUtils
+public static kotlin.Array[] transformFromWGSToGCJ(double lat, + double lon)+
手机GPS坐标转火星坐标
public static double transformLat(double x, + double y)+
public static double transformLon(double x, + double y)+
public static boolean outOfChina(double lat, + double lon)+
public static kotlin.Array[] transformGcj02toWgs84(double lat, + double lng)+
public static float calculateLineDistance(double lon1, + double lat1, + double lon2, + double lat2)+
lon1 - lat1 - lon2 - lat2 -