Skip to content

connect-sdk / de.proglove.sdk / PgManager / ensureConnectionToService

ensureConnectionToService

fun ensureConnectionToService(context:Context):Boolean

Connect to the ProGlove Connect SDK Service, if not connected already. Triggers a Service Binding via (AIDL) IPC to the ProGlove Connect App. Will automatically re-establish the connection if necessary.

Parameters

context - An instance of the Android Context. We recommend to use the Application Context. Notice: The context will be stored until MARK is disconnected to allow automatic rebind!

Return true if the Service Binding was started. false means the ProGlove Connect service was not found. Probably because the ProGlove Connect App is not installed.