Kylok
Experimental device agent. Components initialize without opening the host Activity.
Properties
Functions
Configure scheduling before the first component/worker starts; equal repeats are idempotent. Different options after work starts throw IllegalStateException. Options are process-local; call this in Application.onCreate on every start. Listeners own their returned registration; WorkManager owns scheduled workers and hosts must not shut down SDK executors. Usage: Kylok.configure(this, HostOptions(syncIntervalMinutes = 30)).
Open the first pending Android installation confirmation from a host user action. Usage: Kylok.confirmPendingInstall(activity) when a snapshot reports requiresUserAction.
Optional, read-only notifications after durable worker changes. Close the registration with the host lifecycle. Earlier events are not replayed. Usage: val registration = Kylok.observe(StatusListener { render(it) }); close on host stop.
Read one sanitized snapshot on a worker, delivered on the main thread. Usage: Kylok.snapshot(context) { status -> render(status) }.