Core.utils
package core.utils
classes
Name | Description |
---|---|
enum class LogLevel
|
The different verbosity types |
subpackages
Name | Description |
---|---|
package core.utils.animators
|
|
package core.utils.liveLikeSharedPrefs
|
fields
Name | Description |
---|---|
var minimumLogLevel: LogLevel
|
The lowest (most granular) log level to log |
const UUID_REGEX: String
|
Methods
isNetworkConnected
fun Context.isNetworkConnected(): Boolean
receiver
Name | Description |
---|---|
Context
|
returnValue
Name | Description |
---|---|
Boolean
|
addUserAgent
fun Request.Builder.addUserAgent(): Request.Builder
receiver
Name | Description |
---|---|
Request.Builder
|
returnValue
Name | Description |
---|---|
Request.Builder
|
addAuthorizationBearer
fun Request.Builder.addAuthorizationBearer(accessToken: String?): Request.Builder
receiver
Name | Description |
---|---|
Request.Builder
|
parameters
Name | Description |
---|---|
accessToken: String?
|
returnValue
Name | Description |
---|---|
Request.Builder
|
registerLogsHandler
fun registerLogsHandler(logHandler: (String)->Unit)
parameters
Name | Description |
---|---|
logHandler: (String)->Unit
|
Method processing the log string received. |
returnValue
Name | Description |
---|---|
Unit
|
validateUuid
fun validateUuid(uuid: String): Boolean
parameters
Name | Description |
---|---|
uuid: String
|
returnValue
Name | Description |
---|---|
Boolean
|
unit
fun Any.unit()
receiver
Name | Description |
---|---|
Any
|
returnValue
Name | Description |
---|---|
Unit
|
Add a log handler to intercept the logs. This can be helpful for debugging.