AppFunctionUriGrant


public final class AppFunctionUriGrant
extends Object implements Parcelable

java.lang.Object
   ↳ android.app.appfunctions.AppFunctionUriGrant


Uri for which access permission is to be granted to the caller of AppFunctionManager.executeAppFunction, provided to ExecuteAppFunctionResponse.

This class encapsulates a Uri along with the specific access mode flags (e.g., FLAG_GRANT_READ_URI_PERMISSION) that define the type of access to be granted for that URI.

When an AppFunction implementation returns an ExecuteAppFunctionResponse containing a Uri, the Uri itself must be placed in either ExecuteAppFunctionResponse.getResultDocument or ExecuteAppFunctionResponse.getExtras. Concurrently, a corresponding AppFunctionUriGrant detailing the intended permissions must be added to ExecuteAppFunctionResponse.getUriGrants