How to display list of available audio outputs when Bluetooth is connected and switch to user selected audio route?
I tried checking AVAudioSession.sharedIntsance().CurrentRoute.outputs, but it always returns only one output route.
Related
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?
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.
I have been writing an actions on google app tied into dialog flow with a .net fulfillment back end. My app needs coarse location to function. However in testing the location is always empty when I use the coarse location permission. When I change the permission to precise it sends lat and long back, but when I use coarse it does not send back the address entered in the simulator location box.
Edit: The device type is set to speaker at the top.
Edit2: Added images album
https://imgur.com/a/C6XPATL
According to the documentation:
Currently, precise location only returns lat/lng coordinates on phones
and a geocoded address on voice-activated speakers. Coarse location
only works on voice-activated speakers.
To make sure you are testing with the speakers in simulation, make sure you have selected that device icon before you invoke the action
I've had a ZPL file created for me (well, a few different varieties) that has variables inside.
I've sent it to the printer via Zebra Setup Utilities and when I try and access it from the Print Station App on Galaxy Note 8, I get the error: "Could not retrieve format list from the specified printer"
The printer is connected via Bluetooth and it has been set up via the USB cable and connectivity options in the Zebra Setup Utilities. The sample files (Oilchange.zpl and address.zpl) work correctly and populate the data.
The weird thing is that yesterday, the format was being populated, yet it would not print out the variables on the labels.
All of my zpl files are located at www.gungetankhire.com/zpl
I really hope someone can talk me through this - I need this working for an exhibition on Monday
Many Thanks
Leigh
The field for Product in your Leigh2.zpl looks like the following
^FO248,224^ADN,36,20^FDProduct^FS
In order to get it to become a variable the user needs to enter you can update it to the following
^FO248,224^A0N,30,24^FN1"Product"^FS
You will notice it has changed from using ^FD to ^FN.
the 1 following the FN is the field number and then I added quotes around Product to name the field. The number for the field is unique, if you have 6 fields each one should have its own number 1-6. The field name is not needed but if not used the Print Station App will show "Field 1" for ^FN1. If you update the fields you want as variables to this format you should be able to enter the values on Print Station and print them out on your label.
TV device does not support touch operation, users have to use Remote Control. We need to move focus by press left, top, right, bottom direction key, and when the target widget get focus, we will press OK button to response kinds of key event. But I cannot find any flutter interface to solve this interaction, anyone who can help me?
There are SystemChannels for this.
I haven't tried it myself, but it looks like this should do what you need:
DartDocs - SystemChannels.keyEvent
A JSON BasicMessageChannel for keyboard events.
[DartDocs - SystemChannels.textInput[(https://www.dartdocs.org/documentation/flutter/0.0.41-dev/services/SystemChannels/textInput-constant.html)
A JSON MethodChannel for handling text input.
This channel exposes a system text input control for interacting with
IMEs (input method editors, for example on-screen keyboards). There is
one control, and at any time it can have one active transaction.
Transactions are represented by an integer. New Transactions are
started by TextInput.setClient. Messages that are sent are assumed to
be for the current transaction (the last "client" set by
TextInput.setClient). Messages received from the shell side specify
the transaction to which they apply, so that stale messages
referencing past transactions can be ignored.
The later is used in https://github.com/flutter/flutter/blob/4389f07024a4c69f7223401abd4d0ab3ecc45698/packages/flutter/lib/src/services/text_input.dart
There are known issues with physical keyboards thought that might cause this use case not to work
https://github.com/flutter/flutter/issues/11177
https://github.com/flutter/flutter/issues/7943
https://github.com/flutter/flutter/issues/9347
Yep,Flutter doesn't support D-pad navigation yet.But,I have an Android Smart TV and if I connect a Bluetooth mouse,I am able to navigate,swipes,click,etc my Flutter app on the TV.
Hello I have purchased a new Intermec CK3R Mobile computer and a PB50 Printer. I am developing a inventory check in system that will work in the following way
Background
Basically it is a single page ASP.NET MVC application with some JavaScript.
There are two form fields (Part Number, Serial number)
Flow
After the part number is scanned, focus is moved to Serial number.
After serial number is scanned the data is sent to the server via AJAX Post
Server does extensive validation
if it passes: Part number and serial number pair are entered into a database. The new unique id, part number and serial number is passed back to the client.
If it fails: and error code & message is returned back to the client
So here is the question. On a successful validation I would like a print job to be sent to the PB50 so the box can be labeled. The label should have the unique ID in barcode, and the part number in text.
I need a starting point to go from. I would be great if I could use JavaScript to send the print job.
I found http://www.hjgode.de/dev/activex1.htm which is an older example. I want to be sure i am going about this in the most efficient manner.