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.setApplicationSet the application context.
Connect.setApplication(app: Application)Connect.getApplication
Connect.getApplicationGet the application context.
Connect.getApplication(): Application?Connect.isApplicationInBackground
Connect.isApplicationInBackgroundCheck if the application is in the background.
Connect.isApplicationInBackground(): BooleanConnect.hasBeenPostedInBackground
Connect.hasBeenPostedInBackgroundCheck if the application has been posted in the background.
Connect.hasBeenPostedInBackground(): BooleanGestures
Connect.getDetector
Connect.getDetectorReturns a gesture detector.
Connect.getDetector(): GestureDetectorConnect.setDetector
Connect.setDetectorSets a gesture detector.
Connect.setDetector(detector: GestureDetector?)Messages
Connect.setAdditionalHeaders
Connect.setAdditionalHeadersSets additional headers for messages.
Connect.setAdditionalHeaders(headers: HashMap<String?, String?>?)Connect.getAdditionalHeaders
Connect.getAdditionalHeadersReturns additional headers for messages.
Connect.getAdditionalHeaders(): HashMap<String, String>Connect.getMessageVersion
Connect.getMessageVersionReturns the message version.
Connect.getMessageVersion(): StringConnect.setAdditionalCookie
Connect.setAdditionalCookieSets an additional cookie for messages.
Connect.setAdditionalCookie(cookie: String?)Connect.getAdditionalCookie
Connect.getAdditionalCookieReturns additional cookie for messages.
Connect.getAdditionalCookie(): StringOther
Connect.flushQueues
Connect.flushQueuesFlush all pending data in queues.
Connect.flushQueues(): BooleanConnect.getHttpXTealeafProperty
Connect.getHttpXTealeafPropertyGet HTTP X-Tealeaf property.
Connect.getHttpXTealeafProperty(): StringConnect.getEOCoreDeviceId
Connect.getEOCoreDeviceIdGet EOCore device ID.
Connect.getEOCoreDeviceId(): StringConnect.setEOCoreDeviceId
Connect.setEOCoreDeviceIdSet EOCore device ID.
Connect.setEOCoreDeviceId(deviceId: String): BooleanConnect.getEOCoreCurrentSessionId
Connect.getEOCoreCurrentSessionIdGet EOCore current session ID.
Connect.getEOCoreCurrentSessionId(): String?Connect.displayUpdate
Connect.displayUpdateDisplay update status.
Connect.displayUpdate(): BooleanConnect.updateCaptureScreenContentsEnabled
Connect.updateCaptureScreenContentsEnabledUpdate capture screen contents enabled state.
Connect.updateCaptureScreenContentsEnabled(enabled: Boolean): BooleanRelated pages
Updated 17 days ago
