-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classOLibrary.Companion
-
Constructor Summary
Constructors Constructor Description OLibrary()
-
Method Summary
Modifier and Type Method Description final OLibrarysetToken(String token)(1):网络相关 final OLibrarysetBaseUrl(String baseUrl)final OLibraryaddExcludeApi(String api)final OLibraryaddHeader(String key, String value)final OLibraryaddHeaders(HashMap<String, String> headers)final OLibrarysetHeaders(HashMap<String, String> headers)final OLibraryaddTokenExpiredListener(Function0<Unit> tokenExpiredListener)final OLibraryaddErrorHandler()fix the wrong:RxJava OnErrorNotImplementedException 正常网络环境下错误很难复现,但是当项目上线用户基数变大,appp使用场景丰富,各种网络状况,在bugly上会报错,所以这里建议项目继承KApplication final OLibraryinitBugly(String buglyId)final OLibrarysetDbName(String dbName)final OLibrarysetCopyRight(String author, String copyRightDes)final OLibraryhideCopyRight(Boolean hideCopyRightAuthor)final OLibraryshowCopyRightLink(Boolean showCopyRightLink)final OLibrarysetChannel(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)
-
-
-
-