Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bulubuloa/SupportMediaXF

Take & Pick Photos Plugin for Xamarin Forms as same screen on all platform
https://github.com/bulubuloa/SupportMediaXF

Last synced: about 2 months ago
JSON representation

Take & Pick Photos Plugin for Xamarin Forms as same screen on all platform

Awesome Lists containing this project

README

        

# SupportMediaXF
Simple cross platform plugin to take photos or pick them from a gallery from shared code

### Available on NuGet:
![Build status](https://ci.appveyor.com/api/projects/status/7g3sppml9ewumr9i/branch/master?svg=true) [![NuGet Badge](https://buildstats.info/nuget/SupportMediaXF)](https://www.nuget.org/packages/SupportMediaXF/)

**Setup for iOS project**

Add to AppDelegate before LoadApplication
SupportMediaXFSetup.Initialize();

Add privacy to info.plist
- Privacy - Camera Usage Description
- Privacy - Photo Library Usage Description

**Setup for Android project**

Add to MainActivity before LoadApplication
SupportMediaXFSetup.Initialize(this);

Add permisison to manifest







Create new file_paths file in xml Resource then Add provider in application tag


## USAGE
1. Implements interface to your viewmodel to receive photos

**ISupportMediaResultListener**

2. Open Camera to Gallery by

**DependencyService.Get().IF_OpenCamera(this, new SyncPhotoOptions(), [Code Request]);**

### Configuration output

public class SyncPhotoOptions
{
public int Width { set; get; }
public int Height { set; get; }
public float Quality { set; get; }

public SyncPhotoOptions()
{
Width = 1280;
Height = 960;
Quality = 0.8f;
}
}

## SCREENSHOTS


Android








iOS