sensitiveContent constant

MethodChannel const sensitiveContent

A MethodChannel for setting and getting the content sensitivity of a Flutter Android View.

The following outgoing methods are defined for this channel (invoked using OptionalMethodChannel.invokeMethod):

  • setContentSensitivity: Sets the content sensitivity level of the Flutter Android View containing the widget tree to one of the ContentSensitivity levels. The second argument is the index of the ContentSensitivity level that the channel should set for the relevant Flutter view.

  • getContentSensitivity: Gets the content sensitivity level of the Flutter Android View containing the widget tree, which will be the index of one of the ContentSensitivity levels.

  • isSupported: Returns whether or not setting content sensitivity levels is supported on the device.

Implementation

static const MethodChannel sensitiveContent = OptionalMethodChannel('flutter/sensitivecontent');