Skip to content

Commit 121bcae

Browse files
committed
docs: document max-intensity resolution for overlapping included patterns
1 parent 19a2ac0 commit 121bcae

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

documentation/content/docs/api/jindong-core/core-api.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,17 @@ val composedPattern = buildHapticPattern {
211211
}
212212
```
213213

214+
If included patterns overlap in time, they are not summed. A single vibration motor
215+
plays one amplitude at a time, so at each instant the strongest active event wins:
216+
217+
```kotlin
218+
val composed = buildHapticPattern {
219+
include(strongPattern) // e.g. 0-100ms at HIGH
220+
include(softPattern) // e.g. 50-150ms at LIGHT
221+
}
222+
// 0-100ms plays at HIGH (it dominates the overlap), then 100-150ms plays at LIGHT.
223+
```
224+
214225
## Examples
215226

216227
### ViewModel Usage

0 commit comments

Comments
 (0)