Presentation 构造函数

定义

重载

Presentation(Context, Display)

使用默认主题创建附加到指定显示的新演示文稿。

Presentation(IntPtr, JniHandleOwnership)

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

Presentation(Context, Display, Int32)

使用可选的指定主题创建附加到指定显示的新演示文稿。

Presentation(Context, Display)

使用默认主题创建附加到指定显示的新演示文稿。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;)V", "")]
public Presentation (Android.Content.Context? outerContext, Android.Views.Display? display);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;)V", "")>]
new Android.App.Presentation : Android.Content.Context * Android.Views.Display -> Android.App.Presentation

参数

outerContext
Context

显示演示文稿的应用程序的上下文。 演示文稿将基于此上下文以及有关关联显示的信息创建自己的上下文(请参阅 #getContext())。

display
Display

演示文稿应附加到的显示。

属性

注解

使用默认主题创建附加到指定显示的新演示文稿。

适用于 . 的 android.app.Presentation.Presentation(android.content.Context, android.view.Display)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

Presentation(IntPtr, JniHandleOwnership)

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

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

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

Presentation(Context, Display, Int32)

使用可选的指定主题创建附加到指定显示的新演示文稿。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;I)V", "")]
public Presentation (Android.Content.Context? outerContext, Android.Views.Display? display, int theme);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;I)V", "")>]
new Android.App.Presentation : Android.Content.Context * Android.Views.Display * int -> Android.App.Presentation

参数

outerContext
Context

显示演示文稿的应用程序的上下文。 演示文稿将基于此上下文以及有关关联显示的信息创建自己的上下文(请参阅 #getContext())。 从 android.os.Build.VERSION_CODES#S中,演示文稿将基于此上下文创建自己的窗口上下文,并提供有关关联显示的信息。 通过自定义Window#setType(int) #getWindow#setType(int)窗口类型会导致窗口和创建的窗口上下文不匹配,这会导致调用#show()时。android.view.WindowManager.InvalidDisplayException

display
Display

演示文稿应附加到的显示。

theme
Int32

描述要用于窗口的主题的样式资源。 有关定义和使用样式的详细信息,请参阅 样式和主题资源 。 此主题将应用于 var>outerContext</var> 中<当前主题的顶部。 如果为 0,将使用默认演示文稿主题。

属性

注解

使用可选的指定主题创建附加到指定显示的新演示文稿。

适用于 . 的 android.app.Presentation.Presentation(android.content.Context, android.view.Display, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于