Class AbstractSelectionDialog<T>

java.lang.Object
android.app.Fragment
android.app.DialogFragment
com.castlabs.sdk.playerui.dialogs.AbstractSelectionDialog<T>
Type Parameters:
T - The source type
All Implemented Interfaces:
ComponentCallbacks, ComponentCallbacks2, DialogInterface.OnCancelListener, DialogInterface.OnClickListener, DialogInterface.OnDismissListener, View.OnCreateContextMenuListener
Direct Known Subclasses:
AudioTrackSelectionDialogFragment, ScalingModeSelectionDialogFragment, SubtitleSelectionDialogFragment, VideoQualitySelectionDialogFragment, VideoTrackSelectionDialogFragment

public abstract class AbstractSelectionDialog<T> extends DialogFragment implements DialogInterface.OnClickListener
This is a base class for utility selection dialogs that can be used to show and apply a selection if items. Subclasses can set the player view reference explicitly when instance are created, but for better compatibility with the fragment system, we encourage you to let the hosting Activity implement PlayerViewProvider. That way dialogs can be recreated by by the system and will still be able to resolve the player view to apply selections.
  • Field Details

    • ARG_TITLE

      public static final String ARG_TITLE
      The argument key for the dialog title
      See Also:
    • ARG_ITEMS

      public static final String ARG_ITEMS
      The argument key to store the items
      See Also:
    • ARG_SELECTED

      public static final String ARG_SELECTED
      The argument key to store the currently selected item
      See Also:
    • ARG_ALLOW_DISABLE

      public static final String ARG_ALLOW_DISABLE
      The argument key to store if disabling is allowed and an extra item will be displayed at the top of the list
      See Also:
  • Constructor Details

    • AbstractSelectionDialog

      public AbstractSelectionDialog()
  • Method Details