TvInteractiveAppView 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| TvInteractiveAppView(Context) |
使用提供的上下文创建电视交互式应用视图。 |
| TvInteractiveAppView(Context, IAttributeSet) |
使用提供的上下文和 XML 属性创建电视交互式应用视图。 |
| TvInteractiveAppView(IntPtr, JniHandleOwnership) |
创建表示现有Java对象的托管实例。 |
| TvInteractiveAppView(Context, IAttributeSet, Int32) |
使用 XML 属性和默认样式属性创建电视交互式应用视图。 |
TvInteractiveAppView(Context)
使用提供的上下文创建电视交互式应用视图。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "", ApiSince=33)]
public TvInteractiveAppView(Android.Content.Context context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "", ApiSince=33)>]
new Android.Media.TV.Interactive.TvInteractiveAppView : Android.Content.Context -> Android.Media.TV.Interactive.TvInteractiveAppView
参数
- context
- Context
用于创建视图并访问其资源和系统服务的上下文。
- 特性
注解
创建没有 XML 属性集或默认样式属性的视图。 单独准备交互式应用以创建其会话。
适用于
TvInteractiveAppView(Context, IAttributeSet)
使用提供的上下文和 XML 属性创建电视交互式应用视图。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "", ApiSince=33)]
public TvInteractiveAppView(Android.Content.Context context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "", ApiSince=33)>]
new Android.Media.TV.Interactive.TvInteractiveAppView : Android.Content.Context * Android.Util.IAttributeSet -> Android.Media.TV.Interactive.TvInteractiveAppView
参数
- context
- Context
用于创建视图并访问其资源和系统服务的上下文。
- attrs
- IAttributeSet
视图的 XML 属性,或 null 未提供任何属性集时。
- 特性
注解
此重载对默认样式属性使用零。 单独准备交互式应用以创建其会话。
适用于
TvInteractiveAppView(IntPtr, JniHandleOwnership)
创建表示现有Java对象的托管实例。
protected TvInteractiveAppView(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.TV.Interactive.TvInteractiveAppView : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.TV.Interactive.TvInteractiveAppView
参数
- javaReference
-
IntPtr
nativeint
对Java对象的 JNI 引用。
- transfer
- JniHandleOwnership
指定 JNI 引用的所有权是否传输到此实例。
注解
运行时调用此构造函数来创建现有Java对象的托管表示形式。
适用于
TvInteractiveAppView(Context, IAttributeSet, Int32)
使用 XML 属性和默认样式属性创建电视交互式应用视图。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "", ApiSince=33)]
public TvInteractiveAppView(Android.Content.Context context, Android.Util.IAttributeSet? attrs, int defStyleAttr);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "", ApiSince=33)>]
new Android.Media.TV.Interactive.TvInteractiveAppView : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Media.TV.Interactive.TvInteractiveAppView
参数
- context
- Context
用于创建视图并访问其资源和系统服务的上下文。
- attrs
- IAttributeSet
视图的 XML 属性,或 null 未提供任何属性集时。
- defStyleAttr
- Int32
提供视图的默认样式的主题属性,或为零以省略默认样式属性。
- 特性
注解
视图在创建其子图面视图时使用这些参数。 单独准备交互式应用以创建其会话。