public class Usher
extends java.lang.Object
Usher class is the entrance to the MicroStrategy Badge SDK. The MicroStrategy Badge
SDK provides a simplified API with a lot of flexibility. You can build and utilize powerful
features without worrying about the details behind the scene. There are two methods of
initialization: standard and custom.
To proceed with a standard initialization, call init(Application, String) and provide
the Application class of your app as well as the server URL. You will use the default
settings of the MicroStrategy Badge SDK.
To proceed with a custom initialization, call init(Configuration). The
Usher.Configuration class offers a more customizable and detailed configuration of the SDK for
your app.
| Modifier and Type | Class and Description |
|---|---|
static class |
Usher.Configuration
The
Usher.Configuration abstract class offers a highly customizable object to configure the
SDK with. |
| Modifier and Type | Method and Description |
|---|---|
static void |
init(android.app.Application application,
java.lang.String serverUrl)
Initialize the SDK with the
Application and your own server URL. |
static void |
init(Usher.Configuration configuration)
Initialize the SDK with the
Application and your own server URL. |
public static void init(Usher.Configuration configuration)
Application and your own server URL. Use this method
to perform a custom initialization. It should not be called if
init(Application, String) is called.configuration - the detailed Usher.Configuration object that can be configured
as neededpublic static void init(android.app.Application application,
java.lang.String serverUrl)
Application and your own server URL. Use this method
to perform a standard initialization and use the default settings of the MicroStrategy
Badge SDK. It should not be called if init(Configuration) is called.application - the Application class of your appserverUrl - the server URL that you want to configure the SDK with