From 651e2c513637ef2a537a16dcd8f020352d60e303 Mon Sep 17 00:00:00 2001 From: Chiara Chiappini Date: Mon, 25 Mar 2024 16:32:44 +0000 Subject: [PATCH] Fixes #2160 (#2163) --- docs/datalayer-helpers-guide.md | 7 +++++-- docs/datalayer-phone-ui.md | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) 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