Object ServiceState

  • All Implemented Interfaces:

    
    public class ServiceState
    
                        

    Constants for the service states.

    STARTED means recognition runs with an open microphone. PAUSED means the foreground service and its notification are alive but the microphone is released (SORIAudioRecognizer.pauseRecognition); a resume reports STARTED again. A listener that treats every state other than STARTED as "not listening" stays correct; one that needs to offer a resume should check for PAUSED explicitly.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String STARTED
      public final static String STOPPED
      public final static String PAUSED
      public final static String UNKNOWN
      public final static ServiceState INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail