Added in version 34.1

WearSettings

public class WearSettings
extends Object

java.lang.Object
   ↳ com.google.wear.settings.WearSettings


Collection of static constants/methods specific to Wear OS platform settings.

Summary

Public methods

static boolean isDynamicColorThemingEnabled(Context context)

Check if dynamic color theming is enabled.

static boolean isWristDetectionAutoLockingEnabled(Context context)

Check if wrist-detection auto-locking is enabled.

Inherited methods

Public methods

isDynamicColorThemingEnabled

Added in API level 36
public static boolean isDynamicColorThemingEnabled (Context context)

Check if dynamic color theming is enabled.

Dynamic color theming provides the ability to customize the system color palette by overriding the default colors using an alternate set of colors specified via a user selection. When enabled, dynamic color will automatically apply the selected color palette to all applicable system surfaces. When not enabled, or when no user selection is provided, the default set of colors is applied.

Parameters
context Context: The application context used to check the state of the setting.

Returns
boolean true if dynamic color is enabled, otherwise false.

isWristDetectionAutoLockingEnabled

Added in version 34.1
public static boolean isWristDetectionAutoLockingEnabled (Context context)

Check if wrist-detection auto-locking is enabled.

Wrist Detection Auto-Locking ensures the device will automatically lock when it detects that it is off wrist. When disabled, device will not automatically lock. This method may be helpful when an application wants to know whether a user accessing the application constitutes authentication or not.

Parameters
context Context: The application context used to check the state of the setting.

Returns
boolean true if auto-locking is enabled, otherwise false.