TvInputService.Session 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 |
|---|---|
| TvInputService.Session(Context) |
Creates a new Session. |
| TvInputService.Session(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
TvInputService.Session(Context)
Creates a new Session.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public Session(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Media.TV.TvInputService.Session : Android.Content.Context -> Android.Media.TV.TvInputService.Session
Parameters
- context
- Context
The context of the application
- Attributes
Remarks
Creates a new Session.
Java documentation for android.media.tv.TvInputService.Session.Session(android.content.Context).
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
TvInputService.Session(IntPtr, JniHandleOwnership)
Creates a managed instance that represents an existing Java object.
protected Session(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.TV.TvInputService.Session : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.TV.TvInputService.Session
Parameters
- javaReference
-
IntPtr
nativeint
A JNI reference to the Java object.
- transfer
- JniHandleOwnership
Specifies how the runtime handles the JNI reference, including its release and peer registration.
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.