setForcedOrientation method

  1. @override
Future<bool> setForcedOrientation(
  1. EyedidDeviceOrientation orientation
)
override

Implementation

@override
Future<bool> setForcedOrientation(EyedidDeviceOrientation orientation) async {
  final methodName = EyedidMethodName.setForcedOrientation.name;
  Map<String, dynamic> argumentMap = {
    EyedidArgumentKey.orientation.name: orientation.name
  };
  final isResult =
      await methodChannel.invokeMethod<bool>(methodName, argumentMap);
  return isResult ?? false;
}