BootConfig

open class BootConfig

Class encapsulating the application configuration (consumer key, oauth scopes, refresh behavior).

Author

wmathurin

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Exception thrown for all bootconfig parsing errors.

Properties

Link copied to clipboard
open val errorPage: String
Link copied to clipboard
open val isLocal: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val startPage: String
Link copied to clipboard

Functions

Link copied to clipboard
open fun asJSON(): JSONObject
Link copied to clipboard
Returns whether the app should attempt to load cached content when offline.
Link copied to clipboard
Method to (build and) get the singleton instance.
Link copied to clipboard
open fun isAbsoluteUrl(urlString: String): Boolean
Convenience method to determine whether a configured startPage value is an absolute URL.
Link copied to clipboard
Returns whether the app should go through login flow the first time or not.
Link copied to clipboard
open fun validateBootConfig(config: BootConfig)
Validates a boot config's inputs against basic sanity tests.