MobileHost Class
Methods
Name | Description | |
---|---|---|
constructor(): MobileHost | ||
notifyMobileFrontend<T extends undefined>(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 StaticReadOnly | MobileDevice | ||
isValid Accessor StaticReadOnly | boolean | ||
onAuthAccessTokenChanged StaticReadonly | BeEvent<(accessToken: undefined | string, expirationDate: undefined | string) => void> | Raised when the native auth client informs the mobile host that the access token has changed. | |
onConnected StaticReadonly | BeEvent<Listener> | Raised after a mobile backend connects to the mobile frontend. | |
onEnterBackground StaticReadonly | BeEvent<Listener> | Raised when a mobile app is about to enter the background. | |
onEnterForeground StaticReadonly | BeEvent<Listener> | Raised after a mobile app returns to the foreground. | |
onMemoryWarning StaticReadonly | BeEvent<Listener> | Raised when the mobile OS informs a mobile app that it is running low on memory. | |
onOrientationChanged StaticReadonly | BeEvent<Listener> | Raised when the device orientation changes on a device running a mobile app. | |
onWillTerminate StaticReadonly | 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: 29 March, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.