Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Updates iOS Bindings to v.28
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardocolombo committed Mar 2, 2021
1 parent a098cd7 commit eb2890e
Show file tree
Hide file tree
Showing 7 changed files with 5,681 additions and 5,747 deletions.
62 changes: 29 additions & 33 deletions BindingSource/AnylineXamarinSDK.iOS/ApiDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1105,13 +1105,9 @@ interface ALCoreController
[NullAllowed, Export("delegate", ArgumentSemantic.Weak)]
NSObject WeakDelegate { get; set; }

// -(instancetype _Nullable)initWithLicenseKey:(NSString * _Nonnull)licenseKey;
[Export("initWithLicenseKey:")]
IntPtr Constructor(string licenseKey);

// -(instancetype _Nullable)initWithLicenseKey:(NSString * _Nonnull)licenseKey delegate:(id<ALCoreControllerDelegate> _Nullable)delegate;
[Export("initWithLicenseKey:delegate:")]
IntPtr Constructor(string licenseKey, [NullAllowed] NSObject @delegate);
// -(instancetype _Nullable)initWithDelegate:(id<ALCoreControllerDelegate> _Nullable)delegate error:(NSError * _Nullable * _Nullable)error;
[Export ("initWithDelegate:error:")]
IntPtr Constructor ([NullAllowed] NSObject @delegate, [NullAllowed] out NSError error);

// -(BOOL)loadScript:(NSString * _Nonnull)script bundlePath:(NSString * _Nonnull)bundlePath error:(NSError * _Nullable * _Nullable)error;
[Export("loadScript:bundlePath:error:")]
Expand Down Expand Up @@ -1169,11 +1165,11 @@ interface ALCoreController

string BuildNumber { get; }

// +(NSString * _Nullable)licenseExpirationDateForLicense:(NSString * _Nullable)licenseKey error:(NSError * _Nullable * _Nullable)error;
// +(NSString * _Nullable)licenseExpirationDateForLicense:(NSString * _Nonnull)licenseKey;
[Static]
[Export("licenseExpirationDateForLicense:error:")]
[Export ("licenseExpirationDateForLicense:")]
[return: NullAllowed]
string LicenseExpirationDateForLicense([NullAllowed] string licenseKey, [NullAllowed] out NSError error);
string LicenseExpirationDateForLicense (string licenseKey);

// +(NSBundle * _Nonnull)frameworkBundle;
[Static]
Expand Down Expand Up @@ -1683,11 +1679,11 @@ interface ALAbstractScanViewPlugin : IALInfoDelegate
[NullAllowed, Export("scanViewPluginConfig", ArgumentSemantic.Copy)]
ALScanViewPluginConfig ScanViewPluginConfig { get; set; }

// +(instancetype _Nullable)scanViewPluginForConfigDict:(NSDictionary * _Nonnull)configDict licenseKey:(NSString * _Nonnull)licenseKey delegate:(id _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
// +(instancetype _Nullable)scanViewPluginForConfigDict:(NSDictionary * _Nonnull)configDict delegate:(id _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
[Static]
[Export("scanViewPluginForConfigDict:licenseKey:delegate:error:")]
[Export ("scanViewPluginForConfigDict:delegate:error:")]
[return: NullAllowed]
ALAbstractScanViewPlugin ScanViewPluginForConfigDict(NSDictionary configDict, string licenseKey, NSObject @delegate, [NullAllowed] out NSError error);
ALAbstractScanViewPlugin ScanViewPluginForConfigDict (NSDictionary configDict, NSObject @delegate, [NullAllowed] out NSError error);

// -(BOOL)startAndReturnError:(NSError * _Nullable * _Nullable)error;
[Export("startAndReturnError:")]
Expand Down Expand Up @@ -1886,15 +1882,15 @@ interface ALScanView

// +(instancetype _Nullable)scanViewForFrame:(CGRect)frame configPath:(NSString * _Nonnull)configPath delegate:(id _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
[Static]
[Export("scanViewForFrame:configPath:delegate:error:")]
[Export ("scanViewForFrame:configPath:delegate:error:")]
[return: NullAllowed]
ALScanView ScanViewForFrame(CGRect frame, string configPath, NSObject @delegate, [NullAllowed] out NSError error);
ALScanView ScanViewForFrame (CGRect frame, string configPath, NSObject @delegate, [NullAllowed] out NSError error);

// +(instancetype _Nullable)scanViewForFrame:(CGRect)frame configDict:(NSDictionary * _Nonnull)configDict licenseKey:(NSString * _Nonnull)licenseKey delegate:(id _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
// +(instancetype _Nullable)scanViewForFrame:(CGRect)frame configDict:(NSDictionary * _Nonnull)configDict delegate:(id _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
[Static]
[Export("scanViewForFrame:configDict:licenseKey:delegate:error:")]
[Export ("scanViewForFrame:configDict:delegate:error:")]
[return: NullAllowed]
ALScanView ScanViewForFrame(CGRect frame, NSDictionary configDict, string licenseKey, NSObject @delegate, [NullAllowed] out NSError error);
ALScanView ScanViewForFrame (CGRect frame, NSDictionary configDict, NSObject @delegate, [NullAllowed] out NSError error);

