Package com.unblu.sdk.core.configuration
Class UnbluClientConfiguration
java.lang.Object
com.unblu.sdk.core.configuration.UnbluClientConfiguration
Configuration for the
UnbluClient
. The UnbluClientConfiguration.Builder
creates an immutable instance of the class that's then passed to the
Unblu.createAgentClient(Application, UnbluClientConfiguration, UnbluNotificationApi, InitializeSuccessCallback, InitializeExceptionCallback)
or
Unblu.createVisitorClient(Application, UnbluClientConfiguration, UnbluNotificationApi, InitializeSuccessCallback, InitializeExceptionCallback)
call.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
-
Constructor Details
-
UnbluClientConfiguration
protected UnbluClientConfiguration()
-
-
Method Details
-
getUnbluBaseUrl
- Returns:
- The currently configured base URL
-
getApiKey
- Returns:
- The currently configured Unblu API key
-
getUnbluClientCertRequestData
- Returns:
- The current clientCertRequestData required for a client certificate request in the Unblu SDK
-
getAccessToken
- Returns:
- The currently configured access token value, a JSON Web Token
-
getInternalUrlPatternWhitelist
- Returns:
- The currently configured URL patterns which may be accessed by the WebView
-
getExternalLinkHandler
- Returns:
- The currently configured URL patterns which may be opened in the system browser
-
getOauthToken
- Returns:
- The currently configured OAuth 2.0 token, received from an identity provider
-
getEntryPath
- Returns:
- The currently configured entry path
-
getCustomCookies
- Returns:
- A Set containing a copy of the currently configured custom cookies.
-
getLanguage
- Returns:
- A String representing the currently configured language
-
getNamedArea
- Returns:
- The currently configured named area
-
isNotificationsEnabled
public boolean isNotificationsEnabled()- Returns:
- true if notifications via Unblu are enabled in the current configuration, false otherwise
-
isCameraUploadsEnabled
public boolean isCameraUploadsEnabled()- Returns:
- true if one or both of photo or video uploads is enabled in the current configuration, false if both are disabled
-
isPhotoUploadsEnabled
public boolean isPhotoUploadsEnabled()- Returns:
- true if photo uploads are enabled in the current configuration, false otherwise
-
isVideoUploadsEnabled
public boolean isVideoUploadsEnabled()- Returns:
- true if video uploads are enabled in the current configuration, false otherwise
-
isAudioUploadsEnabled
public boolean isAudioUploadsEnabled()- Returns:
- true if audio uploads are enabled in the current configuration, false otherwise
-
getPreferencesStorage
- Returns:
- The currently configured storage where Unblu saves and restores the SDK's preferences
-
getModules
- Returns:
- A list of all currently configured modules
-
getDownloadHandler
- Returns:
- The currently configured listener used to handle file downloads
-
getNotificationInterceptor
- Returns:
- The currently configured notification interceptor that transforms notifications before they're displayed
-