Connect Android SDK reference: miscellaneous methods
The page describes additional methods that you can use to manage and configure the Connect Android library.
App
Connect.setApplication
Connect.setApplication
Set the application context.
Connect.setApplication(app: Application)
Connect.getApplication
Connect.getApplication
Get the application context.
Connect.getApplication(): Application?
Connect.isApplicationInBackground
Connect.isApplicationInBackground
Check if the application is in the background.
Connect.isApplicationInBackground(): Boolean
Connect.hasBeenPostedInBackground
Connect.hasBeenPostedInBackground
Check if the application has been posted in the background.
Connect.hasBeenPostedInBackground(): Boolean
Gestures
Connect.getDetector
Connect.getDetector
Returns a gesture detector.
Connect.getDetector(): GestureDetector
Connect.setDetector
Connect.setDetector
Sets a gesture detector.
Connect.setDetector(detector: GestureDetector?)
Messages
Connect.setAdditionalHeaders
Connect.setAdditionalHeaders
Sets additional headers for messages.
Connect.setAdditionalHeaders(headers: HashMap<String?, String?>?)
Connect.getAdditionalHeaders
Connect.getAdditionalHeaders
Returns additional headers for messages.
Connect.getAdditionalHeaders(): HashMap<String, String>
Connect.getMessageVersion
Connect.getMessageVersion
Returns the message version.
Connect.getMessageVersion(): String
Connect.setAdditionalCookie
Connect.setAdditionalCookie
Sets an additional cookie for messages.
Connect.setAdditionalCookie(cookie: String?)
Connect.getAdditionalCookie
Connect.getAdditionalCookie
Returns additional cookie for messages.
Connect.getAdditionalCookie(): String
Other
Connect.flushQueues
Connect.flushQueues
Flush all pending data in queues.
Connect.flushQueues(): Boolean
Connect.getHttpXTealeafProperty
Connect.getHttpXTealeafProperty
Get HTTP X-Tealeaf property.
Connect.getHttpXTealeafProperty(): String
Connect.getEOCoreDeviceId
Connect.getEOCoreDeviceId
Get EOCore device ID.
Connect.getEOCoreDeviceId(): String
Connect.setEOCoreDeviceId
Connect.setEOCoreDeviceId
Set EOCore device ID.
Connect.setEOCoreDeviceId(deviceId: String): Boolean
Connect.getEOCoreCurrentSessionId
Connect.getEOCoreCurrentSessionId
Get EOCore current session ID.
Connect.getEOCoreCurrentSessionId(): String?
Connect.displayUpdate
Connect.displayUpdate
Display update status.
Connect.displayUpdate(): Boolean
Connect.updateCaptureScreenContentsEnabled
Connect.updateCaptureScreenContentsEnabled
Update capture screen contents enabled state.
Connect.updateCaptureScreenContentsEnabled(enabled: Boolean): Boolean
Related pages
Updated 3 days ago