Class Picker
Stay organized with collections
Save and categorize content based on your preferences.
Picker
is the top level object representing the UI action with the user.
These objects are not created directly, but instead use the PickerBuilder
class.
Signature
export class Picker
Details
Methods
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,["# Class Picker\n\n`Picker` is the top level object representing the UI action with the user.\nThese objects are not created directly, but instead use the `PickerBuilder`\nclass.\n\nSignature\n---------\n\n export class Picker\n\nDetails\n-------\n\n| Final | No |\n|-------|----|\n\nMethods\n-------\n\n| Name | Description |\n|------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [`dispose()`](./picker.picker.dispose) | Disposes the `Picker` object. |\n| [`isVisible()`](./picker.picker.isvisible) | Get a boolean indicating the current `Picker` visibility. |\n| [`setCallback(method)`](./picker.picker.setcallback) | Specify the callback method called whenever the user has selected an item (or canceled.) |\n| [`setRelayUrl(url)`](./picker.picker.setrelayurl) | Specify a relay URL to circumvent cross-domain issues. |\n| [`setVisible(visible)`](./picker.picker.setvisible) | Control the visibility of the `Picker` object. |"]]