Method PickerBuilder.setCallback
Stay organized with collections
Save and categorize content based on your preferences.
Set the callback method. This method is called when the user selects items or
cancels. The callback method receives a single callback object. The structure
of the callback object is described in the
JSON Guide
.
Signature
setCallback(method: (result: ResponseObject) => void): PickerBuilder;
Details
Optional |
No |
Final |
No |
Protected |
No |
Static |
No |
Parameters
Name |
Type |
Optional |
Description |
method |
(result: ResponseObject) => void |
No |
|
Returns
PickerBuilder
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-20 UTC.
[null,null,["Last updated 2025-06-20 UTC."],[],[],null,["# Method PickerBuilder.setCallback\n\nSet the callback method. This method is called when the user selects items or\ncancels. The callback method receives a single callback object. The structure\nof the callback object is described in the\n[`JSON Guide`](/workspace/drive/picker/reference/results).\n\nSignature\n---------\n\n setCallback(method: (result: ResponseObject) =\u003e void): PickerBuilder;\n\nDetails\n-------\n\n| Optional | No |\n| Final | No |\n| Protected | No |\n| Static | No |\n|-----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|----------|-----------------------------------------------------------------|----------|-------------|\n| `method` | `(result: `[ResponseObject](./picker.responseobject)`) =\u003e void` | No | |\n\nReturns\n-------\n\n[PickerBuilder](./picker.pickerbuilder)"]]