public class

CaseUI

extends Object
java.lang.Object
   ↳ com.salesforce.android.cases.ui.CaseUI

Class Overview

Initialization API for the Case UI Package.

The CaseUI class acts as a builder for providing a CaseUIClient instance which will let you launch the Case UIs.

Summary

Public Methods
CaseUI configure(CaseUIConfiguration uiConfiguration)
Configures the Case UI instance with a CaseUIConfiguration object.
Async<CaseUIClient> uiClient()
Creates a CaseUIClient based on your configuration.
static CaseUI with(Context context)
Retrieves or creates the singleton Case UI instance
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public CaseUI configure (CaseUIConfiguration uiConfiguration)

Configures the Case UI instance with a CaseUIConfiguration object. This will clear any existing Case UI Client.

Parameters
uiConfiguration A CaseUIConfiguration instance.
Returns
  • The CaseUI instance for fluent api calls.

public Async<CaseUIClient> uiClient ()

Creates a CaseUIClient based on your configuration. This method will throw an IllegalStateException if called prior to providing a CaseUIConfiguration via configure(CaseUIConfiguration).

Returns
  • An Async instance that will asynchronously provide a CaseUIClient instance.

public static CaseUI with (Context context)

Retrieves or creates the singleton Case UI instance

Parameters
context An application context instance
Returns
  • The CaseUI instance for fluent api calls.