InputConnectionWrapper.InterfaceConsts.InputContentGrantReadUriPermission 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This constant will be removed in the future version. Use Android.Views.InputMethods.InputContentFlags enum directly instead of this field.
使用此标志时,编辑器将能够请求对对象中包含的内容 URI 的 InputContentInfo
读取访问权限。
[Android.Runtime.Register("INPUT_CONTENT_GRANT_READ_URI_PERMISSION", ApiSince=25)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputMethods.InputContentFlags enum directly instead of this field.", true)]
public const Android.Views.InputMethods.InputContentFlags InputContentGrantReadUriPermission = 1;
[<Android.Runtime.Register("INPUT_CONTENT_GRANT_READ_URI_PERMISSION", ApiSince=25)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputMethods.InputContentFlags enum directly instead of this field.", true)>]
val mutable InputContentGrantReadUriPermission : Android.Views.InputMethods.InputContentFlags
字段值
Value = 1- 属性
注解
使用此标志时,编辑器将能够请求对对象中包含的内容 URI 的 InputContentInfo
读取访问权限。
确保拥有 Uri 的内容提供程序在其清单中设置 android.R.styleable#AndroidManifestProvider_grantUriPermissions grantUriPermissions
属性或包含标记 android.R.styleable#AndroidManifestGrantUriPermission <grant-uri-permissions>
。 否则 InputContentInfo#requestPermission()
可能会失败。
尽管仅允许对当前选定的 IME 调用此 API,但只要客户端保留 InputContentInfo
对象,即使当前 IME 切换到任何其他 IME,客户端也能请求临时只读访问。
适用于 . 的 android.view.inputmethod.InputConnection.INPUT_CONTENT_GRANT_READ_URI_PERMISSION
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。