Method Picker.setCallback (בורר השיטות)
מציינים את שיטת ה-callback שתופעל בכל פעם שהמשתמש בוחר פריט (או מבטל).
חתימה
setCallback(method: (response: ResponseObject) => void): Picker;
פרטים
אופציונלי |
לא |
גמר |
לא |
מוגן |
לא |
סטטי |
לא |
פרמטרים
החזרות
Picker
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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."]]],[]]