suppressProactiveContent method

  1. @override
Future<void> suppressProactiveContent(
  1. List<IntercomProactiveContentType> types
)
override

To suppress the given proactive content types (carousels, surveys) from being displayed.

All the proactive content types are visible by default. Pass an empty list to unsuppress all.

Implementation

@override
Future<void> suppressProactiveContent(
    List<IntercomProactiveContentType> types) async {
  await _channel.invokeMethod('suppressProactiveContent', {
    'types': types.map((type) => type.name).toList(),
  });
}