Method PickerBuilder.setCallback
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 2024-09-17 UTC.
[null,null,["Last updated 2024-09-17 UTC."],[[["`setCallback` is used to define a function that's triggered when a user interacts with the picker, either by selecting items or canceling the action."],["This callback function receives a `ResponseObject` containing details about the user's interaction, as outlined in the JSON Guide."],["The `setCallback` method returns a `PickerBuilder` object, allowing for further customization of the picker instance."]]],[]]