Stay organized with collections
Save and categorize content based on your preferences.
Common/All Android/JVM Native/C/iOS
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-06-04 UTC.
[null,null,["Last updated 2025-06-04 UTC."],[],[],null,["# ViewModelProvider.NewInstanceFactory.Companion\n==============================================\n\nArtifact: [androidx.lifecycle:lifecycle-viewmodel](/jetpack/androidx/releases/lifecycle) \n[View Source](https://cs.android.com/search?q=file:androidx/lifecycle/ViewModelProvider.desktop.kt+class:androidx.lifecycle.ViewModelProvider.NewInstanceFactory.Companion) \nAdded in [2.4.0](/jetpack/androidx/releases/lifecycle#2.4.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/lifecycle/ViewModelProvider.NewInstanceFactory \"View this page in Java\")\nCommon/AllAndroid/JVMNative/C/iOS\n - android \n\n ```\n object ViewModelProvider.NewInstanceFactory.Companion\n ```\n\n*** ** * ** ***"]]