You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ VersionCheck.needUpdate(2)
80
80
-**`getCurrentBuildNumber()`**_(Number)_ - Returns current app build number.
81
81
-**`getCurrentVersion()`**_(String)_ - Returns current app version.
82
82
-**`getLatestVersion()`**_(Promise)_ - Returns the latest app version parsed from market. Returns `null` when parsing error occurs.
83
-
-**`needUpdate(depth : Number, delimiter : String)`**_(Promise)_ - Returns `{ isNeeded: true, version: latestVersion}` if app needs update, `{ isNeeded: false, version: latestVersion }` otherwise. Current and the latest app versions are first splitted by delimiter(`'.'` by default), and check each splitted numbers into depth(`Infinity` by default).
83
+
-**`needUpdate(depth : Number, delimiter : String)`**_(Promise)_ - Returns `{ isNeeded: true, currentVersion: currentVersion, latestVersion: latestVersion }` if app needs update, `{ isNeeded: false, currentVersion: currentVersion, latestVersion: latestVersion }` otherwise. Current and the latest app versions are first splitted by delimiter(`'.'` by default), and check each splitted numbers into depth(`Infinity` by default).
0 commit comments