ZTCore

object ZTCore

Should be initialized on application startUp with ZTAppInformation and instance of ZTBaseProduct ZTCore provides methods to work with ZT devices.

Author

Alexandre Lemoult <a.lemoult@zhortech.com>

Functions

clearUserData
Link copied to clipboard
fun clearUserData()
Clean up user data in SDK storage, useful when you want to logout from the SDK
destroyGracefully
Link copied to clipboard
fun destroyGracefully()
getAppVersionName
Link copied to clipboard
fun getAppVersionName(): String
getLastActivityTime
Link copied to clipboard
fun getLastActivityTime(): Long?
getPendingActivitiesCount
Link copied to clipboard
fun getPendingActivitiesCount(): Single<Int>
invoke
Link copied to clipboard
operator fun invoke(context: Context, appInfo: ZTAppInformation, product: ZTBaseProduct): ZTCore
isBluetoothEnabled
Link copied to clipboard
fun isBluetoothEnabled(): Boolean
isBluetoothSupported
Link copied to clipboard
fun isBluetoothSupported(): Boolean
isLocationServicesOk
Link copied to clipboard
fun isLocationServicesOk(): Boolean
setBluetoothEnabled
Link copied to clipboard
fun setBluetoothEnabled(enable: Boolean)
setLogOptions
Link copied to clipboard
fun setLogOptions(options: ZTLogOptions)
setOrganizationCode
Link copied to clipboard
fun setOrganizationCode(orgCode: String?)
startService
Link copied to clipboard
fun startService(service: Class<*>)

Properties

activityManager
Link copied to clipboard
lateinit var activityManager: ZTActivityManager
appInfo
Link copied to clipboard
lateinit var appInfo: ZTAppInformation
appUserInfo
Link copied to clipboard
lateinit var appUserInfo: ZTAppUserInfo
bleManager
Link copied to clipboard
lateinit var bleManager: ZTBleManager
connectivityProvider
Link copied to clipboard
lateinit var connectivityProvider: ZTConnectivityProvider
context
Link copied to clipboard
lateinit var context: Context
prefRepository
Link copied to clipboard
lateinit var prefRepository: ZTPrefsRepository
settings
Link copied to clipboard
val settings: ZTSettings