setContentSensitivity method

Future<void> setContentSensitivity(
  1. ContentSensitivity contentSensitivity
)

Sets content sensitivity level of the app window (Android View) that contains the app's widget tree to the level specified by contentSensitivity via a call to the native embedder.

Implementation

Future<void> setContentSensitivity(ContentSensitivity contentSensitivity) async {
  await sensitiveContentChannel.invokeMethod<void>(
    'SensitiveContent.setContentSensitivity',
    contentSensitivity.index,
  );
}