NativeHost Class

Backend for desktop/mobile native applications

Methods

Name Description
checkInternetConnectivity(): InternetConnectivityStatus Static get current value of internet connectivity  
notifyNativeFrontend<T extends "notifyInternetConnectivityChanged">(methodName: T, ...args: Parameters<>): void Static Send a notification to the NativeApp connected to this NativeHost.  
shutdown(): Promise<void> Static Shutdown native app backend.  
startup(opt?: NativeHostOpts): Promise<void> Static Start the backend of a native app.  

Properties

Name Type Description
applicationName Accessor StaticReadOnly string    
appSettingsCacheDir Accessor StaticReadOnly string Get the local cache folder for application settings  
isValid Accessor StaticReadOnly boolean    
onInternetConnectivityChanged StaticReadonly BeEvent<(status: InternetConnectivityStatus) => void> Event called when the internet connectivity changes, if known.  
settingsStore Accessor StaticReadOnly NativeAppStorage Get the settings store for this NativeHost.  

Defined in

Last Updated: 30 November, 2023