mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
Clean up formatting a bit more
This commit is contained in:
@@ -76,12 +76,12 @@ val sendFolderIntent = Intent("com.google.android.gms.nearby.SEND_FOLDER")
|
||||
```
|
||||
|
||||
|
||||
## The slice API
|
||||
## Slice API
|
||||
The nearby module in GMSCore provides a third-party accessible slice to bind to, to provide live data on nearby targets using Nearby Share. Clicking on any of these targets will take you to the main Nearby Share screen, where the transfer will begin and continually update the progress.
|
||||
|
||||
The slice URI is `content://com.google.android.gms.nearby.sharing/scan`. Upon first launch after install, you will be prompted to grant permission to the client application. After that, the slice will be kept up to date with the latest targets nearby.
|
||||
|
||||
## How to use the API ##
|
||||
### How to use the API
|
||||
Example code:
|
||||
```kotlin
|
||||
// Derive the Slice URI.
|
||||
|
||||
Reference in New Issue
Block a user