Class MediaDiagnostics
- Object
-
- MediaDiagnostics
-
public final class MediaDiagnostics extends Object
Represents an object where media diagnostics are accessed.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOnIsCameraFrozenChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraFrozenChanged events.void
addOnIsCameraPermissionDeniedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraPermissionDeniedChanged events.void
addOnIsCameraStartFailedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraStartFailedChanged events.void
addOnIsCameraStartTimedOutChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraStartTimedOutChanged events.void
addOnIsMicrophoneBusyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneBusyChanged events.void
addOnIsMicrophoneMutedUnexpectedlyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneMutedUnexpectedlyChanged events.void
addOnIsMicrophoneNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneNotFunctioningChanged events.void
addOnIsNoMicrophoneDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNoMicrophoneDevicesAvailableChanged events.void
addOnIsNoSpeakerDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNoSpeakerDevicesAvailableChanged events.void
addOnIsSpeakerBusyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerBusyChanged events.void
addOnIsSpeakerMutedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerMutedChanged events.void
addOnIsSpeakerNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerNotFunctioningChanged events.void
addOnIsSpeakerVolumeZeroChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerVolumeZeroChanged events.void
addOnIsSpeakingWhileMicrophoneIsMutedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakingWhileMicrophoneIsMutedChanged events.protected void
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.MediaDiagnosticValues
getLatestDiagnostics()
Stored latest values for all known media diagnostics.void
removeOnIsCameraFrozenChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraFrozenChanged events.void
removeOnIsCameraPermissionDeniedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraPermissionDeniedChanged events.void
removeOnIsCameraStartFailedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraStartFailedChanged events.void
removeOnIsCameraStartTimedOutChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraStartTimedOutChanged events.void
removeOnIsMicrophoneBusyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneBusyChanged events.void
removeOnIsMicrophoneMutedUnexpectedlyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneMutedUnexpectedlyChanged events.void
removeOnIsMicrophoneNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneNotFunctioningChanged events.void
removeOnIsNoMicrophoneDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNoMicrophoneDevicesAvailableChanged events.void
removeOnIsNoSpeakerDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNoSpeakerDevicesAvailableChanged events.void
removeOnIsSpeakerBusyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerBusyChanged events.void
removeOnIsSpeakerMutedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerMutedChanged events.void
removeOnIsSpeakerNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerNotFunctioningChanged events.void
removeOnIsSpeakerVolumeZeroChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerVolumeZeroChanged events.void
removeOnIsSpeakingWhileMicrophoneIsMutedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakingWhileMicrophoneIsMutedChanged events.
-
-
-
Method Detail
-
finalize
protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.- Overrides:
finalize
in classObject
-
addOnIsSpeakerNotFunctioningChangedListener
public void addOnIsSpeakerNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerNotFunctioningChanged events. Speaker is not functioning (failed to initialized the audio device client or device became inactive for more than 5 seconds).
-
removeOnIsSpeakerNotFunctioningChangedListener
public void removeOnIsSpeakerNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerNotFunctioningChanged events. Speaker is not functioning (failed to initialized the audio device client or device became inactive for more than 5 seconds).
-
addOnIsSpeakerBusyChangedListener
public void addOnIsSpeakerBusyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerBusyChanged events. Speaker is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode.
-
removeOnIsSpeakerBusyChangedListener
public void removeOnIsSpeakerBusyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerBusyChanged events. Speaker is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode.
-
addOnIsSpeakerMutedChangedListener
public void addOnIsSpeakerMutedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerMutedChanged events. Speaker is muted.
-
removeOnIsSpeakerMutedChangedListener
public void removeOnIsSpeakerMutedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerMutedChanged events. Speaker is muted.
-
addOnIsSpeakerVolumeZeroChangedListener
public void addOnIsSpeakerVolumeZeroChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakerVolumeZeroChanged events. Zero volume on a speaker.
-
removeOnIsSpeakerVolumeZeroChangedListener
public void removeOnIsSpeakerVolumeZeroChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakerVolumeZeroChanged events. Zero volume on a speaker.
-
addOnIsNoSpeakerDevicesAvailableChangedListener
public void addOnIsNoSpeakerDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNoSpeakerDevicesAvailableChanged events. There is no audio speaker device on the user's system.
-
removeOnIsNoSpeakerDevicesAvailableChangedListener
public void removeOnIsNoSpeakerDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNoSpeakerDevicesAvailableChanged events. There is no audio speaker device on the user's system.
-
addOnIsSpeakingWhileMicrophoneIsMutedChangedListener
public void addOnIsSpeakingWhileMicrophoneIsMutedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsSpeakingWhileMicrophoneIsMutedChanged events. Speaking while being on mute.
-
removeOnIsSpeakingWhileMicrophoneIsMutedChangedListener
public void removeOnIsSpeakingWhileMicrophoneIsMutedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsSpeakingWhileMicrophoneIsMutedChanged events. Speaking while being on mute.
-
addOnIsNoMicrophoneDevicesAvailableChangedListener
public void addOnIsNoMicrophoneDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNoMicrophoneDevicesAvailableChanged events. No audio microphone devices on the user's system.
-
removeOnIsNoMicrophoneDevicesAvailableChangedListener
public void removeOnIsNoMicrophoneDevicesAvailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNoMicrophoneDevicesAvailableChanged events. No audio microphone devices on the user's system.
-
addOnIsMicrophoneBusyChangedListener
public void addOnIsMicrophoneBusyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneBusyChanged events. Microphone is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode.
-
removeOnIsMicrophoneBusyChangedListener
public void removeOnIsMicrophoneBusyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneBusyChanged events. Microphone is already in use. Either the device is being used in exclusive mode, or the device is being used in shared mode and the caller asked to use the device in exclusive mode.
-
addOnIsCameraFrozenChangedListener
public void addOnIsCameraFrozenChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraFrozenChanged events. Camera stops producing frames for more than 5 seconds.
-
removeOnIsCameraFrozenChangedListener
public void removeOnIsCameraFrozenChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraFrozenChanged events. Camera stops producing frames for more than 5 seconds.
-
addOnIsCameraStartFailedChangedListener
public void addOnIsCameraStartFailedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraStartFailedChanged events. Generic camera failure.
-
removeOnIsCameraStartFailedChangedListener
public void removeOnIsCameraStartFailedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraStartFailedChanged events. Generic camera failure.
-
addOnIsCameraStartTimedOutChangedListener
public void addOnIsCameraStartTimedOutChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraStartTimedOutChanged events. Common scenario where camera is in bad state.
-
removeOnIsCameraStartTimedOutChangedListener
public void removeOnIsCameraStartTimedOutChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraStartTimedOutChanged events. Common scenario where camera is in bad state.
-
addOnIsMicrophoneNotFunctioningChangedListener
public void addOnIsMicrophoneNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneNotFunctioningChanged events. Microphone is not functioning.
-
removeOnIsMicrophoneNotFunctioningChangedListener
public void removeOnIsMicrophoneNotFunctioningChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneNotFunctioningChanged events. Microphone is not functioning.
-
addOnIsMicrophoneMutedUnexpectedlyChangedListener
public void addOnIsMicrophoneMutedUnexpectedlyChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsMicrophoneMutedUnexpectedlyChanged events. Microphone enters muted state unexpectedly.
-
removeOnIsMicrophoneMutedUnexpectedlyChangedListener
public void removeOnIsMicrophoneMutedUnexpectedlyChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsMicrophoneMutedUnexpectedlyChanged events. Microphone enters muted state unexpectedly.
-
addOnIsCameraPermissionDeniedChangedListener
public void addOnIsCameraPermissionDeniedChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsCameraPermissionDeniedChanged events. Camera permissions were denied in settings.
-
removeOnIsCameraPermissionDeniedChangedListener
public void removeOnIsCameraPermissionDeniedChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsCameraPermissionDeniedChanged events. Camera permissions were denied in settings.
-
getLatestDiagnostics
public MediaDiagnosticValues getLatestDiagnostics()
Stored latest values for all known media diagnostics.
-
-