com.samsung.android.sdk.healthdata

Class HealthDevice

  • All Implemented Interfaces:
    Parcelable


    public final class HealthDevice
    extends Object
    implements Parcelable
    This class represents device information that provides health data. It is used to identify the data source for each HealthData.
    Since:
    1.0.0
    • Field Detail

      • GROUP_UNKNOWN

        public static final int GROUP_UNKNOWN
        Unknown device group.
        Its constant value is 0.
        Since:
        1.0.0
        See Also:
        Constant Field Values
      • GROUP_MOBILE

        public static final int GROUP_MOBILE
        Group for mobile device.
        Its constant value is 360001.
        Since:
        1.0.0
        See Also:
        Constant Field Values
      • GROUP_EXTERNAL

        public static final int GROUP_EXTERNAL
        Group for external peripheral device.
        Its constant value is 360002.
        Since:
        1.0.0
        See Also:
        Constant Field Values
      • GROUP_COMPANION

        public static final int GROUP_COMPANION
        Group for companion or a watch device.
        Its constant value is 360003.
        Since:
        1.0.0
        See Also:
        Constant Field Values
    • Method Detail

      • equals

        public boolean equals(Object o)
        Checks if this instance and the given object indicate the same device. In other to be equal, obj must an instance of HealthDevice and each seed information must be equal.
        Overrides:
        equals in class Object
        Parameters:
        o - The HealthDevice object to compare this instance with
        Returns:
        true if the given object indicates the same device with this instance, or false
        See Also:
        hashCode()
      • hashCode

        public int hashCode()
        Returns a hash code value for this instance.
        If equals(Object) returns true for two objects, their hash code values are same.
        Overrides:
        hashCode in class Object
        Returns:
        The hash code value for this instance
        See Also:
        equals(Object)
      • getCustomName

        public String getCustomName()
        Gets a custom name given to the device.
        Returns:
        The custom name, or null
        Since:
        1.0.0
      • getModel

        public String getModel()
        Gets a model name of the device.
        Returns:
        The module name, or null
        Since:
        1.0.0
      • getManufacturer

        public String getManufacturer()
        Gets a manufacturer of the device.
        Returns:
        The manufacturer, or null
        Since:
        1.0.0
      • getUuid

        public String getUuid()
        Gets a unique ID of the device. The ID is generated from the seed information when the device is registered.
        Returns:
        The unique ID of the device, or
        null if the device is not registered
        Since:
        1.0.0