Rectangular Location Selection

Defined in framework ScanditDataCaptureCore

SDCRectangularLocationSelection
@interface SDCRectangularLocationSelection : NSObject <SDCLocationSelection>

Added in version 6.0.0

Location selection for selecting codes inside a rectangle centered on the point of interest. Any object that is fully inside the rectangle is returned, objects that are partially or entirely outside of the rectangle are filtered out.

+ locationSelectionWithSize:
+ (instancetype)locationSelectionWithSize:(SDCSizeWithUnit)size

Added in version 6.0.0

Creates a new rectangular location selection instance with the specified horizontal and vertical size. When the unit is relative (unit in either x or y is SDCMeasureUnitFraction) the size is computed relative to the view size minus the scan area margins.

+ locationSelectionWithWidth:aspectRatio:
+ (instancetype)locationSelectionWithWidth:(SDCFloatWithUnit)width
                               aspectRatio:(CGFloat)heightToWidthAspectRatio

Added in version 6.0.0

Creates a new rectangular location selection instance with the specified width and computes the height based on the provided height/width aspect ratio. When the unit is relative (SDCMeasureUnitFraction), the width is computed relative to the view size minus the scan area margins.

+ locationSelectionWithHeight:aspectRatio:
+ (instancetype)locationSelectionWithHeight:(SDCFloatWithUnit)height
                                aspectRatio:(CGFloat)widthToHeightAspectRatio

Added in version 6.0.0

Creates a new rectangular location selection instance with the specified height and computes the width based on the provided width/height aspect ratio. When the unit is relative (SDCMeasureUnitFraction), the height is computed relative to the view size minus the scan area margins.

sizeWithUnitAndAspect
@property (nonatomic, readonly) SDCSizeWithUnitAndAspect *sizeWithUnitAndAspect

Added in version 6.0.0

The size and sizing mode of the location selection.

JSONString
@property (nonatomic, nonnull, readonly) NSString *JSONString

Added in version 6.9.0

Returns the JSON representation of the location selection.