Clean up formatting a bit more

This commit is contained in:
Anay Wadhera
2024-04-10 14:31:02 -04:00
committed by GitHub
parent 5a890470dd
commit 93b7fcbec4
+2 -2
View File
@@ -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.