Comparing version 1.4.5 to 1.5.0-0
@@ -297,2 +297,17 @@ import * as DataType from './types/data'; | ||
getNetworkType(): Promise<DataType.NetworkTypeSuccessCallback>; | ||
/** | ||
* Listens on the network status change event. | ||
* | ||
* @function onNetworkStatusChange | ||
* @category Device | ||
* | ||
* @example | ||
* zmpApis.onNetworkStatusChange(function (res) { | ||
* console.log(res.isConnected); | ||
* console.log(res.networkType); | ||
* }) | ||
* | ||
* @param {Function} callback - The callback function for the network status change event. | ||
*/ | ||
onNetworkStatusChange(callback: (res: DataType.OnNetworkStatusChangeCallback) => void): void; | ||
} |
@@ -216,2 +216,12 @@ /** | ||
}; | ||
/** | ||
* On network status change callback | ||
* @typedef OnNetworkStatusChangeCallback | ||
*/ | ||
export declare type OnNetworkStatusChangeCallback = { | ||
/** Indicates whether it is connected to the network */ | ||
isConnected: boolean; | ||
/** Network Type */ | ||
networkType: NetworkType; | ||
}; | ||
export {}; |
{ | ||
"name": "zmp-sdk", | ||
"version": "1.4.5", | ||
"version": "1.5.0-0", | ||
"description": "Zalo Mini App SDK", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3053564
72495
2