Method Picker.setCallback
ระบุเมธอดการเรียกกลับที่เรียกทุกครั้งที่ผู้ใช้เลือกรายการ (หรือยกเลิก)
ลายเซ็น
setCallback(method: (response: ResponseObject) => void): Picker;
รายละเอียด
ไม่บังคับ |
ไม่ |
รอบชิงชนะเลิศ |
ไม่ |
มีการป้องกัน |
ไม่ |
คงที่ |
ไม่ |
พารามิเตอร์
ชื่อ |
ประเภท |
ไม่บังคับ |
คำอธิบาย |
method |
(response: ResponseObject) => void |
ไม่ |
|
การคืนสินค้า
Picker
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-09 UTC
[null,null,["อัปเดตล่าสุด 2024-11-09 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."]]],[]]