public class Retriever extends SensitivityBase
host, serviceUrl| Constructor and Description |
|---|
Retriever(android.content.Context context)
Constructor.
|
Retriever(android.content.Context context,
java.lang.String serviceUrl,
java.lang.String host)
Constructor with custom service URL and host.
|
| Modifier and Type | Method and Description |
|---|---|
void |
retrieveLicense(LicenseRetrieverListener licenseRetrieverListener)
Retrieves the license from the server.
|
void |
retrieveSettings(SettingsRetrieverListener settingsRetrieverListener,
Module module)
Retrieves the settings from the server.
|
getAccountId, getAppId, getAuthKey, getContext, getPrefs, getProjectId, isRegisteredpublic Retriever(android.content.Context context)
context - The context.public Retriever(android.content.Context context,
java.lang.String serviceUrl,
java.lang.String host)
context - The context.serviceUrl - The service URL for the server. The default service URL is "https://api.sensitivity.io/api/v1/"host - The host for the server. The default host is "api.sensitivity.io"public void retrieveLicense(LicenseRetrieverListener licenseRetrieverListener)
licenseRetrieverListener - The LicenseRetrieverListener which receives the response.public void retrieveSettings(SettingsRetrieverListener settingsRetrieverListener, Module module)
settingsRetrieverListener - The SettingsRetrieverListener which receives the response.module - The Module for which to retrieve the settings.