// -(void)startCamera;
[Export("startCamera")]
Expand Down Expand Up @@ -1949,9 +1945,9 @@ interface ALEnergyResult
[DisableDefaultCtor]
interface ALMeterScanPlugin
{
// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID licenseKey:(NSString * _Nonnull)licenseKey delegate:(id<ALMeterScanPluginDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
[Export("initWithPluginID:licenseKey:delegate:error:")]
IntPtr Constructor([NullAllowed] string pluginID, string licenseKey, NSObject @delegate, [NullAllowed] out NSError error);
// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID delegate:(id<ALMeterScanPluginDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
[Export ("initWithPluginID:delegate:error:")]
IntPtr Constructor ([NullAllowed] string pluginID, NSObject @delegate, [NullAllowed] out NSError error);

// @property (readonly, nonatomic, strong) NSHashTable<ALMeterScanPluginDelegate> * _Nullable delegates;
[NullAllowed, Export("delegates", ArgumentSemantic.Strong)]
Expand Down Expand Up @@ -2123,9 +2119,9 @@ interface ALBarcode
[DisableDefaultCtor]
interface ALBarcodeScanPlugin
{
// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID licenseKey:(NSString * _Nonnull)licenseKey delegate:(id<ALBarcodeScanPluginDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
[Export("initWithPluginID:licenseKey:delegate:error:")]
IntPtr Constructor([NullAllowed] string pluginID, string licenseKey, NSObject @delegate, [NullAllowed] out NSError error);
// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID delegate:(id<ALBarcodeScanPluginDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
[Export ("initWithPluginID:delegate:error:")]
IntPtr Constructor ([NullAllowed] string pluginID, NSObject @delegate, [NullAllowed] out NSError error);

// @property (readonly, nonatomic, strong) NSHashTable<ALBarcodeScanPluginDelegate> * _Nullable delegates;
[NullAllowed, Export ("delegates", ArgumentSemantic.Strong)]
Expand Down Expand Up @@ -3408,9 +3404,9 @@ interface ALTINConfig
[DisableDefaultCtor]
interface ALOCRScanPlugin
{
// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID licenseKey:(NSString * _Nonnull)licenseKey delegate:(id<ALOCRScanPluginDelegate> _Nonnull)delegate ocrConfig:(ALOCRConfig * _Nonnull)ocrConfig error:(NSError * _Nullable * _Nullable)error;
[Export("initWithPluginID:licenseKey:delegate:ocrConfig:error:")]
IntPtr Constructor([NullAllowed] string pluginID, string licenseKey, NSObject @delegate, ALOCRConfig ocrConfig, [NullAllowed] out NSError error);
// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID delegate:(id<ALOCRScanPluginDelegate> _Nonnull)delegate ocrConfig:(ALBaseOCRConfig * _Nonnull)ocrConfig error:(NSError * _Nullable * _Nullable)error;
[Export ("initWithPluginID:delegate:ocrConfig:error:")]
IntPtr Constructor ([NullAllowed] string pluginID, NSObject @delegate, ALBaseOCRConfig ocrConfig, [NullAllowed] out NSError error);

// @property (readonly, nonatomic, strong) NSHashTable<ALOCRScanPluginDelegate> * _Nullable delegates;
[NullAllowed, Export("delegates", ArgumentSemantic.Strong)]
Expand Down Expand Up @@ -3534,10 +3530,10 @@ interface ALDocumentScanPlugin
[Export("justDetectCornersIfPossible")]
bool JustDetectCornersIfPossible { get; set; }

// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID licenseKey:(NSString * _Nonnull)licenseKey delegate:(id<ALDocumentScanPluginDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error __attribute__((objc_designated_initializer));
[Export("initWithPluginID:licenseKey:delegate:error:")]
// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID delegate:(id<ALDocumentScanPluginDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error __attribute__((objc_designated_initializer));
[Export ("initWithPluginID:delegate:error:")]
[DesignatedInitializer]
IntPtr Constructor([NullAllowed] string pluginID, string licenseKey, NSObject @delegate, [NullAllowed] out NSError error);
IntPtr Constructor ([NullAllowed] string pluginID, NSObject @delegate, [NullAllowed] out NSError error);

// -(BOOL)start:(id<ALImageProvider> _Nonnull)imageProvider error:(NSError * _Nullable * _Nullable)error;
[Export("start:error:")]
Expand Down Expand Up @@ -3673,10 +3669,10 @@ interface ALLicensePlateResult
[DisableDefaultCtor]
interface ALLicensePlateScanPlugin
{
// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID licenseKey:(NSString * _Nonnull)licenseKey delegate:(id<ALLicensePlateScanPluginDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error __attribute__((objc_designated_initializer));
[Export("initWithPluginID:licenseKey:delegate:error:")]
// -(instancetype _Nullable)initWithPluginID:(NSString * _Nullable)pluginID delegate:(id<ALLicensePlateScanPluginDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error __attribute__((objc_designated_initializer));
[Export ("initWithPluginID:delegate:error:")]
[DesignatedInitializer]
IntPtr Constructor([NullAllowed] string pluginID, string licenseKey, NSObject @delegate, [NullAllowed] out NSError error);
IntPtr Constructor ([NullAllowed] string pluginID, NSObject @delegate, [NullAllowed] out NSError error);

// @property (readonly, assign, nonatomic) ALLicensePlateScanMode scanMode;
[Export ("scanMode", ArgumentSemantic.Assign)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("28.1.0")]
[assembly: AssemblyVersion("28.1.1")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
Expand Down
Loading

0 comments on commit eb2890e

Please sign in to comment.