Members
(static) config
Properties:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Properties
|
Methods
(static) deepLinkToRoute(url) → {String}
A static method used to convert a Deep link to a route
With its default implementation, the original incoming string is return
You can override this function to get a different behaviour
Parameters:
Name | Type | Description |
---|---|---|
url |
String | The URL |
Returns:
The route
- Type
- String
(static) isFirstUse(prefixopt) → {Boolean}
Check if the first opening of the app.
Call setFirstUse to set the first use of the app.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
prefix |
String |
<optional> |
"" | A prefix to apply |
Returns:
- Type
- Boolean
(static) notifyUpdate(urlopt, version_cbopt, success_cbopt)
Check on the App/Play store (or on a your distributed URL) if new version of this app has been released.
If it is, a dialog is shown to prompt the user for the update.
On iOS, all three parameters are auto-generated based on the app ID to check against the App Store.
On Android, there's no a reliable method to check this on the Play Store, so you have to
specify it manually the URL (maybe on a server where you handle the current version) and the other two parameters.
For In-House applications or Development application, you have to do the same.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
url |
String |
<optional> |
null | The URL to use to check for the update. |
version_cb |
function |
<optional> |
null | The function to call that handle the parsing of the response: it must returns the version. |
success_cb |
function |
<optional> |
null | The function to call when the user click: "Update" |
(static) setFirstUse(prefixopt)
Set the app first usage date.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
prefix |
String |
<optional> |
"" | A prefix to apply Use in conjunction with isFirstUse |
(static) universalLinkToRoute(url) → {String}
A static method used to convert a Universal link to a route
With its default implementation, the original incoming string is return.
You can override this function to get a different behaviour
Parameters:
Name | Type | Description |
---|---|---|
url |
String | The URL |
Returns:
The route
- Type
- String