public class UnbluApiConfiguration
extends java.lang.Object
UnbluCoreApi.configureApi(UnbluApiConfiguration)
call.
There is a base configuration which needs to be given when constructing it. All other configurations are optional.Modifier and Type | Class and Description |
---|---|
static class |
UnbluApiConfiguration.Builder |
Modifier | Constructor and Description |
---|---|
protected |
UnbluApiConfiguration()
private constructor for immutable object creation
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApiKey()
Returns the currently configured api key.
|
java.util.Set<UnbluCookie> |
getCustomCookies()
Returns a copy of the currently configured custom cookies.
|
UnbluDownloadHandler |
getDownloadHandler()
Returns the listener which is used to handle file downloads.
|
java.lang.String |
getEntryPath()
Returns the currently configured entry path
|
java.util.List<java.util.regex.Pattern> |
getExternalLinkPatternWhitelist()
Returns the currently configured URL patterns which may be opened in the system browser.
|
java.util.List<java.util.regex.Pattern> |
getInternalUrlPatternWhitelist()
Returns the currently configured URL patterns which may be accessed by the WebView
|
java.lang.String |
getLanguage()
Returns the currently configured language.
|
java.util.List<UnbluModule> |
getModules()
Returns a list of all configured modules
|
java.lang.String |
getNamedArea()
Returns the currently configured named area.
|
UnbluPreferencesStorage |
getPreferencesStorage()
Returns the storage in which unblu saves and restores the preferences of the SDK
|
java.lang.String |
getUnbluBaseUrl()
Returns the currently configured base url.
|
boolean |
isAudioUploadsEnabled() |
boolean |
isCameraUploadsEnabled() |
boolean |
isNotificationsEnabled() |
boolean |
isPhotoUploadsEnabled() |
boolean |
isPreloadUiAfterApiInitEnabled()
Returns true if currently the pre loading of the UI is enabled.
|
boolean |
isVideoUploadsEnabled() |
protected UnbluApiConfiguration()
@NonNull public java.lang.String getUnbluBaseUrl()
@NonNull public java.lang.String getApiKey()
@NonNull public java.util.List<java.util.regex.Pattern> getInternalUrlPatternWhitelist()
@NonNull public java.util.List<java.util.regex.Pattern> getExternalLinkPatternWhitelist()
@NonNull public java.lang.String getEntryPath()
public boolean isPreloadUiAfterApiInitEnabled()
@NonNull public java.util.Set<UnbluCookie> getCustomCookies()
@Nullable public java.lang.String getLanguage()
@Nullable public java.lang.String getNamedArea()
public boolean isNotificationsEnabled()
public boolean isCameraUploadsEnabled()
public boolean isPhotoUploadsEnabled()
public boolean isVideoUploadsEnabled()
public boolean isAudioUploadsEnabled()
@NonNull public UnbluPreferencesStorage getPreferencesStorage()
@NonNull public java.util.List<UnbluModule> getModules()
@NonNull public UnbluDownloadHandler getDownloadHandler()