An electronic device comprising: - a display; - a communication circuit; - a control circuit; and - a memory electrically connected to the control circuit, wherein the memory stores instructions enabling the control circuit to: display a content on the display of the electronic device; execute a sharing function between the electronic device and an external device by: displaying an icon associated with controlling of the sharing function on the display of the electronic device, wherein the icon is displayed on a separate layer on the display that differs from a layer displaying the content, transmitting data associated with the content, currently displayed on the display of the electronic device, to the external device for displaying on a display of the external device, without transmitting data associated with the icon, as displayed in said separate layer on the display of the electronic device, to the external device such that the content displayed on the electronic device minus the icon is displayable as a shared image on the external device, and in response to a first user input via the icon, transmitting a status image to the external device instead of the data associated with the shared image while continuing to display the icon and the content on the display of the electronic device, wherein the control circuit is further configured to change the icon to a floating state based on a predefined user input, wherein, when the icon is in the floating state, the icon is movable on the display based on a second user input. - a display; - a communication circuit; - a control circuit; and - a memory electrically connected to the control circuit, wherein the memory stores instructions enabling the control circuit to: display a content on the display of the electronic device; execute a sharing function between the electronic device and an external device by: displaying an icon associated with controlling of the sharing function on the display of the electronic device, wherein the icon is displayed on a separate layer on the display that differs from a layer displaying the content, transmitting data associated with the content, currently displayed on the display of the electronic device, to the external device for displaying on a display of the external device, without transmitting data associated with the icon, as displayed in said separate layer on the display of the electronic device, to the external device such that the content displayed on the electronic device minus the icon is displayable as a shared image on the external device, and in response to a first user input via the icon, transmitting a status image to the external device instead of the data associated with the shared image while continuing to display the icon and the content on the display of the electronic device, wherein the control circuit is further configured to change the icon to a floating state based on a predefined user input, wherein, when the icon is in the floating state, the icon is movable on the display based on a second user input. display a content on the display of the electronic device; execute a sharing function between the electronic device and an external device by: displaying an icon associated with controlling of the sharing function on the display of the electronic device, wherein the icon is displayed on a separate layer on the display that differs from a layer displaying the content, transmitting data associated with the content, currently displayed on the display of the electronic device, to the external device for displaying on a display of the external device, without transmitting data associated with the icon, as displayed in said separate layer on the display of the electronic device, to the external device such that the content displayed on the electronic device minus the icon is displayable as a shared image on the external device, and in response to a first user input via the icon, transmitting a status image to the external device instead of the data associated with the shared image while continuing to display the icon and the content on the display of the electronic device, wherein the control circuit is further configured to change the icon to a floating state based on a predefined user input, wherein, when the icon is in the floating state, the icon is movable on the display based on a second user input. displaying an icon associated with controlling of the sharing function on the display of the electronic device, wherein the icon is displayed on a separate layer on the display that differs from a layer displaying the content, transmitting data associated with the content, currently displayed on the display of the electronic device, to the external device for displaying on a display of the external device, without transmitting data associated with the icon, as displayed in said separate layer on the display of the electronic device, to the external device such that the content displayed on the electronic device minus the icon is displayable as a shared image on the external device, and in response to a first user input via the icon, transmitting a status image to the external device instead of the data associated with the shared image while continuing to display the icon and the content on the display of the electronic device, wherein the control circuit is further configured to change the icon to a floating state based on a predefined user input, wherein, when the icon is in the floating state, the icon is movable on the display based on a second user input.