Class MediaDiagnostics


  • public final class MediaDiagnostics
    extends Object
    Represents an object where media diagnostics are accessed.
    • 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 class Object
      • 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.