mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
20 lines
509 B
Markdown
20 lines
509 B
Markdown
---
|
|
nav-title: "connectivity How-To"
|
|
title: "connectivity"
|
|
environment: nativescript
|
|
description: "Examples for using connectivity"
|
|
previous_url: /ApiReference/connectivity/HOW-TO
|
|
---
|
|
# Connectivity
|
|
Obtaining connectivity information requires the "connectivity" module.
|
|
{%snippet connectivity-require%}
|
|
|
|
### Getting connection type
|
|
{%snippet connectivity-type%}
|
|
|
|
### Monitoring connection type.
|
|
{%snippet connectivity-monitoring%}
|
|
|
|
### Permissions
|
|
On Android, the permission ACCESS_NETWORK_STATE is required.
|