Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions) Summary: [Constants](https://developer.android.com/reference/com/google/wear/services/complications/TargetWatchFaceSafety#constants) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/services/complications/TargetWatchFaceSafety#inhmethods)

# TargetWatchFaceSafety


`
public

final

class
TargetWatchFaceSafety
`


`

extends Object


`

`


`

|---|---|
| java.lang.Object ||
| ↳ | com.google.wear.services.complications.TargetWatchFaceSafety |

<br />

*** ** * ** ***

Defines constants that describe whether or not the watch face the complication is being requested
for is deemed to be safe. I.e. if its in the list defined by the `ComplicationDataSourceService.METADATA_KEY_SAFE_WATCH_FACES` meta data in the `ComplicationDataSourceService`'s manifest.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/com/google/wear/services/complications/TargetWatchFaceSafety#SAFE` The watch face is a member of the list defined by the `ComplicationDataSourceService`'s `ComplicationDataSourceService.METADATA_KEY_SAFE_WATCH_FACES` meta data in its manifest. |
| `int` | `https://developer.android.com/reference/com/google/wear/services/complications/TargetWatchFaceSafety#UNKNOWN` Prior to android T `ComplicationRequest.isForSafeWatchFace` is not supported and it will always be UNKNOWN. |
| `int` | `https://developer.android.com/reference/com/google/wear/services/complications/TargetWatchFaceSafety#UNSAFE` The watch face is NOT a member of the list defined by the `ComplicationDataSourceService`'s `ComplicationDataSourceService.METADATA_KEY_SAFE_WATCH_FACES` meta data in its manifest. |

| ### 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() ` | ||

## Constants

### SAFE

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

```
public static final int SAFE
```

The watch face is a member of the list defined by the `ComplicationDataSourceService`'s
`ComplicationDataSourceService.METADATA_KEY_SAFE_WATCH_FACES` meta data in its
manifest.

<br />

Constant Value:

1
(0x00000001)


### UNKNOWN

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

```
public static final int UNKNOWN
```

Prior to android T `ComplicationRequest.isForSafeWatchFace` is not supported and it
will always be UNKNOWN. It will also be unknown if the `ComplicationDataSourceService`'s manifest doesn't define `ComplicationDataSourceService.METADATA_KEY_SAFE_WATCH_FACES`, or if the `ComplicationDataSourceService` does not have the privileged permission
\`com.google.wear.permission.GET_IS_FOR_SAFE_WATCH_FACE\`.

<br />

Constant Value:

0
(0x00000000)


### UNSAFE

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

```
public static final int UNSAFE
```

The watch face is NOT a member of the list defined by the `ComplicationDataSourceService`'s `ComplicationDataSourceService.METADATA_KEY_SAFE_WATCH_FACES` meta data in its manifest.

<br />

Constant Value:

2
(0x00000002)