LaunchInfo
Contains information about the application launch, such as whether it is the first run and the version of the application that was last launched.
import { LaunchInfo } from '@mobrowser/api';
Example
import { app, LaunchInfo } from '@mobrowser/api';
const launchInfo: LaunchInfo = app.launchInfo
if (launchInfo.isFirstRun) {
console.log('Welcome! First time launch.')
} else {
console.log('Last used version:', launchInfo.lastLaunchedVersion)
}
Properties
isFirstRun
readonly isFirstRun: boolean;
Indicates whether this is the first time the application has been launched.
lastLaunchedVersion
readonly lastLaunchedVersion: string;
The version of the application that was last launched, or an empty string if this is the first run.