Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
Take & Pick Photos Plugin for Xamarin Forms as same screen on all platform
- Host: GitHub
- URL: https://github.com/bulubuloa/SupportMediaXF
- Owner: bulubuloa
- Archived: true
- Created: 2018-10-12T10:04:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T10:09:37.000Z (over 4 years ago)
- Last Synced: 2024-07-06T15:21:03.594Z (4 months ago)
- Language: C#
- Homepage: https://www.nuget.org/packages/SupportMediaXF/
- Size: 10.9 MB
- Stars: 31
- Watchers: 5
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Support: SupportMediaXF.Droid/Properties/AssemblyInfo.cs
Awesome Lists containing this project
- awesome-xamarin - SupportMediaXF ★2 - Simple cross platform plugin to take photos or pick them from a gallery from shared code (Media)
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