Builder

class Builder(application: Application, baseUrl: String, clientId: String, certificates: Set<String>)

Builder for the real Smart Workspace implementation. The parameters can be found on the Smart Workspaces admin panel.

Throws

when certificates is empty

Constructors

Builder
Link copied to clipboard
fun Builder(application: Application, baseUrl: String, clientId: String, certificates: Set<String>)

Functions

addGraphQlAdapter
Link copied to clipboard
fun addGraphQlAdapter(type: ScalarType, adapter: CustomTypeAdapter<out Any>): SmartSpacesSdk.Builder

Add CustomTypeAdapter for a ScalarType to the Apollo client.

build
Link copied to clipboard
fun build(): SmartSpacesSdk

Instantiate the SDK implementation. Applications should built the SDK only once and persist it on a singleton.

enableTapDetection
Link copied to clipboard
fun enableTapDetection(enable: Boolean): SmartSpacesSdk.Builder

Controls if tap detection should be used.

setIsDebugApp
Link copied to clipboard
fun setIsDebugApp(isDebugApp: Boolean): SmartSpacesSdk.Builder

This function is only used for internal SDK debugging. Do not call it yourself!

withPluginInitializer
Link copied to clipboard
fun withPluginInitializer(pluginInitializer: PluginInitializer): SmartSpacesSdk.Builder