Class Utils
- Namespace
- IO.Scanbot.Sdk.Util.Snap
- Assembly
- BarcodeSDK.NET.Droid.dll
[Register("io/scanbot/sdk/util/snap/Utils", DoNotGenerateAcw = true)]
public sealed class Utils : Object, IJavaObject, IJavaPeerable, IDisposable
- Inheritance
-
Utils
- Implements
-
- Inherited Members
-
Fields
A
[Register("a")]
public const double A = 0.1
Field Value
- double
Properties
Instance
[Register("INSTANCE")]
public static Utils Instance { get; }
Property Value
- Utils
Methods
EnableAutoFocus(Parameters)
[Register("enableAutoFocus", "(Landroid/hardware/Camera$Parameters;)V", "")]
public static void EnableAutoFocus(Camera.Parameters parameters)
Parameters
parameters
Camera.Parameters
EnableContinuousFocus(Parameters)
[Register("enableContinuousFocus", "(Landroid/hardware/Camera$Parameters;)V", "")]
public static void EnableContinuousFocus(Camera.Parameters parameters)
Parameters
parameters
Camera.Parameters
FindByWidthAndHeight(Parameters, int, int)
[Register("findByWidthAndHeight", "(Landroid/hardware/Camera$Parameters;II)Landroid/hardware/Camera$Size;", "")]
public static Camera.Size FindByWidthAndHeight(Camera.Parameters parameters, int width, int height)
Parameters
parameters
Camera.Parameters
width
int
height
int
Returns
- Camera.Size
GetBestAspectPictureSize(int, int, int, Parameters, double)
[Register("getBestAspectPictureSize", "(IIILandroid/hardware/Camera$Parameters;D)Landroid/hardware/Camera$Size;", "")]
public static Camera.Size GetBestAspectPictureSize(int displayOrientation, int width, int height, Camera.Parameters parameters, double closeEnough)
Parameters
displayOrientation
int
width
int
height
int
parameters
Camera.Parameters
closeEnough
double
Returns
- Camera.Size
GetLargestPictureSize(Parameters)
[Register("getLargestPictureSize", "(Landroid/hardware/Camera$Parameters;)Landroid/hardware/Camera$Size;", "")]
public static Camera.Size GetLargestPictureSize(Camera.Parameters parameters)
Parameters
parameters
Camera.Parameters
Returns
- Camera.Size
GetLargestSizeWithAspectRatioMatch(IList<Size>, double)
[Register("getLargestSizeWithAspectRatioMatch", "(Ljava/util/List;D)Landroid/hardware/Camera$Size;", "")]
public static Camera.Size GetLargestSizeWithAspectRatioMatch(IList<Camera.Size> sizes, double targetAspect)
Parameters
sizes
IList<Camera.Size>
targetAspect
double
Returns
- Camera.Size
IsFlashSupported(Parameters)
[Register("isFlashSupported", "(Landroid/hardware/Camera$Parameters;)Z", "")]
public static bool IsFlashSupported(Camera.Parameters parameters)
Parameters
parameters
Camera.Parameters
Returns
- bool