-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
OLibrary.Companion
-
Constructor Summary
Constructors Constructor Description OLibrary()
-
Method Summary
Modifier and Type Method Description final OLibrary
setToken(String token)
(1):网络相关 final OLibrary
setBaseUrl(String baseUrl)
final OLibrary
addExcludeApi(String api)
final OLibrary
addHeader(String key, String value)
final OLibrary
addHeaders(HashMap<String, String> headers)
final OLibrary
setHeaders(HashMap<String, String> headers)
final OLibrary
addTokenExpiredListener(Function0<Unit> tokenExpiredListener)
final OLibrary
addErrorHandler()
fix the wrong:RxJava OnErrorNotImplementedException 正常网络环境下错误很难复现,但是当项目上线用户基数变大,appp使用场景丰富,各种网络状况,在bugly上会报错,所以这里建议项目继承KApplication final OLibrary
initBugly(String buglyId)
final OLibrary
setDbName(String dbName)
final OLibrary
setCopyRight(String author, String copyRightDes)
final OLibrary
hideCopyRight(Boolean hideCopyRightAuthor)
final OLibrary
showCopyRightLink(Boolean showCopyRightLink)
final OLibrary
setChannel(String channelId, String channelName)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, getEntries, getKeys, getOrDefault, getSize, getValues, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll
-
Methods inherited from class com.sunst.ol.of.BuildOf
page, pageSize, park
-
Methods inherited from class com.sunst.ol.of.BaseBuild
getConfig
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setBaseUrl
final OLibrary setBaseUrl(String baseUrl)
-
addExcludeApi
final OLibrary addExcludeApi(String api)
-
addHeaders
final OLibrary addHeaders(HashMap<String, String> headers)
-
setHeaders
final OLibrary setHeaders(HashMap<String, String> headers)
-
addTokenExpiredListener
final OLibrary addTokenExpiredListener(Function0<Unit> tokenExpiredListener)
-
addErrorHandler
final OLibrary addErrorHandler()
fix the wrong:RxJava OnErrorNotImplementedException 正常网络环境下错误很难复现,但是当项目上线用户基数变大,appp使用场景丰富,各种网络状况,在bugly上会报错,所以这里建议项目继承KApplication
-
setCopyRight
final OLibrary setCopyRight(String author, String copyRightDes)
-
hideCopyRight
final OLibrary hideCopyRight(Boolean hideCopyRightAuthor)
-
showCopyRightLink
final OLibrary showCopyRightLink(Boolean showCopyRightLink)
-
setChannel
final OLibrary setChannel(String channelId, String channelName)
-
-
-
-