چارچوب تکمیل خودکار
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
چارچوب تکمیل خودکار در Android 8.0 (سطح API 26) و بالاتر موجود است.
برخی از برنامه ها، مانند مدیریت رمز عبور، می توانند نماهای برنامه های دیگر را با داده های ارائه شده توسط کاربر پر کنند. برنامههایی که نمای برنامههای دیگر را پر میکنند، خدمات تکمیل خودکار نامیده میشوند. چارچوب تکمیل خودکار ارتباط بین یک برنامه و یک سرویس تکمیل خودکار را مدیریت می کند.
پر کردن فرم ها یک کار زمان بر و مستعد خطا است. چارچوب تکمیل خودکار با ارائه مزایای زیر تجربه کاربر را بهبود می بخشد:
- صرفه جویی در زمان صرف شده برای پر کردن فیلدها تکمیل خودکار کاربران را از تایپ مجدد اطلاعات نجات می دهد.
- به حداقل رساندن خطاهای ورودی کاربر تایپ کردن به خصوص در دستگاه های تلفن همراه مستعد خطا است. به حداقل رساندن نیاز به تایپ اطلاعات، اشتباهات تایپی را به حداقل می رساند.
اجزاء
چارچوب تکمیل خودکار شامل اجزای سطح بالا زیر است:
- سرویسهای تکمیل خودکار: برنامههایی مانند مدیریت رمز عبور که اطلاعات کاربر را ذخیره و ذخیره میکنند و میتوانند در نماها در چندین برنامه استفاده شوند.
- مشتریان تکمیل خودکار: برنامههایی که نماهایی را ارائه میکنند که باید پر شوند یا دادههای کاربر را نگه میدارند.
- سیستم اندروید: سیستمعاملی که گردش کار را تعریف میکند و زیرساختی را فراهم میکند که باعث میشود خدمات و مشتریان با هم کار کنند.
برای توضیح دقیق گردش کار تکمیل خودکار، به مستندات مرجع AutofillService
و AutofillManager
مراجعه کنید.
راهنماها
برای کسب اطلاعات بیشتر در مورد نحوه استفاده از چارچوب تکمیل خودکار، به راهنمای زیر مراجعه کنید:
- برنامه خود را برای تکمیل خودکار بهینه کنید
- بررسی کنید که برنامه شما برای استفاده با چارچوب تکمیل خودکار پیکربندی شده باشد.
- خدمات تکمیل خودکار را بسازید
- سرویس تکمیل خودکار خود را پیاده سازی کنید.
- تکمیل خودکار با صفحه کلید را ادغام کنید
- صفحه کلید و سایر IME ها را برای استفاده از تکمیل خودکار فعال کنید و ارائه دهنده تکمیل خودکار خود را فعال کنید تا از یکپارچه سازی IME پشتیبانی کند.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-08-27 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-08-27 بهوقت ساعت هماهنگ جهانی."],[],[],null,["The autofill framework is available in Android 8.0 (API level 26) and higher.\n\nSome apps, such as password managers, can fill out the views in other apps with\ndata provided by the user. Apps that fill out other apps' views are called\n*autofill services*. The autofill framework manages the communication between an\napp and an autofill service.\n\nFilling out forms is a time-consuming and error-prone task. The autofill\nframework improves the user experience by providing the following benefits:\n\n- **Saving time spent filling in fields.** Autofill saves users from re-typing information.\n- **Minimizing user input errors.** Typing is prone to errors, especially on mobile devices. Minimizing the need to type information minimizes typos.\n\n| **Note:** Autofill works well with [Credential Manager](/identity/sign-in/credential-manager) and [passkeys](https://developers.google.com/identity/passkeys) to provide increased security and a smoother workflow.\n\nComponents\n\nThe autofill framework contains the following high-level components:\n\n- **Autofill services:** apps such as password managers that save and store user information that can be used in views across multiple apps.\n- **Autofill clients:** apps that provide views that need to be filled out or that hold the user's data.\n- **Android system:** the OS that defines the workflow and provides the infrastructure that makes services and clients work together.\n\nFor a detailed explanation of the autofill workflow, see the\n[`AutofillService`](/reference/android/service/autofill/AutofillService) and\n[`AutofillManager`](/reference/android/view/autofill/AutofillManager) reference\ndocumentation.\n\nGuides\n\nTo learn more about how to use the autofill framework, see the following guides:\n\n[Optimize your app for autofill](/guide/topics/text/autofill-optimize)\n: Check that your app is configured for use with the autofill framework.\n\n[Build autofill services](/guide/topics/text/autofill-services)\n: Implement your own autofill service.\n\n[Integrate autofill with keyboards](/guide/topics/text/ime-autofill)\n: Enable keyboards and other IMEs to use autofill, and enable your autofill\n provider to support IME integration."]]