类选择器
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Picker
是表示与用户的界面操作的顶级对象。这些对象不是直接创建的,而是使用 PickerBuilder
类。
签名
export class Picker
详细信息
方法
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],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. |"]]