Skip to content

Commit 972b2e1

Browse files
committed
feat(snacks): screen snapshot
1 parent 57f8f1b commit 972b2e1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

content/snacks/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,26 @@ Each Snack reveals NativeScript's power, from UI tricks to platform SDK usages t
418418
videoTitle:
419419
"Example of how to configure tab navigation with lots of options.",
420420
},
421+
{
422+
id: 23,
423+
title: "Screen Snapshot",
424+
href: "https://stackblitz.com/edit/nativescript-screen-snapshot?file=src%2Fhome.component.html",
425+
description:
426+
"Example of how to take a snapshot of any view on screen.",
427+
categories: [
428+
{
429+
title: "iOS CALayer render",
430+
href: "https://developer.apple.com/documentation/quartzcore/calayer/render(in:)",
431+
},
432+
{
433+
title: "Android createBitmap",
434+
href: "https://developer.android.com/reference/android/graphics/Bitmap#createBitmap(android.graphics.Bitmap,%20int,%20int,%20int,%20int)",
435+
},
436+
],
437+
videoUrl: "https://youtube.com/embed/ORp4y2tbJUA",
438+
videoTitle:
439+
"Screen Snapshot",
440+
},
421441
];
422442

423443
</script>

0 commit comments

Comments
 (0)