diff --git a/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle.compose/collect-as-state-with-lifecycle.html b/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle.compose/collect-as-state-with-lifecycle.html index d3883ff8..18f85acd 100644 --- a/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle.compose/collect-as-state-with-lifecycle.html +++ b/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle.compose/collect-as-state-with-lifecycle.html @@ -63,7 +63,7 @@

collectAsStateWithLifecycle

-
fun <T> StateFlow<T>.collectAsStateWithLifecycle(lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current, minActiveState: Lifecycle.State = Lifecycle.State.STARTED, context: CoroutineContext = EmptyCoroutineContext): State<T>(source)

Collects values from this StateFlow and represents its latest value via State in a lifecycle-aware manner.

The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage whenever the lifecycleOwner's lifecycle is at least minActiveState.

This StateFlow is collected every time the lifecycleOwner's lifecycle reaches the minActiveState Lifecycle state. The collection stops when the lifecycleOwner's lifecycle falls below minActiveState.

Warning: Lifecycle.State.INITIALIZED is not allowed in this API. Passing it as a parameter will throw an IllegalArgumentException.

Parameters

lifecycleOwner

LifecycleOwner whose lifecycle is used to restart collecting this flow.

minActiveState

Lifecycle.State in which the upstream flow gets collected. The collection will stop if the lifecycle falls below that state, and will restart if it's in that state again.

context

CoroutineContext to use for collecting.


fun <T> StateFlow<T>.collectAsStateWithLifecycle(lifecycle: Lifecycle, minActiveState: Lifecycle.State = Lifecycle.State.STARTED, context: CoroutineContext = EmptyCoroutineContext): State<T>(source)

Collects values from this StateFlow and represents its latest value via State in a lifecycle-aware manner.

The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage whenever the lifecycle is at least minActiveState.

This StateFlow is collected every time lifecycle reaches the minActiveState Lifecycle state. The collection stops when lifecycle falls below minActiveState.

Warning: Lifecycle.State.INITIALIZED is not allowed in this API. Passing it as a parameter will throw an IllegalArgumentException.

Parameters

lifecycle

Lifecycle used to restart collecting this flow.

minActiveState

Lifecycle.State in which the upstream flow gets collected. The collection will stop if the lifecycle falls below that state, and will restart if it's in that state again.

context

CoroutineContext to use for collecting.


fun <T> Flow<T>.collectAsStateWithLifecycle(initialValue: T, lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current, minActiveState: Lifecycle.State = Lifecycle.State.STARTED, context: CoroutineContext = EmptyCoroutineContext): State<T>(source)

Collects values from this Flow and represents its latest value via State in a lifecycle-aware manner.

Every time there would be new value posted into the Flow the returned State will be updated causing recomposition of every State.value usage whenever the lifecycleOwner's lifecycle is at least minActiveState.

This Flow is collected every time the lifecycleOwner's lifecycle reaches the minActiveState Lifecycle state. The collection stops when the lifecycleOwner's lifecycle falls below minActiveState.

Warning: Lifecycle.State.INITIALIZED is not allowed in this API. Passing it as a parameter will throw an IllegalArgumentException.

Parameters

initialValue

The initial value given to the returned State.value.

lifecycleOwner

LifecycleOwner whose lifecycle is used to restart collecting this flow.

minActiveState

Lifecycle.State in which the upstream flow gets collected. The collection will stop if the lifecycle falls below that state, and will restart if it's in that state again.

context

CoroutineContext to use for collecting.


fun <T> Flow<T>.collectAsStateWithLifecycle(initialValue: T, lifecycle: Lifecycle, minActiveState: Lifecycle.State = Lifecycle.State.STARTED, context: CoroutineContext = EmptyCoroutineContext): State<T>(source)

Collects values from this Flow and represents its latest value via State in a lifecycle-aware manner.

Every time there would be new value posted into the Flow the returned State will be updated causing recomposition of every State.value usage whenever the lifecycle is at least minActiveState.

This Flow is collected every time lifecycle reaches the minActiveState Lifecycle state. The collection stops when lifecycle falls below minActiveState.

Warning: Lifecycle.State.INITIALIZED is not allowed in this API. Passing it as a parameter will throw an IllegalArgumentException.

Parameters

initialValue

The initial value given to the returned State.value.

lifecycle

Lifecycle used to restart collecting this flow.

minActiveState

Lifecycle.State in which the upstream flow gets collected. The collection will stop if the lifecycle falls below that state, and will restart if it's in that state again.

context

CoroutineContext to use for collecting.

+
fun <T> StateFlow<T>.collectAsStateWithLifecycle(lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current, minActiveState: Lifecycle.State = Lifecycle.State.STARTED, context: CoroutineContext = EmptyCoroutineContext): State<T>(source)

Collects values from this StateFlow and represents its latest value via State in a lifecycle-aware manner.

The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage whenever the lifecycleOwner's lifecycle is at least minActiveState.

This StateFlow is collected every time the lifecycleOwner's lifecycle reaches the minActiveState Lifecycle state. The collection stops when the lifecycleOwner's lifecycle falls below minActiveState.

Warning: Lifecycle.State.INITIALIZED is not allowed in this API. Passing it as a parameter will throw an IllegalArgumentException.

Parameters

lifecycleOwner

LifecycleOwner whose lifecycle is used to restart collecting this flow.

minActiveState

Lifecycle.State in which the upstream flow gets collected. The collection will stop if the lifecycle falls below that state, and will restart if it's in that state again.

context

CoroutineContext to use for collecting.


fun <T> StateFlow<T>.collectAsStateWithLifecycle(lifecycle: Lifecycle, minActiveState: Lifecycle.State = Lifecycle.State.STARTED, context: CoroutineContext = EmptyCoroutineContext): State<T>(source)

