Bixby Developer Center

References

on-confirm

optional

The validation applied after the user confirms a transaction but before the transaction commits. The on-confirm can contain one or more validation rules that are examined in order. Each validation rule defines a control flow.

Examples

confirmation-view {
match: core.Confirmation {
confirming: Action2 (action)
}
mode (NegativeEmphasis)
message ("Continue?")

render {
// `layout-match`, `macro`, or `nothing`
layout-match(action.input) {
mode (Detail)
}
}

confirm-options {
label ("Book")
on-confirm {
// allows user's to do post-confirmation validation
if (false) { // only `halt` and `replan` effects are supported
halt
}
}
}
abort-options {
label ("Keep looking")
on-abort {
intent {
goal: AvailableHotel
value {$expr(request.when)}
value {$expr(request.hotel.address.centroid)}
}
}
}
conversation-drivers {
...
}
}
  confirm-options {
on-confirm {
if (false) {
halt {
dialog ("")
}
}
}
}

View 2471866 on GitHub

Child Keys

halt
optional
Effect that halts execution after a dialog message event
replan
optional
Effect that re-plans to a new intent, after an optional dialog event