SystemProviders
public
class
SystemProviders
extends Object
java.lang.Object | |
↳ | android.support.wearable.complications.SystemProviders |
This class is deprecated.
use the Jetpack Wear
Watch Face libraries instead.
Methods to retrieve the component names for system complication providers. This will allow these providers to be used as defaults by watch faces.
Summary
Nested classes | |
---|---|
@interface |
SystemProviders.ProviderId
This @interface is deprecated. use the Jetpack Wear Watch Face libraries instead. |
Constants | |
---|---|
int |
ANDROID_PAY
This constant is deprecated.
Use |
int |
APP_SHORTCUT
Id for the 'app shortcut' complication provider. |
int |
DATE
Id for the 'date' complication provider. |
int |
DAY_OF_WEEK
Id for the 'day of week' complication provider. |
int |
FAVORITE_CONTACT
Id for the 'favorite contact' complication provider. |
int |
GOOGLE_PAY
Id for the Google Pay complication provider. |
int |
MOST_RECENT_APP
Id for the 'most recent app' complication provider. |
int |
NEXT_EVENT
Id for the 'next event' complication provider. |
int |
RETAIL_CHAT
Id for the 'retail mode chat' complication provider. |
int |
RETAIL_STEP_COUNT
Id for the 'retail mode step count' complication provider. |
int |
STEP_COUNT
Id for the 'step count' complication provider. |
int |
SUNRISE_SUNSET
Id for the 'sunrise sunset' complication provider. |
int |
TIME_AND_DATE
Id for the 'time and date' complication provider. |
int |
UNREAD_NOTIFICATION_COUNT
Id for the 'unread notification count' complication provider. |
int |
WATCH_BATTERY
Id for the 'watch battery' complication provider. |
int |
WORLD_CLOCK
Id for the 'world clock' complication provider. |
Public constructors | |
---|---|
SystemProviders()
|
Inherited methods | |
---|---|
Constants
ANDROID_PAY
public static final int ANDROID_PAY
This constant is deprecated.
Use GOOGLE_PAY
instead.
Constant Value: 8 (0x00000008)
APP_SHORTCUT
public static final int APP_SHORTCUT
Id for the 'app shortcut' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 6 (0x00000006)
DATE
public static final int DATE
Id for the 'date' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 2 (0x00000002)
DAY_OF_WEEK
public static final int DAY_OF_WEEK
Id for the 'day of week' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 13 (0x0000000d)
FAVORITE_CONTACT
public static final int FAVORITE_CONTACT
Id for the 'favorite contact' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 14 (0x0000000e)
GOOGLE_PAY
public static final int GOOGLE_PAY
Id for the Google Pay complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 8 (0x00000008)
MOST_RECENT_APP
public static final int MOST_RECENT_APP
Id for the 'most recent app' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
, TYPE_LONG_TEXT
.
Constant Value: 15 (0x0000000f)
NEXT_EVENT
public static final int NEXT_EVENT
Id for the 'next event' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 9 (0x00000009)
RETAIL_CHAT
public static final int RETAIL_CHAT
Id for the 'retail mode chat' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 11 (0x0000000b)
RETAIL_STEP_COUNT
public static final int RETAIL_STEP_COUNT
Id for the 'retail mode step count' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 10 (0x0000000a)
STEP_COUNT
public static final int STEP_COUNT
Id for the 'step count' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 4 (0x00000004)
SUNRISE_SUNSET
public static final int SUNRISE_SUNSET
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
.
Constant Value: 12 (0x0000000c)
TIME_AND_DATE
public static final int TIME_AND_DATE
Id for the 'time and date' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 3 (0x00000003)
UNREAD_NOTIFICATION_COUNT
public static final int UNREAD_NOTIFICATION_COUNT
Id for the 'unread notification count' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 7 (0x00000007)
WATCH_BATTERY
public static final int WATCH_BATTERY
Id for the 'watch battery' complication provider. For use with #setDefaultSystemComplicationProvider
.
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_LONG_TEXT
, TYPE_RANGED_VALUE
.
Constant Value: 1 (0x00000001)
WORLD_CLOCK
public static final int WORLD_CLOCK
Id for the 'world clock' complication provider. For use with #setDefaultSystemComplicationProvider
.
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
.
Constant Value: 5 (0x00000005)
Public constructors
SystemProviders
public SystemProviders ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.