create
suspend fun create( context: Context, lifecycleOwner: LifecycleOwner, vhalPropertyList: List<VhalPropertyDelegate<out Any>>): VhalWrapper?
Content copied to clipboard
Creates an instance of the VhalWrapper.
VhalWrapper depends on a Car instance, which blocks the current thread when created, leading to ANRs. This create method prevents blocking the current thread by offloading the creation to a worker thread. When the Car service is not available, null
is returned.