ThreadsViewModelFactory

A ViewModel factory for creating a ThreadListViewModel.

Parameters

query

The QueryThreadsRequest used to load threads.

See also

Constructors

Link copied to clipboard
constructor(threadLimit: Int = ThreadListController.DEFAULT_THREAD_LIMIT, threadReplyLimit: Int = ThreadListController.DEFAULT_THREAD_REPLY_LIMIT, threadParticipantLimit: Int = ThreadListController.DEFAULT_THREAD_PARTICIPANT_LIMIT)

Creates a factory instance with the specified parameters.

constructor(query: QueryThreadsRequest)

Functions

Link copied to clipboard
open override fun <T : ViewModel> create(modelClass: Class<T>): T

Inherited functions

Link copied to clipboard
open fun <T : ViewModel> create(modelClass: Class<T>, extras: CreationExtras): T
open fun <T : ViewModel> create(modelClass: KClass<T>, extras: CreationExtras): T