Skip to content

Commit 4ab2d3d

Browse files
authored
Merge pull request #870 from knocte/addMacOsInfo
macOS: fix Init API and add info to readme
2 parents 3e59a9e + aa8f70d commit 4ab2d3d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ZXing.Net.Mobile.Forms/Platform.macos.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace ZXing.Net.Mobile.Forms
3+
namespace ZXing.Net.Mobile.Forms.MacOS
44
{
55
public static class Platform
66
{

readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,21 @@ ZXing.Net.Mobile.Forms.WindowsUniversal.ZXingScannerViewRenderer.Init();
7878
If you notice that finishing scanning or pressing the back button is causing your Page to jump back further than you'd like, or if you're having trouble updating the UI of a Page after scanning is completed, you may need to set `NavigationCacheMode="Enabled"` within your Page's XAML `<Page ... />` element.
7979

8080

81+
##### macOS
82+
83+
In your `AppDelegate`'s `FinishedLaunching (..)` implementation, call:
84+
85+
```csharp
86+
ZXing.Net.Mobile.Forms.MacOS.Platform.Init();
87+
```
88+
89+
8190
### Features
8291
- Xamarin.iOS
8392
- Xamarin.Android
8493
- Tizen
8594
- UWP
95+
- Xamarin.Mac (rendering only, not scanning)
8696
- Simple API - Scan in as little as 2 lines of code!
8797
- Scanner as a View - UIView (iOS) / Fragment (Android) / Control (WP)
8898

0 commit comments

Comments
 (0)