CPC G06F 3/147 (2013.01) [G06F 1/1616 (2013.01); G06F 1/1652 (2013.01); G06F 1/1681 (2013.01)] | 15 Claims |
1. An electronic device comprising:
a foldable housing comprising:
a hinge;
a first housing connected to the hinge and comprising a first surface facing a first direction and a second surface facing a second direction opposite the first direction; and
a second housing connected to the hinge, comprising a third surface facing a third direction and a fourth surface facing a fourth direction opposite the third direction, and configured to fold onto the first housing about the hinge, the third direction being opposite the first direction in a folded state, and the third direction being identical to the first direction in a fully unfolded state;
a flexible display configured to be visible through the first surface of the first housing and the third surface of the second housing and comprises at least one edge area and a folding area;
a communication circuit disposed in the foldable housing;
a sensor module including at least one sensor;
a processor; and
a memory,
wherein the memory stores instructions that, when executed, cause the processor to:
sense whether an event configured to display a user interface has occurred,
identify an angle between the first housing and the second housing using the sensor module,
control the display to display the user interface in the edge area of the flexible display when the foldable housing is in the fully unfolded state based on the identified angle, and
control the display to display the user interface in the at least one edge area and folding area of the flexible display when the foldable housing is in the folded state based on the identified angle, and
wherein the edge area includes areas spaced from a periphery of the flexible display.
|