public final class SubaioConfiguration
extends java.lang.Object
Constructor | Description |
---|---|
SubaioConfiguration(java.lang.String baseUrl) |
Initialize a Subaio configuration object with the given parameters
|
SubaioConfiguration(java.lang.String baseUrl,
boolean allowExternalUrls,
boolean allowShare) |
Initialize a Subaio configuration object with the given parameters
|
SubaioConfiguration(java.lang.String baseUrl,
boolean allowExternalUrls,
boolean allowShare,
boolean disableSSLPinning) |
Initialize a Subaio configuration object with the given parameters
|
SubaioConfiguration(java.lang.String baseUrl,
java.util.Map<java.lang.String,java.lang.String> customConfig) |
Initialize a Subaio configuration object with the given parameters
|
SubaioConfiguration(java.lang.String baseUrl,
java.util.Map<java.lang.String,java.lang.String> customConfig,
boolean allowExternalUrls,
boolean allowShare) |
Initialize a Subaio configuration object with the given parameters
|
SubaioConfiguration(java.lang.String baseUrl,
java.util.Map<java.lang.String,java.lang.String> customConfig,
boolean allowExternalUrls,
boolean allowShare,
boolean disableSSLPinning) |
Initialize a Subaio configuration object with the given parameters
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getBaseUrl() |
URL pointing to root of Subaio template, e.g.
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomConfig() |
The custom configuration-values sent to all views.
|
boolean |
isExternalUrlsAllowed() |
Boolean used to control whether or not Subaio is allowed to open external URLs.
|
boolean |
isSharingAllowed() |
Boolean used to control whether or not Subaio is allowed to open share.
|
boolean |
isSSLPinningDisabled() |
Indicates if SSL pinning is disabled.
|
public SubaioConfiguration(@NonNull java.lang.String baseUrl, @NonNull java.util.Map<java.lang.String,java.lang.String> customConfig, @NonNull boolean allowExternalUrls, @NonNull boolean allowShare, boolean disableSSLPinning)
baseUrl
- URL pointing to root of Subaio template, e.g. if template is at `https://www.bar.foo/template`, then baseUrl should be `https://www.bar.foo`customConfig
- Custom named values (such as customizable colors) sent to the views.allowExternalUrls
- Allow opening of external urlsallowShare
- Allow sharing eventsdisableSSLPinning
- Disables SSL pinning if truepublic SubaioConfiguration(@NonNull java.lang.String baseUrl, @NonNull java.util.Map<java.lang.String,java.lang.String> customConfig, @NonNull boolean allowExternalUrls, @NonNull boolean allowShare)
baseUrl
- URL pointing to root of Subaio template, e.g. if template is at `https://www.bar.foo/template`, then baseUrl should be `https://www.bar.foo`customConfig
- Custom named values (such as customizable colors) sent to the views.allowExternalUrls
- Allow opening of external urlsallowShare
- Allow sharing eventspublic SubaioConfiguration(@NonNull java.lang.String baseUrl, @NonNull java.util.Map<java.lang.String,java.lang.String> customConfig)
baseUrl
- URL pointing to root of Subaio template, e.g. if template is at `https://www.bar.foo/template`, then baseUrl should be `https://www.bar.foo`customConfig
- Custom named values (such as customizable colors) sent to the views.public SubaioConfiguration(@NonNull java.lang.String baseUrl, @NonNull boolean allowExternalUrls, @NonNull boolean allowShare)
baseUrl
- URL pointing to root of Subaio template, e.g. if template is at `https://www.bar.foo/template`, then baseUrl should be `https://www.bar.foo`allowExternalUrls
- Allow opening of external urlsallowShare
- Allow sharing eventspublic SubaioConfiguration(@NonNull java.lang.String baseUrl, @NonNull boolean allowExternalUrls, @NonNull boolean allowShare, boolean disableSSLPinning)
baseUrl
- URL pointing to root of Subaio template, e.g. if template is at `https://www.bar.foo/template`, then baseUrl should be `https://www.bar.foo`allowExternalUrls
- Allow opening of external urlsallowShare
- Allow sharing eventsdisableSSLPinning
- Disables SSL pinning if truepublic SubaioConfiguration(@NonNull java.lang.String baseUrl)
baseUrl
- URL pointing to root of Subaio template, e.g. if template is at `https://www.bar.foo/template`, then baseUrl should be `https://www.bar.foo`public java.lang.String getBaseUrl()
public boolean isExternalUrlsAllowed()
public boolean isSharingAllowed()
public boolean isSSLPinningDisabled()
public java.util.Map<java.lang.String,java.lang.String> getCustomConfig()