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: 16 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T10:09:37.000Z (almost 5 years ago)
- Last Synced: 2025-05-03T11:06:45.090Z (26 days ago)
- Language: C#
- Homepage: https://www.nuget.org/packages/SupportMediaXF/
- Size: 10.9 MB
- Stars: 31
- Watchers: 4
- 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:
 [](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
![]()
![]()
![]()