Skip to content

Commit

Permalink
Remove redundant section from documentation in appyx-interaction usag…
Browse files Browse the repository at this point in the history
…e page
  • Loading branch information
KovalevAndrey committed Sep 11, 2023
1 parent 785f6e0 commit 872b86f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions documentation/interactions/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,6 @@ fun SomeComposable() {
}
```

You can also make use of the `AppyxComponent` composable, if you have components that allow gestures to control them:

```kotlin
@Composable
fun SomeComposable() {
AppyxComponent(
modifier = Modifier,
screenWidthPx = (LocalConfiguration.current.screenWidthDp * LocalDensity.current.density).roundToInt(),
screenHeightPx = (LocalConfiguration.current.screenHeightDp * LocalDensity.current.density).roundToInt(),
appyxComponent = yourComponent,
gestureValidator = permissiveValidator,
) { elementUiModel ->
YourElementComposable(
elementUiModel = elementUiModel,
modifier = elementUiModel.modifier
)
}
}
```

## Interacting with the AppyxComponent

How you use your model will depend on the specific component. However, typically, you will have a high level API to trigger changes, such as:
Expand Down

0 comments on commit 872b86f

Please sign in to comment.