Agora Java API Reference for Android

Public Member Functions | List of all members
agora::rtc::ILocalAudioTrackObserver Class Referenceabstract

`#include <NGIAgoraAudioTrack.h>`

## Public Member Functions
virtual void | onLocalAudioTrackStateChanged (LOCAL_AUDIO_STREAM_STATE state, LOCAL_AUDIO_STREAM_REASON reasonCode)=0

## Detailed Description

The observer of the local audio track.

## Member Function Documentation

## ◆ onLocalAudioTrackStateChanged()

virtual void agora::rtc::ILocalAudioTrackObserver::onLocalAudioTrackStateChanged | ( | LOCAL_AUDIO_STREAM_STATE | state,
|  | LOCAL_AUDIO_STREAM_REASON | reasonCode
| ) |  |
| pure virtual

Occurs when the state of a local audio track changes.

Parameters

  state | The state of the local audio track.
  reasonCode | The error information for a state failure: LOCAL_AUDIO_STREAM_REASON.