MobileHost Class
Methods
Name | Description | |
---|---|---|
constructor(): MobileHost | ||
notifyMobileFrontend<T extends >(methodName: T, ...args: Parameters<>): void Static | Send a notification to the MobileApp connected to this MobileHost. | |
startup(opt?: MobileHostOpts): Promise<void> Static | Start the backend of a mobile app. |
Properties
Name | Type | Description | |
---|---|---|---|
device Accessor Static ReadOnly | MobileDevice | ||
isValid Accessor Static ReadOnly | boolean | ||
onAuthAccessTokenChanged Static Readonly | BeEvent<(accessToken: string, expirationDate: string) => void> | Raised when the native auth client informs the mobile host that the access token has changed. | |
onConnected Static Readonly | BeEvent<Listener> | Raised after a mobile backend connects to the mobile frontend. | |
onEnterBackground Static Readonly | BeEvent<Listener> | Raised when a mobile app is about to enter the background. | |
onEnterForeground Static Readonly | BeEvent<Listener> | Raised after a mobile app returns to the foreground. | |
onMemoryWarning Static Readonly | BeEvent<Listener> | Raised when the mobile OS informs a mobile app that it is running low on memory. | |
onOrientationChanged Static Readonly | BeEvent<Listener> | Raised when the device orientation changes on a device running a mobile app. | |
onWillTerminate Static Readonly | BeEvent<Listener> | Raised when a mobile app is about to be terminated by the mobile OS. |
Defined in
- mobile/src/backend/MobileHost.ts Line 98
Last Updated: 02 May, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.