Class DeviceInfo

  • All Implemented Interfaces:
    Bundleable

    @Deprecated
    public final class DeviceInfo
    extends Object
    implements Bundleable
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Information about the playback device.
    • Field Detail

      • PLAYBACK_TYPE_LOCAL

        public static final int PLAYBACK_TYPE_LOCAL
        Deprecated.
        Playback happens on the local device (e.g. phone).
        See Also:
        Constant Field Values
      • PLAYBACK_TYPE_REMOTE

        public static final int PLAYBACK_TYPE_REMOTE
        Deprecated.
        Playback happens outside of the device (e.g. a cast device).
        See Also:
        Constant Field Values
      • UNKNOWN

        public static final DeviceInfo UNKNOWN
        Deprecated.
        Unknown DeviceInfo.
      • playbackType

        public final @com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType
        Deprecated.
        The type of playback.
      • minVolume

        @IntRange(from=0L)
        public final int minVolume
        Deprecated.
        The minimum volume that the device supports.
      • maxVolume

        @IntRange(from=0L)
        public final int maxVolume
        Deprecated.
        The maximum volume that the device supports, or 0 if unspecified.
    • Constructor Detail

      • DeviceInfo

        @Deprecated
        public DeviceInfo​(@com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType,
                          @IntRange(from=0L)
                          int minVolume,
                          @IntRange(from=0L)
                          int maxVolume)
        Deprecated.
        Use DeviceInfo.Builder instead.
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • toBundle

        public Bundle toBundle()
        Deprecated.
        Description copied from interface: Bundleable
        Returns a Bundle representing the information stored in this object.
        Specified by:
        toBundle in interface Bundleable