Skip to content

zekiriabd/ScreenshotPlugin

 
 

Repository files navigation

Screenshot Plugin for Xamarin and Windows

A simple Screenshot plugin for Xamarin and Windows to get and save screenshot in yours apps.

Build status NuGet Donate

NuGet

Platform Support

Platform Version
Xamarin.iOS iOS 8+
Xamarin.Android API 14+
Windows 10 UWP 10+

Documentation

Get bytes[] from screenshot

using Plugin.Screenshot;

...

var stream = new MemoryStream(await CrossScreenshot.Current.CaptureAsync());
ImageData.Source = ImageSource.FromStream(() => stream);

Save Screenshot into Gallery Images and return path

using Plugin.Screenshot;

...

string path = await CrossScreenshot.Current.CaptureAndSaveAsync();

iOS setup

Add in your Info.plist

<key>NSPhotoLibraryUsageDescription</key>
  <string>This application needs your permission to save photos.</string>

Created By: @Wilson Vargas

License

The MIT License (MIT), see LICENSE file.

About

A simple Screenshot plugin for Xamarin and Windows to get and save screenshot in yours apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 63.5%
  • PowerShell 25.9%
  • Shell 10.4%
  • Batchfile 0.2%