Google is committed to advancing racial equity for Black communities. See how.

SystemProviders

open class SystemProviders
kotlin.Any
   ↳ androidx.wear.complications.SystemProviders

Methods to retrieve the component names for system complication providers. This will allow these providers to be used as defaults by watch faces.

Summary

Constants
static Int

Id for the 'app shortcut' complication provider.

static Int

Id for the 'date' complication provider.

static Int

Id for the 'day and date' complication provider.

static Int

Id for the 'day of week' complication provider.

static Int

Id for the 'favorite contact' complication provider.

static Int

Id for the Google Pay complication provider.

static Int

Id for the 'most recent app' complication provider.

static Int

Id for the 'next event' complication provider.

static Int

Specifies that no provider should be used.

static Int

Id for the 'retail mode chat' complication provider.

static Int

Id for the 'retail mode step count' complication provider.

static Int

Id for the 'step count' complication provider.

static Int

Id for the 'sunrise sunset' complication provider.

static Int

Id for the 'time and date' complication provider.

static Int

Id for the 'unread notification count' complication provider.

static Int

Id for the 'watch battery' complication provider.

static Int

Id for the 'world clock' complication provider.

Constants

APP_SHORTCUT

static val APP_SHORTCUT: Int

Id for the 'app shortcut' complication provider.

This is a safe provider, so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports the following types: TYPE_SMALL_IMAGE, TYPE_LONG_TEXT.

Value: 6

DATE

static val DATE: Int

Id for the 'date' complication provider.

This is a safe provider, so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports only TYPE_SHORT_TEXT.

Value: 2

DAY_AND_DATE

static val DAY_AND_DATE: Int

Id for the 'day and date' complication provider.

This is a safe provider, so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports only TYPE_SHORT_TEXT.

Value: 16

DAY_OF_WEEK

static val DAY_OF_WEEK: Int

Id for the 'day of week' complication provider.

This is a safe provider, so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports only TYPE_SHORT_TEXT.

Value: 13

FAVORITE_CONTACT

static val FAVORITE_CONTACT: Int

Id for the 'favorite contact' complication provider.

This is not a safe provider, so if a watch face uses this as a default it will receive data of TYPE_NO_PERMISSION until the user has granted the RECEIVE_COMPLICATION_DATA.

This provider supports only TYPE_SMALL_IMAGE.

Value: 14

GOOGLE_PAY

static val GOOGLE_PAY: Int

Id for the Google Pay complication provider.

This is a safe provider (because it only launches the Google Pay app), so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports only TYPE_SMALL_IMAGE.

Value: 8

MOST_RECENT_APP

static val MOST_RECENT_APP: Int

Id for the 'most recent app' complication provider.

This is a safe provider, so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports TYPE_SMALL_IMAGE, .

Value: 15

NEXT_EVENT

static val NEXT_EVENT: Int

Id for the 'next event' complication provider.

This is not a safe provider, so if a watch face uses this as a default it will receive data of TYPE_NO_PERMISSION until the user has granted the RECEIVE_COMPLICATION_DATA.

This provider supports the following types: TYPE_SHORT_TEXT, TYPE_LONG_TEXT.

Value: 9

NO_PROVIDER

static val NO_PROVIDER: Int

Specifies that no provider should be used.

Value: -1

RETAIL_CHAT

static val RETAIL_CHAT: Int

Id for the 'retail mode chat' complication provider.

This provider shows fake 'unread chat messages' data, and the tap action launches the retail mode chat app. This provider should only be set as a default if the device is in retail mode.

This provider supports only TYPE_SHORT_TEXT.

Value: 11

RETAIL_STEP_COUNT

static val RETAIL_STEP_COUNT: Int

Id for the 'retail mode step count' complication provider.

This provider shows fake step count data, and the tap action launches the retail mode health app. This provider should only be set as a default if the device is in retail mode.

This provider supports only TYPE_SHORT_TEXT.

Value: 10

STEP_COUNT

static val STEP_COUNT: Int

Id for the 'step count' complication provider.

This is a safe provider (because it only shows a daily total), so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports only TYPE_SHORT_TEXT.

Value: 4

SUNRISE_SUNSET

static val SUNRISE_SUNSET: Int

Id for the 'sunrise sunset' complication provider.

This provider shows next sunrise or sunset time according to current timezone and location.

This provider supports only TYPE_SHORT_TEXT.

Value: 12

TIME_AND_DATE

static val TIME_AND_DATE: Int

Id for the 'time and date' complication provider.

This is a safe provider, so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports only TYPE_SHORT_TEXT.

Value: 3

UNREAD_NOTIFICATION_COUNT

static val UNREAD_NOTIFICATION_COUNT: Int

Id for the 'unread notification count' complication provider.

This is a safe provider, so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports the following types: TYPE_ICON, TYPE_SHORT_TEXT.

Value: 7

WATCH_BATTERY

static val WATCH_BATTERY: Int

Id for the 'watch battery' complication provider.

This is a safe provider, so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports the following types: TYPE_ICON, TYPE_SHORT_TEXT, , TYPE_RANGED_VALUE.

Value: 1

WORLD_CLOCK

static val WORLD_CLOCK: Int

Id for the 'world clock' complication provider.

This is a safe provider, so if a watch face uses this as a default it will be able to receive data from it even before the RECEIVE_COMPLICATION_DATA permission has been granted.

This provider supports only TYPE_SHORT_TEXT.

Value: 5