Class TrackSelectionDialogBuilder

    • Method Detail

      • setTheme

        public TrackSelectionDialogBuilder setTheme​(@StyleRes
                                                    int themeResId)
        Sets the resource ID of the theme used to inflate this dialog.
        Parameters:
        themeResId - The resource ID of the theme.
        Returns:
        This builder, for convenience.
      • setIsDisabled

        public TrackSelectionDialogBuilder setIsDisabled​(boolean isDisabled)
        Sets whether the selection is initially shown as disabled.
        Parameters:
        isDisabled - Whether the selection is initially shown as disabled.
        Returns:
        This builder, for convenience.
      • setAllowAdaptiveSelections

        public TrackSelectionDialogBuilder setAllowAdaptiveSelections​(boolean allowAdaptiveSelections)
        Sets whether adaptive selections (consisting of more than one track) can be made.

        For the selection view to enable adaptive selection it is necessary both for this feature to be enabled, and for the target renderer to support adaptation between the available tracks.

        Parameters:
        allowAdaptiveSelections - Whether adaptive selection is enabled.
        Returns:
        This builder, for convenience.
      • setAllowMultipleOverrides

        public TrackSelectionDialogBuilder setAllowMultipleOverrides​(boolean allowMultipleOverrides)
        Sets whether multiple overrides can be set and selected, i.e. tracks from multiple track groups can be selected.
        Parameters:
        allowMultipleOverrides - Whether multiple track selection overrides are allowed.
        Returns:
        This builder, for convenience.
      • setShowDisableOption

        public TrackSelectionDialogBuilder setShowDisableOption​(boolean showDisableOption)
        Sets whether an option is available for disabling the renderer.
        Parameters:
        showDisableOption - Whether the disable option is shown.
        Returns:
        This builder, for convenience.
      • setTrackFormatComparator

        public void setTrackFormatComparator​(@Nullable
                                             Comparator<Format> trackFormatComparator)
        Sets a Comparator used to determine the display order of the tracks within each track group.
        Parameters:
        trackFormatComparator - The comparator, or null to use the original order.
      • build

        public Dialog build()
        Builds the dialog.