getShareAnnotation method

  1. @override
Future<RtcAnnotation?> getShareAnnotation(
  1. String userId
)
override

Get share annotation object.

Parameter userId User ID

Returns

  • non-null: a pointer to the share annotation object
  • others: Failure

获取共享标注对象

Parameter userId 用户ID

Returns

  • 非空指针: 指向共享标注对象的指针。
  • 空指针: 失败

Implementation

@override
Future<RtcAnnotation?> getShareAnnotation(String userId) async {
  var annotationId =
      await _invokeMethod('getShareAnnotation', {'userId': userId}) as String;
  if (annotationId.isNotEmpty) {
    annotations[annotationId] ??= RtcAnnotation(annotationId);
    return annotations[annotationId];
  }
  return null;
}