public class SensitivityBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
host |
protected java.lang.String |
serviceUrl |
| Constructor and Description |
|---|
SensitivityBase(android.content.Context context)
Constructor.
|
SensitivityBase(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 |
|---|---|
java.lang.String |
getAccountId()
Returns the account id.
|
java.lang.String |
getAppId()
Returns the app id.
|
java.lang.String |
getAuthKey()
Returns the auth key.
|
protected android.content.Context |
getContext()
Returns the context.
|
protected android.content.SharedPreferences |
getPrefs()
Returns the shared preferences.
|
java.lang.String |
getProjectId()
Returns the project id.
|
boolean |
isRegistered()
Checks if the device is registered.
|
public SensitivityBase(android.content.Context context)
context - The context.public SensitivityBase(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"protected android.content.Context getContext()
protected android.content.SharedPreferences getPrefs()
public java.lang.String getAccountId()
public java.lang.String getProjectId()
public java.lang.String getAuthKey()
public java.lang.String getAppId()
public boolean isRegistered()