setInAppExcludedScreens method

  1. @override
Future<void> setInAppExcludedScreens(
  1. List<String> screens
)
override

Set the screens where in-app messages are not shown

Implementation

@override
Future<void> setInAppExcludedScreens(List<String> screens) async {
  try {
    await methodChannel.invokeMethod('setInAppExcludedScreens', {
      'screens': screens,
    });
  } on PlatformException catch (e) {
    throw GrovsException(
      e.message ?? 'Failed to set in-app excluded screens',
      code: e.code,
    );
  }
}