Interface SensitiveContentChannel.SensitiveContentMethodHandler
- Enclosing class:
- SensitiveContentChannel
public static interface SensitiveContentChannel.SensitiveContentMethodHandler
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the current content sensitivity level of a Flutter AndroidView.booleanReturns whether or not setting/getting content sensitivity via Android APIs is supported on the device.voidsetContentSensitivity(int requestedContentSensitivity) Requests that a native Flutter AndroidViewsets its content sensitivity level torequestedContentSensitivity.
-
Method Details
-
setContentSensitivity
void setContentSensitivity(@NonNull int requestedContentSensitivity) Requests that a native Flutter AndroidViewsets its content sensitivity level torequestedContentSensitivity.The
requestedContentSensitivityshould be one of theViewconstants 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
Viewconstants 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.
-