initWithLeft method

Class: AccessibilityRegionByRectanglePlatform: ImagesLanguage: Objective-C SDK:

Create a region with a defined accessibility region type.

Syntax

Call syntax


AccessibilityRegionByRectangle* obj = [[AccessibilityRegionByRectangle alloc] initWithLeft  : left top: top width: width height: height regionType: type   ];

Declaration

(instancetype)initWithLeft:(NSInteger)left
                         top:(NSInteger)top
                       width:(NSInteger)width
                      height:(NSInteger)height
                  regionType:(AccessibilityRegionType)type

Parameters

left
Type:NSInteger
The coordinate of the left edge of a rectangular area whose accessibility is being defined.
top
Type:NSInteger
The coordinate of the top edge of a rectangular area whose accessibility is being defined.
width
Type:NSInteger
The width of the rectangular area whose accessibility is being defined.
height
Type:NSInteger
The height of the rectangular area whose accessibility is being defined.
type
Type:AccessibilityRegionType
The type of accessibility region defined by the rectangle.

Return value

Type: AccessibilityRegionByRectangle*

Remarks

For more information about the Contrast advisor feature see Contrast advisor