Presentation 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Presentation(Context, Display) |
使用默认主题创建附加到指定显示的新演示文稿。 |
| Presentation(IntPtr, JniHandleOwnership) |
初始化现有 Java Native Interface 对象的托管表示形式。 |
| 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())。 此演示文稿与此上下文的 UID 相关联,以便强制实施策略。
- display
- Display
演示文稿应附加到的显示。
- 特性
注解
使用默认主题创建附加到指定显示的新演示文稿。
Android 参考。android.app.Presentation.Presentation
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
Presentation(IntPtr, JniHandleOwnership)
初始化现有 Java Native Interface 对象的托管表示形式。
protected Presentation(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Presentation : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Presentation
参数
- javaReference
-
IntPtr
nativeint
Java Native Interface 对象引用。
- transfer
- JniHandleOwnership
要应用于 Java Native Interface 对象引用的所有权转让。
注解
当为现有Java对象创建托管对等时,此构造函数由 Android 绑定运行时的 .NET 调用。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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())。 此演示文稿与此上下文的 UID 相关联,以便强制实施策略。
从 android.os.Build.VERSION_CODES#S中,演示文稿将基于此上下文创建自己的窗口上下文,并提供有关关联显示的信息。 通过自定义Window#setType(int) #getWindow#setType(int)窗口类型会导致窗口和创建的窗口上下文不匹配,这会导致调用android.view.WindowManager.InvalidDisplayException时。#show()
- display
- Display
演示文稿应附加到的显示。
- theme
- Int32
描述要用于窗口的主题的样式资源。 有关定义和使用样式的详细信息,请参阅样式和主题资源。 此主题在 outerContext 中的当前主题之上应用。 如果为 0,将使用默认演示文稿主题。
- 特性
注解
使用可选的指定主题创建附加到指定显示的新演示文稿。
Android 参考。android.app.Presentation.Presentation
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。