Added in API level 21

VoiceInteractionSessionService

abstract class VoiceInteractionSessionService : Service
kotlin.Any
   ↳ android.content.Context
   ↳ android.content.ContextWrapper
   ↳ android.app.Service
   ↳ android.service.voice.VoiceInteractionSessionService

An active voice interaction session, initiated by a VoiceInteractionService.

Summary

Inherited constants
Public constructors

Public methods
open IBinder?
onBind(intent: Intent!)

open Unit

open Unit

open Unit

abstract VoiceInteractionSession!

open Unit
onTrimMemory(level: Int)

Protected methods
open Unit
dump(fd: FileDescriptor!, writer: PrintWriter!, args: Array<String!>!)

Inherited functions

Public constructors

VoiceInteractionSessionService

VoiceInteractionSessionService()

Public methods

onBind

Added in API level 21
open fun onBind(intent: Intent!): IBinder?
Parameters
intent Intent!: The Intent that was used to bind to this service, as given to android.content.Context#bindService. Note that any extras that were included with the Intent at that point will not be seen here.
Return
IBinder? Return an IBinder through which clients can call on to the service.

onConfigurationChanged

Added in API level 21
open fun onConfigurationChanged(newConfig: Configuration): Unit
Parameters
newConfig Configuration: The new device configuration. This value cannot be null.

onCreate

Added in API level 21
open fun onCreate(): Unit

onLowMemory

Added in API level 21
open fun onLowMemory(): Unit

onNewSession

Added in API level 21
abstract fun onNewSession(args: Bundle!): VoiceInteractionSession!

Protected methods

dump

Added in API level 21
protected open fun dump(
    fd: FileDescriptor!,
    writer: PrintWriter!,
    args: Array<String!>!
): Unit
Parameters
fd FileDescriptor!: The raw file descriptor that the dump is being sent to.
writer PrintWriter!: The PrintWriter to which you should dump your state. This will be closed for you after you return.
args Array<String!>!: additional arguments to the dump request.