Skip to content

Commit 6c96198

Browse files
committed
added description
1 parent c2b8e97 commit 6c96198

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

kotlin/src/main/java/app/rive/runtime/kotlin/RiveAnimationView.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,25 @@ class RiveAnimationView(context: Context, attrs: AttributeSet? = null) : View(co
288288
}
289289
}
290290

291+
/**
292+
* Fire the [SMITrigger] input called [inputName] on all active matching state machines
293+
*/
291294
fun fireState(stateMachineName: String, inputName:String){
292295
drawable.fireState(stateMachineName, inputName)
293296
}
294297

298+
/**
299+
* Update the state of the [SMIBoolean] input called [inputName] on all active matching state machines
300+
* to [value]
301+
*/
295302
fun setBooleanState(stateMachineName: String, inputName:String, value:Boolean){
296303
drawable.setBooleanState(stateMachineName, inputName, value)
297304
}
298305

306+
/**
307+
* Update the state of the [SMINumber] input called [inputName] on all active matching state machines
308+
* to [value]
309+
*/
299310
fun setNumberState(stateMachineName: String, inputName:String, value:Float){
300311
drawable.setNumberState(stateMachineName, inputName, value)
301312
}

0 commit comments

Comments
 (0)