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
Removed broken/inconsistent links (API reference sections ) from http.md and connectivity.md and instead made them complete,no need to point other pages
The Application module provides abstraction over the platform-specific Application implementations. The module lets you manage the lifecycle of your NativeScript applications from starting the application to handling application events and creating platform-specific logic, such as, sending Broadcasts on Android or adding a Notification observer on IOS.
|`getConnectionType`|`number`| Gets the type of connection. Returns a value from the `connectivityModule.connectionType` enumeration. To use this method on Android you need to have the **android.permission.ACCESS_NETWORK_STATE** permission added to the **AndroidManifest.xml** file. |
88
+
|`startMonitoring(connectionTypeChangedCallback: function)`|`void`| Starts monitoring the connection type. |
89
+
|`stopMonitoring`|`void`| Stops monitoring the connection type. |
Copy file name to clipboardExpand all lines: nativescript-core/http.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,9 +172,3 @@ Http.request({
172
172
|`getJSON<T>(url: string): Promise<T>`|`Promise<T>`| Downloads the content from the specified URL as a string and returns its JSON.parse representation. |
173
173
|`getString(url: string): Promise<string>`|`Promise<string>`| Downloads the content from the specified URL as a string. |
174
174
|`request(options: HttpRequestOptions): Promise<HttpResponse>`|`Promise<HttpResponse>`| Makes a generic http request using the provided options and returns a HttpResponse Object. |
0 commit comments