java.lang.Object | |
↳ | fi.moprim.tmd.sdk.TMD |
Use this class to initialize the TMD
init(Application, TmdCoreConfiguration, TmdInitListener)
as soon as possible in your Application
subclass onCreate()
method.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TMD() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static String |
getInstallationId()
Retrieve the unique application installation id of application using the SDK
| ||||||||||
static TmdCoreConfiguration |
getTmdCoreConfiguration()
Get the core configuration parameters currently used by the TMD
| ||||||||||
static String | getUUID() | ||||||||||
static void |
init(Application app, TmdCoreConfiguration coreConfiguration)
Initialize Moprim TMD for a given Application. | ||||||||||
static void |
init(Application app, TmdCoreConfiguration coreConfiguration, TmdInitListener tmdInitListener)
Initialize Moprim TMD for a given Application. | ||||||||||
static boolean | isInitialized() | ||||||||||
static boolean |
isTmdRunning(Context context)
Depracted use
isTmdRunning() } instead | ||||||||||
static boolean | isTmdRunning() | ||||||||||
static void |
setUUID(String uuid)
Set an unique user id to gather data from multiple installations.
| ||||||||||
static void |
startForeground(Context context, int id, Notification notification)
Starts the TMD service for the given context
| ||||||||||
static void |
stop(Context context)
Stops the TMD service
| ||||||||||
static void |
testInit(Application app, TmdCoreConfiguration coreConfiguration, TmdInitListener tmdInitListener)
Initialize Moprim TMD for a given Application. | ||||||||||
static void |
updateDataCleaningInterval(int days)
Updates tha interval in days when the data must be cleaned
| ||||||||||
static void |
updateDataSyncInterval(int intervalMinutes)
Update the interval to sync data to the cloud
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Retrieve the unique application installation id of application using the SDK
Get the core configuration parameters currently used by the TMD
Initialize Moprim TMD for a given Application.
The call to this method should be placed as soon as possible in the attachBaseContext(Context)
method.
app | Your Application class. |
---|
IllegalStateException | if it is called more than once. |
---|
Initialize Moprim TMD for a given Application.
The call to this method should be placed as soon as possible in the attachBaseContext(Context)
method.
app | Your Application class. |
---|---|
tmdInitListener | a listener for the state of the initialisation |
IllegalStateException | if it is called more than once. |
---|
Depracted use isTmdRunning()
} instead
context | the context |
---|
Set an unique user id to gather data from multiple installations.
uuid | the unique user id |
---|
Starts the TMD service for the given context
context | the given context |
---|
Stops the TMD service
context | the context to stop the tmd service |
---|
Initialize Moprim TMD for a given Application.
The call to this method should be placed as soon as possible in the attachBaseContext(Context)
method.
app | Your Application class. |
---|---|
tmdInitListener | a listener for the events about TMD |
IllegalStateException | if it is called more than once. |
---|
Updates tha interval in days when the data must be cleaned
days | the interval in days, if -1. it cancel the cleaning. |
---|
Update the interval to sync data to the cloud
intervalMinutes | the interval in minutes, cannot be less than 15 or throw IllegalArgumentException |
---|