Oluşturma'da işaretçi girişi
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Compose, kullanıcı etkileşimlerinden oluşturulan hareketleri algılamanıza yardımcı olacak çeşitli API'ler sunar. API'ler çok çeşitli kullanım alanlarını kapsar:
Bazıları üst düzeydir ve en yaygın kullanılan hareketleri kapsayacak şekilde tasarlanmıştır. Örneğin, clickable
değiştirici, bir tıklamanın kolayca algılanmasını sağlar. Ayrıca, erişilebilirlik özellikleri sunar ve dokunulduğunda görsel göstergeler (dalgalar gibi) gösterir.
Daha düşük düzeyde daha fazla esneklik sunan, PointerInputScope.detectTapGestures
veya PointerInputScope.detectDragGestures
gibi daha seyrek kullanılan hareket algılayıcıları da ekstra özellikler barındırmaz.
Aşağıdaki sayfalarda işaretçi girişi hakkında daha fazla bilgi edinebilirsiniz:
- Hareketleri anlayın bölümünde işaretçi girişlerini ele alırken rol oynayan temel kavramlar açıklanmıştır.
- Dokunup basma, tek işaretçili, tek konumlu etkinliklerde genişletilir.
- Kaydırma, kaydırma kapsayıcılarının nasıl uygulanacağını açıklar ve birlikte çalışabilirlik sorunlarıyla ilgilenir.
- Sürükleme, kaydırma ve sallama, tek bir işaretçinin farklı sürükleme türlerini gösterir.
- Çok noktalı, birden fazla işaretçinin kullanıldığı durumları belirtir.
Sizin için önerilenler
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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)"]]