VoiceInteractionSessionServicepublic 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 |
Methods Summary |
---|
void | doNewSession(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.IBinder | onBind(android.content.Intent intent)
return mInterface.asBinder();
| public void | onCreate()
super.onCreate();
mSystemService = IVoiceInteractionManagerService.Stub.asInterface(
ServiceManager.getService(Context.VOICE_INTERACTION_MANAGER_SERVICE));
mHandlerCaller = new HandlerCaller(this, Looper.myLooper(),
mHandlerCallerCallback, true);
| public abstract VoiceInteractionSession | onNewSession(android.os.Bundle args)
|
|