Intent.UriAllowUnsafe 字段

定义

注意

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_UNSAFEJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于