Interface PlatformChannel.PlatformMessageHandler

    • Method Detail

      • playSystemSound

        void playSystemSound​(@NonNull
                             PlatformChannel.SoundType soundType)
        The Flutter application would like to play the given soundType.
      • vibrateHapticFeedback

        void vibrateHapticFeedback​(@NonNull
                                   PlatformChannel.HapticFeedbackType feedbackType)
        The Flutter application would like to play the given haptic feedbackType.
      • setPreferredOrientations

        void setPreferredOrientations​(int androidOrientation)
        The Flutter application would like to display in the given androidOrientation.
      • setApplicationSwitcherDescription

        void setApplicationSwitcherDescription​(@NonNull
                                               PlatformChannel.AppSwitcherDescription description)
        The Flutter application would like to be displayed in Android's app switcher with the visual representation described in the given description.

        See the related Android documentation: https://developer.android.com/guide/components/activities/recents

      • setSystemUiChangeListener

        void setSystemUiChangeListener()
        The Flutter application would like the Android system to notify the framework when the system ui visibility has changed.

        This is relevant when using PlatformChannel.SystemUiModes for fullscreen applications, from which the system overlays can appear or disappear based on user input.

      • setSystemUiOverlayStyle

        void setSystemUiOverlayStyle​(@NonNull
                                     PlatformChannel.SystemChromeStyle systemUiOverlayStyle)
        The Flutter application would like the system chrome to present itself with the given systemUiOverlayStyle, i.e., the given status bar and navigation bar colors and brightness.
      • popSystemNavigator

        void popSystemNavigator()
        The Flutter application would like to pop the top item off of the Android app's navigation back stack.
      • setClipboardData

        void setClipboardData​(@NonNull
                              String text)
        The Flutter application would like to set the current data in the clipboard to the given text.
      • clipboardHasStrings

        boolean clipboardHasStrings()
        The Flutter application would like to know if the clipboard currently contains a string that can be pasted.