Permalink
Browse files

Windows 10 Version 1803 - BarcodeScanner video preview and JS fixes

  • Loading branch information...
oldnewthing committed May 3, 2018
1 parent 96d2394 commit fe8567faf2efdea3672c2ba642ba7b925ff6467e
Showing with 2,392 additions and 439 deletions.
  1. +3 −0 Samples/Accelerometer/js/Accelerometer.jsproj
  2. +1 −1 Samples/Accelerometer/js/Package.appxmanifest
  3. +3 −0 Samples/ActivitySensor/js/ActivitySensor.jsproj
  4. +1 −1 Samples/ActivitySensor/js/Package.appxmanifest
  5. +3 −0 Samples/Advertising/js/Advertising.jsproj
  6. +3 −0 Samples/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.jsproj
  7. +1 −1 Samples/AllJoyn/ConsumerExperiences/js/package.appxmanifest
  8. +3 −0 Samples/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.jsproj
  9. +1 −1 Samples/AllJoyn/ProducerExperiences/js/package.appxmanifest
  10. +3 −0 Samples/Altimeter/js/Altimeter.jsproj
  11. +1 −1 Samples/Altimeter/js/Package.appxmanifest
  12. +3 −0 Samples/AnimationLibrary/js/AnimationLibrary.jsproj
  13. +3 −0 Samples/AnimationMetrics/js/AnimationMetrics.jsproj
  14. +1 −1 Samples/AnimationMetrics/js/Package.appxmanifest
  15. +3 −0 Samples/ApplicationResources/js/ApplicationResources.jsproj
  16. +1 −1 Samples/ApplicationResources/js/package.appxmanifest
  17. +3 −0 Samples/AudioCategory/js/AudioCategory/AudioCategory.jsproj
  18. +1 −1 Samples/AudioCategory/js/AudioCategory/package.appxmanifest
  19. +3 −0 Samples/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.jsproj
  20. +1 −1 Samples/AudioCategory/js/AudioCategoryCompanion/package.appxmanifest
  21. +3 −0 Samples/BackgroundMediaPlayback/js/BackgroundMediaPlayback.jsproj
  22. +1 −1 Samples/BackgroundMediaPlayback/js/Package.appxmanifest
  23. +3 −0 Samples/BackgroundTransfer/js/BackgroundTransfer.jsproj
  24. +1 −1 Samples/BackgroundTransfer/js/package.appxmanifest
  25. +9 −0 Samples/BarcodeScanner/README.md
  26. +17 −14 Samples/BarcodeScanner/cpp/BarcodeScanner.sln
  27. +7 −0 Samples/BarcodeScanner/cpp/BarcodeScanner.vcxproj
  28. +3 −0 Samples/BarcodeScanner/cpp/BarcodeScanner.vcxproj.filters
  29. +3 −1 Samples/BarcodeScanner/cpp/Package.appxmanifest
  30. +3 −2 Samples/BarcodeScanner/cpp/SampleConfiguration.cpp
  31. +54 −0 Samples/BarcodeScanner/cpp/SampleConfiguration.h
  32. +17 −16 Samples/BarcodeScanner/cpp/Scenario1_BasicFunctionality.xaml.cpp
  33. +18 −14 Samples/BarcodeScanner/cpp/Scenario2_MultipleScanners.xaml.cpp
  34. +4 −6 Samples/BarcodeScanner/cpp/Scenario2_MultipleScanners.xaml.h
  35. +30 −27 Samples/BarcodeScanner/cpp/Scenario3_ActiveSymbologies.xaml.cpp
  36. +36 −33 Samples/BarcodeScanner/cpp/Scenario4_SymbologyAttributes.xaml.cpp
  37. +452 −0 Samples/BarcodeScanner/cpp/Scenario5_DisplayingBarcodePreview.xaml.cpp
  38. +74 −0 Samples/BarcodeScanner/cpp/Scenario5_DisplayingBarcodePreview.xaml.h
  39. +14 −3 Samples/BarcodeScanner/cs/BarcodeScanner.csproj
  40. +17 −14 Samples/BarcodeScanner/cs/BarcodeScanner.sln
  41. +3 −1 Samples/BarcodeScanner/cs/Package.appxmanifest
  42. +27 −1 Samples/BarcodeScanner/cs/SampleConfiguration.cs
  43. +16 −15 Samples/BarcodeScanner/cs/Scenario1_BasicFunctionality.xaml.cs
  44. +4 −9 Samples/BarcodeScanner/cs/Scenario2_MultipleScanners.xaml.cs
  45. +25 −22 Samples/BarcodeScanner/cs/Scenario3_ActiveSymbologies.xaml.cs
  46. +33 −30 Samples/BarcodeScanner/cs/Scenario4_SymbologyAttributes.xaml.cs
  47. +436 −0 Samples/BarcodeScanner/cs/Scenario5_DisplayingBarcodePreview.xaml.cs
  48. +0 −16 Samples/BarcodeScanner/cs/project.json
  49. +6 −0 Samples/BarcodeScanner/js/BarcodeScanner.jsproj
  50. +19 −16 Samples/BarcodeScanner/js/BarcodeScanner.sln
  51. +4 −2 Samples/BarcodeScanner/js/Package.appxmanifest
  52. +59 −0 Samples/BarcodeScanner/js/css/scenario5_DisplayingBarcodePreview.css
  53. +70 −0 Samples/BarcodeScanner/js/html/scenario5_DisplayingBarcodePreview.html
  54. +1 −0 Samples/BarcodeScanner/js/js/sample-configuration.js
  55. +5 −5 Samples/BarcodeScanner/js/js/scenario1_BasicFunctionality.js
  56. +5 −5 Samples/BarcodeScanner/js/js/scenario2_MultipleScanners.js
  57. +38 −41 Samples/BarcodeScanner/js/js/scenario3_ActiveSymbologies.js
  58. +41 −42 Samples/BarcodeScanner/js/js/scenario4_SymbologyAttributes.js
  59. +264 −0 Samples/BarcodeScanner/js/js/scenario5_DisplayingBarcodePreview.js
  60. +92 −0 Samples/BarcodeScanner/shared/Scenario5_DisplayingBarcodePreview.xaml
  61. +3 −0 Samples/Barometer/js/Barometer.jsproj
  62. +1 −1 Samples/Barometer/js/Package.appxmanifest
  63. +3 −0 Samples/BluetoothAdvertisement/js/BluetoothAdvertisement.jsproj
  64. +2 −2 Samples/BluetoothAdvertisement/js/Package.appxmanifest
  65. +3 −0 Samples/Calendar/js/Calendar.jsproj
  66. +1 −1 Samples/Calendar/js/Package.appxmanifest
  67. +3 −0 Samples/CameraAdvancedCapture/js/CameraAdvancedCapture.jsproj
  68. +1 −1 Samples/CameraAdvancedCapture/js/package.appxmanifest
  69. +3 −0 Samples/CameraFaceDetection/js/CameraFaceDetection.jsproj
  70. +1 −1 Samples/CameraFaceDetection/js/Package.appxmanifest
  71. +3 −0 Samples/CameraGetPreviewFrame/js/CameraGetPreviewFrame.jsproj
  72. +1 −1 Samples/CameraGetPreviewFrame/js/Package.appxmanifest
  73. +3 −0 Samples/CameraProfile/js/CameraProfile.jsproj
  74. +1 −1 Samples/CameraProfile/js/Package.appxmanifest
  75. +3 −0 Samples/CameraResolution/js/CameraResolution.jsproj
  76. +1 −1 Samples/CameraResolution/js/Package.appxmanifest
  77. +3 −0 Samples/CameraStarterKit/js/CameraStarterKit.jsproj
  78. +1 −1 Samples/CameraStarterKit/js/Package.appxmanifest
  79. +3 −0 Samples/CameraVideoStabilization/js/CameraVideoStabilization.jsproj
  80. +1 −1 Samples/CameraVideoStabilization/js/Package.appxmanifest
  81. +3 −0 Samples/CashDrawer/js/CashDrawer.jsproj
  82. +1 −1 Samples/CashDrawer/js/Package.appxmanifest
  83. +3 −0 Samples/ClientDeviceInformation/js/ClientDeviceInformation.jsproj
  84. +1 −1 Samples/ClientDeviceInformation/js/Package.appxmanifest
  85. +3 −0 Samples/Clipboard/js/Clipboard.jsproj
  86. +3 −0 Samples/Compass/js/Compass.jsproj
  87. +1 −1 Samples/Compass/js/Package.appxmanifest
  88. +3 −0 Samples/Compression/js/Compression.jsproj
  89. +1 −1 Samples/Compression/js/Package.appxmanifest
  90. +3 −0 Samples/ContactCards/js/ContactCards.jsproj
  91. +1 −1 Samples/ContactCards/js/Package.appxmanifest
  92. +3 −0 Samples/ContactPicker/js/ContactPicker.jsproj
  93. +1 −1 Samples/ContactPicker/js/Package.appxmanifest
  94. +3 −0 Samples/ContentIndexer/js/ContentIndexer.jsproj
  95. +3 −0 Samples/ContextMenu/js/ContextMenu.jsproj
  96. +3 −0 Samples/CortanaVoiceCommand/js/AdventureWorks/AdventureWorks.jsproj
  97. +1 −1 Samples/CortanaVoiceCommand/js/AdventureWorks/package.appxmanifest
  98. +3 −0 Samples/CredentialPicker/js/CredentialPicker.jsproj
  99. +1 −1 Samples/CredentialPicker/js/Package.appxmanifest
  100. +3 −0 Samples/CustomCapability/js/CustomCapability.jsproj
  101. +2 −2 Samples/CustomCapability/js/package.appxmanifest
  102. +3 −0 Samples/CustomSensors/js/CustomSensor.jsproj
  103. +1 −1 Samples/CustomSensors/js/Package.appxmanifest
  104. +3 −0 Samples/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.jsproj
  105. +1 −1 Samples/CustomSerialDeviceAccess/js/Package.appxmanifest
  106. +3 −0 Samples/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.jsproj
  107. +1 −1 Samples/CustomUsbDeviceAccess/js/Package.appxmanifest
  108. +3 −0 Samples/DataReaderWriter/js/DataReaderWriter.jsproj
  109. +1 −1 Samples/DataReaderWriter/js/Package.appxmanifest
  110. +3 −0 Samples/DatagramSocket/js/DatagramSocket.jsproj
  111. +1 −1 Samples/DatagramSocket/js/Package.appxmanifest
  112. +3 −0 Samples/DateTimeFormatting/js/DateTimeFormatting.jsproj
  113. +1 −1 Samples/DateTimeFormatting/js/Package.appxmanifest
  114. +3 −0 Samples/DeviceEnumerationAndPairing/js/DeviceEnumeration.jsproj
  115. +1 −1 Samples/DeviceEnumerationAndPairing/js/Package.appxmanifest
  116. +3 −0 Samples/DisablingScreenCapture/js/DisablingScreenCapture.jsproj
  117. +1 −1 Samples/DisablingScreenCapture/js/Package.appxmanifest
  118. +3 −0 Samples/DisplayOrientation/js/DisplayOrientation.jsproj
  119. +1 −1 Samples/DisplayOrientation/js/Package.appxmanifest
  120. +3 −0 Samples/DpiScaling/js/DpiScaling.jsproj
  121. +3 −0 Samples/EfficientAnimations/js/EfficientAnimations.jsproj
  122. +1 −1 Samples/EfficientAnimations/js/Package.appxmanifest
  123. +3 −0 Samples/FeedReader/js/FeedReader.jsproj
  124. +1 −1 Samples/FeedReader/js/Package.appxmanifest
  125. +3 −0 Samples/FileAccess/js/FileAccess.jsproj
  126. +3 −0 Samples/FilePicker/js/FilePicker.jsproj
  127. +3 −0 Samples/FileSearch/js/FileSearch.jsproj
  128. +3 −0 Samples/FileThumbnails/js/FileThumbnails.jsproj
  129. +3 −0 Samples/FolderEnumeration/js/FolderEnumeration.jsproj
  130. +3 −0 Samples/FullScreenMode/js/FullScreenMode.jsproj
  131. +1 −1 Samples/FullScreenMode/js/Package.appxmanifest
  132. +6 −0 Samples/Geolocation/js/geolocationjs/Geolocation.jsproj
  133. +1 −1 Samples/Geolocation/js/geolocationjs/Package.appxmanifest
  134. +3 −0 Samples/Geotag/js/Geotag.jsproj
  135. +1 −1 Samples/Geotag/js/Package.appxmanifest
  136. +3 −0 Samples/GlobalizationPreferences/js/GlobalizationPreferences.jsproj
  137. +1 −1 Samples/GlobalizationPreferences/js/Package.appxmanifest
  138. +3 −0 Samples/Gyrometer/js/Gyrometer.jsproj
  139. +1 −1 Samples/Gyrometer/js/Package.appxmanifest
  140. +5 −2 Samples/HomeGroup/js/HomeGroup.jsproj
  141. +3 −0 Samples/HtmlFormValidation/js/HtmlFormValidation.jsproj
  142. +1 −1 Samples/HtmlFormValidation/js/Package.appxmanifest
  143. +3 −0 Samples/Inclinometer/js/Inclinometer.jsproj
  144. +1 −1 Samples/Inclinometer/js/Package.appxmanifest
  145. +3 −0 Samples/IndexedDB/js/IndexedDB.jsproj
  146. +1 −1 Samples/IndexedDB/js/Package.appxmanifest
  147. +3 −0 Samples/Ink/js/Ink.jsproj
  148. +1 −1 Samples/Ink/js/package.appxmanifest
  149. +3 −0 Samples/IoT-GPIO/js/Gpio.jsproj
  150. +1 −1 Samples/IoT-GPIO/js/package.appxmanifest
  151. +3 −0 Samples/IoT-I2C/js/I2C.jsproj
  152. +1 −1 Samples/IoT-I2C/js/package.appxmanifest
  153. +3 −0 Samples/IoT-SPI/js/SPI.jsproj
  154. +1 −1 Samples/IoT-SPI/js/package.appxmanifest
  155. +3 −0 Samples/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.jsproj
  156. +1 −1 Samples/JapanesePhoneticAnalysis/js/Package.appxmanifest
  157. +3 −0 Samples/JumpList/js/JumpList.jsproj
  158. +1 −1 Samples/JumpList/js/Package.appxmanifest
  159. +3 −0 Samples/LampDevice/js/LampDevice.jsproj
  160. +1 −1 Samples/LampDevice/js/Package.appxmanifest
  161. +3 −0 Samples/LanguageFont/js/LanguageFont.jsproj
  162. +1 −1 Samples/LanguageFont/js/package.appxmanifest
  163. +3 −0 Samples/LibraryManagement/js/LibraryManagement.jsproj
  164. +3 −0 Samples/LightSensor/js/LightSensor.jsproj
  165. +1 −1 Samples/LightSensor/js/Package.appxmanifest
  166. +3 −0 Samples/LineDisplay/js/LineDisplay.jsproj
  167. +3 −0 Samples/Logging/js/Logging.jsproj
  168. +1 −1 Samples/Logging/js/Package.appxmanifest
  169. +3 −0 Samples/MagneticStripeReader/js/MagneticStripeReader.jsproj
  170. +1 −1 Samples/MagneticStripeReader/js/Package.appxmanifest
  171. +3 −0 Samples/MediaEditing/js/MediaEditing.jsproj
  172. +1 −1 Samples/MediaEditing/js/package.appxmanifest
  173. +3 −0 Samples/MediaTranscoding/js/MediaTranscoding.jsproj
  174. +1 −1 Samples/MediaTranscoding/js/package.appxmanifest
  175. +3 −0 Samples/MessageDialog/js/MessageDialogSample.jsproj
  176. +3 −0 Samples/MsBlobBuilder/js/MsBlobBuilder.jsproj
  177. +1 −1 Samples/MsBlobBuilder/js/Package.appxmanifest
  178. +3 −0 Samples/Notifications/js/Notifications/Notifications.jsproj
  179. +3 −0 Samples/NumberFormatting/js/NumberFormattingSample.jsproj
  180. +3 −0 Samples/OCR/js/OCR.jsproj
  181. +1 −1 Samples/OCR/js/package.appxmanifest
  182. +3 −0 Samples/OrientationSensor/js/OrientationSensor.jsproj
  183. +1 −1 Samples/OrientationSensor/js/Package.appxmanifest
  184. +3 −0 Samples/Package/js/PackageSample.jsproj
  185. +1 −1 Samples/Package/js/package.appxmanifest
  186. +3 −0 Samples/PackagedContent/js/PackagedContent.jsproj
  187. +1 −1 Samples/PackagedContent/js/package.appxmanifest
  188. +1 −1 Samples/PasswordVault/js/Package.appxmanifest
  189. +3 −0 Samples/PasswordVault/js/PasswordVault.jsproj
  190. +1 −1 Samples/PdfDocument/js/Package.appxmanifest
  191. +3 −0 Samples/PdfDocument/js/PdfDocument.jsproj
  192. +1 −1 Samples/Pedometer/js/Package.appxmanifest
  193. +3 −0 Samples/Pedometer/js/Pedometer.jsproj
  194. +3 −0 Samples/Personalization/js/Personalization.jsproj
  195. +3 −0 Samples/PlayReady/js/PlayReady.jsproj
  196. +1 −1 Samples/Playlists/js/Package.appxmanifest
  197. +3 −0 Samples/Playlists/js/Playlists.jsproj
  198. +1 −1 Samples/PosPrinter/js/Package.appxmanifest
  199. +3 −0 Samples/PosPrinter/js/PosPrinter.jsproj
  200. +1 −1 Samples/Printing/js/Package.appxmanifest
  201. +3 −0 Samples/Printing/js/Printing.jsproj
  202. +3 −0 Samples/Projection/js/Projection.jsproj
  203. +1 −1 Samples/Projection/js/package.appxmanifest
  204. +1 −1 Samples/ProximitySensor/js/Package.appxmanifest
  205. +3 −0 Samples/ProximitySensor/js/ProximitySensor.jsproj
  206. +1 −1 Samples/RelativeInclinometer/js/Package.appxmanifest
  207. +3 −0 Samples/RelativeInclinometer/js/RelativeInclinometer.jsproj
  208. +1 −1 Samples/ResizeAppView/js/Package.appxmanifest
  209. +3 −0 Samples/ResizeAppView/js/ResizeAppView.jsproj
  210. +3 −0 Samples/SemanticTextQuery/js/SemanticTextQuery.jsproj
  211. +3 −0 Samples/ShareSource/js/ShareSource.jsproj
  212. +1 −1 Samples/SimpleCommunication/js/Package.appxmanifest
  213. +3 −0 Samples/SimpleCommunication/js/SimpleCommunication.jsproj
  214. +3 −0 Samples/SimpleImaging/js/SimpleImaging.jsproj
  215. +1 −1 Samples/SimpleOrientationSensor/js/Package.appxmanifest
  216. +3 −0 Samples/SimpleOrientationSensor/js/SimpleOrientationSensor.jsproj
  217. +1 −1 Samples/SmartCard/js/Package.appxmanifest
  218. +3 −0 Samples/SmartCard/js/Smartcard.jsproj
  219. +3 −0 Samples/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.jsproj
  220. +1 −1 Samples/SpeechRecognitionAndSynthesis/js/package.appxmanifest
  221. +1 −1 Samples/Store/js/Package.appxmanifest
  222. +3 −0 Samples/Store/js/Store.jsproj
  223. +1 −1 Samples/StreamSocket/js/Package.appxmanifest
  224. +3 −0 Samples/StreamSocket/js/StreamSocket.jsproj
  225. +3 −0 Samples/SystemMediaTransportControls/js/SystemMediaTransportControls.jsproj
  226. +1 −1 Samples/SystemMediaTransportControls/js/package.appxmanifest
  227. +3 −0 Samples/TextSegmentation/js/TextSegmentation.jsproj
  228. +1 −1 Samples/TextSuggestion/js/Package.appxmanifest
  229. +3 −0 Samples/TextSuggestion/js/TextSuggestion.jsproj
  230. +1 −1 Samples/TitleBar/js/Package.appxmanifest
  231. +3 −0 Samples/TitleBar/js/TitleBar.jsproj
  232. +3 −0 Samples/TouchKeyboardTextInput/js/TouchKeyboardTextInput.jsproj
  233. +1 −1 Samples/Unicode/js/Package.appxmanifest
  234. +3 −0 Samples/Unicode/js/Unicode.jsproj
  235. +3 −0 Samples/UserCertificateStore/js/UserCertificateStore.jsproj
  236. +1 −1 Samples/UserConsentVerifier/js/Package.appxmanifest
  237. +3 −0 Samples/UserConsentVerifier/js/UserConsentVerifier.jsproj
  238. +3 −0 Samples/UserDataAccountManager/js/UserDataAccountManager.jsproj
  239. +1 −1 Samples/UserDataAccountManager/js/package.appxmanifest
  240. +3 −0 Samples/UserInfo/js/UserInfo.jsproj
  241. +1 −1 Samples/UserInteractionMode/js/Package.appxmanifest
  242. +3 −0 Samples/UserInteractionMode/js/UserInteractionMode.jsproj
  243. +1 −1 Samples/UserSelection/js/Package.appxmanifest
  244. +3 −0 Samples/UserSelection/js/UserSelection.jsproj
  245. +1 −1 Samples/VersionAdaptiveCode/js/Package.appxmanifest
  246. +3 −0 Samples/VersionAdaptiveCode/js/VersionAdaptiveCode.jsproj
  247. +3 −0 Samples/VideoPlayback/js/VideoPlayback.jsproj
  248. +1 −1 Samples/VideoPlayback/js/package.appxmanifest
  249. +1 −1 Samples/WebAuthenticationBroker/js/Package.appxmanifest
  250. +3 −0 Samples/WebAuthenticationBroker/js/WebAuthenticationBroker.jsproj
  251. +1 −1 Samples/WebSocket/js/Package.appxmanifest
  252. +3 −0 Samples/WebSocket/js/WebSocket.jsproj
  253. +1 −1 Samples/WebView/js/Package.appxmanifest
  254. +3 −0 Samples/WebView/js/WebView.jsproj
  255. +1 −1 Samples/WebWorkers/js/Package.appxmanifest
  256. +3 −0 Samples/WebWorkers/js/WebWorkers.jsproj
  257. +3 −0 Samples/WiFiDirect/js/WiFiDirect.jsproj
  258. +1 −1 Samples/WiFiDirect/js/package.appxmanifest
  259. +1 −1 Samples/XmlDocument/js/Package.appxmanifest
  260. +3 −0 Samples/XmlDocument/js/XmlDocument.jsproj
  261. +5 −1 SharedContent/cpp/DeviceHelpers.h
  262. BIN SharedContent/media/badge-logo.png
