public class Settings
extends java.lang.Object
Constructor and Description |
---|
Settings(java.lang.String integrationId)
Initializes a
Settings with the given app id and integration id. |
Settings(java.lang.String integrationId,
java.lang.String authCode)
Initializes a
Settings instance with the given app id, integration id and auth code
flag. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthCode()
The auth code being used to authenticate as an existing user.
|
AuthenticationDelegate |
getAuthenticationDelegate()
A delegate to be notified about a failed request due to invalid credentials.
|
java.lang.String |
getFileProviderAuthorities()
A String that signifies which authority BrandMessenger will use to provide files to the CAMERA application.
|
java.lang.String |
getIntegrationId()
The integration id corresponding to your SDK integration.
|
java.lang.String |
getMapsApiKey()
Google Maps API key to use to display a location preview for Location messages.
|
java.lang.String |
getRegion()
A String that determines which region to connect to.
|
java.lang.String |
getServiceBaseUrl() |
boolean |
isFirebaseCloudMessagingAutoRegistrationEnabled()
A boolean property that indicates whether BrandMessenger should manage the Firebase Cloud Messaging
registration.
|
void |
setAuthenticationDelegate(AuthenticationDelegate authenticationDelegate)
A delegate to be notified about a failed request due to invalid credentials.
|
void |
setFileProviderAuthorities(java.lang.String fileProviderAuthorities)
A String that signifies which authority BrandMessenger will use to provide files to the CAMERA application.
|
void |
setFirebaseCloudMessagingAutoRegistrationEnabled(boolean isEnabled)
A boolean property that indicates whether BrandMessenger should manage the Firebase Cloud Messaging
registration.
|
void |
setMapsApiKey(java.lang.String mapsApiKey)
Google Maps API key to use to display a location preview for Location messages.
|
void |
setRegion(java.lang.String region)
A String that determines which region to connect to.
|
void |
setServiceBaseUrl(java.lang.String serviceBaseUrl) |
public Settings(java.lang.String integrationId)
Settings
with the given app id and integration id.integrationId
- A valid integration id retrieved from the BrandMessenger web portalpublic Settings(java.lang.String integrationId, java.lang.String authCode)
Settings
instance with the given app id, integration id and auth code
flag.integrationId
- A valid integration id retrieved from the BrandMessenger web portalauthCode
- A valid auth code retrieved from the BrandMessenger API to authenticate as an
existing userpublic java.lang.String getIntegrationId()
Integrations id are issued on the BrandMessenger web portal. This value may only be set once, and must be set at init time.
public java.lang.String getAuthCode()
An auth code can be retrieved from the BrandMessenger API. This value may only be set once, and must be set at init time.
public boolean isFirebaseCloudMessagingAutoRegistrationEnabled()
The default value is true.
public void setFirebaseCloudMessagingAutoRegistrationEnabled(boolean isEnabled)
The default value is true.
isEnabled
- if Firebase Cloud Messaging auto registration should be enabledpublic java.lang.String getFileProviderAuthorities()
This should only be set when you have a provider defined in your AndroidManifest.
public void setFileProviderAuthorities(java.lang.String fileProviderAuthorities)
This need only be set when you have a provider defined in the AndroidManifest.
fileProviderAuthorities
- the authorities string set in your provider tagpublic java.lang.String getMapsApiKey()
public void setMapsApiKey(java.lang.String mapsApiKey)
mapsApiKey
- the Google Maps API keypublic java.lang.String getServiceBaseUrl()
public void setServiceBaseUrl(java.lang.String serviceBaseUrl)
public java.lang.String getRegion()
public void setRegion(java.lang.String region)
Leave unspecified to use the default region (US). Set to "eu-1" to use the EU region.
region
- the region identifierpublic AuthenticationDelegate getAuthenticationDelegate()
AuthenticationDelegate
public void setAuthenticationDelegate(AuthenticationDelegate authenticationDelegate)
authenticationDelegate
- an implementation of AuthenticationDelegate