VoiceInteractionSession Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| VoiceInteractionSession(Context) |
Initializes a voice interaction session with a handler on the current thread's looper. |
| VoiceInteractionSession(Context, Handler) |
Initializes a voice interaction session using the supplied handler's looper. |
| VoiceInteractionSession(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
VoiceInteractionSession(Context)
Initializes a voice interaction session with a handler on the current thread's looper.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public VoiceInteractionSession(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Service.Voice.VoiceInteractionSession : Android.Content.Context -> Android.Service.Voice.VoiceInteractionSession
Parameters
- context
- Context
The context used to create the session. A window context can be created from it for the voice interaction window.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
VoiceInteractionSession(Context, Handler)
Initializes a voice interaction session using the supplied handler's looper.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/os/Handler;)V", "")]
public VoiceInteractionSession(Android.Content.Context? context, Android.OS.Handler? handler);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/os/Handler;)V", "")>]
new Android.Service.Voice.VoiceInteractionSession : Android.Content.Context * Android.OS.Handler -> Android.Service.Voice.VoiceInteractionSession
Parameters
- context
- Context
The context used to create the session. A window context can be created from it for the voice interaction window.
- handler
- Handler
The handler whose looper is used to dispatch session callbacks. The session creates its own callback handler on that looper.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
VoiceInteractionSession(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected VoiceInteractionSession(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Service.Voice.VoiceInteractionSession : nativeint * Android.Runtime.JniHandleOwnership -> Android.Service.Voice.VoiceInteractionSession
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.