Connect Options
data class ConnectOptions(var key: String?, var logLevel: LogLevel = LogLevel.Warning, var logListener: LogListener?, var tokenHandler: TokenHandler?, var accessToken: String?, var refreshToken: String?, var extra: Map<String, Any>?)
Younify Connect SDK startup options.
Set the properties of this object to configure the sdk. The key and tokenHandler properties are required. The accessToken and refreshToken properties are required for linking and fetching service content for the user and can be set at a later time if unknown at startup. The tokens can be created from the backend api. The tokenHandler must be set to handle updated tokens and requests from the sdk to renew tokens from the backend api.
Constructors
Link copied to clipboard
constructor()
constructor(key: String?, logLevel: LogLevel = LogLevel.Warning, logListener: LogListener?, tokenHandler: TokenHandler?, accessToken: String?, refreshToken: String?, extra: Map<String, Any>?)
Properties
Link copied to clipboard
The user's access token if known at startup.
Link copied to clipboard
Minimum log level. Log statements below logLevel will not be sent to logListener.
Link copied to clipboard
Optional log listener for receiving log events.
Link copied to clipboard
The user's refresh token if known at startup.
Link copied to clipboard
Token handler for handling token events and renewals.