@RequiresApi(value = 33)
object TargetWatchFaceSafety


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

const Int
SAFE = 1

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.

const Int

Prior to android T ComplicationRequest.isForSafeWatchFace is not supported and it will always be UNKNOWN.

const Int
UNSAFE = 2

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.

Constants

SAFE

Added in 1.2.0
const val SAFE = 1: Int

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.

UNKNOWN

Added in 1.2.0
const val UNKNOWN = 0: Int

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.

UNSAFE

Added in 1.2.0
const val UNSAFE = 2: Int

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.