diff --git a/docs/datalayer-helpers-guide.md b/docs/datalayer-helpers-guide.md index 3ea392d522..6856c0348f 100644 --- a/docs/datalayer-helpers-guide.md +++ b/docs/datalayer-helpers-guide.md @@ -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) diff --git a/docs/datalayer-phone-ui.md b/docs/datalayer-phone-ui.md index d44a305faf..56133e9d4a 100644 --- a/docs/datalayer-phone-ui.md +++ b/docs/datalayer-phone-ui.md @@ -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