VIA.Umi.Android
1.5.0
Requires NuGet 2.8.1 or higher.
dotnet add package VIA.Umi.Android --version 1.5.0
NuGet\Install-Package VIA.Umi.Android -Version 1.5.0
<PackageReference Include="VIA.Umi.Android" Version="1.5.0" />
paket add VIA.Umi.Android --version 1.5.0
#r "nuget: VIA.Umi.Android, 1.5.0"
// Install VIA.Umi.Android as a Cake Addin #addin nuget:?package=VIA.Umi.Android&version=1.5.0 // Install VIA.Umi.Android as a Cake Tool #tool nuget:?package=VIA.Umi.Android&version=1.5.0
Introduction
Umi wrapper for Xamarin.Forms. Get started immediately or check out the demo first.
Related projects
- Umi - Web version and demo projects
- Umi Android - Android wrapper
- Umi iOS - Swift wrapper
Requirements
Installation
- Install VIA.Umi
- Install VIA.Umi.iOS
- Install VIA.Umi.Android
Initialize iOS
Go to appDelegate.cs
in your iOS project and initialize the HybridWebViewRenderer with HybridWebViewRenderer.Initialize();
.
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
// Init.
HybridWebViewRenderer.Initialize();
global::Xamarin.Forms.Forms.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
Initialize Android
Go to MainActivity.cs
in your Android project and initialize the HybridWebViewRenderer with HybridWebViewRenderer.Initialize();
.
protected override void OnCreate(Bundle savedInstanceState)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.OnCreate(savedInstanceState);
HybridWebViewRenderer.Initialize();
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
}
Basic usage
Contribute
Build project with CLI
Navigate to this repository.
cd ${repositoryPath}
<br/>
Run Nuget.sh
sh Nuget.sh
Option 1: Use DLL's
Are build and ready to be referenced.
- Forms:
${repositoryPath}/bin/Release/netstandard2.0/Umi.dll
- Forms.iOS:
${repositoryPath}/bin/Release/Umi.iOS.dll
- Forms.Android:
${repositoryPath}/bin/Release/VIA.Umi.Android.dll
Option 2: Use Local NuGet
<b>Note:</b> Local NuGets are cached so when using them run
nuget locals all -clear
nuget restore ${projectName}.sln
first. Else chances are you are not using the latest NuGet.
License
FAQ
https://medium.com/@lukaszlawicki/lets-make-a-net-standard-package-logbook-2-78cfe457e236
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid70 is compatible. |
-
- VIA.Umi (>= 1.4.2)
- Xamarin.Forms (>= 5.0.0.2012)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
[1.5.0]
- Serializer Fix