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
@property (assign, nonatomic) NSInteger drawingStyleId;
var drawingStyleId: Int { get set }
state
The property that indicates the state of the DrawingItem
. View all available DrawingItem
states in EnumDrawingItemState
.
- Objective-C
- Swift
@property (assign, nonatomic) EnumDrawingItemState state;
var state: EnumDrawingItemState { get set }
getMediaType
Get the media type of the DrawingItem
.
- Objective-C
- Swift
- (EnumDrawingItemMediaType) getMediaType;
func getMediaType() -> EnumDrawingItemMediaType
Return Value
The media type of the DrawingItem
.
Code Snippet
- Objective-C
- Swift
EnumDrawingItemMediaType mediaType = [drawingItem getMediaType];
let mediaType = drawingItem.getMediaType()