A simple Screenshot plugin for Xamarin and Windows to get and save screenshot in yours apps.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 12 commits behind wilsonvargas:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
icon
nuget
sample
src
.gitignore
LICENSE
README.md
appveyor.yml
build.cake
build.ps1
build.sh
install-android-sdk.ps1

README.md

Screenshot Plugin for Xamarin and Windows

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

NuGet

Build Status

Build status: Build status

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

using Plugin.Screenshot;

...

await CrossScreenshot.Current.CaptureAndSaveAsync();

iOS setup

Add in your Info.plist

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

Created By: @Wilson Vargas

License

The MIT License (MIT), see LICENSE file.