setAutoReset method

  1. @override
Future<void> setAutoReset(
  1. bool isAutoReset
)
override

Set auto reset when application lifecycle changed

This method is useful for user change weather this plugin should auto reset brightness when application lifecycle changed.

(iOS only) implemented in iOS only because only iOS native side does not having reset method.

Implementation

@override
Future<void> setAutoReset(bool isAutoReset) async {
  await pluginMethodChannel
      .invokeMethod(methodNameSetAutoReset, {"isAutoReset": isAutoReset});
}