-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from prostopsih/PureNetCompatibility
feat: Add pure net to target frameworks
- Loading branch information
Showing
9 changed files
with
108 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.Maui.Graphics; | ||
|
||
namespace ZXing.Net.Maui | ||
{ | ||
public class BarcodeWriter : BarcodeWriter<NativePlatformImage> | ||
{ | ||
public Color ForegroundColor { get; set; } | ||
|
||
public Color BackgroundColor { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using Microsoft.Maui.Controls.PlatformConfiguration; | ||
using Microsoft.Maui.Controls; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ZXing.Net.Maui | ||
{ | ||
internal partial class CameraManager | ||
{ | ||
public NativePlatformCameraPreviewView CreateNativeView() | ||
{ | ||
return new NativePlatformCameraPreviewView(); | ||
} | ||
|
||
public void Connect() | ||
=> LogUnsupported(); | ||
|
||
public void Disconnect() | ||
=> LogUnsupported(); | ||
|
||
public void UpdateCamera() | ||
=> LogUnsupported(); | ||
|
||
public void UpdateTorch(bool on) | ||
=> LogUnsupported(); | ||
|
||
public void Focus(Microsoft.Maui.Graphics.Point point) | ||
=> LogUnsupported(); | ||
|
||
public void AutoFocus() | ||
=> LogUnsupported(); | ||
|
||
public void Dispose() | ||
=> LogUnsupported(); | ||
|
||
void LogUnsupported() | ||
=> Debug.WriteLine("Camera preview is not supported on this platform."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ZXing.Net.Maui | ||
{ | ||
public class NativePlatformCameraPreviewView | ||
{ | ||
} | ||
|
||
public class NativePlatformImageView | ||
{ | ||
} | ||
|
||
public class NativePlatformView | ||
{ | ||
} | ||
|
||
public class NativePlatformImage | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters