@ -35,13 +35,17 @@ Add these to AndroidManifest.xml
```
Since ACCESS_FINE_LOCATION and READ_EXTERNAL_STORAGE is considered to be dangerous system permissions, in addition to adding them to your manifest, you must request these permissions at runtime.
##### As a convinience the library provides methods to check and request location permissions
#### As a **convinience** this library provides methods to check and request location and external read/write permissions
```java
// returns true/false asynchronously
bool a = await Nearby().checkPermissions()
// asks for permissions only if its not given
Nearby().askPermission()
bool a = await Nearby().checkLocationPermissions()
// asks for permission only if its not given
Nearby().askLocationPermission()
// OPTIONAL: if you need to transfer files and rename it on device
Nearby().checkExternalStoragePermission()
// asks for READ + WRTIE EXTERNAL STORAGE permission only if its not given
Nearby().askExternalStoragePermission()
```
## Work Flow
@ -60,7 +64,7 @@ try {
onConnectionResult: (String id,Status status) {
// Called when connection is accepted/rejected
},
onDisconnected: (id) {
onDisconnected: (String id) {
// Callled whenever a discoverer disconnects from advertiser
Demonstrates how to use the nearby_connections plugin.
## Getting Started
Checkout the [**Example**](https://github.com/mannprerak2/nearby_connections/tree/master/example) repository for implementation of sending bytes and files.
This project is a starting point for a Flutter application.