Skip to content

Commit 205a8c3

Browse files
committed
feat(snacks): hardware device volume in Vue 3
1 parent 74f9e8b commit 205a8c3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

content/snacks/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,25 @@ Each Snack reveals NativeScript's power, from UI tricks to platform SDK usages t
251251
videoUrl: "https://youtube.com/embed/bwgVIZSpZ00",
252252
videoTitle: "Enable large title displays for iOS Navigation",
253253
},
254+
{
255+
id: 17,
256+
title: "Hardware device volume",
257+
href: "https://stackblitz.com/edit/nativescript-device-volume?file=src%2Futils%2Fvolume.ts",
258+
description: "How to get the current device volume using NativeScript on iOS and Android.",
259+
categories: [
260+
{
261+
title: "iOS outputVolume",
262+
href: "https://developer.apple.com/documentation/avfaudio/avaudiosession/1616533-outputvolume?language=objc",
263+
},
264+
{
265+
title: "Android getStreamVolume",
266+
href: "https://developer.android.com/reference/android/media/AudioManager#getStreamVolume(int)",
267+
},
268+
{ title: "Vue", href: "https://nativescript-vue.org" },
269+
],
270+
videoUrl: "https://youtube.com/embed/1DR_9AZrMe4",
271+
videoTitle: "Adjusting hardware device volume with NativeScript",
272+
},
254273
// Not ready yet but will discuss with Dylan to update
255274
// {
256275
// id: 15,

0 commit comments

Comments
 (0)