This sample demonstrates how to create a capsule without writing a line of traditional code by taking advantage of Bixby modeling. It also shows examples where even in a complex capsule, you might be able to keep simpler parts of the functionality code-free.
Because you cannot submit a capsule with the
example namespace, in order to test a sample capsule on a device, you must change the
id in the
capsule.bxb file from
example to your organization's namespace before making a private submission.
For example, if your namespace is
To see the capsule in action, open the Simulator and give the input utterance "Start". This shows an introductory view. You can also say "Flip a Coin" or tap it to play the game.
Design patterns to take notice of in this capsule include the following:
LearnMoreviews output a
DummyTextconcept and use a match pattern with
from-outputto display the correct view
Aboutviews use an EL-based command pattern in a single view
The following video shows how to create a capsule without having to write code with this sample capsule.