Class SensitiveContentChannel
java.lang.Object
io.flutter.embedding.engine.systemchannels.SensitiveContentChannel
SensitiveContentChannel
is a platform channel that is used by the framework to get and
set the content sensitivity of a native Flutter Android View
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Flutter ContentSensitivity.autoSensitive index that represents Android's `View.CONTENT_SENSITIVITY_AUTO` setting.final MethodChannel
static final int
Flutter ContentSensitivity.notSensitive index that represents Android's `View.CONTENT_SENSITIVITY_NOT_SENSITIVE` setting.static final int
Flutter ContentSensitivity.sensitive index that represents Android's `View.CONTENT_SENSITIVITY_SENSITIVE` setting.static final int
Flutter ContentSensitivity._unknown index that represents a content sensitivity setting that the Flutter SensitiveContent widget does not recognize. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setSensitiveContentMethodHandler
(SensitiveContentChannel.SensitiveContentMethodHandler sensitiveContentMethodHandler) Sets theSensitiveContentChannel.SensitiveContentMethodHandler
which receives all requests to get and set a particular content sensitivty level sent through this channel.
-
Field Details
-
AUTO_SENSITIVE_CONTENT_SENSITIVITY
@VisibleForTesting public static final int AUTO_SENSITIVE_CONTENT_SENSITIVITYFlutter ContentSensitivity.autoSensitive index that represents Android's `View.CONTENT_SENSITIVITY_AUTO` setting.See https://developer.android.com/reference/android/view/View#CONTENT_SENSITIVITY_AUTO.
- See Also:
-
SENSITIVE_CONTENT_SENSITIVITY
@VisibleForTesting public static final int SENSITIVE_CONTENT_SENSITIVITYFlutter ContentSensitivity.sensitive index that represents Android's `View.CONTENT_SENSITIVITY_SENSITIVE` setting.See https://developer.android.com/reference/android/view/View#CONTENT_SENSITIVITY_SENSITIVE.
- See Also:
-
NOT_SENSITIVE_CONTENT_SENSITIVITY
@VisibleForTesting public static final int NOT_SENSITIVE_CONTENT_SENSITIVITYFlutter ContentSensitivity.notSensitive index that represents Android's `View.CONTENT_SENSITIVITY_NOT_SENSITIVE` setting.See https://developer.android.com/reference/android/view/View#CONTENT_SENSITIVITY_NOT_SENSITIVE.
- See Also:
-
UNKNOWN_CONTENT_SENSITIVITY
@VisibleForTesting public static final int UNKNOWN_CONTENT_SENSITIVITYFlutter ContentSensitivity._unknown index that represents a content sensitivity setting that the Flutter SensitiveContent widget does not recognize.- See Also:
-
channel
-
parsingMethodHandler
-
-
Constructor Details
-
SensitiveContentChannel
-
-
Method Details
-
setSensitiveContentMethodHandler
public void setSensitiveContentMethodHandler(@Nullable SensitiveContentChannel.SensitiveContentMethodHandler sensitiveContentMethodHandler) Sets theSensitiveContentChannel.SensitiveContentMethodHandler
which receives all requests to get and set a particular content sensitivty level sent through this channel.
-