package com.atmob.keyboard_android.mvvm

import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import com.atmob.keyboard_android.mvvm.viewmodel.KeyboardViewModel

/**
 * ViewModel管理器
 */
object ViewModelManager {
    /**
     * 获取键盘ViewModel
     */
    fun getKeyboardViewModel(owner: ViewModelStoreOwner): KeyboardViewModel {
        return ViewModelProvider(owner)[KeyboardViewModel::class.java]
    }
}