AI-generated Key Takeaways
-
DriveItemsSelectedActionResponseBuilder
helps create responses for actions taken on selected Drive items within Google Workspace add-ons. -
It provides methods to build the response and request specific file access scopes, enhancing the add-on's functionality with Drive.
-
build()
finalizes the response, whilerequestFileScope()
enables the add-on to request access to a specific Drive item, streamlining user interactions.
A builder for Drive
objects.
Methods
Method | Return type | Brief description |
---|---|---|
build() | Drive | Builds the current Drive action response. |
request | Drive | Specifies that the response requests file scope for the contextually-relevant item in Drive. |
Detailed documentation
build()
Builds the current Drive action response.
Return
Drive
— A validated Drive
.
requestFileScope(itemId)
Specifies that the response requests file scope for the contextually-relevant item in Drive.
Parameters
Name | Type | Description |
---|---|---|
item | String | ID of the Drive item to request file scope for. |
Return
Drive
— This object, for chaining.