จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แผ่นสรุป ViewModel API
เป็นส่วนหนึ่งของ Android Jetpack
เคล็ดลับนี้ช่วยให้คุณดู ViewModel API ต่างๆ ที่มีให้ใช้งานใน 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)"]]