Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
@enduco/nativescript-cscreenshot
Advanced tools
Readme
This plugin was created so you can take screenshots of views easily and then store it as you like.
this plugin is based on enchev's NativeScript Screenshot nativescript-screenshot but updated for better stability and angular, vue and react compatibility (still testing vue and react)
Use the install command:
tns plugin add @enduco/nativescript-cscreenshot
Just import the plugin in your project and use it like this
using Typescript:
import { Cscreenshot } from "@enduco/nativescript-cscreenshot";
import { ImageSource } from "@nativescript/core";
// then in your take a screenshot method
let screen = new Cscreenshot();
// Using vanilla Nativescript
let view = page.getViewById('main');
// Using Angular Nativescript
@ViewChild("main", { static: true }) main: ElementRef;
let view = this.view.nativeElement;
// Using Vue Nativescript
let view = this.$refs.main.nativeView;
screen.take(view, (image: ImageSource)=>{
// Do whatever you want with the returned source image
});
and in your template
<!-- Assign the reference name depending on the framework -->
<!-- 'id=""' for vanilla nativescript -->
<!-- '#main' for angular nativescript -->
<!-- 'ref="main"' for Vue nativescript -->
<GridLayout id="main" #main ref="main">
<!-- Content of your app here -->
</GridLayout>
Apache License Version 2.0, January 2004
FAQs
Your Take a View Screenshot Nativescript Plugin!
We found that @enduco/nativescript-cscreenshot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).