TaskLocation 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| TaskLocation(Int32, Rect) |
使用给定的显示 ID 和边界创建一个 |
| TaskLocation(IntPtr, JniHandleOwnership) |
创建表示现有Java对象的托管实例。 |
TaskLocation(Int32, Rect)
使用给定的显示 ID 和边界创建一个 TaskLocation 。
[Android.Runtime.Register(".ctor", "(ILandroid/graphics/Rect;)V", "", ApiSince=37)]
public TaskLocation(int displayId, Android.Graphics.Rect bounds);
[<Android.Runtime.Register(".ctor", "(ILandroid/graphics/Rect;)V", "", ApiSince=37)>]
new Android.App.TaskLocation : int * Android.Graphics.Rect -> Android.App.TaskLocation
参数
- displayId
- Int32
- bounds
- Rect
- 属性
注解
使用给定的显示 ID 和边界创建 TaskLocation。
Android 参考。android.app.TaskLocation.TaskLocation
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
TaskLocation(IntPtr, JniHandleOwnership)
创建表示现有Java对象的托管实例。
protected TaskLocation(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.TaskLocation : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.TaskLocation
参数
- javaReference
-
IntPtr
nativeint
对Java对象的 JNI 引用。
- transfer
- JniHandleOwnership
指定 JNI 引用的所有权是否传输到此实例。
注解
运行时调用此构造函数来创建现有Java对象的托管表示形式。