班級選擇器
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Picker
是代表使用者 UI 動作的頂層物件。這些物件不是直接建立,而是使用 PickerBuilder
類別
簽名
export class Picker
詳細資料
方法
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]