Interface SensitiveContentChannel.SensitiveContentMethodHandler
- Enclosing class:
- SensitiveContentChannel
public static interface SensitiveContentChannel.SensitiveContentMethodHandler
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the current content sensitivity level of a Flutter AndroidView
.boolean
Returns whether or not setting/getting content sensitivity via Android APIs is supported on the device.void
setContentSensitivity
(int requestedContentSensitivity) Requests that a native Flutter AndroidView
sets its content sensitivity level torequestedContentSensitivity
.
-
Method Details
-
setContentSensitivity
void setContentSensitivity(@NonNull int requestedContentSensitivity) Requests that a native Flutter AndroidView
sets its content sensitivity level torequestedContentSensitivity
.The
requestedContentSensitivity
should be one of theView
constants that represent a content sensitivity mode. See https://developer.android.com/reference/android/view/View#setContentSensitivity(int) for the available modes. -
getContentSensitivity
int getContentSensitivity()Returns the current content sensitivity level of a Flutter AndroidView
.The return value should be one of the
View
constants that represent a content sensitivity modes. See https://developer.android.com/reference/android/view/View#getContentSensitivity() for the available modes. -
isSupported
boolean isSupported()Returns whether or not setting/getting content sensitivity via Android APIs is supported on the device.This value is static and will not change while a Flutter app runs.
-