Class DeviceInfo

  • All Implemented Interfaces:

    public final class DeviceInfo
    extends Object
    implements Bundleable
    Information about the playback device.
    • Field Detail


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

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

        public static final DeviceInfo UNKNOWN
        Unknown DeviceInfo.
      • playbackType

        public final int playbackType
        The type of playback.
      • minVolume

        public final int minVolume
        The minimum volume that the device supports.
      • maxVolume

        public final int maxVolume
        The maximum volume that the device supports.
    • Constructor Detail

      • DeviceInfo

        public DeviceInfo​( int playbackType,
                          int minVolume,
                          int maxVolume)
        Creates device information.
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              Object obj)
        equals in class Object
      • hashCode

        public int hashCode()
        hashCode in class Object
      • toBundle

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