Can Bixby have different views for different devices?

旧城冷巷雨未停 提交于 2019-12-25 02:25:22

问题


I am trying to have different input views for different devices in Bixby.

For example, on a Bixby tablet, i would want to allow the user to select multiple switch-inputs in a single screen. For the bixby speaker, on the other hand I would like to break this up and only prompt the user for one input at a time. Is this possible?


回答1:


You can definitely customize how information is presented to the user depending on the device being used.

First, you will need to declare the devices your capsule will support by defining the targets as shown below:

capsule {
  id (playground.example)
  version (0.1.0)
  format (3)
  runtime-flags {
    modern-prompt-rejection
    support-halt-effect-in-computed-inputs
  }
  targets {
    target (bixby-mobile-en-US)
    target (bixby-mobile-en-GB)
  }
}

Once your targets have been declared, you can create views for them. When you create a view in Bixby Studio, the "Create New File" pop-up window has the option for you to define the device that your view will be for. You will end up having multiple views presenting the same information across different devices and Bixby will use the correct one depending on the device.

Additionally, you can also use Hands-Free List Navigation to further refine the behavior of your views.



来源:https://stackoverflow.com/questions/55799725/can-bixby-have-different-views-for-different-devices

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!