Interface AntPlusAudioRemoteControlPcc.IAudioStatusReceiver
- Enclosing class:
- AntPlusAudioRemoteControlPcc
public static interface AntPlusAudioRemoteControlPcc.IAudioStatusReceiver
Receiver for the AudioStatus event, which is:
Communicates the status of an audio device.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonNewAudioStatus(long estTimestamp, int volume, int totalTrackTime, int currentTrackTime, AudioDeviceCapabilities audioCapabilities, AudioDeviceState audioState, AudioRepeatState repeatState, AudioShuffleState shuffleState) Receives the data from a AudioStatus event.
-
Method Details
-
onNewAudioStatus
void onNewAudioStatus(long estTimestamp, int volume, int totalTrackTime, int currentTrackTime, AudioDeviceCapabilities audioCapabilities, AudioDeviceState audioState, AudioRepeatState repeatState, AudioShuffleState shuffleState) Receives the data from a AudioStatus event.- Parameters:
estTimestamp- The estimated timestamp of when this event was triggered. Useful for correlating multiple events and determining when data was sent for more accurate data records.volume- The volume given as a percentage.totalTrackTime- The total time of the current track. Units: Seconds.currentTrackTime- Number of seconds in the current track. Units: Seconds.audioCapabilities- Contains the capabilities of the audio device.audioState- CurrentAudioDeviceStateof the music player.repeatState- CurrentAudioRepeatStateof the music player.shuffleState- CurrentAudioShuffleStateof the music player.
-