Package ru.surf.core.base

Types

ColorsCustom
Link copied to clipboard
class ColorsCustom(link: Color, linkAction: Color, isLight: Boolean)

Custom colors for own theme MaterialThemeCustom

CoreDatabase
Link copied to clipboard
abstract class CoreDatabase : RoomDatabase

Database configuration RoomDatabase

CoreDatabaseQualifier
Link copied to clipboard
@Qualifier
annotation class CoreDatabaseQualifier

For database that doesn't need migrations and encryption

CoreDatabaseSecurityQualifier
Link copied to clipboard
@Qualifier
annotation class CoreDatabaseSecurityQualifier

For database with encryption and migrations

CoreSecurityDatabase
Link copied to clipboard
abstract class CoreSecurityDatabase : RoomDatabase

Database configuration RoomDatabase

LocalMaterialThemeCustom
Link copied to clipboard
object LocalMaterialThemeCustom

Static object for MaterialThemeCustom

MainViewModel
Link copied to clipboard
class MainViewModel @Inject constructor(apiService: CoreApiService, dataService: CoreDataService, dataServices: Set<@JvmSuppressWildcards IAppDatabase>, preferences: Set<@JvmSuppressWildcards IAppPreferences>) : ViewModel

Main ViewModel for app

MaterialThemeCustom
Link copied to clipboard
object MaterialThemeCustom

Material Theme Custom

ShapesCustom
Link copied to clipboard
class ShapesCustom(listItem: CornerBasedShape)

Shapes custom for MaterialThemeCustom

TryExecuteWithResponse
Link copied to clipboard
class TryExecuteWithResponse

Observe for specific exceptions

TypographyCustom
Link copied to clipboard
class TypographyCustom(title: TextStyle)

Typography custom for MaterialThemeCustom

Functions

MaterialThemeCustom
Link copied to clipboard
@Composable
fun MaterialThemeCustom(colors: ColorsCustom = LocalMaterialThemeCustom.colors!!, typography: TypographyCustom = TypographyCustom.default.invoke(), shapes: ShapesCustom = ShapesCustom.default)

fun for generate MaterialThemeCustom

Properties

LocalBackPressedDispatcher
Link copied to clipboard
val LocalBackPressedDispatcher: ProvidableCompositionLocal<OnBackPressedDispatcher>

OnBackPressedDispatcher Can be used in CompositionLocalProvider to provide values.

LocalMainViewModel
Link copied to clipboard
val LocalMainViewModel: ProvidableCompositionLocal<MainViewModel>

MainViewModel Can be used in CompositionLocalProvider to provide values.