语言

TvInteractiveAppService.Session 构造函数

定义

重载

名称 说明
TvInteractiveAppService.Session(Context)

创建新的会话。

TvInteractiveAppService.Session(IntPtr, JniHandleOwnership)

创建表示现有Java对象的托管实例。

TvInteractiveAppService.Session(Context)

创建新的会话。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "", ApiSince=33)]
public Session(Android.Content.Context context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "", ApiSince=33)>]
new Android.Media.TV.Interactive.TvInteractiveAppService.Session : Android.Content.Context -> Android.Media.TV.Interactive.TvInteractiveAppService.Session

参数

context
Context

应用程序的上下文

特性

注解

创建新的会话。

Java文档android.media.tv.interactive.TvInteractiveAppService.Session.TvInteractiveAppService$Session(android.content.Context)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

TvInteractiveAppService.Session(IntPtr, JniHandleOwnership)

创建表示现有Java对象的托管实例。

protected Session(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.TV.Interactive.TvInteractiveAppService.Session : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.TV.Interactive.TvInteractiveAppService.Session

参数

javaReference
IntPtr

nativeint

对Java对象的 JNI 引用。

transfer
JniHandleOwnership

指定 JNI 引用的所有权是否传输到此实例。

注解

运行时调用此构造函数来创建现有Java对象的托管表示形式。

适用于