Class DeviceInfo.Builder

    • Constructor Detail

      • Builder

        public Builder​(@com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType)
        Creates the builder.
        Parameters:
        playbackType - The DeviceInfo.PlaybackType.
    • Method Detail

      • setMinVolume

        @CanIgnoreReturnValue
        public DeviceInfo.Builder setMinVolume​(@IntRange(from=0L)
                                               int minVolume)
        Sets the minimum supported device volume.

        The minimum will be set to 0 if not specified.

        Parameters:
        minVolume - The minimum device volume.
        Returns:
        This builder.
      • setMaxVolume

        @CanIgnoreReturnValue
        public DeviceInfo.Builder setMaxVolume​(@IntRange(from=0L)
                                               int maxVolume)
        Sets the maximum supported device volume.
        Parameters:
        maxVolume - The maximum device volume, or 0 to leave the maximum unspecified.
        Returns:
        This builder.