Enum PolarDeviceToHostNotification
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum PolarDeviceToHostNotification extends Enum<PolarDeviceToHostNotification>
Enum representing all possible device-to-host notification types. Device to host notifications are used to inform client apps of important device state changes, such as negotiating data syncing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPolarDeviceToHostNotification.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integervalueprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<PolarDeviceToHostNotification>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description FILESYSTEM_MODIFIED(Not used currently for anything. Reserved for future use.)
INTERNAL_TEST_EVENTUsed to inform host about internal test data.
IDLINGUsed to inform host when the device is ready to communicate again after reporting WAIT_FOR_IDLING error.
BATTERY_STATUSUsed to inform host about device's battery status.
INACTIVITY_ALERTUsed to inform host about user's inactivity.
TRAINING_SESSION_STATUSUsed to inform host about training session status.
SYNC_REQUIREDUsed by device to request host to sync. This happens for example when user presses "Sync" button in the device.
AUTOSYNC_STATUSUsed by device to inform result of START_AUTOSYNC synchronization.
PNS_DH_NOTIFICATION_RESPONSEUsed to send responses to Polar Notification Service notifications.
PNS_SETTINGSUsed for Polar Notification Service settings
START_GPS_MEASUREMENTUsed to request mobile device to start GPS measurement. Parameter PbPftpStartGPSMeasurement
STOP_GPS_MEASUREMENTUsed to request mobile device to stop GPS measurement. No parameters
KEEP_BACKGROUND_ALIVEUsed to keep mobile running in background. No parameters
POLAR_SHELL_DH_DATAPolar shell is to transfer any test related data from device to host
MEDIA_CONTROL_REQUEST_DHRequest information from media player
MEDIA_CONTROL_COMMAND_DHSend command for media player
MEDIA_CONTROL_ENABLEDUsed for informing host when device wants to receive media control data
REST_API_EVENTGeneric REST API event
EXERCISE_STATUSUsed to inform host about exercise status
-
Method Summary
Modifier and Type Method Description final PolarDeviceToHostNotificationvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<PolarDeviceToHostNotification>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetValue()final EnumEntries<PolarDeviceToHostNotification>getEntries()Enum representing all possible device-to-host notification types. -
-
Method Detail
-
valueOf
final PolarDeviceToHostNotification valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<PolarDeviceToHostNotification> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<PolarDeviceToHostNotification> getEntries()
Enum representing all possible device-to-host notification types. Device to host notifications are used to inform client apps of important device state changes, such as negotiating data syncing.
-
-
-
-