public enum

DynamicProto.PlatformInt32SourceType

extends java.lang.Enum<DynamicProto.PlatformInt32SourceType>

 java.lang.Object

↳java.lang.Enum<DynamicProto.PlatformInt32SourceType>

↳androidx.wear.protolayout.expression.proto.DynamicProto.PlatformInt32SourceType

Overview

 The type of data to provide to a PlatformInt32Source.
 
Protobuf enum androidx.wear.protolayout.expression.proto.PlatformInt32SourceType

Summary

Enum Constants
PLATFORM_INT32_SOURCE_TYPE_CURRENT_HEART_RATE
 The user's current heart rate.
PLATFORM_INT32_SOURCE_TYPE_DAILY_STEP_COUNT
 The user's current daily steps.
PLATFORM_INT32_SOURCE_TYPE_UNDEFINED
 Undefined source.
UNRECOGNIZED
Fields
public static final intPLATFORM_INT32_SOURCE_TYPE_CURRENT_HEART_RATE_VALUE

 The user's current heart rate.

public static final intPLATFORM_INT32_SOURCE_TYPE_DAILY_STEP_COUNT_VALUE

 The user's current daily steps.

public static final intPLATFORM_INT32_SOURCE_TYPE_UNDEFINED_VALUE

 Undefined source.

Methods
public static DynamicProto.PlatformInt32SourceTypeforNumber(int value)

public final intgetNumber()

public static <any>internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()

public static DynamicProto.PlatformInt32SourceTypevalueOf(int value)

public static DynamicProto.PlatformInt32SourceTypevalueOf(java.lang.String name)

public static DynamicProto.PlatformInt32SourceTypevalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

PLATFORM_INT32_SOURCE_TYPE_UNDEFINED

 Undefined source.
 
PLATFORM_INT32_SOURCE_TYPE_UNDEFINED = 0;

PLATFORM_INT32_SOURCE_TYPE_CURRENT_HEART_RATE

 The user's current heart rate.
 Note that to use this data source, your app must already have the
 "BODY_SENSORS" permission granted to it. If this permission is not present,
 this source type will never yield any data.
 
PLATFORM_INT32_SOURCE_TYPE_CURRENT_HEART_RATE = 1;

PLATFORM_INT32_SOURCE_TYPE_DAILY_STEP_COUNT

 The user's current daily steps. This is the number of steps they have taken
 since midnight, and will reset to zero at midnight.
 Note that to use this data source, your app must already have the
 "ACTIVITY_RECOGNITION" permission granted to it. If this permission is not
 present, this source type will never yield any data.
 
PLATFORM_INT32_SOURCE_TYPE_DAILY_STEP_COUNT = 2;

UNRECOGNIZED

Fields

public static final int PLATFORM_INT32_SOURCE_TYPE_UNDEFINED_VALUE

 Undefined source.
 
PLATFORM_INT32_SOURCE_TYPE_UNDEFINED = 0;

public static final int PLATFORM_INT32_SOURCE_TYPE_CURRENT_HEART_RATE_VALUE

 The user's current heart rate.
 Note that to use this data source, your app must already have the
 "BODY_SENSORS" permission granted to it. If this permission is not present,
 this source type will never yield any data.
 
PLATFORM_INT32_SOURCE_TYPE_CURRENT_HEART_RATE = 1;

public static final int PLATFORM_INT32_SOURCE_TYPE_DAILY_STEP_COUNT_VALUE

 The user's current daily steps. This is the number of steps they have taken
 since midnight, and will reset to zero at midnight.
 Note that to use this data source, your app must already have the
 "ACTIVITY_RECOGNITION" permission granted to it. If this permission is not
 present, this source type will never yield any data.
 
PLATFORM_INT32_SOURCE_TYPE_DAILY_STEP_COUNT = 2;

Methods

public static DynamicProto.PlatformInt32SourceType valueOf(java.lang.String name)

public final int getNumber()

public static DynamicProto.PlatformInt32SourceType valueOf(int value)

Deprecated: Use DynamicProto.PlatformInt32SourceType.forNumber(int) instead.

Parameters:

value: The number of the enum to look for.

Returns:

The enum associated with the given number.

public static DynamicProto.PlatformInt32SourceType forNumber(int value)

public static <any> internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()