FileDocCategorySizeDatePackage
VoiceInteractionSessionService.javaAPI DocAndroid 5.1 API3058Thu Mar 12 22:22:10 GMT 2015android.service.voice

VoiceInteractionSessionService

public abstract class VoiceInteractionSessionService extends android.app.Service
An active voice interaction session, initiated by a {@link VoiceInteractionService}.

Fields Summary
static final int
MSG_NEW_SESSION
com.android.internal.app.IVoiceInteractionManagerService
mSystemService
VoiceInteractionSession
mSession
IVoiceInteractionSessionService
mInterface
com.android.internal.os.HandlerCaller
mHandlerCaller
final HandlerCaller.Callback
mHandlerCallerCallback
Constructors Summary
Methods Summary
voiddoNewSession(android.os.IBinder token, android.os.Bundle args)

        if (mSession != null) {
            mSession.doDestroy();
            mSession = null;
        }
        mSession = onNewSession(args);
        try {
            mSystemService.deliverNewSession(token, mSession.mSession, mSession.mInteractor);
            mSession.doCreate(mSystemService, token, args);
        } catch (RemoteException e) {
        }
    
public android.os.IBinderonBind(android.content.Intent intent)

        return mInterface.asBinder();
    
public voidonCreate()


    
       
        super.onCreate();
        mSystemService = IVoiceInteractionManagerService.Stub.asInterface(
                ServiceManager.getService(Context.VOICE_INTERACTION_MANAGER_SERVICE));
        mHandlerCaller = new HandlerCaller(this, Looper.myLooper(),
                mHandlerCallerCallback, true);
    
public abstract VoiceInteractionSessiononNewSession(android.os.Bundle args)