android-components / mozilla.components.feature.pwa / WebAppUseCases / GetInstallStateUseCase

GetInstallStateUseCase

class GetInstallStateUseCase (source)

Checks the current install state of a Web App.

Returns WebAppShortcutManager.InstallState.Installed if the user has installed or used the web app in the past 30 days.

Otherwise, WebAppShortcutManager.InstallState.NotInstalled is returned.

Functions

Name Summary
invoke operator suspend fun invoke(currentTime: Long = System.currentTimeMillis()): WebAppInstallState?