Abstract class used to initialize and shut down the Twilio Client SDK.
|initialize||Initialize the Twilio Client SDK.||Static method|
|shutdown||Shuts down the Twilio Client SDK.||Static method|
|isInitialized||Determines if the Twilio Client SDK has been initialized or not.||Static method|
|createDevice||Create and initialize a new Device object.||Static method|
|listDevices||Retrieves a list of all active
Initialize the Twilio Client SDK.
The SDK needs to start an Android Service to handle voice. When this service has been started, a Device can be created and used.
||The Application Context from your Android app. Make sure you don't pass an Activity Context. You can retrieve the Application Context by calling getApplicationContext() on your Activity. Cannot be null.|
Shuts down the Twilio Client SDK.
This will terminate all connections, release all Device objects, and release any resources used by the SDK.
Note that any attempt to access existing Device or Connection objects after calling this method may cause an exception to be thrown, or a crash.
Determines if the Twilio Client SDK has been initialized or not.
If you expect your application to run in the background when the user has switched to other applications, you will want to check the return value of this method on startup. The Android OS may have killed your application due to memory pressure, but the SDK may still be running in the background.
true if the SDK is currently initialized, false otherwise
Create and initialize a new Device object.
If the incoming capabilities are defined, then the device will automatically begin listening for incoming connections.
||A signed JSON Web Token that defines the features available to the Device. These may be created using the Twilio Helper Libraries included with the SDK or available at www.twilio.com. The capabilities are used to begin listening for incoming connections and provide the default parameters used for establishing outgoing connections. Please visit http://www.twilio.com/docs/client/capability-tokens for more information.|
||The optional listener object which will receive events from a Device object.|
The initialized Device object, or null if the SDK was not initialized
Retrieves a list of all active
Sets the logging level for messages logged by the Twilio SDK.
Log levels correspond to those specified by Android's
Toggle the call quality analytics publishing feature of the Twilio SDK. This is enabled by default.