public final class Registration extends SensitivityBase
| Constructor and Description |
|---|
Registration()
Constructor.
|
Registration(java.lang.String serviceUrl,
java.lang.String host)
Constructor with custom service URL and host.
|
| Modifier and Type | Method and Description |
|---|---|
void |
register(java.lang.String accountId,
java.lang.String projectId,
java.lang.String authKey,
RegistrationListener registrationListener)
Executes a call to register the device to the server.
|
public Registration()
public Registration(java.lang.String serviceUrl,
java.lang.String host)
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 register(java.lang.String accountId,
java.lang.String projectId,
java.lang.String authKey,
RegistrationListener registrationListener)
RegistrationListener.accountId - Your account id.projectId - Your project id.authKey - Your auth key.registrationListener - The RegistrationListener which will receive the response.