-
Notifications
You must be signed in to change notification settings - Fork 24
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 #34 from BlinkID/release/v4.10.0
Release/v4.10.0
- Loading branch information
Showing
101 changed files
with
3,438 additions
and
1,169 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
Git LFS file not shown
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
24 changes: 24 additions & 0 deletions
24
...ms/BlinkID.Forms/BlinkID.Forms.Android/Overlays/Implementations/BlinkIdOverlaySettings.cs
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 Microblink.Forms.Droid.Overlays; | ||
using Microblink.Forms.Droid.Recognizers; | ||
using Microblink.Forms.Core.Overlays; | ||
using Microblink.Forms.Core.Recognizers; | ||
using Com.Microblink.Uisettings; | ||
|
||
[assembly: Xamarin.Forms.Dependency(typeof(BlinkIdOverlaySettingsFactory))] | ||
namespace Microblink.Forms.Droid.Overlays | ||
{ | ||
public sealed class BlinkIdOverlaySettings : OverlaySettings, IBlinkIdOverlaySettings | ||
{ | ||
public BlinkIdOverlaySettings(IRecognizerCollection recognizerCollection) | ||
: base(new BlinkIdUISettings((recognizerCollection as RecognizerCollection).NativeRecognizerBundle), recognizerCollection) | ||
{} | ||
} | ||
|
||
public sealed class BlinkIdOverlaySettingsFactory : IBlinkIdOverlaySettingsFactory | ||
{ | ||
public IBlinkIdOverlaySettings CreateBlinkIdOverlaySettings(IRecognizerCollection recognizerCollection) | ||
{ | ||
return new BlinkIdOverlaySettings(recognizerCollection); | ||
} | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
...nkID.Forms/BlinkID.Forms.Android/Recognizers/Implementations/BlinkIdCombinedRecognizer.cs
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,87 @@ | ||
using Microblink.Forms.Droid.Recognizers; | ||
using Microblink.Forms.Core.Recognizers; | ||
|
||
[assembly: Xamarin.Forms.Dependency(typeof(BlinkIdCombinedRecognizer))] | ||
namespace Microblink.Forms.Droid.Recognizers | ||
{ | ||
public sealed class BlinkIdCombinedRecognizer : Recognizer, IBlinkIdCombinedRecognizer | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer nativeRecognizer; | ||
|
||
BlinkIdCombinedRecognizerResult result; | ||
|
||
public BlinkIdCombinedRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer()) | ||
{ | ||
nativeRecognizer = NativeRecognizer as Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer; | ||
result = new BlinkIdCombinedRecognizerResult(nativeRecognizer.GetResult() as Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer.Result); | ||
} | ||
|
||
public override IRecognizerResult BaseResult => result; | ||
|
||
public IBlinkIdCombinedRecognizerResult Result => result; | ||
|
||
|
||
public uint FaceImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FaceImageDpi; | ||
set => nativeRecognizer.FaceImageDpi = (int)value; | ||
} | ||
|
||
public uint FullDocumentImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FullDocumentImageDpi; | ||
set => nativeRecognizer.FullDocumentImageDpi = (int)value; | ||
} | ||
|
||
public IImageExtensionFactors FullDocumentImageExtensionFactors | ||
{ | ||
get => new ImageExtensionFactors(nativeRecognizer.FullDocumentImageExtensionFactors); | ||
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors; | ||
} | ||
|
||
public bool ReturnFaceImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFaceImage(); | ||
set => nativeRecognizer.SetReturnFaceImage(value); | ||
} | ||
|
||
public bool ReturnFullDocumentImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFullDocumentImage(); | ||
set => nativeRecognizer.SetReturnFullDocumentImage(value); | ||
} | ||
|
||
public bool SignResult | ||
{ | ||
get => nativeRecognizer.ShouldSignResult(); | ||
set => nativeRecognizer.SetSignResult(value); | ||
} | ||
|
||
} | ||
|
||
public sealed class BlinkIdCombinedRecognizerResult : RecognizerResult, IBlinkIdCombinedRecognizerResult | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer.Result nativeResult; | ||
|
||
internal BlinkIdCombinedRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdCombinedRecognizer.Result nativeResult) : base(nativeResult) | ||
{ | ||
this.nativeResult = nativeResult; | ||
} | ||
public string Address => nativeResult.Address; | ||
public IDate DateOfBirth => nativeResult.DateOfBirth.Date != null ? new Date(nativeResult.DateOfBirth.Date) : null; | ||
public IDate DateOfExpiry => nativeResult.DateOfExpiry.Date != null ? new Date(nativeResult.DateOfExpiry.Date) : null; | ||
public IDate DateOfIssue => nativeResult.DateOfIssue.Date != null ? new Date(nativeResult.DateOfIssue.Date) : null; | ||
public byte[] DigitalSignature => nativeResult.GetDigitalSignature(); | ||
public uint DigitalSignatureVersion => (uint)nativeResult.DigitalSignatureVersion; | ||
public bool DocumentDataMatch => nativeResult.IsDocumentDataMatch; | ||
public string DocumentNumber => nativeResult.DocumentNumber; | ||
public IDriverLicenseDetailedInfo DriverLicenseDetailedInfo => new DriverLicenseDetailedInfo(nativeResult.DriverLicenseDetailedInfo); | ||
public Xamarin.Forms.ImageSource FaceImage => nativeResult.FaceImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FaceImage.ConvertToBitmap()) : null; | ||
public string FirstName => nativeResult.FirstName; | ||
public Xamarin.Forms.ImageSource FullDocumentImage => nativeResult.FullDocumentImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentImage.ConvertToBitmap()) : null; | ||
public string FullName => nativeResult.FullName; | ||
public string LastName => nativeResult.LastName; | ||
public bool ScanningFirstSideDone => nativeResult.IsScanningFirstSideDone; | ||
public string Sex => nativeResult.Sex; | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
...orms/BlinkID.Forms/BlinkID.Forms.Android/Recognizers/Implementations/BlinkIdRecognizer.cs
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,77 @@ | ||
using Microblink.Forms.Droid.Recognizers; | ||
using Microblink.Forms.Core.Recognizers; | ||
|
||
[assembly: Xamarin.Forms.Dependency(typeof(BlinkIdRecognizer))] | ||
namespace Microblink.Forms.Droid.Recognizers | ||
{ | ||
public sealed class BlinkIdRecognizer : Recognizer, IBlinkIdRecognizer | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer nativeRecognizer; | ||
|
||
BlinkIdRecognizerResult result; | ||
|
||
public BlinkIdRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer()) | ||
{ | ||
nativeRecognizer = NativeRecognizer as Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer; | ||
result = new BlinkIdRecognizerResult(nativeRecognizer.GetResult() as Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer.Result); | ||
} | ||
|
||
public override IRecognizerResult BaseResult => result; | ||
|
||
public IBlinkIdRecognizerResult Result => result; | ||
|
||
|
||
public uint FaceImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FaceImageDpi; | ||
set => nativeRecognizer.FaceImageDpi = (int)value; | ||
} | ||
|
||
public uint FullDocumentImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FullDocumentImageDpi; | ||
set => nativeRecognizer.FullDocumentImageDpi = (int)value; | ||
} | ||
|
||
public IImageExtensionFactors FullDocumentImageExtensionFactors | ||
{ | ||
get => new ImageExtensionFactors(nativeRecognizer.FullDocumentImageExtensionFactors); | ||
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors; | ||
} | ||
|
||
public bool ReturnFaceImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFaceImage(); | ||
set => nativeRecognizer.SetReturnFaceImage(value); | ||
} | ||
|
||
public bool ReturnFullDocumentImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFullDocumentImage(); | ||
set => nativeRecognizer.SetReturnFullDocumentImage(value); | ||
} | ||
|
||
} | ||
|
||
public sealed class BlinkIdRecognizerResult : RecognizerResult, IBlinkIdRecognizerResult | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer.Result nativeResult; | ||
|
||
internal BlinkIdRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Generic.BlinkIdRecognizer.Result nativeResult) : base(nativeResult) | ||
{ | ||
this.nativeResult = nativeResult; | ||
} | ||
public string Address => nativeResult.Address; | ||
public IDate DateOfBirth => nativeResult.DateOfBirth.Date != null ? new Date(nativeResult.DateOfBirth.Date) : null; | ||
public IDate DateOfExpiry => nativeResult.DateOfExpiry.Date != null ? new Date(nativeResult.DateOfExpiry.Date) : null; | ||
public IDate DateOfIssue => nativeResult.DateOfIssue.Date != null ? new Date(nativeResult.DateOfIssue.Date) : null; | ||
public string DocumentNumber => nativeResult.DocumentNumber; | ||
public IDriverLicenseDetailedInfo DriverLicenseDetailedInfo => new DriverLicenseDetailedInfo(nativeResult.DriverLicenseDetailedInfo); | ||
public Xamarin.Forms.ImageSource FaceImage => nativeResult.FaceImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FaceImage.ConvertToBitmap()) : null; | ||
public string FirstName => nativeResult.FirstName; | ||
public Xamarin.Forms.ImageSource FullDocumentImage => nativeResult.FullDocumentImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentImage.ConvertToBitmap()) : null; | ||
public string FullName => nativeResult.FullName; | ||
public string LastName => nativeResult.LastName; | ||
public string Sex => nativeResult.Sex; | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
...D.Forms/BlinkID.Forms.Android/Recognizers/Implementations/NigeriaVoterIdBackRecognizer.cs
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,66 @@ | ||
using Microblink.Forms.Droid.Recognizers; | ||
using Microblink.Forms.Core.Recognizers; | ||
|
||
[assembly: Xamarin.Forms.Dependency(typeof(NigeriaVoterIdBackRecognizer))] | ||
namespace Microblink.Forms.Droid.Recognizers | ||
{ | ||
public sealed class NigeriaVoterIdBackRecognizer : Recognizer, INigeriaVoterIdBackRecognizer | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer nativeRecognizer; | ||
|
||
NigeriaVoterIdBackRecognizerResult result; | ||
|
||
public NigeriaVoterIdBackRecognizer() : base(new Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer()) | ||
{ | ||
nativeRecognizer = NativeRecognizer as Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer; | ||
result = new NigeriaVoterIdBackRecognizerResult(nativeRecognizer.GetResult() as Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer.Result); | ||
} | ||
|
||
public override IRecognizerResult BaseResult => result; | ||
|
||
public INigeriaVoterIdBackRecognizerResult Result => result; | ||
|
||
|
||
public bool DetectGlare | ||
{ | ||
get => nativeRecognizer.ShouldDetectGlare(); | ||
set => nativeRecognizer.SetDetectGlare(value); | ||
} | ||
|
||
public uint FullDocumentImageDpi | ||
{ | ||
get => (uint)nativeRecognizer.FullDocumentImageDpi; | ||
set => nativeRecognizer.FullDocumentImageDpi = (int)value; | ||
} | ||
|
||
public IImageExtensionFactors FullDocumentImageExtensionFactors | ||
{ | ||
get => new ImageExtensionFactors(nativeRecognizer.FullDocumentImageExtensionFactors); | ||
set => nativeRecognizer.FullDocumentImageExtensionFactors = (value as ImageExtensionFactors).NativeImageExtensionFactors; | ||
} | ||
|
||
public bool ReturnFullDocumentImage | ||
{ | ||
get => nativeRecognizer.ShouldReturnFullDocumentImage(); | ||
set => nativeRecognizer.SetReturnFullDocumentImage(value); | ||
} | ||
|
||
} | ||
|
||
public sealed class NigeriaVoterIdBackRecognizerResult : RecognizerResult, INigeriaVoterIdBackRecognizerResult | ||
{ | ||
Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer.Result nativeResult; | ||
|
||
internal NigeriaVoterIdBackRecognizerResult(Com.Microblink.Entities.Recognizers.Blinkid.Nigeria.NigeriaVoterIdBackRecognizer.Result nativeResult) : base(nativeResult) | ||
{ | ||
this.nativeResult = nativeResult; | ||
} | ||
public string Address => nativeResult.Address; | ||
public IDate DateOfBirth => nativeResult.DateOfBirth.Date != null ? new Date(nativeResult.DateOfBirth.Date) : null; | ||
public string FirstName => nativeResult.FirstName; | ||
public Xamarin.Forms.ImageSource FullDocumentImage => nativeResult.FullDocumentImage != null ? Utils.ConvertAndroidBitmap(nativeResult.FullDocumentImage.ConvertToBitmap()) : null; | ||
public string RawBarcodeData => nativeResult.RawBarcodeData; | ||
public string Sex => nativeResult.Sex; | ||
public string Surname => nativeResult.Surname; | ||
} | ||
} |
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
Oops, something went wrong.