isShareLocked method

  1. @override
Future<bool> isShareLocked()

Determine whether sharing the view or screen is locked.
Return true indicates that sharing is locked, otherwise false.

Implementation

@override
Future<bool> isShareLocked() async {
  return await methodChannel
      .invokeMethod<bool>('isShareLocked')
      .then<bool>((bool? value) => value ?? false);
}