IT. Expert System.

Android Reference



Class RecognitionService

  • All Implemented Interfaces:
    ComponentCallbacks, ComponentCallbacks2

    public abstract class RecognitionService
    extends Service
    This class provides a base class for recognition service implementations. This class should be extended only in case you wish to implement a new speech recognizer. Please note that the implementation of this service is stateless.
    • Field Detail


        public static final String SERVICE_META_DATA
        Name under which a RecognitionService component publishes information about itself. This meta-data should reference an XML resource containing a <recognition-service> tag.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RecognitionService

        public RecognitionService()
    • Method Detail

      • onStartListening

        protected abstract void onStartListening(Intent recognizerIntent,
                            RecognitionService.Callback listener)
        Notifies the service that it should start listening for speech.
        recognizerIntent - contains parameters for the recognition to be performed. The intent may also contain optional extras, see RecognizerIntent. If these values are not set explicitly, default values should be used by the recognizer.
        listener - that will receive the service's callbacks
      • onCancel

        protected abstract void onCancel(RecognitionService.Callback listener)
        Notifies the service that it should cancel the speech recognition.
      • onStopListening

        protected abstract void onStopListening(RecognitionService.Callback listener)
        Notifies the service that it should stop listening for speech. Speech captured so far should be recognized as if the user had stopped speaking at this point. This method is only called if the application calls it explicitly.
      • onBind

        public final IBinder onBind(Intent intent)
        Description copied from class: Service
        Return the communication channel to the service. May return null if clients can not bind to the service. The returned IBinder is usually for a complex interface that has been described using aidl.

        Note that unlike other application components, calls on to the IBinder interface returned here may not happen on the main thread of the process. More information about the main thread can be found in Processes and Threads.

        Specified by:
        onBind in class Service
        intent - The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here.
        Return an IBinder through which clients can call on to the service.
      • onDestroy

        public void onDestroy()
        Description copied from class: Service
        Called by the system to notify a Service that it is no longer used and is being removed. The service should clean up any resources it holds (threads, registered receivers, etc) at this point. Upon return, there will be no more calls in to this Service object and it is effectively dead. Do not call this method directly.
        onDestroy in class Service


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 75 / 159523951. Delta: 0.05051 с