@@ -75,6 +75,9 @@
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -35,7 +35,7 @@
DisplayName="Accelerometer JS Sample"
Description="Accelerometer JS Sample"
BackgroundColor="#00b2f0"
Square150x150Logo="images\storelogo-sdk.png"
Square150x150Logo="images\squaretile-sdk.png"
Square44x44Logo="images\smalltile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
@@ -65,6 +65,9 @@
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -39,7 +39,7 @@
DisplayName="Activity Sensor JS Sample"
Description="Activity Sensor JS Sample"
BackgroundColor="#00b2f0"
Square150x150Logo="images\storelogo-sdk.png"
Square150x150Logo="images\squaretile-sdk.png"
Square44x44Logo="images\smalltile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
<uap:DefaultTile>
@@ -68,6 +68,9 @@
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -67,6 +67,9 @@
<Content Include="..\..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -34,7 +34,7 @@
DisplayName="AllJoyn Consumer Experiences JS Sample"
Description="AllJoyn Consumer Experiences JS Sample"
BackgroundColor="#00b2f0"
Square150x150Logo="images\storelogo-sdk.png"
Square150x150Logo="images\squaretile-sdk.png"
Square44x44Logo="images\smalltile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
<uap:DefaultTile>
@@ -69,6 +69,9 @@
<Content Include="..\..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -15,7 +15,7 @@
</Resources>
<Applications>
<Application Id="App" StartPage="default.html">
<uap:VisualElements DisplayName="AllJoyn Producer Experiences JS Sample" Description="AllJoyn Producer Experiences JS Sample" BackgroundColor="#00b2f0" Square150x150Logo="images\storelogo-sdk.png" Square44x44Logo="images\smalltile-sdk.png">
<uap:VisualElements DisplayName="AllJoyn Producer Experiences JS Sample" Description="AllJoyn Producer Experiences JS Sample" BackgroundColor="#00b2f0" Square150x150Logo="images\squaretile-sdk.png" Square44x44Logo="images\smalltile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
<uap:DefaultTile>
<uap:ShowNameOnTiles>
@@ -73,6 +73,9 @@
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -35,7 +35,7 @@
DisplayName="Altimeter JS sample"
Description="Altimeter JS sample"
BackgroundColor="#00b2f0"
Square150x150Logo="images\storelogo-sdk.png"
Square150x150Logo="images\squaretile-sdk.png"
Square44x44Logo="images\smalltile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
@@ -111,6 +111,9 @@
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -70,6 +70,9 @@
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -35,7 +35,7 @@
DisplayName="Animation Metrics JS Sample"
Description="Animation Metrics JS Sample"
BackgroundColor="#00b2f0"
Square150x150Logo="images\smallTile-sdk.png"
Square150x150Logo="images\squaretile-sdk.png"
Square44x44Logo="images\smallTile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
@@ -237,6 +237,9 @@
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -15,7 +15,7 @@
</Resources>
<Applications>
<Application Id="App" StartPage="default.html">
<uap:VisualElements DisplayName="ApplicationResources JS Sample" Description="ApplicationResources JS Sample" BackgroundColor="#00b2f0" Square150x150Logo="images\storelogo-sdk.png" Square44x44Logo="images\smalltile-sdk.png">
<uap:VisualElements DisplayName="ApplicationResources JS Sample" Description="ApplicationResources JS Sample" BackgroundColor="#00b2f0" Square150x150Logo="images\squaretile-sdk.png" Square44x44Logo="images\smalltile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
<uap:DefaultTile>
<uap:ShowNameOnTiles>
@@ -101,6 +101,9 @@
<Content Include="..\..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -34,7 +34,7 @@
DisplayName="AudioCategoryApp JS Sample"
Description="AudioCategoryApp JS Sample"
BackgroundColor="#00b2f0"
Square150x150Logo="images\storelogo-sdk.png"
Square150x150Logo="images\squaretile-sdk.png"
Square44x44Logo="images\smalltile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
<uap:DefaultTile>
@@ -114,6 +114,9 @@
<Content Include="..\..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storelogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -34,7 +34,7 @@
DisplayName="AudioCategoryCompanion JS Sample"
Description="AudioCategoryCompanion JS Sample"
BackgroundColor="#00b2f0"
Square150x150Logo="images\storelogo-sdk.png"
Square150x150Logo="images\squaretile-sdk.png"
Square44x44Logo="images\smalltile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
<uap:DefaultTile>
@@ -79,6 +79,9 @@
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -25,7 +25,7 @@
DisplayName="Background Media Playback JS Sample"
Description="Background Media Playback JS Sample"
BackgroundColor="#00b2f0"
Square150x150Logo="images\storelogo-sdk.png"
Square150x150Logo="images\squaretile-sdk.png"
Square44x44Logo="images\smalltile-sdk.png"
>
<uap:SplashScreen Image="images\splash-sdk.png"/>
@@ -69,6 +69,9 @@
<Content Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>images\storeLogo-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>images\squaretile-sdk.png</Link>
</Content>
<Content Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>images\tile-sdk.png</Link>
</Content>
@@ -34,7 +34,7 @@
DisplayName="BackgroundTransfer JS Sample"
Description="BackgroundTransfer JS Sample"
BackgroundColor="#00b2f0"
Square150x150Logo="images\storelogo-sdk.png"
Square150x150Logo="images\squaretile-sdk.png"
Square44x44Logo="images\smalltile-sdk.png">
<uap:SplashScreen Image="images\splash-sdk.png" />
<uap:DefaultTile>
@@ -45,6 +45,15 @@ This sample shows how to:
and the [SetSymbologyAttributesAsync](https://msdn.microsoft.com/library/windows/apps/windows.devices.pointofservice.claimedbarcodescanner.setsymbologyattributesasync) method
to enable or disable them.
6. **Control camera-based barcode scanners**
Detects camera-based barcode scanners by checking the [VideoDeviceId](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.barcodescanner.videodeviceid) property
and shows an in-app preview of the barcode camera.
Shows and hides the video preview window with the [ShowVideoPreviewAsync](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.claimedbarcodescanner.showvideopreviewasync)
and [HideVideoPreview](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.claimedbarcodescanner.hidevideopreview) methods.
Controls the software trigger with the [StartSoftwareTriggerAsync](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.claimedbarcodescanner.startsoftwaretriggerasync)
and [StopSoftwareTrigger](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.claimedbarcodescanner.stopsoftwaretriggerasync) methods.
The app package manifest shows how to specify the device capability name for the Point of Service (POS) devices. All POS apps are required declare [DeviceCapability](http://msdn.microsoft.com/library/windows/apps/br211430) in the app package manifest, either by using "PointofService" as shown in this sample or by using a device specific GUID, such as "C243FFBD-3AFC-45E9-B3D3-2BA18BC7EBC5" for a barcode scanner.
**Note** The Universal Windows app samples require Visual Studio 2017 to build and Windows 10 to execute.
@@ -1,20 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
VisualStudioVersion = 15.0.27130.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BarcodeScanner", "BarcodeScanner.vcxproj", "{9C98C452-42BA-59F7-96F8-369D796094A4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9C98C452-42BA-59F7-96F8-369D796094A4}.Debug|ARM.ActiveCfg = Debug|ARM
{9C98C452-42BA-59F7-96F8-369D796094A4}.Debug|ARM.Build.0 = Debug|ARM
{9C98C452-42BA-59F7-96F8-369D796094A4}.Debug|ARM.Deploy.0 = Debug|ARM
@@ -33,8 +33,11 @@ Global
{9C98C452-42BA-59F7-96F8-369D796094A4}.Release|x86.ActiveCfg = Release|Win32
{9C98C452-42BA-59F7-96F8-369D796094A4}.Release|x86.Build.0 = Release|Win32
{9C98C452-42BA-59F7-96F8-369D796094A4}.Release|x86.Deploy.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5AA22096-88EF-4847-B9F9-9A224ABFCDE2}
EndGlobalSection
EndGlobal
@@ -159,6 +159,9 @@
<ClInclude Include="Scenario4_SymbologyAttributes.xaml.h">
<DependentUpon>..\shared\Scenario4_SymbologyAttributes.xaml</DependentUpon>
</ClInclude>
<ClInclude Include="Scenario5_DisplayingBarcodePreview.xaml.h">
<DependentUpon>..\shared\Scenario5_DisplayingBarcodePreview.xaml</DependentUpon>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="..\..\..\SharedContent\xaml\App.xaml">
@@ -171,6 +174,7 @@
<Page Include="..\shared\Scenario2_MultipleScanners.xaml" />
<Page Include="..\shared\Scenario3_ActiveSymbologies.xaml" />
<Page Include="..\shared\Scenario4_SymbologyAttributes.xaml" />
<Page Include="..\shared\Scenario5_DisplayingBarcodePreview.xaml" />
<Page Include="..\..\..\SharedContent\xaml\Styles.xaml">
<Link>Styles\Styles.xaml</Link>
</Page>
@@ -208,6 +212,9 @@
<ClCompile Include="Scenario4_SymbologyAttributes.xaml.cpp">
<DependentUpon>..\shared\Scenario4_SymbologyAttributes.xaml</DependentUpon>
</ClCompile>
<ClCompile Include="Scenario5_DisplayingBarcodePreview.xaml.cpp">
<DependentUpon>..\shared\Scenario5_DisplayingBarcodePreview.xaml</DependentUpon>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Image Include="..\..\..\SharedContent\media\microsoft-sdk.png">
@@ -21,6 +21,7 @@
<ClCompile Include="Scenario2_MultipleScanners.xaml.cpp" />
<ClCompile Include="Scenario3_ActiveSymbologies.xaml.cpp" />
<ClCompile Include="Scenario4_SymbologyAttributes.xaml.cpp" />
<ClCompile Include="Scenario5_DisplayingBarcodePreview.xaml.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="pch.h" />
@@ -33,6 +34,7 @@
<ClInclude Include="DataHelpers.h" />
<ClInclude Include="Scenario3_ActiveSymbologies.xaml.h" />
<ClInclude Include="Scenario4_SymbologyAttributes.xaml.h" />
<ClInclude Include="Scenario5_DisplayingBarcodePreview.xaml.h" />
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest" />
@@ -46,6 +48,7 @@
<Page Include="..\shared\Scenario2_MultipleScanners.xaml" />
<Page Include="..\shared\Scenario3_ActiveSymbologies.xaml" />
<Page Include="..\shared\Scenario4_SymbologyAttributes.xaml" />
<Page Include="..\shared\Scenario5_DisplayingBarcodePreview.xaml" />
</ItemGroup>
<ItemGroup>
<Image Include="..\..\..\SharedContent\media\microsoft-sdk.png">
@@ -20,7 +20,7 @@
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.15063.0" MaxVersionTested="10.0.17134.0" />
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17134.0" MaxVersionTested="10.0.17134.0" />
</Dependencies>
<Resources>
@@ -50,5 +50,7 @@
<Capabilities>
<Capability Name="internetClient" />
<DeviceCapability Name="pointOfService" />
<!-- Scenario 5 accesses the camera -->
<DeviceCapability Name="webcam" />
</Capabilities>
</Package>
@@ -25,11 +25,12 @@ Platform::Array<Scenario>^ MainPage::scenariosInner = ref new Platform::Array<Sc
{ "DataReceived Event", "SDKTemplate.Scenario1_BasicFunctionality" },
{ "Release/Retain Functionality", "SDKTemplate.Scenario2_MultipleScanners" },
{ "Active Symbologies", "SDKTemplate.Scenario3_ActiveSymbologies" },
{ "Symbology Attributes", "SDKTemplate.Scenario4_SymbologyAttributes" }
{ "Symbology Attributes", "SDKTemplate.Scenario4_SymbologyAttributes" },
{ "Displaying a Barcode Preview", "SDKTemplate.Scenario5_DisplayingBarcodePreview" }
};
task<BarcodeScanner^> DeviceHelpers::GetFirstBarcodeScannerAsync(PosConnectionTypes connectionTypes)
{
return DeviceHelpers::GetFirstDeviceAsync(BarcodeScanner::GetDeviceSelector(connectionTypes),
[](String^ id) { return create_task(BarcodeScanner::FromIdAsync(id)); });
}
}
Oops, something went wrong.

0 comments on commit fe8567f

Please sign in to comment.