CPC G09G 3/035 (2020.08) [G06F 3/04886 (2013.01); H04M 1/0268 (2013.01); H04W 4/21 (2018.02); G06F 3/04817 (2013.01); G06F 3/0482 (2013.01); G09G 2354/00 (2013.01); G09G 2370/022 (2013.01); H04M 2250/12 (2013.01)] | 19 Claims |
1. An electronic device comprising:
a housing;
a flexible display having at least a partial area configured to be drawn out from the housing so that a size of a visible area of the flexible display can be changed;
a sensor configured to measure a length of the flexible display;
a memory; and
at least one processor operatively connected to the memory, the sensor, and the flexible display, and configured to control the electronic device to:
display first content in a first area comprising a partial area of the flexible display, in response to an input,
measure a length of the visible area of the flexible display from the housing using the sensor,
based on the length of the visible area of the flexible display measured using the sensor being a specified first length, determine that the electronic device is in a non-expanded state,
based on the length of the visible area of the flexible display measured using the sensor being a second length longer than the first length, determine that the electronic device is in an expanded state,
based on the electronic device being in an expanded state, display the first content in the first area, and display a user interface corresponding to at least one application and/or second content in a second area, wherein the second area comprises a partial area of the flexible display drawn out from the housing to be visible, and the second content is to be obtained by converting the first content into a form corresponding to a function provided by the at least one application
transmit, in response to an input, data corresponding to the first content to a server connected to the at least one application,
display a swap-related icon on an execution screen of the at least one application screen related to the second content in the second area, and
based on an input on the swap-related icon, swap a position of the first content in the first area with that of the execution screen of the at least one application displayed in the second area.
|