apidocs / com.nimmsta.core.android.framework / NIMMSTAServiceConnection / bindServiceToActivity

bindServiceToActivity

@JvmStatic @JvmOverloads fun bindServiceToActivity(context: Context, delegate: NIMMSTAEventHandler? = null): NIMMSTAServiceConnection

Binds the NIMMSTA Service to an activity, fragment or Android Service. If context implements NIMMSTADeviceDelegate, it will automatically be registered as listener. If you want to set a custom delegate, provide is as second parameter.