URLConnection.DefaultAllowUserInteraction 属性

定义

返回字段的 allowUserInteraction 默认值。 - 或 - 将所有未来URLConnection对象的字段默认值allowUserInteraction设置为指定值。

public static bool DefaultAllowUserInteraction { [Android.Runtime.Register("getDefaultAllowUserInteraction", "()Z", "")] get; [Android.Runtime.Register("setDefaultAllowUserInteraction", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("getDefaultAllowUserInteraction", "()Z", "")>]
[<set: Android.Runtime.Register("setDefaultAllowUserInteraction", "(Z)V", "")>]
static member DefaultAllowUserInteraction : bool with get, set

属性值

字段的 allowUserInteraction 默认值。

属性

注解

属性 getter 文档:

返回字段的 allowUserInteraction 默认值。

默认值为“粘滞”,是所有 URLConnections 静态状态的一部分。 此标志适用于下一个,以及创建的所有以下 URLConnections。

Java文档java.net.URLConnection.getDefaultAllowUserInteraction()

属性 setter 文档:

将所有未来URLConnection对象的字段的allowUserInteraction默认值设置为指定值。

Java文档java.net.URLConnection.setDefaultAllowUserInteraction(boolean)

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

适用于