open fun subscribe(observer: (Boolean) -> Unit): () -> Unit
Subscribe for the state change notifications.