/// <summary> /// Creates the MLBarcodeScanner API instance on the native side. /// This must be called before any other native call. /// </summary> /// <param name="settings"> The initial settings for the barcode scanner to use. </param> /// <returns> MLResult indicating the success or failure of the operation. </returns> /// <exception cref="System.DllNotFoundException" /> /// <exception cref="System.EntryPointNotFoundException" /> private static MLResult.Code MLBarcodeScannerCreate(Settings settings) { var nativeSettings = NativeBindings.MLBarcodeScannerSettings.Create(settings); MLResult.Code resultCode = NativeBindings.MLBarcodeScannerCreate(nativeSettings, out Instance.Handle); return(resultCode); }