resumeControl method

  1. @override
Future<bool> resumeControl(
  1. Enum control, [
  2. bool safe = true
])
override

A method to either resume safe and therefore blocked or stopped control transmissions to a previously set internet address on the platform.

Returns true if the control is resumed, otherwise false.

Implementation

@override
Future<bool> resumeControl(Enum control, [bool safe = true]) {
  return methodChannel.invokeMethod(
    'resume_control',
    <String, dynamic>{
      'control': control.name,
      'safe': safe,
    },
  ).then<bool>((value) => value);
}