SygicContext

class SygicContext : NativeMethodsReceiver

Types

OnContextDestroyListener
Link copied to clipboard
interface OnContextDestroyListener
OnInitCallback
Link copied to clipboard
OnInitListener
Link copied to clipboard
interface OnInitListener : NativeMethodsReceiver.NativeListener

Functions

addOnDestroyListener
Link copied to clipboard
open fun addOnDestroyListener(@NonNull listener: SygicContext.OnContextDestroyListener)
destroy
Link copied to clipboard
open fun destroy()
getAuthWrapper
Link copied to clipboard
open fun getAuthWrapper(): AuthLibWrapper
getContext
Link copied to clipboard
open fun getContext(): Context
getInstance
Link copied to clipboard
open fun getInstance(): SygicContext
open fun getInstance(callback: SygicContext.OnInitCallback)
open fun getInstance(callback: SygicContext.OnInitCallback, @NonNull executor: Executor)
getLogConnector
Link copied to clipboard
open fun getLogConnector(): LogConnector
getTracking
Link copied to clipboard
open fun getTracking(): Tracking
init
Link copied to clipboard
open fun init(request: SygicContextInitRequest, callback: SygicContext.OnInitCallback)
open fun init(context: Context, tracking: Tracking, logConnector: LogConnector, jsonConfig: String, callback: SygicContext.OnInitCallback)
Initializes the Sygic context.
initAuth
Link copied to clipboard
open fun initAuth(authConfig: AuthConfig)
initContext
Link copied to clipboard
open fun initContext(context: Context)
isInitialized
Link copied to clipboard
open fun isInitialized(): Boolean
log
Link copied to clipboard
open fun log(tag: String, message: String, logLevel: LogConnector.LogLevel)
setActive
Link copied to clipboard
open fun setActive(active: Boolean)
setTracking
Link copied to clipboard
open fun setTracking(tracking: Tracking)