startStateTransition
startStateTransition
Runs the State Transition with the given id. To apply it to a single item in a repeating (list) layout, use startStateTransitionWithIndex instead.
Parameters
| Name | Type | Description |
|---|---|---|
transitionID | String | The id of the state transition to run |
onEnd | JSFunction? | Callback invoked when the transition finishes (takes no arguments). Optional (null) |
duration | double? | Overrides the duration in seconds. Omit (null) to keep the duration configured on the state transition |
Returns: void
Example
$act.startStateTransition("slideIn", function () {
$log.d("전환 완료");
}, 0.3);
Related
$act.startStateTransitionWithIndex(transitionID, index, onEnd, duration)— applies to one item in a repeating layout$act.stopStateTransition(transitionID)— stops a running transition$act.setStateTransitionProperty(transitionID, index, property, value)— changes a property value on a specific step of the transition