Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/available-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

jujubaSVG already provides some commands. This page we will demonstrate how to use them in Kotlin and Dart (Flutter).

!!!tip "Support added - Android v1.3.0 / Flutter v1.1.0"

## Custom command

If you need to specify a custom command that is not provided by jujubaSVG, you can use `CustomCommand`.

```kotlin
// KOTLIN
jujubaCommander.execute(
Command.CustomCommand(
jsCode = "yourJSCode"
)
)
```

```dart
// DART
commander.execute(
CustomCommand(
jsCode: 'yourJSCode'
),
);
```

## Update background color

Expand Down