קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מדריך לממשקי API של ViewModel
חלק מ-Android Jetpack.
במסמך הזה מפורטים במהירות ממשקי ה-API השונים של ViewModel שזמינים ב-Jetpack, כולל הארטיפקט שבו אפשר למצוא אותם, היקף המכונה של ViewModel שהוחזרה ודוגמה לשימוש בהם.
אפשר גם להוריד את רשימת הטריקים בפורמט PDF.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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,["# ViewModel APIs cheat sheet\nPart of [Android Jetpack](/jetpack).\n===============================================================\n\nThis cheat sheet lets you quickly see the different ViewModel APIs available\nin Jetpack including the artifact where they can be found, the scope of the\nreturned ViewModel instance, and an example of how to use them.\n\nThe cheat sheet is also [downloadable in\nPDF format](/static/images/topic/libraries/architecture/viewmodel-apis-cheatsheet.pdf).\n\n[](/static/images/topic/libraries/architecture/viewmodel-apis-cheatsheet.png)"]]