C# ZXing.net.mobile横向扫描

C# ZXing.net.mobile横向扫描,c#,android,xamarin,zxing,C#,Android,Xamarin,Zxing,我使用了Zxing.Net.Mobile Nuget软件包。。。我已经将Auto rotate=false设置为可以扫描垂直条形码。问题是因为它开始纵向扫描,横向扫描是不可能的,方向也被锁定了。我想要一个选项来扫描锁定在横向。这是我的密码: Button scanbutton = FindViewById<Button>(Resource.Id.ScanButton); scanbutton.Click += async (sender,

我使用了Zxing.Net.Mobile Nuget软件包。。。我已经将Auto rotate=false设置为可以扫描垂直条形码。问题是因为它开始纵向扫描,横向扫描是不可能的,方向也被锁定了。我想要一个选项来扫描锁定在横向。这是我的密码:

               Button scanbutton = FindViewById<Button>(Resource.Id.ScanButton);
        scanbutton.Click += async (sender, e) =>
        {                
                var result = await _scanner.Scan(new MobileBarcodeScanningOptions
                {
                    AutoRotate = false,                   
                });
                if (result != null)
                {                   
                    await CallService();
                }
        };
Button scanbutton=findviewbyd(Resource.Id.scanbutton);
扫描按钮。单击+=异步(发送方,e)=>
{                
var结果=等待_scanner.Scan(新手机条码扫描选项
{
自动旋转=错误,
});
如果(结果!=null)
{                   
等待呼叫服务();
}
};

检查
TryHarder=true
内置
MobileBarcodeScanningOptions
是否适合您。如果激活,代码将旋转三次,并从所有90°角度进行检查。

有人知道如何找到CameraConfiguration类吗?只需补充一点,
TryHarder
现在已过时-因此请改用
barcodeReader.Options.TryHarder