Compose में पॉइंटर इनपुट
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Compose की सुविधा में कई तरह के एपीआई उपलब्ध हैं. इनकी मदद से, ऐसे जेस्चर का पता लगाया जा सकता है जो
और यूज़र इंटरैक्शन से जनरेट होता है. ये एपीआई इस्तेमाल के कई तरह के उदाहरण शामिल करते हैं:
इनमें से कुछ हाई-लेवल के हैं और इन्हें इस तरह से डिज़ाइन किया गया है कि सबसे ज़्यादा इस्तेमाल होने वाले आइटम, सबसे ज़्यादा
हाथ के जेस्चर. उदाहरण के लिए,
clickable
मॉडिफ़ायर
किसी क्लिक का पता लगाती है. साथ ही, यह सुलभता सुविधाएं और
टैप करने पर विज़ुअल संकेत दिखाता है (जैसे कि रिपल).
आम तौर पर, इस्तेमाल किए जाने वाले जेस्चर डिटेक्टर भी कम होते हैं. ये जेस्चर,
निचले लेवल पर ज़्यादा सुविधाएं देता है, जैसे
PointerInputScope.detectTapGestures
या
PointerInputScope.detectDragGestures
लेकिन उसमें अतिरिक्त सुविधाएं शामिल न हों.
इन पेजों पर पॉइंटर इनपुट के बारे में ज़्यादा जानें:
- हाथ के जेस्चर (हाव-भाव) को समझना से, आपको गेम के मुख्य सिद्धांतों को समझने में मदद मिलती है
एक भूमिका होती है, जो पॉइंटर इनपुट को हैंडल करते समय मौजूद होती है.
- टैप करके दबाएं एकल पॉइंटर, एक स्थान इवेंट पर विस्तृत होता है.
- स्क्रोल में स्क्रोल करने वाले कंटेनर और हैंडल को लागू करने का तरीका बताया गया है
इंटरऑपरेबिलिटी से जुड़ी समस्याएं.
- खींचें, स्वाइप करें, और फ़्लिंग करें किसी एक शब्द को खींचकर छोड़ने के अलग-अलग तरीके दिखाता है
पॉइंटर.
- मल्टी-टच सुविधा उन स्थितियों में जानकारी देती है जहां एक से ज़्यादा पॉइंटर का इस्तेमाल किया जाता है.
आपके लिए सुझाव
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Pointer input in Compose\n\nCompose provides a variety of APIs to help you detect gestures that are\ngenerated from user interactions. The APIs cover a wide range of use cases:\n\n- Some of them are **high-level** and designed to cover the most commonly used\n gestures. For example, the\n [`clickable`](/reference/kotlin/androidx/compose/foundation/package-summary#(androidx.compose.ui.Modifier).clickable(kotlin.Boolean,kotlin.String,androidx.compose.ui.semantics.Role,kotlin.Function0))\n modifier allows easy\n detection of a click, and it also provides accessibility features and\n displays visual indicators when tapped (such as ripples).\n\n- There are also less commonly used gesture detectors that offer more\n flexibility on a **lower level** , like\n [`PointerInputScope.detectTapGestures`](/reference/kotlin/androidx/compose/foundation/gestures/package-summary#(androidx.compose.ui.input.pointer.PointerInputScope).detectTapGestures(kotlin.Function1,kotlin.Function1,kotlin.coroutines.SuspendFunction2,kotlin.Function1)) or\n [`PointerInputScope.detectDragGestures`](/reference/kotlin/androidx/compose/foundation/gestures/package-summary#(androidx.compose.ui.input.pointer.PointerInputScope).detectDragGestures(kotlin.Function1,kotlin.Function0,kotlin.Function0,kotlin.Function2))\n but don't include the extra features.\n\nLearn more about pointer input on the following pages:\n\n- [Understand gestures](/develop/ui/compose/touch-input/pointer-input/understand-gestures) gives an explanation of the core concepts playing a role when handling pointer input.\n- [Tap and press](/develop/ui/compose/touch-input/pointer-input/tap-and-press) expands on single pointer, single position events.\n- [Scroll](/develop/ui/compose/touch-input/pointer-input/scroll) explains how to implement scrolling containers, and handles interoperability concerns.\n- [Drag, swipe, and fling](/develop/ui/compose/touch-input/pointer-input/drag-swipe-fling) shows different types of dragging of a single pointer.\n- [Multi-touch](/develop/ui/compose/touch-input/pointer-input/multi-touch) dives into situations where more than one pointer is used.\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [Enable user interactions](/develop/ui/compose/text/user-interactions)\n- [Semantics in Compose](/develop/ui/compose/semantics)\n- [Compose modifiers](/develop/ui/compose/modifiers)"]]