Home

Awesome

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

Github Packages Registry

Platform Support

PlatformVersion
Xamarin.iOSiOS 8+
Xamarin.AndroidAPI 14+
Windows 10 UWP10+

Documentation

Get bytes[] from screenshot

using Plugin.Screenshot;

...

var stream = new MemoryStream(await CrossScreenshot.Current.CaptureAsync());
yourImage.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>
<key>NSPhotoLibraryAddUsageDescription</key>
	<string>This application needs your permission to save photos.</string>	

Created By: @Wilson Vargas

License

The MIT License (MIT), see LICENSE file.