मेथड पिकर.setCallback
उपयोगकर्ता के किसी आइटम को चुनने या ऑर्डर रद्द करने पर, कॉलबैक करने का तरीका तय करें.
हस्ताक्षर
setCallback(method: (response: ResponseObject) => void): Picker;
विवरण
वैकल्पिक |
नहीं |
फ़ाइनल |
नहीं |
सुरक्षित सेक्स |
नहीं |
स्थिर |
नहीं |
पैरामीटर
नाम |
टाइप |
वैकल्पिक |
ब्यौरा |
method |
(response: ResponseObject) => void |
नहीं |
|
रिटर्न
Picker
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]],[]]