Platform Screen View Model

class PlatformScreenViewModel(applicationId: String, platform: Platform) : EquinoxViewModel

The PlatformScreenViewModel class is the support class used to execute the requests related to the PlatformScreen

Author

N7ghtm4r3 - Tecknobit

Parameters

applicationId

The identifier of the application displayed

platform

The specific platform of the application displayed

See also

Retriever
EquinoxViewModel

Constructors

Link copied to clipboard
constructor(applicationId: String, platform: Platform)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val analyticsState: PaginationState<Int, AmetistaAnalytic>

analyticsState -> the state used to manage the pagination for the loadIssues method

Link copied to clipboard
lateinit var analyticType: MutableState<AnalyticType>

analyticType -> the type of the analytic displayed

Link copied to clipboard
val filtersSet: StateFlow<Boolean>
Link copied to clipboard

filtersState -> the state used to contain the filters for the issues

Link copied to clipboard

newVersionFilters -> the new versions to filter the _performanceData

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
open override fun canRetrieverStart(): Boolean
Link copied to clipboard

Method to clear the current filters selected by the user

Link copied to clipboard

Method to clear the current for the performance data filters selected by the user

Link copied to clipboard
open override fun continueToRetrieve(currentContext: KClass<*>): Boolean
Link copied to clipboard
fun filterIssues(onSuccess: () -> Unit)

Method to filter the issues to load

Link copied to clipboard

Method to filter the performance data collected

Link copied to clipboard

Method to get all the available version samples for the performance data collected

Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard

Method to request the performance data analytics

Link copied to clipboard
open override fun restartRetriever()
Link copied to clipboard
open fun restartRetrieverIf(condition: Boolean)
Link copied to clipboard
open override fun retrieve(currentContext: KClass<*>, routine: suspend () -> Unit, repeatRoutine: Boolean, refreshDelay: Long)
Link copied to clipboard
open fun setActiveContext(currentContext: KClass<*>)
Link copied to clipboard
fun showSnackbarMessage(response: JsonObject)
fun showSnackbarMessage(message: StringResource)
Link copied to clipboard
open override fun suspendRetriever()
Link copied to clipboard
open fun suspendRetrieverIf(condition: Boolean)