Skip to content

Latest commit

 

History

History
101 lines (81 loc) · 2.04 KB

File metadata and controls

101 lines (81 loc) · 2.04 KB
layout title description keywords needAutoGenerateSidebar noTitleIndex needGenerateH3Content breadcrumbText permalink
default-layout
iOS DrawingItem Class - Dynamsoft Camera Enhancer Documents
This is the documentation - iOS DrawingItem Class page of Dynamsoft Camera Enhancer.
Camera Enhancer, iOS, DrawingItem
true
true
true
iOS DrawingItem Class
/programming/ios/auxiliary-api/drawingitem-v3.0.3.html

DrawingItem

DrawingItem is the class for users to draw graphic items on the UI view.

@interface DrawingItem
Method Name Description
drawingStyleId Get the drawing style of the current DrawingItem.
state Set the state of the current DrawingItem.
getMediaType Get the media type of the current DrawingItem.

 

drawingStyleId

The property that identifies the ID of the DrawingStyle.

>- Objective-C >- Swift > >1. ```objc @property (assign, nonatomic) NSInteger drawingStyleId; ``` 2. ```swift var drawingStyleId: Int { get set } ```

 

state

The property that indicates the state of the DrawingItem. View all available DrawingItem states in [EnumDrawingItemState]({{ site.ios_camera_enhancer }}enum-drawing-item-state.html).

>- Objective-C >- Swift > >1. ```objc @property (assign, nonatomic) EnumDrawingItemState state; ``` 2. ```swift var state: EnumDrawingItemState { get set } ```

 

getMediaType

Get the media type of the DrawingItem.

>- Objective-C >- Swift > >1. ```objc - (EnumDrawingItemMediaType) getMediaType; ``` 2. ```swift func getMediaType() -> EnumDrawingItemMediaType ```

Return Value

The media type of the DrawingItem.

Code Snippet

>- Objective-C >- Swift > >1. ```objc EnumDrawingItemMediaType mediaType = [drawingItem getMediaType]; ``` 2. ```swift let mediaType = drawingItem.getMediaType() ```