SearchViewModel

class SearchViewModel @Inject constructor(searchVulnOverviewUseCase: SearchVulnOverviewUseCase) : ViewModel

検索画面のビジネスロジックを扱うViewModel

Parameters

searchVulnOverviewUseCase

検索用のUseCase

Constructors

Link copied to clipboard
@Inject
constructor(searchVulnOverviewUseCase: SearchVulnOverviewUseCase)

Properties

Link copied to clipboard
val hasError: Flow<Int>

検索失敗時のエラーイベント

Link copied to clipboard
val uiState: StateFlow<SearchUiState>

UI状態

Functions

Link copied to clipboard
Link copied to clipboard

検索ボックスの入力値変更時のイベントハンドラ

Link copied to clipboard
fun searchOnJvn(keyword: CharSequence, onSearchComplete: () -> Unit? = null)

キーワードで JVN を検索します