import { UniServiceJSBridge as UniServiceJSBridge1, getCurrentPageVm as getCurrentPageVm1, getPageIdByVm as getPageIdByVm1 } from "@dcloudio/uni-app-harmony-framework";
import Want1 from '@ohos.app.ability.Want';
import buffer1 from '@ohos.buffer';
import bundleManager1 from '@ohos.bundle.bundleManager';
...
...
@@ -63,6 +64,8 @@ import harmonyWindow from '@ohos.window';
import http1 from '@ohos.net.http';
import http2 from '@ohos.net.http';
import { isPlainObject, Emitter as Emitter1 } from "@dcloudio/uni-app-harmony-framework";
import network, { NetworkResponse } from '@system.network';
import { networkinfo, UniServiceJSBridge } from "@dcloudio/uni-app-harmony-framework";
import picker1 from '@ohos.file.picker';
import picker2 from '@ohos.file.picker';
import picker3 from '@ohos.file.picker';
...
...
@@ -246,6 +249,30 @@ export class GetDeviceInfoResult extends UTSObject {
romVersion: string | null = null;
}
export type GetDeviceInfo = (options?: GetDeviceInfoOptions | null) => GetDeviceInfoResult;
type GetNetworkType = (options: GetNetworkTypeOptions) => void;
class GetNetworkTypeSuccess extends UTSObject {
networkType!: string;
}
type GetNetworkTypeSuccessCallback = (result: GetNetworkTypeSuccess) => void;
type GetNetworkTypeFail = UniError;
type GetNetworkTypeFailCallback = (result: GetNetworkTypeFail) => void;
type GetNetworkTypeComplete = Object;
type GetNetworkTypeCompleteCallback = (result: GetNetworkTypeComplete) => void;