# Network

This is a very simple component to allow you to get some basic network info about the device.

## Events

### On Connect

![](https://2210308116-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L8fYW7L3BwD6b6qtcZU%2F-L8fYWYUH7V44NtENovf%2F-L8fYjHjSnK2GZ_WECDo%2FOnConnect.png?generation=1522222965478786\&alt=media)

The On Connect Event is called when the device connects to a WiFi or mobile network.

### On Disconnect

![](https://2210308116-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L8fYW7L3BwD6b6qtcZU%2F-L8fYWYUH7V44NtENovf%2F-L8fYjHsolQGcpq5FBC_%2FOnDisconnect.png?generation=1522222966675209\&alt=media)

The On Disconnect Event is called when the device disconnects from a WiFi or mobile network.

## Methods

### Is Connected

![](https://2210308116-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L8fYW7L3BwD6b6qtcZU%2F-L8fYWYUH7V44NtENovf%2F-L8fYjI7uFxHiJ2jgXs3%2FIsConnected.png?generation=1522222965509155\&alt=media)

Is Connected returns True or False depending whether the device is connected to a WiFi or mobile network.

### Type

![](https://2210308116-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L8fYW7L3BwD6b6qtcZU%2F-L8fYWYUH7V44NtENovf%2F-L8fYjIHox1lP6_gJbKo%2FType.png?generation=1522222965490306\&alt=media)

Type returns the type of network that the device is connected to. Possible types are WiFi and Mobile.
