Intent.UriAllowUnsafe 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.
用于和#toUri
#parseUri
:允许分析不安全信息的标志。
[Android.Runtime.Register("URI_ALLOW_UNSAFE", ApiSince=22)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.", true)]
public const Android.Content.IntentUriType UriAllowUnsafe = 4;
[<Android.Runtime.Register("URI_ALLOW_UNSAFE", ApiSince=22)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.", true)>]
val mutable UriAllowUnsafe : Android.Content.IntentUriType
字段值
Value = 4实现
- 属性
注解
用于和#toUri
#parseUri
:允许分析不安全信息的标志。 具体而言,无法设置标志#FLAG_GRANT_READ_URI_PERMISSION
、#FLAG_GRANT_WRITE_URI_PERMISSION
#FLAG_GRANT_PERSISTABLE_URI_PERMISSION
标志和#FLAG_GRANT_PREFIX_URI_PERMISSION
标志,以便生成的意向不能导致意外的数据访问发生。
如果不信任要分析的 URI 源,仍应执行进一步处理,以保护自己免受此分析。 具体而言,使用活动启动活动时,通常应添加 #CATEGORY_BROWSABLE
以限制可以处理的活动。
适用于 . 的 android.content.Intent.URI_ALLOW_UNSAFE
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。