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 acme
, change example.nocodedesignpatterns
to acme.nocodedesignpatterns
.
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:
Intro
and LearnMore
views output a DummyText
concept and use a match pattern with from-output
to display the correct viewHelp
and About
views use an EL-based command pattern in a single viewThe following video shows how to create a capsule without having to write code with this sample capsule.
Copyright 2024 Samsung All rights reserved