com.samsung.android.sdk.healthdata

Class HealthDevice.Builder

  • Enclosing class:
    HealthDevice


    public static class HealthDevice.Builder
    extends Object
    This class is a builder to configure HealthDevice.
    Since:
    1.0.0
    • Constructor Detail

      • Builder

        public Builder()
        Helps to construct the HealthDevice object.
        Since:
        1.0.0
    • Method Detail

      • setModel

        public HealthDevice.Builder setModel(String model)
        Sets the model name of the device.
        Parameters:
        model - The model name
        Returns:
        The object that applies the model name
        Since:
        1.0.0
      • setManufacturer

        public HealthDevice.Builder setManufacturer(String manufacturer)
        Sets the manufacturer name of the device.
        Parameters:
        manufacturer - The manufacturer name
        Returns:
        The object that applies the manufacturer
        Since:
        1.0.0
      • setCustomName

        public HealthDevice.Builder setCustomName(String name)
        Sets the user-provided name the device.
        Parameters:
        name - The user-provided name
        Returns:
        The object that applies the user-provided name
        Since:
        1.0.0
      • setDeviceSeed

        public HealthDevice.Builder setDeviceSeed(String seed)
        Sets the seed to make a device's unique identifier. It can be a Wi-Fi Mac address, Bluetooth address, or device's serial number.
        Parameters:
        seed - The seed to make the device's unique identifier
        Returns:
        The object that applies the seed
        Since:
        1.0.0