Builder

class Builder

Builder used to construct the SudoPrivacyInteractionClient.

Types

Link copied to clipboard
class ConfigurationException(message: String, cause: Throwable? = null) : RuntimeException

A configuration item that is needed is missing.

Functions

Link copied to clipboard

Construct the SudoPrivacyInteractionClient. Will throw a NullPointerException if the context and sudoUserClient have not been provided.

Link copied to clipboard
fun setApiClient(apiClient: ApiClient): <Error class: unknown class>

Provide an ApiClient for the SudoPrivacyInteractionClient to use (optional input). If this is not supplied, an ApiClient will be constructed and used.

Link copied to clipboard
fun setContext(context: Context): <Error class: unknown class>

Provide the application context (required input).

Link copied to clipboard
fun setLogger(logger: Logger): <Error class: unknown class>

Provide the implementation of the Logger used for logging errors (optional input). If a value is not supplied a default implementation will be used.

Link copied to clipboard
fun setSudoUserClient(sudoUserClient: SudoUserClient): <Error class: unknown class>

Provide the implementation of the SudoUserClient used to perform sign in and ownership operations (required input).