Method Picker.setCallback
Specify the callback method called whenever the user has selected an item (or
canceled.)
Signature
setCallback(method: (response: ResponseObject) => void): Picker;
Details
Optional |
No |
Final |
No |
Protected |
No |
Static |
No |
Parameters
Name |
Type |
Optional |
Description |
method |
(response: ResponseObject) => void |
No |
|
Returns
Picker
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."],[[["The `setCallback` method allows you to specify a function that will be executed when the user selects an item or cancels the selection process."],["This callback function receives a `ResponseObject` as an argument, providing information about the user's interaction."],["The `setCallback` method is not optional, final, protected, or static."],["The method returns the `Picker` instance itself, allowing for method chaining."]]],[]]