Collects values from this StateFlow and represents its latest value via State in a lifecycle-aware manner.

The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage whenever the lifecycle is at least minActiveState.

This StateFlow is collected every time lifecycle reaches the minActiveState Lifecycle state. The collection stops when lifecycle falls below minActiveState.

Warning: Lifecycle.State.INITIALIZED is not allowed in this API. Passing it as a parameter will throw an IllegalArgumentException.

Parameters

lifecycle

Lifecycle used to restart collecting this flow.

minActiveState

Lifecycle.State in which the upstream flow gets collected. The collection will stop if the lifecycle falls below that state, and will restart if it's in that state again.

context

CoroutineContext to use for collecting.


fun <T> Flow<T>.collectAsStateWithLifecycle(initialValue: T, lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current, minActiveState: Lifecycle.State = Lifecycle.State.STARTED, context: CoroutineContext = EmptyCoroutineContext): State<T>(source)

Collects values from this Flow and represents its latest value via State in a lifecycle-aware manner.

Every time there would be new value posted into the Flow the returned State will be updated causing recomposition of every State.value usage whenever the lifecycleOwner's lifecycle is at least minActiveState.

This Flow is collected every time the lifecycleOwner's lifecycle reaches the minActiveState Lifecycle state. The collection stops when the lifecycleOwner's lifecycle falls below minActiveState.

Warning: Lifecycle.State.INITIALIZED is not allowed in this API. Passing it as a parameter will throw an IllegalArgumentException.

Parameters

initialValue

The initial value given to the returned State.value.

lifecycleOwner

LifecycleOwner whose lifecycle is used to restart collecting this flow.

minActiveState

Lifecycle.State in which the upstream flow gets collected. The collection will stop if the lifecycle falls below that state, and will restart if it's in that state again.

context

CoroutineContext to use for collecting.


fun <T> Flow<T>.collectAsStateWithLifecycle(initialValue: T, lifecycle: Lifecycle, minActiveState: Lifecycle.State = Lifecycle.State.STARTED, context: CoroutineContext = EmptyCoroutineContext): State<T>(source)

Collects values from this Flow and represents its latest value via State in a lifecycle-aware manner.

Every time there would be new value posted into the Flow the returned State will be updated causing recomposition of every State.value usage whenever the lifecycle is at least minActiveState.

This Flow is collected every time lifecycle reaches the minActiveState Lifecycle state. The collection stops when lifecycle falls below minActiveState.

Warning: Lifecycle.State.INITIALIZED is not allowed in this API. Passing it as a parameter will throw an IllegalArgumentException.

Parameters

initialValue

The initial value given to the returned State.value.

lifecycle

Lifecycle used to restart collecting this flow.

minActiveState

Lifecycle.State in which the upstream flow gets collected. The collection will stop if the lifecycle falls below that state, and will restart if it's in that state again.

context

CoroutineContext to use for collecting.

-

Collects values from the Lifecycle.currentStateFlow and represents its latest value via State. The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage.

+

Collects values from the Lifecycle.currentStateFlow and represents its latest value via State. The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage.

diff --git a/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lenient-lifecycle-registry/index.html b/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lenient-lifecycle-registry/index.html index 67dba8bd..0a81f4f0 100644 --- a/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lenient-lifecycle-registry/index.html +++ b/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lenient-lifecycle-registry/index.html @@ -128,7 +128,7 @@

Functions

-

Collects values from the Lifecycle.currentStateFlow and represents its latest value via State. The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage.

+

Collects values from the Lifecycle.currentStateFlow and represents its latest value via State. The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage.

diff --git a/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lifecycle-registry/index.html b/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lifecycle-registry/index.html index 123ca3e6..cb2775c0 100644 --- a/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lifecycle-registry/index.html +++ b/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lifecycle-registry/index.html @@ -128,7 +128,7 @@

Functions

-

Collects values from the Lifecycle.currentStateFlow and represents its latest value via State. The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage.

+

Collects values from the Lifecycle.currentStateFlow and represents its latest value via State. The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage.

diff --git a/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lifecycle/index.html b/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lifecycle/index.html index def6a89d..dce68a6c 100644 --- a/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lifecycle/index.html +++ b/docs/latest/API/lifecycle/com.hoc081098.solivagant.lifecycle/-lifecycle/index.html @@ -192,7 +192,7 @@

Functions

-

Collects values from the Lifecycle.currentStateFlow and represents its latest value via State. The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage.

+

Collects values from the Lifecycle.currentStateFlow and represents its latest value via State. The StateFlow.value is used as an initial value. Every time there would be new value posted into the StateFlow the returned State will be updated causing recomposition of every State.value usage.

diff --git a/docs/latest/sitemap.xml b/docs/latest/sitemap.xml index 8afe78b3..cde9dd58 100644 --- a/docs/latest/sitemap.xml +++ b/docs/latest/sitemap.xml @@ -2,14 +2,14 @@ https://hoc081098.github.io/solivagant/docs/0.x/ - 2024-12-10 + 2024-12-12 https://hoc081098.github.io/solivagant/docs/0.x/changelog/ - 2024-12-10 + 2024-12-12 https://hoc081098.github.io/solivagant/docs/0.x/multiplatform/ - 2024-12-10 + 2024-12-12 \ No newline at end of file diff --git a/docs/latest/sitemap.xml.gz b/docs/latest/sitemap.xml.gz index 58ecff3b..cdab6bcd 100644 Binary files a/docs/latest/sitemap.xml.gz and b/docs/latest/sitemap.xml.gz differ