NativeApp Class

The frontend of a native application

see Native Applications

Methods

Name Description
callNativeHost<T extends AsyncMethodsOf<NativeAppFunctions>>(methodName: T extends AsyncMethodsOf<NativeAppFunctions>, ...args: Parameters<>): Promise<> Static    
checkInternetConnectivity(): Promise<InternetConnectivityStatus> Static    
closeStorage(storage: Storage, deleteStorage: boolean = false): Promise<void> Static Close a Storage and optionally delete it.  
deleteBriefcase(fileName: string): Promise<void> Static Delete an existing briefcase  
getBriefcaseFileName(props: BriefcaseProps): Promise<string> Static    
getCachedBriefcases(iModelId?: GuidString): Promise<LocalBriefcaseProps[]> Static Get a list of all briefcase files held in the local briefcase cache directory  
getStorageNames(): Promise<string[]> Static Get the list of existing Storages on the local disk.  
openStorage(name: string): Promise<Storage> Static Open a Storage.  
overrideInternetConnectivity(status: InternetConnectivityStatus): Promise<void> Static    
requestDownloadBriefcase(contextId: string, iModelId: string, downloadOptions: DownloadBriefcaseOptions, asOf: IModelVersion = IModelVersion.latest(), progress?: ProgressCallback): Promise<BriefcaseDownloader> Static    
shutdown(): Promise<void> Static    

Properties

Name Type Description
isValid Accessor StaticReadOnly boolean    
onInternetConnectivityChanged Static BeEvent<(status: InternetConnectivityStatus) => void>    

Defined in

Last Updated: 29 April, 2021