17 lines
510 B
Kotlin
17 lines
510 B
Kotlin
/*
|
|
* Nextcloud - Android Client
|
|
*
|
|
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
package com.nextcloud.client.di
|
|
|
|
import androidx.lifecycle.ViewModel
|
|
import dagger.MapKey
|
|
import kotlin.reflect.KClass
|
|
|
|
@MustBeDocumented
|
|
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
|
@Retention(AnnotationRetention.RUNTIME)
|
|
@MapKey
|
|
annotation class ViewModelKey(val value: KClass<out ViewModel>)
|