public static final class IotIgniteManager.Builder
extends java.lang.Object
IotIgniteManager. This class takes 3 parameter
from application in 3 functions. Then build() function uses this info and if you have granted
for use this api returns an singleton instance of IotIgnite.
IotIgniteManager
mIotIgniteManager = new IotIgniteManager.Builder()
.setContext(getApplicationContext()) // your app's context.
.setConnectionListener(this) // connection listener for ignite connection status.
.setLogEnabled(true) // determines whether or not the log of the application can be retrieved by IoTIgnite
.build();
builds and returns instance of IotIgniteManager
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
IotIgniteManager |
build()
Builds
IotIgniteManager and returns singleton instance. |
IotIgniteManager.Builder |
setConnectionListener(ConnectionCallback connectionListener)
Sets
ConnectionCallback listener. |
IotIgniteManager.Builder |
setContext(android.content.Context ctx)
Set's
Context. |
IotIgniteManager.Builder |
setLogEnabled(boolean logEnabled)
Determines whether or not the log of the application can be retrieved by IoTIgnite
|
public IotIgniteManager.Builder setContext(android.content.Context ctx)
Context.ctx - public IotIgniteManager.Builder setConnectionListener(ConnectionCallback connectionListener)
ConnectionCallback listener.connectionListener - listener of the Ignite connectionConnectionCallbackpublic IotIgniteManager.Builder setLogEnabled(boolean logEnabled)
logEnabled - public IotIgniteManager build() throws UnsupportedVersionException
IotIgniteManager and returns singleton instance.UnsupportedVersionException