public interface OobRegistrationManager
| Modifier and Type | Method and Description |
|---|---|
OobRegistrationResponse |
register(OobRegistrationRequest request)
Performs the registration of the user to the OOBS: The synchronous variant.
|
void |
register(OobRegistrationRequest request,
OobRegistrationCallback callback)
Performs the registration of the user to the OOBS: The asynchronous variant.
|
void |
register(OobRegistrationRequest request,
OobRegistrationCallback callback,
OobRequestParameter requestParameter)
Performs the registration of the user to the OOBS: The asynchronous variant.
|
OobRegistrationResponse |
register(OobRegistrationRequest request,
OobRequestParameter requestParameter)
Performs the registration of the user to the OOBS: The synchronous variant.
|
OobRegistrationResponse register(OobRegistrationRequest request)
NetworkOnMainThreadException - as
it is very bad habit to obstacle the main UI thread with the blocking calls (the same is done for instance by the
Android HTTP library).request - The request object carrying all the data required by the OOBS in order to register the user to it.null.OobRegistrationResponse register(OobRegistrationRequest request, OobRequestParameter requestParameter)
NetworkOnMainThreadException - as
it is very bad habit to obstacle the main UI thread with the blocking calls (the same is done for instance by the
Android HTTP library).request - The request object carrying all the data required by the OOBS in order to register the user to it.requestParameter - The request parameter carrying custom header.
null.java.lang.IllegalArgumentException - When the collection of headers passed in is null, or adding a header prohibited in the headers
customization or containing illegal characters.void register(OobRegistrationRequest request, OobRegistrationCallback callback)
request - The request object carrying all the data required by the OOBS in order to register the user to it.callback - The callback to be triggered as soon as the operation completes with any result. Must never be
null. Note that the callback is always called from within the main UI thread context and
always after this method returns to its caller.void register(OobRegistrationRequest request, OobRegistrationCallback callback, OobRequestParameter requestParameter)
request - The request object carrying all the data required by the OOBS in order to register the user to it.callback - The callback to be triggered as soon as the operation completes with any result. Must never be
null. Note that the callback is always called from within the main UI thread context and
always after this method returns to its caller.requestParameter - The request parameter carrying custom header.
java.lang.IllegalArgumentException - When the collection of headers passed in is null, or adding a header prohibited in the headers
customization or containing illegal characters.