class Builder
Builder for the real Smart Workspace implementation. All parameters are required and can be found on the Smart Workspaces admin panel.
Typical implementation looks like:
SmartWorkspaceSdk
.Builder(context) // Android context
.baseUrl(baseUrl) // base URL to the server
.oauthId(oauthId) // oauth ID of the Android application on the server
.certificate(certificate) // server public key certificate hash on the format: "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
.build()
Builder(context: Context)
Builder for the real Smart Workspace implementation. All parameters are required and can be found on the Smart Workspaces admin panel. |
fun baseUrl(baseUrl: String): Builder |
|
fun build(): SmartWorkspaceSdk
Validate the parameters and instantiate the SDK implementation. Applications should built the SDK only once and persist it on a singleton. |
|
fun certificate(certificate: String): Builder |
|
fun magnetoEnabled(magnetoEnabled: Boolean): Builder |
|
fun oauthId(oauthId: String): Builder |