Patent attributes
An example method for controlling an external electronic device of an electronic device, according to various embodiments, includes: receiving data information corresponding to at least one function of the external electronic device from an external electronic device connected to the electronic device; displaying a setting window for setting a user interface for controlling the external electronic device using the data information; selecting a control item corresponding to the at least one function included in the setting window according to user input reception; and setting and displaying the user interface corresponding to the selected control item.