RtcAnnotation class
The RtcAnnotation class.
- Mixed-in types
Properties
- annotationId → String
-
The ID of RtcAnnotation
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearContents(
) → Future< ResultCode> -
Clear annotation content
override
-
clearUserContents(
String userId) → Future< ResultCode> -
Clear annotation content by specific user ID
override
-
getToolType(
) → Future< WBToolType> -
get tool type
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
redo(
) → Future< ResultCode> -
Redo
override
-
setAspectSize(
int w, int h) → Future< ResultCode> -
set annotation area aspect size
override
-
setColor(
WBColor color) → Future< ResultCode> -
Set color
override
-
setEventHandler(
AnnotationEventHandler handler) → void - Sets the annotation event handler.
-
setFillColor(
WBColor color) → Future< ResultCode> -
Set fill color
override
-
setFillType(
WBFillType type) → Future< ResultCode> -
Set fill type
override
-
setFontSize(
int size) → Future< ResultCode> -
Set font size
override
-
setFontStyle(
WBFontStyle style) → Future< ResultCode> -
Set font style
override
-
setLineWidth(
int size) → Future< ResultCode> -
Set line width
override
-
setOption(
dynamic option, AnnoOptionType type) → Future< ResultCode> -
Set annotation option and paramters
override
-
setRoleType(
WBRoleType type) → Future< ResultCode> -
Set annotation role type.
override
-
setScalingMode(
VideoScalingMode mode) → Future< ResultCode> -
set annotation area scaling mode
override
-
setToolType(
WBToolType type) → Future< ResultCode> -
Set tool type
override
-
setVisible(
bool visible) → Future< ResultCode> -
Set annotation view visible/invisible.
override
-
snapshot(
String outputDir) → Future< ResultCode> -
Save annotation contents to image.
override
-
startAnnotation(
RtcSurfaceViewModel viewModel) → Future< ResultCode> -
Start annotation and set render window
override
-
stopAnnotation(
) → Future< ResultCode> -
Stop the annotation.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
undo(
) → Future< ResultCode> -
Undo
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited