Patent ID: 11996021

Abstract:
An electronic device according to various embodiments comprises: a housing, a display including a main display area and at least one expandable display area, the at least one expandable display area is hidden in the housing in a slide-in state and exposed to outside in a slide-out state and the main display area is exposed to outside in the slide-in state and the slide-out state, a communication module including communication circuitry, and a processor operatively connected to the display and the communication module, wherein the processor is configured to: control the display to display first content on the main display area in the slide-in state in which the at least one expandable display area is hidden in the housing, establish a connection with an external device through the communication module, determine a first area to display the first content and a second area to display second content based on information received from the external device through the communication module in the slide-out state in which the at least one expandable display area is exposed to outside, and control the display to display the first content on the determined first area and display the second content on the determined second area based on the at least one expandable display area being exposed to outside.