setAttentionRegion method

  1. @override
Future<void> setAttentionRegion(
  1. Rect region
)
override

Implementation

@override
Future<void> setAttentionRegion(Rect region) async {
  Map<String, dynamic> arguments = {
    SeeSoPluginArgumentKey.ATTENTION_REGION_LEFT.name: region.left,
    SeeSoPluginArgumentKey.ATTENTION_REGION_TOP.name: region.top,
    SeeSoPluginArgumentKey.ATTENTION_REGION_RIGHT.name: region.right,
    SeeSoPluginArgumentKey.ATTENTION_REGION_BOTTOM.name: region.bottom
  };

  await methodChannel.invokeMethod(
      SeeSoPluginMethod.SET_ATTENTION_REGION.name, arguments);
}