Interface Player.DeviceComponent

  • All Known Implementing Classes:
    SimpleExoPlayer
    Enclosing interface:
    Player

    public static interface Player.DeviceComponent
    The device component of a Player.
    • Method Detail

      • addDeviceListener

        void addDeviceListener​(DeviceListener listener)
        Adds a listener to receive device events.
      • removeDeviceListener

        void removeDeviceListener​(DeviceListener listener)
        Removes a listener of device events.
      • getDeviceInfo

        DeviceInfo getDeviceInfo()
        Gets the device information.
      • isDeviceMuted

        boolean isDeviceMuted()
        Gets whether the device is muted or not.
      • setDeviceVolume

        void setDeviceVolume​(int volume)
        Sets the volume of the device.
        Parameters:
        volume - The volume to set.
      • increaseDeviceVolume

        void increaseDeviceVolume()
        Increases the volume of the device.
      • decreaseDeviceVolume

        void decreaseDeviceVolume()
        Decreases the volume of the device.
      • setDeviceMuted

        void setDeviceMuted​(boolean muted)
        Sets the mute state of the device.