Toggle visible compontents

Hello everyone,

I am building a custom watch face in Watch Face Studio and I need to control the visibility of several components (e.g., a digital time layer, a weather icon) from a companion phone app.

My setup is as follows:

  • Watch Face Studio**:** My watch face has multiple layers I want to show /hide

  • Mobile App (Phone): I have a sender that can successfully send a boolean value (true/false) to the watch.

  • Watch App**:** I have a DataLayerListenerService on the watch that can receive this boolean data.

My goal is to use this recieved boolean value to toggle the visibility of a component on the watch face. Is this even possible? I looked at TAGs and expressions but I cannot set them for digital_time opacity. I created a group that includes the digital_time component and here I can edit the TAGs. But I do not know how to transfer the values.

Somebody suggested I use a custom complication for every component I want to toggle. But that seems inefficient. And within WFS I do not seem to be able to access custom complications.

Can somebody point in a direction that lets the phone app toggle various components of my Watchface?

Thank you

In general, this is impossible using WFF (hence WFS). I think the only remote control is for ‘user configurations’, and they can only be controlled using the vendor-provided app.

That is a shame. I was hoping for a way to show / hide some of the components without creating a new watchface.

Thank you for your response.

You can hide/show components, but not the way you were proposing (companion app).

I found a possible “BooleanConfiguration” within the Android docs https://developer.android.com/reference/wear-os/wff/group/configuration/boolean-configuration?version=3

But I think this does not integrate with WFS.

1 Like

You can show hide by putting an action on an image and swapping it out with a transparent .gif but depending on what it is, you might render things like tap-actions for app launchers to be obscured by the tap action of the image. one day…WFS hopefully will allow us to create tap-actions (buttons) like the “other guys”. Hey at least we finally got built-in weather.

2 Likes

This isn’t what you were looking for exactly, but it is possible to show/hide indicators if they’re placed under an image element by adding styles (other images) to that image element.

It ends up being configurable through the customization menu and doesn’t affect tap-actions in any way. Plus, it’s possible to have up to 10 different styles this way, allowing for interesting options.

For instance - the original image can be a transparent one (showing the indicator underneath), while the additional images (styles) you add can be fully black (hiding the indicator), or a different pattern, semi-transparent, etc. etc.

1 Like