miroir de https://git.suyu.dev/suyu/suyu.git
20 lignes
619 B
Kotlin
20 lignes
619 B
Kotlin
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
package dev.suyu.suyu_emu.features.settings.model.view
|
|
|
|
import androidx.annotation.DrawableRes
|
|
import androidx.annotation.StringRes
|
|
|
|
class RunnableSetting(
|
|
@StringRes titleId: Int = 0,
|
|
titleString: String = "",
|
|
@StringRes descriptionId: Int = 0,
|
|
descriptionString: String = "",
|
|
val isRunnable: Boolean,
|
|
@DrawableRes val iconId: Int = 0,
|
|
val runnable: () -> Unit
|
|
) : SettingsItem(emptySetting, titleId, titleString, descriptionId, descriptionString) {
|
|
override val type = TYPE_RUNNABLE
|
|
}
|