bind

open fun bind(activity: Activity)

Bind the API server to the given Activity. This will initialize the API server and enable calling API methods.

Parameters

activity

the activity the service will get bound to. I.e. the lifecycle of the API service will be the same as this Activity.