次の方法で共有


InputContentInfo.RequestPermission Method

Definition

Requests a temporary android.content.Intent#FLAG_GRANT_READ_URI_PERMISSION read-only access permission for the content URI associated with this object.

[Android.Runtime.Register("requestPermission", "()V", "", ApiSince=25)]
public void RequestPermission ();
[<Android.Runtime.Register("requestPermission", "()V", "", ApiSince=25)>]
member this.RequestPermission : unit -> unit
Attributes

Remarks

Requests a temporary android.content.Intent#FLAG_GRANT_READ_URI_PERMISSION read-only access permission for the content URI associated with this object.

The lifecycle of the permission granted here is tied to this object instance. If the permission is not released explicitly via #releasePermission(), it will be released automatically when there are no more references to this object.

Does nothing if the temporary permission is already granted.

Java documentation for android.view.inputmethod.InputContentInfo.requestPermission().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to