Skip to content

Commit

Permalink
Fixes #2160 (#2163)
Browse files Browse the repository at this point in the history
  • Loading branch information
kul3r4 authored Mar 25, 2024
1 parent 65f3f10 commit 651e2c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/datalayer-helpers-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,16 @@ your `ComplicationDataSourceService`:
In `onComplicationActivated`:

```kotlin
wearAppHelper.markComplicationAsActivated("GoalsComplication")
wearAppHelper.markComplicationAsActivated(complicationName = "GoalsComplication",
complicationInstanceId = 1234,
complicationType = ComplicationType.SHORT_TEXT,
)
```

In `onComplicationDeactivated`:

```kotlin
wearAppHelper.markComplicationAsDeactivated("GoalsComplication")
wearAppHelper.markComplicationAsDeactivated(complicationInstanceId = 1234)
```

## Tracking the main activity has been launched at least once (Wear-only)
Expand Down
1 change: 1 addition & 0 deletions docs/datalayer-phone-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ Please note that this feature is only supported on Pixel watches.

The `shouldDisplayPrompt` method allows to check if the prompt should be displayed, based on the
following conditions:

- the Wear app is installed and it's tracking the status of installed Tiles. See
[trackInstalledTiles](https://github.com/google/horologist/blob/main/datalayer/sample/wear/src/main/java/com/google/android/horologist/datalayer/sample/TileSync.kt#L35)
in the sample app. The `trackInstalledTiles` has to be called when the app is launched, on
Expand Down

0 comments on commit 651e2c5

Please sign in to comment.