Interface SensitiveContentChannel.SensitiveContentMethodHandler

Enclosing class:
SensitiveContentChannel

public static interface SensitiveContentChannel.SensitiveContentMethodHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the current content sensitivity level of a Flutter Android View.
    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 Android View sets its content sensitivity level to requestedContentSensitivity.
  • Method Details

    • setContentSensitivity

      void setContentSensitivity(@NonNull int requestedContentSensitivity)
      Requests that a native Flutter Android View sets its content sensitivity level to requestedContentSensitivity.

      The requestedContentSensitivity should be one of the View 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 Android View.

      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.