DevicePropertyGroup Class

Description


The DevicePropertyGroup class is used to arrange Device-Properties in groups. They appear together in a container on the DeviceMainPage of the app.

  	
class DevicePropertyGroup {
public:
    DevicePropertyGroup();
    DevicePropertyGroup(const DevicePropertyGroup& g);

    void addDeviceProperty(const DeviceProperty& p);

    String descriptor = "not set";

    unsigned int imageID = 0;
    cID groupID = 0;
);
  

addDeviceProperty Method


This method is used to add a Device-Property to the group.

Arguments:

p - The property element to add. Type: DeviceProperty

Descriptor


This is the text resource for the group element. The text is displayed in the group header.

Image ID


The image defines the image which will be displayed in the group element. The LaRoomyImages enum can be used to set the image. A full list of the available images is here.

  	  
unsigned int imageID = LaRoomyImages::HOUSE_001;
  

Group ID


This parameter is used to uniquely identify a group element. Therefore it must be unique for every element, that means that no other element should have the same id. The group element must not have a zero ID.