语言

ActivityOptions.AllowPassThroughOnTouchOutside 属性

定义

返回源活动是否允许 to-be启动的应用中的覆盖活动在触摸位于内容窗口外时通过触摸事件传递给它。 - 或 - 设置源活动是否允许 to-be启动的应用中的覆盖活动在触摸位于内容窗口外时将触摸事件传递给它。

public virtual bool AllowPassThroughOnTouchOutside { [Android.Runtime.Register("isAllowPassThroughOnTouchOutside", "()Z", "GetIsAllowPassThroughOnTouchOutsideHandler", ApiSince=36)] get; [Android.Runtime.Register("setAllowPassThroughOnTouchOutside", "(Z)V", "GetSetAllowPassThroughOnTouchOutside_ZHandler", ApiSince=36)] set; }
[<get: Android.Runtime.Register("isAllowPassThroughOnTouchOutside", "()Z", "GetIsAllowPassThroughOnTouchOutsideHandler", ApiSince=36)>]
[<set: Android.Runtime.Register("setAllowPassThroughOnTouchOutside", "(Z)V", "GetSetAllowPassThroughOnTouchOutside_ZHandler", ApiSince=36)>]
member this.AllowPassThroughOnTouchOutside : bool with get, set

属性值

源活动的选择加入在覆盖启动活动的内容窗口外接收触摸。 当启动上下文不是活动时,将忽略它。

特性

注解

返回源活动是否允许 to-be启动的应用中的覆盖活动在触摸位于内容窗口外时通过触摸事件传递给它。

Android 参考。android.app.ActivityOptions.isAllowPassThroughOnTouchOutside

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

适用于