SupportMediaXF 1.0.0
dotnet add package SupportMediaXF --version 1.0.0
NuGet\Install-Package SupportMediaXF -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SupportMediaXF" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SupportMediaXF --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SupportMediaXF, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SupportMediaXF as a Cake Addin #addin nuget:?package=SupportMediaXF&version=1.0.0 // Install SupportMediaXF as a Cake Tool #tool nuget:?package=SupportMediaXF&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SupportMediaXF
Simple cross platform plugin to take photos or pick them from a gallery from shared code
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
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera2.full" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
Create new file_paths file in xml Resource then Add provider in application tag
<provider android:authorities="[Your application package]"
android:exported="false"
android:grantUriPermissions="true"
android:name="android.support.v4.content.FileProvider">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
</provider>
USAGE
Implements interface to your viewmodel to receive photos
ISupportMediaResultListener
Open Camera to Gallery by
DependencyService.Get<ISupportMedia>().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;
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. monoandroid81 is compatible. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. xamarinios10 is compatible. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Xamarin.Forms (>= 3.2.0.871581)
-
MonoAndroid 8.1
- No dependencies.
-
Xamarin.iOS 1.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 961 | 10/23/2018 |