از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
هپتیک ها
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
زیرسیستم لمسی اندروید به ویژگیهای سختافزاری و نرمافزاری اشاره دارد که از طریق حس لامسه به ایجاد محرکها کمک میکند. ایجاد جلوه های لمسی به درجه بالایی از وابستگی های سخت افزاری نیاز دارد، در حالی که درک محرک های لمسی به درجه بالایی از وابستگی ها و ترجیحات کاربر نیاز دارد. این دوگانگی، سازندگان دستگاه را به چالش میکشد تا مزایای کاربر لمسی را در اکوسیستم اندروید توسعه داده و به حداکثر برسانند.
اجرای صحیح جلوه های لمسی به سخت افزار سازگار و به روز نیاز دارد. برای اینکه کاربران به درستی محرک های لمسی را درک کنند، ترجیحات خاص باید بهینه سازی شوند تا اثرات مورد نظر ایجاد شود. تولیدکنندگان باید هر دو الزامات را برآورده کنند تا به درستی هاپتیک در اندروید را پیاده سازی کنند.
راهنماهای زیر دستورالعملهای انطباق را برای سازندگان دستگاه و توسعهدهندگان برنامه توضیح میدهند و راهنمایی روشنی را در مورد بهترین استفاده از APIهای لمسی Android ارائه میدهند:
برای کسب اطلاعات بیشتر درباره سازگاری به طور کلی، سند تعریف سازگاری Android را بخوانید.
برای کسب اطلاعات بیشتر درباره استفاده از هاپتیک در Android، مستندات برنامهنویس Android را بخوانید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Haptics\n\nThe Android haptics subsystem refers to hardware and software features that\ncontribute to the creation of stimuli through the sense of touch. *Creating*\nhaptic effects requires a high degree of hardware dependencies, while\n*perceiving* haptic stimuli requires a high degree of user dependencies and\npreferences. This dichotomy challenges device manufacturers to develop and\nmaximize haptic user benefits in the Android ecosystem.\n\nImplementing haptic effects correctly requires up-to-date, compatible hardware.\nFor users to properly perceive haptic stimuli, specific preferences must be\ntweaked to create the desired effects. Manufacturers must satisfy both\nrequirements to properly implement haptics on Android.\n\nThe following guides describe the compliance instructions for device\nmanufacturers and app developers, and provides clear guidance on the best use\nof the Android haptics APIs:\n\n- [**A step-by-step checklist detailing haptic SW and HW compliance**](/docs/core/interaction/haptics/haptics-implement)\n\n The checklist walks\n you through the key elements of the hardware configuration process.\n- [**A foundation for haptic framework**](/docs/core/interaction/haptics/haptics-ux-foundation)\n\n This lists the set of UX principles that Android haptic improvements are\n driven by.\n- [**An in-depth look at UX and design principles**](/docs/core/interaction/haptics/haptics-ux-design)\n\n These principles illustrate the importance of hardware compliance in\n improving the haptics UX for Android end users.\n- [**Assess hardware**](/docs/core/interaction/haptics/hardware)\n\n Learn how to assess the haptic effects implementation with the necessary\n test equipment and apply your findings to the performance map to draw\n conclusions about the performance of your device under test.\n\nTo learn more about compatibility in general, read the [Android\nCompatibility Definition Document](/docs/compatibility/11/android-11-cdd).\n\nTo learn more about using haptics in Android, read the [Android\nDeveloper Documentation](https://developer.android.com/develop/ui/views/haptics)."]]