Agora Java API Reference for Android
Public Member Functions | List of all members
agora::rtc::IAudioDeviceManagerObserver Class Referenceabstract

#include <NGIAgoraAudioDeviceManager.h>

Public Member Functions

virtual void onDeviceStateChanged ()=0
 
virtual void onVolumeIndication (int volume)=0
 
virtual void onRoutingChanged (AudioRoute route)=0
 

Detailed Description

The IAudioDeviceManagerObserver class.

Member Function Documentation

◆ onDeviceStateChanged()

virtual void agora::rtc::IAudioDeviceManagerObserver::onDeviceStateChanged ( )
pure virtual

Occurs when the device state changes, for example, when a device is added or removed.

To get the current information of the connected audio devices, call getNumberOfPlayoutDevices.

◆ onVolumeIndication()

virtual void agora::rtc::IAudioDeviceManagerObserver::onVolumeIndication ( int  volume)
pure virtual

Indicates incoming volume. This can be used to test microphone.

Parameters
volumevolume between 0 (lowest volume) to 255 (highest volume).

◆ onRoutingChanged()

virtual void agora::rtc::IAudioDeviceManagerObserver::onRoutingChanged ( AudioRoute  route)
pure virtual

Occurs when the audio route changes.

Parameters
routeThe current audio route. See #AudioRoute.