getShareStatus method

Future<String> getShareStatus()

Get the user's screen share status.
Return the share status of the user in the session.

Implementation

Future<String> getShareStatus() async {
  var params = <String, dynamic>{};
  params.putIfAbsent("userId", () => userId);

  return await methodChannel
      .invokeMethod<String>('getShareStatus', params)
      .then<String>((String? value) => value ?? "");
}