语言

Window 构造函数

定义

重载

名称 说明
Window(Context)

初始化 Window 的新实例。

Window(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

Window(Context)

初始化 Window 的新实例。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public Window(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Views.Window : Android.Content.Context -> Android.Views.Window

参数

context
Context

用于上下文的 Android.Content.Context 值。

特性

注解

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

适用于

Window(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

protected Window(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.Window : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.Window

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于