setConnectionCallback

Callback registration methods.

Threading contract:

  • Registered callbacks are invoked from background execution contexts.

  • No callback registered through these setters is guaranteed to run on the Android main thread.

  • UI updates must be marshalled explicitly by the caller.