startAnnotation method
Start annotation and set render window
Parameter viewModel
Platform specified window object
Returns
- ResultCode.OK Success
- Others: Fail
Note Please make sure that annotation service is available before start annotation
开启标注并且设置显示窗口
Parameter viewModel
平台相关的窗口对象。
Returns
- ResultCode.OK: 成功
- Others: 失败
Note 开启标注前需要保证白板服务是正常的。
Implementation
@override
Future<ResultCode> startAnnotation(RtcSurfaceViewModel viewModel) {
return viewModel
.invokeCodeMethod('startAnnotation', {'annotationId': annotationId});
}