Skip to content

Commit

Permalink
Adjust README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
w2sv committed Apr 20, 2024
1 parent 5876efe commit d91fa95
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ fun <T> InterElementDividedRow(
@Composable
fun <T> CollectFromFlow(
flow: Flow<T>,
collector: FlowCollector<T>,
key1: Any? = null,
key2: Any? = null
key2: Any? = null,
collector: FlowCollector<T>
)

/**
Expand All @@ -167,9 +167,9 @@ fun <T> CollectFromFlow(
@Composable
fun <T> CollectLatestFromFlow(
flow: Flow<T>,
action: suspend (value: T) -> Unit,
key1: Any? = null,
key2: Any? = null
key2: Any? = null,
action: suspend (value: T) -> Unit
)
```

Expand All @@ -181,18 +181,18 @@ fun <T> CollectLatestFromFlow(
*/
@Composable
fun OnLifecycleEvent(
callback: () -> Unit,
lifecycleEvent: Lifecycle.Event,
lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current,
key1: Any? = null,
key2: Any? = null
key2: Any? = null,
callback: () -> Unit
)

/**
* Runs a callback when removed from composition.
*/
@Composable
fun OnRemoveFromComposition(callback: () -> Unit)
fun OnDispose(callback: () -> Unit)
```

## Orientation
Expand Down

0 comments on commit d91fa95

Please sign in to comment.