Class ScalingModeSelectionDialogFragment

    • Constructor Detail

      • ScalingModeSelectionDialogFragment

        public ScalingModeSelectionDialogFragment()
    • Method Detail

      • newInstance

        public static ScalingModeSelectionDialogFragment newInstance​(IPlayerView playerView,
                                                                     String title)
        Creates a new dialog fragment that shows the available scaling modes and allows selecting the new mode.
        Parameters:
        playerView - The player view
        title - the dialog title
        Returns:
        The dialog fragment
      • newInstance

        public static ScalingModeSelectionDialogFragment newInstance​(IPlayerView playerView,
                                                                     String title,
                                                                     Converter<Integer,​String> converter)
        Creates a new dialog fragment that shows the available scaling modes and allows selecting the new mode.
        Parameters:
        playerView - The player view
        title - the dialog title
        converter - The converter that is used to translate the existing scaling modes to string representations
        Returns:
        The dialog fragment