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

Set the application context.

Connect.setApplication(app: Application)

Connect.getApplication

Get the application context.

Connect.getApplication(): Application?

Connect.isApplicationInBackground

Check if the application is in the background.

Connect.isApplicationInBackground(): Boolean

Connect.hasBeenPostedInBackground

Check if the application has been posted in the background.

Connect.hasBeenPostedInBackground(): Boolean

Gestures

Connect.getDetector

Returns a gesture detector.

Connect.getDetector(): GestureDetector

Connect.setDetector

Sets a gesture detector.

Connect.setDetector(detector: GestureDetector?)

Messages

Connect.setAdditionalHeaders

Sets additional headers for messages.

Connect.setAdditionalHeaders(headers: HashMap<String?, String?>?)

Connect.getAdditionalHeaders

Returns additional headers for messages.

Connect.getAdditionalHeaders(): HashMap<String, String>

Connect.getMessageVersion

Returns the message version.

Connect.getMessageVersion(): String

Connect.setAdditionalCookie

Sets an additional cookie for messages.

Connect.setAdditionalCookie(cookie: String?)

Connect.getAdditionalCookie

Returns additional cookie for messages.

Connect.getAdditionalCookie(): String

Other

Connect.flushQueues

Flush all pending data in queues.

Connect.flushQueues(): Boolean

Connect.getHttpXTealeafProperty

Get HTTP X-Tealeaf property.

Connect.getHttpXTealeafProperty(): String

Connect.getEOCoreDeviceId

Get EOCore device ID.

Connect.getEOCoreDeviceId(): String

Connect.setEOCoreDeviceId

Set EOCore device ID.

Connect.setEOCoreDeviceId(deviceId: String): Boolean

Connect.getEOCoreCurrentSessionId

Get EOCore current session ID.

Connect.getEOCoreCurrentSessionId(): String?

Connect.displayUpdate

Display update status.

Connect.displayUpdate(): Boolean

Connect.updateCaptureScreenContentsEnabled

Update capture screen contents enabled state.

Connect.updateCaptureScreenContentsEnabled(enabled: Boolean): Boolean

Related pages