إدخال المؤشر في "إنشاء"
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توفّر أداة Compose مجموعة متنوعة من واجهات برمجة التطبيقات لمساعدتك في اكتشاف الإيماءات التي يتم إنشاؤها من تفاعلات المستخدمين. تغطي واجهات برمجة التطبيقات مجموعة كبيرة من حالات الاستخدام:
وبعضها عالي المستوى ومصمَّم لتغطية الإيماءات الأكثر استخدامًا. على سبيل المثال، يتيح
معدِّل
clickable
رصد النقرة بسهولة، ويوفّر أيضًا ميزات لتسهيل الاستخدام ويعرض
مؤشرات مرئية عند النقر عليها (مثل التموجات).
هناك أيضًا أدوات رصد الإيماءات الأقل استخدامًا توفّر المزيد من
المرونة على المستوى الأدنى، مثل
PointerInputScope.detectTapGestures
أو
PointerInputScope.detectDragGestures
ولكنها لا تتضمّن الميزات الإضافية.
مزيد من المعلومات عن إدخالات المؤشر في الصفحات التالية:
- فهم الإيماءات: يقدم شرحًا للمفاهيم الأساسية التي تلعب دورًا
عند التعامل مع إدخالات المؤشر.
- يؤدي النقر على زر النقر والضغط إلى التوسيع في الأحداث التي تؤدي إلى مؤشر واحد أو موضع واحد.
- يوضّح قسم التمرير طريقة تنفيذ حاويات التمرير، ويعالج المخاوف المتعلّقة بإمكانية التشغيل التفاعلي.
- يعرض خيار السحب والتمرير السريع والتحرك أنواعًا مختلفة من السحب لمؤشر واحد.
- تتناول ميزة اللمس المتعدد المواقف التي يستخدم فيها أكثر من مؤشر واحد.
أفلام مُقترَحة لك
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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)"]]