bindToLifecycle

fun Replicator.bindToLifecycle(lifecycle: Lifecycle)(source)

Binds the Replicator instance to the given Lifecycle.

The replicator will be automatically started on the ON_RESUME event, and stopped on the ON_PAUSE event.

See also

Lifecycle
Lifecycle.Event.ON_RESUME
Lifecycle.Event.ON_PAUSE