Added in [version 33.1](https://developer.android.com/topic/libraries/support-library/revisions) Summary: [Methods](https://developer.android.com/reference/com/google/wear/services/ambient/AmbientComponentState.WatchFaceStateRegistry#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/services/ambient/AmbientComponentState.WatchFaceStateRegistry#inhmethods)

# AmbientComponentState.WatchFaceStateRegistry


`
public
static
final

class
AmbientComponentState.WatchFaceStateRegistry
`


`

extends Object


`

`


`

|---|---|
| java.lang.Object ||
| ↳ | com.google.wear.services.ambient.AmbientComponentState.WatchFaceStateRegistry |

<br />

*** ** * ** ***

A state registry specifically intended for watch face components based on the wallpaper
visibility. Components provide the `https://developer.android.com/reference/com/google/wear/services/ambient/AmbientManager` with their visibility updates via
the provided configuration method.

Watch faces can provide this integration following this example:

```
     void onCreate() {
         mMyWfStateRegistry = AmbientComponentState.makeWatchFaceRegistry();
     }

     @Override
     public void onVisibilityChanged(boolean visible) {
         super.onVisibilityChanged(visible);

         mMyWfStateRegistry.onVisibilityChanged(visible);
         ...
     }

 
```

<br />

## Summary

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/com/google/wear/services/ambient/AmbientComponentState.WatchFaceStateRegistry#onVisibilityChanged(boolean)(boolean visible) ` Indicate that the visibility of the watch face has changed. |

| ### Inherited methods |
|---|---|
| From class ` java.lang.Object ` |---|---| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class<?>` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||

## Public methods

### onVisibilityChanged

Added in [version 33.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public void onVisibilityChanged (boolean visible)
```

Indicate that the visibility of the watch face has changed.

<br />

| Parameters ||
|---|---|
| `visible` | `boolean`: `true` if the watch face is visible, otherwise `false`. <br /> |