SensitiveContentService class

Service for setting the content sensitivity of the native app window (Android View) that contains the app's widget tree.

This service is only currently supported on Android API 35+.

Constructors

SensitiveContentService.new()
Creates service to set content sensitivity of an app window (Android View) via communication over the sensitive content MethodChannel.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensitiveContentChannel MethodChannel
The channel used to communicate with the shell side to get and set the content sensitivity of an app window (Android View).
getter/setter pair

Methods

getContentSensitivity() Future<ContentSensitivity>
Gets content sensitivity level of the app window (Android View) that contains the app's widget tree.
isSupported() Future<bool>
Returns whether or not setting content sensitivity levels is supported by the device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setContentSensitivity(ContentSensitivity contentSensitivity) Future<void>
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.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited