KR20230059111A - Electronic device and method for detecting attachment of external accseeory for displaying user interface in electronic device - Google Patents

Electronic device and method for detecting attachment of external accseeory for displaying user interface in electronic device Download PDF

Info

Publication number
KR20230059111A
KR20230059111A KR1020220012746A KR20220012746A KR20230059111A KR 20230059111 A KR20230059111 A KR 20230059111A KR 1020220012746 A KR1020220012746 A KR 1020220012746A KR 20220012746 A KR20220012746 A KR 20220012746A KR 20230059111 A KR20230059111 A KR 20230059111A
Authority
KR
South Korea
Prior art keywords
area
external accessory
display area
electronic device
attached
Prior art date
Application number
KR1020220012746A
Other languages
Korean (ko)
Inventor
석호영
김익상
이정원
이정훈
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2022/016251 priority Critical patent/WO2023075329A1/en
Publication of KR20230059111A publication Critical patent/KR20230059111A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1641Details related to the display arrangement, including those related to the mounting of the display in the housing the display being formed by a plurality of foldable display components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • G06F3/1431Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using a single graphics controller

Abstract

다양한 실시 예들에 따른 전자 장치는, 제1하우징, 제2하우징, 상기 제1 하우징의 일측을 상기 제2 하우징의 일측에 폴딩 가능하게 연결하는 힌지, 상기 제1 하우징에 배치되는 제1 디스플레이 영역 및 상기 제2 하우징에 배치되는 제2 디스플레이 영역을 포함하는 디스플레이, 및 프로세서를 포함하고, 상기 프로세서는, 상기 힌지가 폴딩된 상태에서, 상기 제2 디스플레이 영역에서 사용자 인터페이스의 표시를 위한 외부 액세서리의 부착을 검출하면, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 상기 외부 액세서리의 종류에 대응되는 사용자 인터페이스를 표시하도록 설정될 수 있다.An electronic device according to various embodiments includes a first housing, a second housing, a hinge that foldably connects one side of the first housing to one side of the second housing, a first display area disposed in the first housing, and A display including a second display area disposed on the second housing, and a processor, wherein the processor attaches an external accessory for displaying a user interface on the second display area in a state in which the hinge is folded is detected, a user interface corresponding to the type of the external accessory may be displayed on an area of the second display area to which the external accessory is attached.

Description

전자 장치 및 전자 장치에서 사용자 인터페이스를 표시하기 위한 외부 액세서리의 부착을 검출하는 방법{ELECTRONIC DEVICE AND METHOD FOR DETECTING ATTACHMENT OF EXTERNAL ACCSEEORY FOR DISPLAYING USER INTERFACE IN ELECTRONIC DEVICE}Electronic device and method for detecting attachment of external accessory for displaying user interface in electronic device

다양한 실시 예들은, 전자 장치에서 사용자 인터페이스를 표시하기 위한 외부 액세서리의 부착을 검출하는 방법에 관한 것이다.Various embodiments relate to a method of detecting attachment of an external accessory for displaying a user interface in an electronic device.

전자 장치, 예를 들어, 스마트 폰과 같은 휴대용 전자 장치를 통해 제공되는 다양한 서비스 및 부가 기능들이 점차 증가하고 있다. 이러한 전자 장치의 효용 가치를 높이고, 다양한 사용자들의 욕구를 만족시키기 위해서 통신 서비스 제공자 또는 전자 장치 제조사들은 다양한 기능들을 제공하고 다른 업체와의 차별화를 위해 전자 장치를 경쟁적으로 개발하고 있다. 이에 따라, 전자 장치를 통해서 제공되는 다양한 기능들도 점점 고도화 되고 있다.Various services and additional functions provided through electronic devices, for example, portable electronic devices such as smart phones, are gradually increasing. In order to increase the utility value of these electronic devices and satisfy the needs of various users, communication service providers or electronic device manufacturers are competitively developing electronic devices to provide various functions and to differentiate themselves from other companies. Accordingly, various functions provided through electronic devices are becoming increasingly sophisticated.

또한 전자 장치의 휴대성을 고려하여 디스플레이(또는 이를 탑재한 전자 장치)가 접철 가능한(foldable or bendable) 또는 말아질 수 있는(rollable) 형태로 전자 장치에 탑재될 수 있다.In addition, considering the portability of the electronic device, the display (or the electronic device equipped with the display) may be mounted on the electronic device in a foldable or bendable or rollable form.

접철 가능한(foldable or bendable)형태의 디스플레이를 포함하는 전자 장치에서는, 디스플레이의 일정 영역을 통해 제공되는 화면 키보드를 이용하여 입력 기능을 수행할 수 있다.In an electronic device including a foldable or bendable display, an input function may be performed using an on-screen keyboard provided through a certain area of the display.

접철 가능한(foldable or bendable)형태의 디스플레이를 포함하는 전자 장치에서는, 전자 장치의 전면 대부분이 디스플레이를 포함하고 있어서 물리적인 타이핑이 가능한 키보드를 수용하기 어렵다.In an electronic device including a foldable or bendable display, most of the front surface of the electronic device includes the display, making it difficult to accommodate a keyboard capable of physical typing.

상기 전자 장치의 디스플레이의 일정 영역에 제공되는 화면 키보드를 이용하여 입력 기능을 수행할 수 있으나, 물리적인 키보드 대비 사용 성이 떨어질 수 있다.Although an input function can be performed using an on-screen keyboard provided in a certain area of the display of the electronic device, usability may be lower than that of a physical keyboard.

다양한 실시 예들에 따르면, 전자 장치에서 사용자 인터페이스를 표시하기 위한 외부 액세서리의 부착을 검출하는 방법에 관한 것이다.According to various embodiments, a method of detecting attachment of an external accessory for displaying a user interface in an electronic device is provided.

다양한 실시 예들에 따른 전자 장치는, 제1하우징, 제2하우징, 상기 제1 하우징의 일측을 상기 제2 하우징의 일측에 폴딩 가능하게 연결하는 힌지, 상기 제1 하우징에 배치되는 제1 디스플레이 영역 및 상기 제2 하우징에 배치되는 제2 디스플레이 영역을 포함하는 디스플레이, 및 프로세서를 포함하고, 상기 프로세서는, 상기 힌지가 폴딩된 상태에서, 상기 제2 디스플레이 영역에서 사용자 인터페이스의 표시를 위한 외부 액세서리의 부착을 검출하면, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 상기 외부 액세서리의 종류에 대응되는 사용자 인터페이스를 표시하도록 설정될 수 있다.An electronic device according to various embodiments includes a first housing, a second housing, a hinge that foldably connects one side of the first housing to one side of the second housing, a first display area disposed in the first housing, and A display including a second display area disposed on the second housing, and a processor, wherein the processor attaches an external accessory for displaying a user interface on the second display area in a state in which the hinge is folded is detected, a user interface corresponding to the type of the external accessory may be displayed on an area of the second display area to which the external accessory is attached.

다양한 실시 예들에 따르면, 전자 장치에서 사용자 인터페이스를 표시하기 위한 외부 액세서리의 부착을 검출하는 방법은, 상기 전자 장치의 제1 하우징의 일측을 상기 전자 장치의 제2 하우징의 일측에 폴딩 가능하게 연결하는 힌지가 폴딩된 상태에서, 상기 제2 하우징에 배치된 제2 디스플레이 영역에서 사용자 인터페이스의 표시를 위한 외부 액세서리의 부착을 검출하는 동작, 및 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 상기 외부 액세서리의 종류에 대응되는 사용자 인터페이스를 표시하는 동작을 포함할 수 있다.According to various embodiments, a method for detecting attachment of an external accessory for displaying a user interface in an electronic device may include connecting one side of a first housing of the electronic device to one side of a second housing of the electronic device in a foldable manner. An operation of detecting attachment of an external accessory for displaying a user interface in a second display area disposed on the second housing in a state in which the hinge is folded, and the external accessory is attached to the area of the second display area An operation of displaying a user interface corresponding to the type of external accessory may be included.

다양한 실시 예들에 따르면, 접철 가능한(foldable or bendable)형태의 디스플레이를 포함하는 전자 장치에 부착되는 사용자 인터페이스를 표시하기 위한 외부 액세서리의 종류에 따라, 상기 외부 액세서리의 종류에 대응되는 사용자 인터페이스를 전자 장치의 디스플레이를 통해 제공할 수 있는 효과가 있다.According to various embodiments, according to the type of an external accessory for displaying a user interface attached to an electronic device including a foldable or bendable display, a user interface corresponding to the type of the external accessory is displayed on the electronic device. There are effects that can be provided through the display of

다양한 실시 예들에 따르면, 접철 가능한(foldable or bendable)형태의 디스플레이를 포함하는 전자 장치에서 부착된 외부 액세서리의 입력에 따라 상기 디스플레이를 통해 표시되는 사용자 인터페이스가 입력됨으로, 물리적 키보드의 입력과 동일한 효과를 제공할 수 있다.According to various embodiments, in an electronic device including a foldable or bendable display, a user interface displayed through the display is input according to an input of an attached external accessory, so that the same effect as that of a physical keyboard input is obtained. can provide

사용자 인터페이스의 입력을 위해 상기 외부 액세서리가 입력됨에 따라 물리적 키보드의 입력과 같은 동일한 느낌을 제공할 수 있다.As the external accessory is input for user interface input, the same feeling as input of a physical keyboard may be provided.

다양한 실시 예들에 따르면, 접철 가능한(foldable or bendable)형태의 디스플레이를 포함하는 전자 장치에 부착되는 사용자 인터페이스를 표시하기 위한 외부 액세서리의 위치에 따라 적어도 하나의 기능이 설정된 적어도 하나의 화면 영역을 제공할 수 있다.According to various embodiments, at least one screen area in which at least one function is set is provided according to a location of an external accessory for displaying a user interface attached to an electronic device including a foldable or bendable display. can

도 1은 다양한 실시 예들에 따른 네트워크 환경 내의 전자 장치의 블록도 이다.
도 2a 내지 도 2c는 다양한 실시 예들에 따른 전자 장치에서 외부 액세서리를 이용한 사용자 인터페이스의 제공을 설명하기 위한 도면들이다.
도 3a 내지 도 3c는 다양한 실시 예들에 따른 전자 장치에서 디스플레이에 부착된 외부 액세서리를 설명하기 위한 도면들이다.
도 4a 내지 도 4d는 다양한 실시 예들에 따른 전자 장치에서 디스플레이에 부착된 외부 액세서리의 위치를 기반으로 디스플레이의 상태를 설명하기 위한 도면들이다.
도 5은 다양한 실시 예들에 따른 전자 장치의 블록도이다.
도 6a는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 부착될 외부 액세서리를 설명하기 위한 도면이다.
도 6b는 다양한 실시 예들에 따른 도 6a에서 A-A'를 따라 절단한 단면도이다.
도 7a 내지 도 7c는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 부착을 검출하는 동작을 설명하기 위한 도면들이다.
도 8a 내지 도 8d는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 부착된 외부 액세서리의 위치를 검출하는 동작을 설명하기 위한 도면들이다.
도 9는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 부착된 외부 액세서리의 위치를 검출하는 동작을 설명하기 위한 도면이다.
도 10은 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리가 제1 상태로 위치될 때 화면 영역에 제공되는 기능을 설명하기 위한 도면이다.
도 11a 내지 도 11d는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리가 제2 상태로 위치될 때 화면 영역에 제공되는 기능을 설명하기 위한 도면들이다.
도 12a 내지 도 12b는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리가 제3 상태로 위치될 때 화면 영역에 제공되는 기능을 설명하기 위한 도면들이다.
도 13a 내지 도 13j는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리가 제4 상태로 위치될 때 화면 영역에 제공되는 기능을 설명하기 위한 도면들이다.
도 14는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 종류를 설명하기 위한 도면이다.
도 15는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 동작을 설명하기 위한 도면이다.
도 16은 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 동작을 설명하기 위한 도면이다.
도 17은 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 동작을 설명하기 위한 도면이다.
도 18은 다양한 실시 예들에 따른 전자 장치에서 외부 액세서리의 부착을 검출하는 동작을 나타내는 흐름도이다.
도 19a 내지 도 19b는 다양한 실시 예들에 따른 전자 장치에서 디스플레이에 부착된 외부 액세서리의 위치에 따라 화면 영역을 제공하는 동작을 설명하기 위한 도면이다.
1 is a block diagram of an electronic device in a network environment according to various embodiments.
2A to 2C are diagrams for explaining provision of a user interface using an external accessory in an electronic device according to various embodiments.
3A to 3C are views for explaining external accessories attached to a display in an electronic device according to various embodiments.
4A to 4D are views for explaining a state of a display based on a location of an external accessory attached to the display in an electronic device according to various embodiments of the present disclosure.
5 is a block diagram of an electronic device according to various embodiments.
6A is a diagram for describing an external accessory to be attached to a display of an electronic device according to various embodiments.
6B is a cross-sectional view taken along A-A′ in FIG. 6A according to various embodiments.
7A to 7C are diagrams for explaining an operation of detecting attachment of an external accessory to a display of an electronic device according to various embodiments.
8A to 8D are diagrams for explaining an operation of detecting a location of an external accessory attached to a display of an electronic device according to various embodiments of the present disclosure;
9 is a diagram for explaining an operation of detecting a location of an external accessory attached to a display of an electronic device according to various embodiments of the present disclosure.
10 is a diagram for explaining a function provided to a screen area when an external accessory is positioned on a display of an electronic device in a first state according to various embodiments.
11A to 11D are diagrams for explaining functions provided to a screen area when an external accessory is positioned on a display of an electronic device in a second state according to various embodiments.
12A and 12B are diagrams for explaining functions provided to a screen area when an external accessory is positioned on a display of an electronic device in a third state according to various embodiments.
13A to 13J are diagrams for explaining functions provided to a screen area when an external accessory is positioned on a display of an electronic device in a fourth state according to various embodiments.
14 is a diagram for explaining types of external accessories on a display of an electronic device according to various embodiments.
15 is a diagram for explaining an operation of an external accessory on a display of an electronic device according to various embodiments.
16 is a diagram for explaining an operation of an external accessory on a display of an electronic device according to various embodiments.
17 is a diagram for explaining an operation of an external accessory on a display of an electronic device according to various embodiments.
18 is a flowchart illustrating an operation of detecting attachment of an external accessory in an electronic device according to various embodiments of the present disclosure.
19A and 19B are diagrams for explaining an operation of providing a screen area according to a location of an external accessory attached to a display in an electronic device according to various embodiments of the present disclosure.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록 도(100)이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.1 is a block diagram 100 of an electronic device 101 within a network environment 100, in accordance with various embodiments. Referring to FIG. 1 , in a network environment 100, an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It may communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included. In some embodiments, in the electronic device 101, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, the program 140) to cause at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, the processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 . According to one embodiment, the processor 120 may include a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor). For example, when the electronic device 101 includes the main processor 121 and the auxiliary processor 123, the auxiliary processor 123 may use less power than the main processor 121 or be set to be specialized for a designated function. can The secondary processor 123 may be implemented separately from or as part of the main processor 121 .

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.The secondary processor 123 may, for example, take the place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, running an application). ) state, together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to one embodiment, the auxiliary processor 123 (eg, image signal processor or communication processor) may be implemented as part of other functionally related components (eg, camera module 180 or communication module 190). there is. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, but in the above example Not limited. The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the foregoing, but is not limited to the foregoing examples. The artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware structures.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101 . The data may include, for example, input data or output data for software (eg, program 140) and commands related thereto. The memory 130 may include volatile memory 132 or non-volatile memory 134 .

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142 , middleware 144 , or an application 146 .

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive a command or data to be used by a component (eg, the processor 120) of the electronic device 101 from the outside of the electronic device 101 (eg, a user). The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output sound signals to the outside of the electronic device 101 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. A receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 may visually provide information to the outside of the electronic device 101 (eg, a user). The display module 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module 160 may include a touch sensor set to detect a touch or a pressure sensor set to measure the intensity of force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert sound into an electrical signal or vice versa. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a bio sensor, It may include a temperature sensor, humidity sensor, or light sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device 101 to an external electronic device (eg, the electronic device 102). According to one embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 may be physically connected to an external electronic device (eg, the electronic device 102). According to one embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert electrical signals into mechanical stimuli (eg, vibration or motion) or electrical stimuli that a user may perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to one embodiment, the power management module 188 may be implemented as at least part of a power management integrated circuit (PMIC), for example.

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). Establishment and communication through the established communication channel may be supported. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : a local area network (LAN) communication module or a power line communication module). Among these communication modules, a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, a legacy communication module). It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a telecommunications network such as a computer network (eg, a LAN or a WAN). These various types of communication modules may be integrated as one component (eg, a single chip) or implemented as a plurality of separate components (eg, multiple chips). The wireless communication module 192 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199. The electronic device 101 may be identified or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, NR access technology (new radio access technology). NR access technologies include high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low latency (URLLC)). -latency communications)) can be supported. The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 uses various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. Technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna may be supported. The wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199). According to one embodiment, the wireless communication module 192 is a peak data rate for eMBB realization (eg, 20 Gbps or more), a loss coverage for mMTC realization (eg, 164 dB or less), or a U-plane latency for URLLC realization (eg, Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) may be supported.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device). According to one embodiment, the antenna module 197 may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is selected from the plurality of antennas by the communication module 190, for example. can be chosen A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module 197 in addition to the radiator.

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a lower surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( e.g. commands or data) can be exchanged with each other.

일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself. Alternatively or additionally, one or more external electronic devices may be requested to perform the function or at least part of the service. One or more external electronic devices receiving the request may execute at least a part of the requested function or service or an additional function or service related to the request, and deliver the execution result to the electronic device 101 . The electronic device 101 may provide the result as at least part of a response to the request as it is or additionally processed. To this end, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an internet of things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199 . The electronic device 101 may be applied to intelligent services (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

도 2a 내지 도 2c는 다양한 실시 예들에 따른 전자 장치에서 외부 액세서리를 이용한 사용자 인터페이스의 제공을 설명하기 위한 도면들(200a 내지 200c)이다.2A to 2C are diagrams 200a to 200c for explaining the provision of a user interface using an external accessory in an electronic device according to various embodiments.

상기 도 2a 내지 상기 도 2c에서 도시되는 전자 장치(201)의 디스플레이(260)는, 디스플레이가 배치되는 두 개의 하우징들을 연결할 수 있는 힌지(281)의 폴딩에 따라 상기 디스플레이의 영역이 구분되는 플렉서블 디스플레이(flexible display)를 포함할 수 있다. 상기 플렉서블 디스플레이는, 상기 전자 장치가 두 개의 하우징들을 연결할 수 있는 인 폴딩 가능한 힌지를 포함하는 경우, 상기 인 폴딩이 가능한 힌지의 폴딩에 따라 언 폴딩 상태의 상기 디스플레이가 안쪽 방향으로 폴딩되어 상기 디스플레이의 영역이 구분될 수 있다. 상기 플렉서블 디스플레이는, 상기 전자 장치가 두 개의 하우징들을 연결할 수 있는 아웃 폴딩 가능한 힌지를 포함하는 경우, 상기 아웃 폴딩이 가능한 힌지의 폴딩에 따라 언 폴딩된 상태의 상기 디스플레이를 바깥쪽 방향으로 폴딩되어 상기 디스플레이의 영역이 구분될 수 있다. 상기 전자 장치는, 하나의 힌지(예: 인 폴딩이 가능한 힌지 또는 언 폴딩이 가능한 힌지), 또는 복수의 힌지들(예: 인 폴딩이 가능한 힌지 및 언 폴딩이 가능한 힌지)를 포함할 수 있다.The display 260 of the electronic device 201 shown in FIGS. 2A to 2C is a flexible display in which an area of the display is divided according to folding of a hinge 281 capable of connecting two housings on which the display is placed. (flexible display) may be included. In the flexible display, when the electronic device includes an in-foldable hinge capable of connecting two housings, the display in an unfolded state is folded inward according to the folding of the in-foldable hinge, so that the display Areas can be divided. In the case of the flexible display, when the electronic device includes an out-foldable hinge capable of connecting two housings, the display in an unfolded state is folded outward according to the folding of the out-foldable hinge. Areas of the display may be divided. The electronic device may include one hinge (eg, a hinge capable of in-folding or a hinge capable of unfolding) or a plurality of hinges (eg, a hinge capable of in-folding and a hinge capable of unfolding).

상기 언폴딩이란 제1 하우징(271)과 제2 하우징(273)이 완전히 펼쳐진 상태(unfolded status)를 나타내고, 상기 폴딩 이란 제1 하우징(271)과 제2 하우징(273)이 일정 각도 또는 일정 거리로 접힌 상태(folded status)를 나타낼 수 있다. 상기 아웃 폴딩이란 완전히 언 폴딩 된 디스플레이(260)의 전면에서 상기 디스플레이(260)를 바깥쪽 방향으로 일정 각도 또는 일정 거리가 접힌 상태(folded status)를 나타낼 수 있다. 상기 인 폴딩이란 완전히 언 폴딩 된 디스플레이(260)의 전면에서 디스플레이(260)를 안쪽 방향으로 일정 각도 또는 일정 거리가 접힌 상태(folded status)를 나타낼 수 있다.상기 도 2a 내지 상기 도 2c에서는 인 폴딩이 가능한 힌지를 포함하는 전자 장치(201)의 동작을 일 예로 설명하고 있으나, 아웃 폴딩이 가능한 힌지를 포함하는 전자 장치에서도 동일하게 적용할 수 있다.The unfolding refers to a fully unfolded state of the first housing 271 and the second housing 273, and the folding means that the first housing 271 and the second housing 273 are at a certain angle or a certain distance. can represent a folded state. The out-folding may indicate a state in which the display 260 is folded at a predetermined angle or a predetermined distance from the front of the completely unfolded display 260 outward. The in-folding may refer to a state in which the display 260 is folded at a certain angle or a certain distance inward from the front of the completely unfolded display 260. In FIGS. 2A to 2C, the in-folding Although the operation of the electronic device 201 including this possible hinge has been described as an example, the same can be applied to an electronic device including an out-foldable hinge.

상기 도 2a에 따르면, 다양한 실시 예들에 따른 전자 장치(201)는, 상기 전자 장치(201)의 센서 모듈(예: 각도 센서, 기울기 센서, 가속도 센서, 지자기 센서, 자이로 센서 또는 모션 센서 중 적어도 하나의 센서)로부터 수신되는 센서 정보를 이용하여, 상기 전자 장치(201)의 힌지(281)가 폴딩된 상태를 검출할 수 있다. 상기 전자 장치(201)는, 상기 전자 장치의 힌지(281)가 폴딩된 상태를 검출하면, 상기 전자 장치(201)의 디스플레이(260)에 포함된 제1 하우징(271)에 배치된 제1 디스플레이 영역(261)과 제2 하우징(273)에 배치된 제2 디스플레이 영역(263)를 구분하여 표시할 수 있다.According to FIG. 2A , the electronic device 201 according to various embodiments includes a sensor module (eg, at least one of an angle sensor, a tilt sensor, an acceleration sensor, a geomagnetic sensor, a gyro sensor, or a motion sensor) of the electronic device 201 A folded state of the hinge 281 of the electronic device 201 may be detected using sensor information received from a sensor of the electronic device 201 . When the electronic device 201 detects that the hinge 281 of the electronic device is folded, the first display disposed in the first housing 271 included in the display 260 of the electronic device 201 The area 261 and the second display area 263 disposed on the second housing 273 may be displayed separately.

상기 도 2b에 따르면, 다양한 실시 예들에 따른 전자 장치(201)는, 상기 전자 장치(201)의 디스플레이(260) 중 제2 디스플레이 영역(263)에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))의 부착을 검출할 수 있다. 상기 전자 장치(201)는, 상기 제2 디스플레이 영역(263)에 부착된 상기 외부 액세서리(예: 키보드 커버(310))에 포함된 적어도 하나의 전도성 물체에 의해 검출되는 정전 용량의 패턴을 기반으로, 상기 제2 디스플레이 영역(263)에 상기 외부 액세서리의 부착 및 상기 외부 액세서리의 종류를 검출할 수 있다. 상기 전자 장치(201)는, 상기 제2 디스플레이 영역(263)에 배치된 복수의 홀 센서들 어느 하나의 홀 센서와 접촉하는 상기 제2 디스플레이 영역(263)에 부착된 상기 외부 액세서리(예: 키보드 커버(310))에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역(263) 중 상기 외부 액세서리(예: 키보드 커버(310))가 부착된 위치를 결정할 수 있다.According to FIG. 2B, the electronic device 201 according to various embodiments includes an external accessory (eg, a keyboard) for displaying a user interface on the second display area 263 of the display 260 of the electronic device 201. Attachment of the cover 310 can be detected. The electronic device 201 is based on a pattern of capacitance detected by at least one conductive object included in the external accessory (eg, the keyboard cover 310) attached to the second display area 263. , the attachment of the external accessory to the second display area 263 and the type of the external accessory may be detected. The electronic device 201 may include the external accessory (eg, a keyboard) attached to the second display area 263 contacting any one of the plurality of hall sensors disposed on the second display area 263. An attached position of the external accessory (eg, the keyboard cover 310) in the second display area 263 may be determined based on at least one magnet included in the cover 310 .

다양한 실시 예들에 따른 전자 장치(201)는, 상기 제1 하우징(271)과 제2 하우징(273)이 맞닿고 있는 완전히 폴딩된 상태(접혀진 상태)에서 상기 전자 장치(201)가 바닥에 놓여진 후, 상기 센서 모듈을 기반으로 상기 제1 하우징(271)과 제2 하우징(273)이 일정 각도 또는 일정 거리로 폴딩된(접혀진 상태)로의 전환을 검출하면, 상기 디스플레이(260)을 상측 영역과 하측 영역으로 분할할 수 있다. 상기 전자 장치(201)는, 상기 센서 모듈(예: 지자기 센서, 자이로 센서 또는 근접 센서 중 적어도 하나의 센서)로부터 수신되는 센서 정보를 이용하여 상기 제2 하우징(273)이 바닥에 맞닿은 상태로 확인되면, 상측 영역을 제1 디스플레이 영역(261)으로 설정하고, 하측 영역을 제2 디스플레이 영역(263)으로 설정하고, 상기 제2 디스플레이 영역(263)에서 상기 외부 액세서리(예: 키보드 커버(310))가 부착된 위치를 결정할 수 있다. 상기 전자 장치(201)는, 상기 센서 모듈(예:지자기 센서, 자이로 센서 또는 근접 센서등)로부터 수신되는 센서 정보를 이용하여 상기 제1 하우징(271)이 바닥에 맞닿은 상태도 확인되면, 상측 영역을 제2 디스플레이 영역(263)으로 설정하고, 하측 영역을 제1 디스플레이 영역(261)으로 설정하고, 상기 제1 디스플레이 영역(261)에서 외부 액세서리(예: 키보드 커버(310))가 부착된 위치를 결정할 수 있다. 상기 전자 장치(201)는,After the electronic device 201 according to various embodiments is placed on the floor in a completely folded state (folded state) in which the first housing 271 and the second housing 273 are in contact with each other, , When the first housing 271 and the second housing 273 are detected to be folded (folded state) at a predetermined angle or at a predetermined distance based on the sensor module, the display 260 is displayed in an upper area and a lower area. can be divided into regions. The electronic device 201 determines that the second housing 273 is in contact with the floor by using sensor information received from the sensor module (eg, at least one of a geomagnetic sensor, a gyro sensor, and a proximity sensor). , the upper area is set as the first display area 261, the lower area is set as the second display area 263, and the external accessory (eg, keyboard cover 310) is set in the second display area 263. ) can be determined. The electronic device 201 uses sensor information received from the sensor module (eg, a geomagnetic sensor, a gyro sensor, or a proximity sensor) to confirm that the first housing 271 is in contact with the floor, the upper area. is set as the second display area 263, the lower area is set as the first display area 261, and an external accessory (eg, keyboard cover 310) is attached in the first display area 261. can decide The electronic device 201,

상기 도 2c에 따르면, 다양한 실시 예들에 따른 전자 장치(201)는, 상기 전자 장치의 디스플레이(260) 중 제2 디스플레이 영역(263)에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))의 부착을 검출하면, 상기 제2 디스플레이 영역(263) 중 상기 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))가 부착된 영역에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))의 종류에 대응되는 사용자 인터페이스(예: 키보드)를 표시할 수 있다.Referring to FIG. 2C , the electronic device 201 according to various embodiments includes an external accessory (eg, a keyboard cover 310) for displaying a user interface on the second display area 263 of the display 260 of the electronic device. ))), an external accessory for displaying a user interface (eg, a keyboard cover 310) is attached to an area of the second display area 263 to which an external accessory (eg, the keyboard cover 310) is attached. : A user interface (eg, a keyboard) corresponding to the type of keyboard cover 310) may be displayed.

다양한 실시 예에 따르면, 사용자 인터페이스 표시를 위한 외부 액세서리(예: 키보드 커버(310))는, 전자 장치의 힌지가 폴딩된 상태에서 제2 디스플레이 영역(263)에 부착되어 상기 제2 디스플레이(263)에 사용자 인터페이스를 표시하는 기능을 제공할 수 있다.According to various embodiments, an external accessory (for example, the keyboard cover 310) for displaying a user interface is attached to the second display area 263 in a state in which the hinge of the electronic device is folded, and the second display 263 A function to display a user interface can be provided.

일 실시 예에 따르면, 상기 외부 액세서리는, 용도에 따라 다양한 종류를 포함할 수 있다. 예를 들어, 상기 외부 액세서리는, 키보드 표시를 위한 키보드 커버, 다이얼 표시를 위한 다이얼 커버, 계산기 표시를 위한 계산기 커버 및 게임용 패드 표시를 위한 게임용 패드 커버를 포함할 수 있다.According to one embodiment, the external accessory may include various types according to usage. For example, the external accessory may include a keyboard cover for displaying a keyboard, a dial cover for displaying a dial, a calculator cover for displaying a calculator, and a game pad cover for displaying a game pad.

일 실시 예에 따르면, 상기 외부 액세서리는, 상기 외부 액세서리가 상기 전자 장치(201)의 제2 디스플레이 영역(263)에 부착될 때, 상기 전자 장치(201)가 상기 외부 액세서리의 부착 및 상기 외부 액세서리)의 종류를 검출할 수 있도록 하기 위해, 상기 외부 액세서리의 내측에서 미리 정해진 적어도 하나의 일정 영역에 적어도 하나의 전도성 물질(예: 금속(예: 은, 구리, 금, 알루미늄, 텅스텐, 아연, 황동, 주석, 납, 또는 스테인리스 강) 또는 탄소 동소체(예: 흑연 또는 그래핀)이 배치되어 포함될 수 있다.According to an embodiment, when the external accessory is attached to the second display area 263 of the electronic device 201, the electronic device 201 controls the attachment of the external accessory and the external accessory. ), at least one conductive material (e.g., metal (e.g., silver, copper, gold, aluminum, tungsten, zinc, brass , tin, lead, or stainless steel) or carbon allotropes (eg, graphite or graphene) may be disposed and included.

일 실시 예에 따르면, 상기 외부 액세서리는, 상기 외부 액세서리가 상기 전자 장치(201)의 제2 디스플레이 영역(263)에 부착될 때, 상기 전자 장치(201)가 상기 제2 디스플레이 영역(263)에 부착된 상기 외부 액세서리의 위치를 결정할 수 있도록 하기 위해, 상기 외부 액세서리의 내측에서 미리 정해진 적어도 하나의 일정 영역들에 적어도 하나의 자석이 배치되어 포함될 수 있다. According to an embodiment, when the external accessory is attached to the second display area 263 of the electronic device 201, the electronic device 201 is displayed on the second display area 263. In order to determine the position of the attached external accessory, at least one magnet may be disposed and included in at least one predetermined area inside the external accessory.

일 실시 예에 따르면, 상기 외부 액세서리는, 제2 디스플레이 영역(263)에서 표시되는 사용자의 인터페이스(예: 키보드)가 보여지도록 투명한 재질로 만들어지고, 상기 사용자 인터페이스(예: 키보드)의 터치를 위해 눌러진 후 복원될 수 있는 얇은 탄력성을 가지는 재질로 만들어질 수 있다.According to one embodiment, the external accessory is made of a transparent material so that the user's interface (eg, keyboard) displayed on the second display area 263 can be seen, and for a touch of the user interface (eg, keyboard) It can be made of a thin, resilient material that can be restored after being pressed.

도 3a 내지 도 3c는 다양한 실시 예들에 따른 전자 장치에서 디스플레이에 부착된 외부 액세서리를 설명하기 위한 도면들(300a 내지 300c)이다.3A to 3C are diagrams 300a to 300c for describing external accessories attached to a display in an electronic device according to various embodiments.

상기 도 3a는 다양한 실시 예들에 따른 전자 장치(201)에서, 상기 전자 장치(201)의 힌지(예: 도 2a의 힌지(281))가 폴딩된 상태(예: 제1 하우징(271)과 제2 이 하우징(273)이 일정 각도 또는 일정 거리로 접혀진 상태)에서 디스플레이(260) 중 제2 디스플레이 영역(263)에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))가 부착된 상태를 도시한 사시도이다. 3A illustrates a state in which a hinge (eg, the hinge 281 of FIG. 2A ) of the electronic device 201 according to various embodiments is folded (eg, the first housing 271 and the second housing 271). 2 In a state where the housing 273 is folded at a certain angle or at a certain distance), an external accessory (for example, the keyboard cover 310) for displaying a user interface is attached to the second display area 263 of the display 260. It is a perspective view showing the state.

상기 도 3b는 다양한 실시 예들에 따른 전자 장치(201)에서, 상기 전자 장치(201)의 제2 디스플레이 영역(263)에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))가 부착된 상태에서 상기 전자 장치(201)의 힌지(예: 도 2a의 힌지(281))가 완전히 폴딩된 상태(예: 제1 하우징(271)과 제2 하우징(273)가 맞닿은 상태)를 도시한 사시도이다.3B shows an electronic device 201 according to various embodiments, in which an external accessory (eg, a keyboard cover 310) for displaying a user interface is attached to the second display area 263 of the electronic device 201. In the closed state, the hinge of the electronic device 201 (eg, the hinge 281 of FIG. 2A) is completely folded (eg, the first housing 271 and the second housing 273 are in contact). It is a perspective view.

상기 도 3c는 다양한 실시 예들에 따른 전자 장치(201)에서, 상기 전자 장치(201)의 제2 디스플레이 영역(263)에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))가 부착된 상태에서 상기 전자 장치(201)의 힌지가 완전히 폴딩된 상태(예: 제1 하우징(271)과 제2 하우징(273)가 맞닿은 상태)를 도시한 측면도이다. 상기 외부 액세서리(310)가 상기 전자 장치(201)의 힌지가 완전히 폴딩된 상태에서 상기 제1 하우징(271)과 제2 하우징(273) 사이의 공간에 위치하게 된다.3C shows an electronic device 201 according to various embodiments of the present disclosure, in which an external accessory (eg, a keyboard cover 310) for displaying a user interface is attached to the second display area 263 of the electronic device 201. This is a side view showing a state in which the hinge of the electronic device 201 is fully folded (eg, a state in which the first housing 271 and the second housing 273 are in contact with each other). The external accessory 310 is positioned in a space between the first housing 271 and the second housing 273 in a state in which the hinge of the electronic device 201 is completely folded.

도 4a 내지 도 4d는 다양한 실시 예들에 따른 전자 장치에서 디스플레이에 부착된 외부 액세서리의 위치를 기반으로 디스플레이의 상태를 설명하기 위한 도면들(400a 내지 400d)이다.4A to 4D are diagrams 400a to 400d for describing a state of a display based on a location of an external accessory attached to the display in an electronic device according to various embodiments of the present disclosure.

상기 도 4a는 다양한 실시 예들에 따른 전자 장치(201)에서, 상기 전자 장치(201)의 힌지(예: 도 2a의 힌지(281))가 폴딩되어 디스플레이(260)가 제1 디스플레이(261)와 제2 디스플레이(263)가 구분된 상태에서, 제2 디스플레이 영역(263)의 상측에 대응되는 제1 위치(p1)부터 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))가 부착된 제1 상태를 나타내는 도면이다. 상기 전자 장치(201)는, 상기 제1 상태에서 상기 제2 디스플레이 영역(263)에 외부 액세서리(예: 키보드 커버(310))가 부착되면, 상기 외부 액세서리(310)가 부착된 상기 디스플레이 영역(263)에 텍스트 입력을 위한 키보드를 표시하고, 상기 키보드를 이용하여 타이핑이 가능한 상태가 될 수 있다.4A shows that in the electronic device 201 according to various embodiments, a hinge (eg, the hinge 281 of FIG. 2A ) of the electronic device 201 is folded so that the display 260 is connected to the first display 261. In a state where the second display 263 is divided, an external accessory (eg, the keyboard cover 310) for displaying the user interface is attached from the first position p1 corresponding to the upper side of the second display area 263. This is a diagram showing the first state. The electronic device 201, when an external accessory (eg, keyboard cover 310) is attached to the second display area 263 in the first state, the display area to which the external accessory 310 is attached ( 263), a keyboard for text input may be displayed, and typing may be possible using the keyboard.

상기 전자 장치(201)는, 상기 제1 상태에서, 상기 제2 디스플레이 영역(263)에서 상기 외부 액세서리(예: 키보드 커버(310))가 부착된 제1 영역(410)을 제외한 나머지 영역인 상기 제1 영역(410)의 하측 영역을 제1 화면 영역(411)으로 결정하고, 상기 제1 화면 영역(411)에 설정된 기능을 제공할 수 있다. 상기 전자 장치(201)는, 상기 외부 액세서리(312)가 부착된 제1 영역(410)의 하측에 위치된 상기 제1 화면 영역(411)에 설정된 기능 예를 들어, 터치 패드 기능을 제공하기 위한 터치 The electronic device 201, in the first state, displays the remaining area of the second display area 263 except for the first area 410 to which the external accessory (eg, the keyboard cover 310) is attached. An area below the first area 410 may be determined as the first screen area 411 , and a set function may be provided to the first screen area 411 . The electronic device 201 is configured to provide a function set on the first screen area 411 located below the first area 410 to which the external accessory 312 is attached, for example, a touch pad function. touch

패드 영역(411a)을 표시할 수 있다. 상기 전자 장치(201)는, 상기 외부 액세서리(312)가 부착된 제1 영역(410)의 하측에 위치된 상기 제1 화면 영역(411)의 크기에 따라 상기 터치 패드 영역의 크기를 조절하여 표시할 수 있다.상기 도 4b는 다양한 실시 예들에 따른 전자 장치(201)에서, 상기 전자 장치(201)의 힌지(예: 도 2a의 힌지(281))가 폴딩되어 디스플레이(260)가 제1 디스플레이(261)와 제1 디스플레이(263)가 구분된 상태에서, 상기 제2 디스플레이 영역(263)의 상측에 대응되는 제1 위치(p1)에서 제1 거리(d1)가 떨어진 제2 위치(p2)부터 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))가 부착된 제2 상태를 나타내는 도면이다. 상기 전자 장치(201)는, 상기 제2 상태에서 상기 제2 디스플레이 영역(263)에 외부 액세서리(예: 키보드 커버(310))가 부착되면, 상기 외부 액세서리(310)가 부착된 상기 디스플레이 영역(263)에 텍스트 입력을 위한 키보드를 표시하고, 상기 키보드를 이용하여 타이핑이 가능한 상태가 될 수 있다.A pad area 411a may be displayed. The electronic device 201 adjusts the size of the touch pad area according to the size of the first screen area 411 located below the first area 410 to which the external accessory 312 is attached and displays the touch pad area. 4B shows that in the electronic device 201 according to various embodiments, the hinge of the electronic device 201 (eg, the hinge 281 of FIG. 2A ) is folded so that the display 260 is the first display. In a state where 261 and the first display 263 are divided, a second position p2 separated by a first distance d1 from the first position p1 corresponding to the upper side of the second display area 263 This is a view showing a second state in which an external accessory (for example, the keyboard cover 310) for displaying a user interface is attached. The electronic device 201, when an external accessory (eg, keyboard cover 310) is attached to the second display area 263 in the second state, the display area to which the external accessory 310 is attached ( 263), a keyboard for text input may be displayed, and typing may be possible using the keyboard.

상기 전자 장치(201)는, 상기 제2 상태에서 상기 제2 디스플레이 영역(263)에서 상기 외부 액세서리(예: 키보드 커버(310))가 부착된 제1 영역(410)의 상측에 위치한 영역과 상기 제1 영역(410)의 하측에 위치 영역 각각을 제2 화면 영역(413)과 제3 화면 영역(415)으로 결정하고, 상기 제2 화면 영역(413)과 상기 제3 화면 영역(415) 각각에 설정된 기능을 제공할 수 있다. 상기 전자 장치(201)는, 상기 제2 화면 영역(413)에 설정된 기능 예를 들어, 키보드의 적어도 하나의 기능키(예: fn키)(413a)를 표시할 수 있다. 상기 전자 장치(201)는, 상기 제2 화면 영역(413)에 키보드의 적어도 하나의 기능키(413a)를 표시하는 동안, 상기 제2 화면 영역(413)에서 검출되는 상하 스크롤 동작 또는 특정 키의 입력을 기반으로, 상기 제2 화면 영역(413)에 표시되는 기능 키의 종류를 변경하여 표시할 수 있다. 상기 전자 장치(201)는, 상기 제2 화면 영역(413)에 설정된 기능으로 예를 들어 제1 디스플레이 영역(561)에 표시되는 어플리케이션과 관련된 동작을 수행하기 위한 기능 키 중 적어도 하나를 표시할 수 있다. 상기 전자 장치(201)는, 상기 제2 화면 영역(413)에 상기 제1 디스플레이 영역(26)에서 실행 중인 어플리케이션과는 관련된 기능 또는 상기 제1 디스플레이 영역(26)에서 실행 중인 어플리케이션과는 관련되지 않은 다른 기능을 표시할 수 있다. 상기 전자 장치(201)는, 상기 제3 화면 영역(415)에 설정된 기능 예를 들어, 터치 패드 기능을 제공하기 위한 터치 패드 영역(415a)을 표시할 수 있다. 상기 전자 장치(201)는, 상기 외부 액세서리(310)가 부착된 제1 영역(410)의 하측에 위치된 상기 제3 화면 영역(415)의 크기에 따라 상기 터치 패드 영역(415a)의 크기를 조절하여 표시할 수 있다.The electronic device 201, in the second state, displays an area located above the first area 410 to which the external accessory (eg, keyboard cover 310) is attached in the second display area 263 and the second display area 263. Each of the areas located below the first area 410 is determined as a second screen area 413 and a third screen area 415, and the second screen area 413 and the third screen area 415 are respectively It can provide the functions set in . The electronic device 201 may display a function set on the second screen area 413, for example, at least one function key (eg, fn key) 413a of a keyboard. While the electronic device 201 displays at least one function key 413a of the keyboard on the second screen area 413, the up and down scrolling motion detected on the second screen area 413 or a specific key Based on the input, the type of function key displayed on the second screen area 413 may be changed and displayed. The electronic device 201 may display at least one of function keys for performing an operation related to an application displayed on the first display area 561 as a function set on the second screen area 413, for example. there is. The electronic device 201 has a function related to the application running in the first display area 26 on the second screen area 413 or not related to the application running in the first display area 26. Other features may be displayed. The electronic device 201 may display a touch pad area 415a for providing a function set on the third screen area 415, for example, a touch pad function. The electronic device 201 sets the size of the touch pad area 415a according to the size of the third screen area 415 located below the first area 410 to which the external accessory 310 is attached. It can be adjusted and displayed.

상기 도 4c는 다양한 실시 예들에 따른 전자 장치(201)에서, 상기 전자 장치(201)의 힌지(예: 도 2a의 힌지(281))가 폴딩되어 디스플레이(260)가 제1 디스플레이(261)와 제2 디스플레이(263)가 구분된 상태에서, 상기 제2 디스플레이 영역(263)의 상측에 대응되는 제1 위치(p1)에서 상기 도 4b의 제2 상태의 제1 거리(d1) 보다 긴 제2 거리(d2)가 떨어진 제3 위치(p3)부터 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))가 부착된 제3 상태를 나타내는 도면이다. 상기 전자 장치(201)는, 상기 제3 상태에서 상기 제2 디스플레이 영역(263)에 외부 액세서리(예: 키보드 커버(310))가 부착되면, 상기 외부 액세서리(310)가 부착된 상기 디스플레이 영역(263)에 텍스트 입력을 위한 키보드를 표시하고, 상기 키보드를 이용하여 타이핑이 가능한 상태가 될 수 있다.4C shows that in the electronic device 201 according to various embodiments, a hinge (eg, the hinge 281 of FIG. 2A ) of the electronic device 201 is folded so that the display 260 is connected to the first display 261. In a state where the second display 263 is divided, a second distance d1 longer than the first distance d1 of the second state of FIG. 4B at the first position p1 corresponding to the upper side of the second display area 263 It is a diagram illustrating a third state in which an external accessory (eg, a keyboard cover 310) for displaying a user interface is attached from a third position p3 separated by a distance d2. The electronic device 201, when an external accessory (eg, keyboard cover 310) is attached to the second display area 263 in the third state, the display area to which the external accessory 310 is attached ( 263), a keyboard for text input may be displayed, and typing may be possible using the keyboard.

상기 전자 장치(201)는, 상기 제3 상태에서 상기 제2 디스플레이 영역(263)에서 상기 외부 액세서리(예: 키보드 커버(310))가 부착된 제1 영역(410)의 상측에 위치한 영역과 상기 제1 영역(410)의 하측에 위치 영역 각각을 제4 화면 영역(417)과 제5 화면 영역(419)으로 결정하고, 상기 제4 화면 영역(417)과 상기 제5 화면 영역(419) 각각에 설정된 기능을 제공할 수 있다. 상기 제3 상태에서, 상기 제4 화면 영역(417)은 상기 도 4b의 제2 상태에서 제2 화면 영역(413)보다 큰 크기의 영역을 포함하고, 상기 제5 화면 영역(419)은 상기 도 4b의 제2 상태에서 제3 화면 영역(415) 보다 작은 크기의 영역을 포함하도록 설정될 수 있다. 상기 전자 장치(201)는, 상기 외부 액세서리(310)가 부착된 제1 영역의 상측에 위치된 상기 제4 화면 영역(417)에 설정된 기능 예를 들어, 최근 사용했던 어플리케이션에 대응되는 적어도 하나의 프리뷰 화면(417a)를 표시할 수 있다. 상기 전자 장치(201)는, 상기 제3 화면 영역(417)에 설정된 기능으로 예를 들어 키보드의 기능키(예: fn 키) 표시, 또는 자주 이용하는 어플리케이션에 대응되는 프리뷰 화면 중 적어도 하나를 표시할 수 있다. 상기 전자 장치(201)는, 상기 제2 상태의 제2 화면 영역(413a) 보다 큰 상기 제4 화면 영역(417)에 상기 제1 디스플레이 영역(26)에서 실행 중인 어플리케이션과는 관련된 기능 또는 상기 제1 디스플레이 영역(26)에서 실행 중인 어플리케이션과는 관련되지 않은 다른 기능을 표시할 수 있다. 상기 전자 장치(201)는, 상기 외부 액세서리(310)가 부착된 제1 영역(410)의 하측에 위치된 상기 제5 화면 영역(419)에 설정된 기능 예를 들어, 터치 패드 기능을 제공하기 위한 터치 패드 영역(419a)을 표시할 수 있다. 상기 전자 장치(201)는, 상기 외부 액세서리(310)가 부착된 제1 영역(410)의 하측에 위치된 상기 제5 화면 영역(419)의 크기에 따라 상기 터치 패드 영역(419a)의 크기를 조절하여 표시할 수 있다. The electronic device 201, in the third state, displays an area located above the first area 410 to which the external accessory (eg, keyboard cover 310) is attached in the second display area 263 and the second display area 263. Each of the areas located below the first area 410 is determined as a fourth screen area 417 and a fifth screen area 419, and the fourth screen area 417 and the fifth screen area 419 are respectively It can provide the functions set in . In the third state, the fourth screen area 417 includes an area larger than the second screen area 413 in the second state of FIG. 4B, and the fifth screen area 419 is In the second state of 4b, it may be set to include an area smaller than the third screen area 415. The electronic device 201 displays at least one function set in the fourth screen area 417 located above the first area to which the external accessory 310 is attached, for example, corresponding to a recently used application. A preview screen 417a may be displayed. The electronic device 201 displays at least one of, for example, displaying a function key (eg, fn key) of a keyboard or a preview screen corresponding to a frequently used application as a function set in the third screen area 417. can The electronic device 201 has a function related to an application being executed in the first display area 26 in the fourth screen area 417 larger than the second screen area 413a in the second state, or the first screen area 413a in the second state. In one display area 26, other functions not related to the application being executed may be displayed. The electronic device 201 is configured to provide a function set on the fifth screen area 419 located below the first area 410 to which the external accessory 310 is attached, for example, a touch pad function. A touch pad area 419a may be displayed. The electronic device 201 sets the size of the touch pad area 419a according to the size of the fifth screen area 419 located below the first area 410 to which the external accessory 310 is attached. It can be adjusted and displayed.

상기 도 4d는 다양한 실시 예들에 따른 전자 장치(201)에서, 상기 전자 장치(201)의 힌지(예: 도 2a의 힌지(281))가 폴딩되어 디스플레이(260)가 제1 디스플레이(261)와 제1 디스플레이(263)가 구분된 상태에서, 상기 제2 디스플레이 영역(263)의 상측에 대응되는 제1 위치(p1)에서 상기 도 4c의 제3 상태에서 제2 거리(d2) 보다 긴 제3 거리(d3)가 떨어진 제4 위치(p4)부터 상기 제2 디스플레이 영역(263)의 하측에 대응되는 제5 위치(p5)까지 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))가 부착된 제4 상태를 나타낸 도면이다. 상기 전자 장치(201)는, 상기 제4 상태에서 상기 제2 디스플레이 영역(263)에 외부 액세서리(예: 키보드 커버(310))가 부착되면, 상기 외부 액세서리(310)가 부착된 상기 디스플레이 영역(263)에 텍스트 입력을 위한 키보드를 표시하고, 상기 키보드를 이용하여 타이핑이 가능한 상태가 될 수 있다. 상기 전자 장치(201)는 상기 제4 상태에서, 상기 제2 디스플레이 영역(263)에서 상기 외부 액세서리(예: 키보드 커버(310))가 부착된 제1 영역(410)의 상측에 위치한 영역을 제6 화면 영역(421)으로 설정하고, 상기 제6 화면 영역(421)에 설정된 기능을 제공할 수 있다.4D shows that in the electronic device 201 according to various embodiments, a hinge (eg, the hinge 281 of FIG. 2A ) of the electronic device 201 is folded so that the display 260 is connected to the first display 261. In a state where the first display 263 is divided, a third distance longer than the second distance d2 in the third state of FIG. 4C at the first position p1 corresponding to the upper side of the second display area 263 An external accessory for displaying a user interface from the fourth position p4 at a distance d3 to the fifth position p5 corresponding to the lower side of the second display area 263 (eg, keyboard cover 310) It is a diagram showing a fourth state in which is attached. The electronic device 201, when an external accessory (eg, keyboard cover 310) is attached to the second display area 263 in the fourth state, the display area to which the external accessory 310 is attached ( 263), a keyboard for text input may be displayed, and typing may be possible using the keyboard. In the fourth state, the electronic device 201 controls an area located above the first area 410 to which the external accessory (eg, keyboard cover 310) is attached in the second display area 263. 6 screen areas 421 can be set, and the functions set in the sixth screen area 421 can be provided.

상기 전자 장치(201)는, 상기 외부 액세서리(310)가 부착된 제1 영역(410) 상측에 위치된 상기 제6 화면 영역(421)에 설정된 기능 예를 들어, 멀티 윈도우 기능(421a)으로 사용할 수 있다. 상기 전자 장치(201)는, 상기 제6 화면 영역(421)에 설정된 기능으로 예를 들어 최근 사용했던 어플리케이션에 대응되는 프리뷰 화면, 자주 이용하는 어플리케이션에 대응되는 프리뷰 화면, 또는 제1 디스플레이 영역(561)에서 표시되고 있는 실행 중인 어플리케이션과 관련된 기능 창 중 적어도 하나를 표시할 수 있다. 상기 전자 장치(201)는, 상기 제 4 상태에서, 사용자의 제스처를 기반으로 상기 제6 화면 영역(421)을 상기 외부 액세서리(예: 키보드 커버(310))가 부착된 상기 제1 영역(410)까지 확장하여 사용할 수 있다.The electronic device 201 is used as a function set in the sixth screen area 421 located above the first area 410 to which the external accessory 310 is attached, for example, a multi-window function 421a. can The electronic device 201 is a function set in the sixth screen area 421, for example, a preview screen corresponding to a recently used application, a preview screen corresponding to a frequently used application, or a first display area 561 At least one of function windows related to the running application being displayed may be displayed. The electronic device 201, in the fourth state, sets the sixth screen area 421 based on the user's gesture to the first area 410 to which the external accessory (eg, keyboard cover 310) is attached. ) can be extended.

다양한 실시 예들에 따르면 전자 장치(201)는, 상기 제1 상태 내지 상기 제4 상태에서, 상기 제2 디스플레이 영역(263)에서 상기 외부 액세서리(예: 키보드 커버)(310)가 부착된 제1 영역(410)에 표시되는 키보드는 사용자에 의해 선택된 키보드의 종류로 표시할 수 있다. 상기 전자 장치(201)는, 상기 제1 상태 내지 상기 제4 상태에서, 상기 제2 디스플레이 영역(263)에 부착되는 상기 외부 액세서리(예: 키보드 커버)(310)의 위치(예: 제1 영역(410))에 따라 상기 제2 디스플레이 영역(263)에서 적어도 하나의 화면 영역(예: 제1 상태의 제1 화면 영역, 제2 상태의 제2 화면 영역과 제3 영역, 제3 상태의 제4 영역과 제5 영역 또는 제4 상태의 제6 영역)을 설정하고, 상기 설정된 적어도 하나의 화면 영역에 미리 연계된 UI를 표시할 수 있다.According to various embodiments of the present disclosure, in the first to fourth states, the electronic device 201 displays a first area to which the external accessory (eg, keyboard cover) 310 is attached in the second display area 263. The keyboard displayed at 410 may be displayed as a type of keyboard selected by the user. The electronic device 201 determines the location (eg, first area) of the external accessory (eg, keyboard cover) 310 attached to the second display area 263 in the first to fourth states. (410)), at least one screen area (eg, a first screen area in a first state, a second screen area and a third area in a second state, and a second screen area in a third state) in the second display area 263 4 regions and a 5th region or a 6th region in a 4th state) may be set, and a UI linked in advance to the set at least one screen region may be displayed.

도 5은 다양한 실시 예들에 따른 전자 장치의 블록도(500)이다.5 is a block diagram 500 of an electronic device according to various embodiments.

상기 도 5를 참조하면, 전자 장치(501)(예: 도 1의 전자 장치(101), 또는/및 도 2a 내지 도 4d의 전자 장치(201))는, 프로세서(520), 메모리(530), 디스플레이(560), 센서 모듈(576), 및 통신 모듈(590)을 포함할 수 있다.Referring to FIG. 5, an electronic device 501 (eg, the electronic device 101 of FIG. 1 or/and the electronic device 201 of FIGS. 2A to 4D) includes a processor 520 and a memory 530. , a display 560, a sensor module 576, and a communication module 590.

다양한 실시 예들에 따르면, 프로세서(520)는, 전자 장치(501)의 힌지(예: 도 2a의 힌지(281))가 폴딩된 상태(예: 도 2a의 전자 장치(201))의 폴딩 상태)에서, 디스플레이(560)(예: 도 2a 내지 도 4c의 디스플레이(260))의 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4c의 제2 디스플레이 영역(263))에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 도 4a 내지 도 4d의 외부 액세서리(예: 키보드 커버(310))의 부착을 검출할 수 있다.According to various embodiments, the processor 520 is in a folded state (eg, the hinge 281 of FIG. 2A ) of the electronic device 501 (eg, a folded state of the electronic device 201 of FIG. 2A ). , the user interface is displayed on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4C) of the display 560 (eg, the display 260 of FIGS. 2A to 4C). Attachment of an external accessory (eg, the external accessory (eg, the keyboard cover 310) of FIGS. 4A to 4D may be detected.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563)에 부착된 상기 외부 액세서리에 포함된 적어도 하나의 전도성 물체에 의해 검출되는 정전 용량의 패턴을 기반으로, 상기 제2 디스플레이 영역(563)에 상기 외부 액세서리의 부착 및 상기 외부 액세서리의 종류를 검출할 수 있다. According to an embodiment, the processor 520 may, based on a pattern of capacitance detected by at least one conductive object included in the external accessory attached to the second display area 563, the second Attachment of the external accessory to the display area 563 and the type of the external accessory may be detected.

예를 들어, 상기 프로세서(520)는, 상기 제2 디스플레이(563)를 통해 제1 정전 용량의 패턴을 검출하면, 상기 제2 디스플레이(563)에 키보드 표시를 위한 키보드 커버의 부착을 검출할 수 있다. 또는 상기 프로세서(520)는, 상기 제2 디스플레이(563)를 통해 제2 정전 용량의 패턴을 검출하면, 상기 제2 디스플레이(563)에 다이얼 표시를 위한 다이얼 커버의 부착을 검출할 수 있다.For example, if the processor 520 detects a first capacitance pattern through the second display 563, it may detect attachment of a keyboard cover for displaying a keyboard on the second display 563. there is. Alternatively, when the second capacitance pattern is detected through the second display 563, the processor 520 may detect attachment of a dial cover for displaying a dial on the second display 563.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 외부 액세서리에 포함된 적어도 하나의 자석을 감지할 수 있는 복수의 홀 센서들을 포함할 수 있으며, 상기 복수의 홀 센서들 중 상기 외부 액세서리에 포함된 적어도 하나의 자석에 의한 자장을 감지하는 홀 센서가 배치된 위치를 기반으로, 상기 제2 디스플레이 영역(563) 중 상기 외부 액세서리가 부착된 영역의 위치를 결정할 수 있다. According to an embodiment, the processor 520 may include a plurality of hall sensors capable of detecting at least one magnet included in the external accessory, and included in the external accessory among the plurality of hall sensors. The location of the area to which the external accessory is attached among the second display area 563 may be determined based on a location where a hall sensor for detecting a magnetic field by at least one magnet is disposed.

일 실시 예에 따르면, 상기 프로세서(520)는, 복수의 홀 센서들 중 제1 홀 센서로부터 자장에 대한 감지신호 정보를 수신하면, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치부터 상기 외부 액세서리가 부착된 제1 상태(예: 도 4a의 제1 상태)임을 검출할 수 있다.According to an embodiment, when the processor 520 receives detection signal information about the magnetic field from a first hall sensor among a plurality of hall sensors, the first position corresponding to the upper side of the second display area 563 It is possible to detect that the external accessory is attached to the first state (eg, the first state of FIG. 4A).

일 실시 예에 따르면, 상기 프로세서(520)는, 복수의 홀 센서들 중 제2 홀 센서로부터 자장에 대한 감지신호 정보를 수신하면, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 제1 거리가 떨어진 제2 위치부터 상기 외부 액세서리가 부착된 제2 상태(예: 도 4b의 제2 상태)임을 검출할 수 있다.According to an embodiment, when the processor 520 receives detection signal information about the magnetic field from a second hall sensor among a plurality of hall sensors, the first position corresponding to the upper side of the second display area 563 It is possible to detect a second state (eg, the second state of FIG. 4B ) in which the external accessory is attached from a second position separated by a first distance from .

일 실시 예에 따르면, 상기 프로세서(520)는, 복수의 홀 센서들 중 제3 홀 센서로부터 자장에 대한 감지신호 정보를 수신하면, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 상기 제2 상태(예: 도 4b의 제2 상태)의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 외부 액세서리가 부착된 제3 상태(예: 도 4c의 제3 상태)임을 검출할 수 있다.According to an embodiment, when the processor 520 receives detection signal information about the magnetic field from a third hall sensor among a plurality of hall sensors, the first position corresponding to the upper side of the second display area 563 indicates that the third state (eg, the third state of FIG. 4C) where the external accessory is attached from the third position at which the second distance is longer than the first distance of the second state (eg, the second state of FIG. 4B). can be detected.

일 실시 예에 따르면, 상기 프로세서(520)는, 복수의 홀 센서들 중 제4 홀 센서로부터 자장에 대한 감지신호 정보를 수신하면, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 상기 제3 상태(예: 도 4c의 제3 상태)의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 외부 액세서리가 부착된 제4 상태(예: 도 4d의 제4 상태)임을 검출할 수 있다.According to an embodiment, when the processor 520 receives detection signal information about the magnetic field from a fourth hall sensor among a plurality of hall sensors, the first position corresponding to the upper side of the second display area 563 In the fourth state (eg, the fourth state of FIG. 4d) where the external accessory is attached from the fourth position at which the third distance is longer than the second distance of the third state (eg, the third state of FIG. 4c). can be detected.

일 실시 예에 따르면, 상기 프로세서(520)는, 하기 <식 1>을 기반으로 제1 조건을 만족하면, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치부터 상기 외부 액세서리가 부착된 제1 상태(예: 도 4a의 제1 상태)임을 검출할 수 있다. 상기 프로세서(520)는, 하기 <식 1>을 기반으로 제2 조건을 만족하면, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 제1 거리가 떨어진 제2 위치부터 상기 외부 액세서리가 부착된 제2 상태(예: 도 4b의 제2 상태) 또는 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 상기 제2 상태(예: 도 4b의 제2 상태)의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 외부 액세서리가 부착된 제3 상태(예: 도 4c의 제3 상태)임을 검출할 수 있다. 상기 프로세서(520)는, 하기 <식 1>을 기반으로 제3 조건을 만족하면, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 상기 제3 상태(예: 도 4c의 제3 상태)의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 외부 액세서리가 부착된 제4 상태(예: 도 4d의 제4 상태)임을 검출할 수 있다. According to an embodiment, the processor 520 determines that, when a first condition is satisfied based on Equation 1 below, the external accessory is attached from a first position corresponding to an upper side of the second display area 563. A first state (eg, the first state of FIG. 4A) may be detected. When the second condition is satisfied based on Equation 1 below, the processor 520 starts the external area from a second position separated by a first distance from the first position corresponding to the upper side of the second display area 563. In the second state where the accessory is attached (eg, the second state in FIG. 4B ) or in the first position corresponding to the upper side of the second display area 563 (eg, in the second state in FIG. 4B ) It is possible to detect a third state (eg, the third state of FIG. 4C ) in which the external accessory is attached from a third location at which the second distance is longer than the first distance. When the third condition is satisfied based on Equation 1 below, the processor 520 is in the third state (eg, the first position corresponding to the upper side of the second display area 563). It is possible to detect a fourth state (eg, the fourth state of FIG. 4D ) to which the external accessory is attached from a fourth position at which the third distance is longer than the second distance of the state 3).

<식 1><Equation 1>

제1 조건: KA(y)-SA(y) < αFirst condition: KA(y)-SA(y) < α

제2 조건: KA(y)-SA(y) < (SY - KY) -αSecond condition: KA(y)-SA(y) < (SY - KY) -α

제3 조건: KA(y)-SA(y) > (SY - KY) -αThird condition: KA(y)-SA(y)>(SY-KY)-α

SA(y): 제2 디스플레이 영역의 상단 좌표 y 값 SA(y): upper coordinate y value of the second display area

KA(y): 제2 디스플레이 영역에 부착된 외부 액세서리의 상단 좌표 y 값 KA (y): y value of the top coordinate of the external accessory attached to the second display area

BA(y): 제2 디스플레이 영역에 부착된 외부 액세서리의 하단 좌표 y 값 BA(y): y value of the lower coordinate of the external accessory attached to the second display area

SY: 제2 디스플레이 영역의 y방향 크기 값 SY: y-direction size value of the second display area

KY: 외부 액세서리의의 y방향 크기 값 KY: y-direction size value of the external accessory

α: 제2 디스플레이 영역에서 표시될 화면 영역을 인식하기 위한 임계 값 α: Threshold value for recognizing the screen area to be displayed in the second display area

일 실시 예에 따르면, 상기 프로세서(520)는, 하기 <식 1>을 기반으로 제2 조건을 만족하여, 상기 제2 상태(예: 도 4b의 제2 상태)와 상기 제3 상태(예: 도 4c의 제3 상태)임을 검출하는 경우, 상기 전자 장치(201)에 구비된 복수의 홀 센서들 중 자장에 대한 감지신호를 정보를 수신하는 홀 센서(예: 제2 홀 센서 또는 제3 홀 센서)가 배치된 위치를 기반으로, 상기 제2 상태 또는 상기 제3 상태를 구분하여 검출할 수 있다.According to an embodiment, the processor 520 satisfies the second condition based on the following <Equation 1>, so that the second state (eg, the second state of FIG. 4B) and the third state (eg, 4C), a Hall sensor (e.g., a second Hall sensor or a third Hall sensor that receives information about a detection signal for a magnetic field) among a plurality of Hall sensors provided in the electronic device 201. The second state or the third state may be distinguished and detected based on a position where the sensor) is disposed.

다양한 실시 예들에 따르면, 프로세서(520)는, 전자 장치(301)의 힌지(예: 도 2a의 힌지(281))가 폴딩된 상태(예: 도 2a의 전자 장치(201))의 폴딩 상태)에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4c의 제2 디스플레이 영역(263)) 중 사용자 인터페이스의 표시를 위한 외부 액세서리가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 도 4a 내지 도 4d의 외부 액세서리(예: 키보드 커버(310)))의 종류에 대응되는 사용자 인터페이스를 표시할 수 있다.According to various embodiments, the processor 520 is in a folded state (eg, the hinge 281 of FIG. 2A ) of the electronic device 301 (eg, the folded state of the electronic device 201 of FIG. 2A ) In the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4C ), the first area (eg, the second display area 263 of FIGS. 4A to 4D ) to which an external accessory for displaying a user interface is attached is attached. A user interface corresponding to a type of an external accessory (eg, the external accessory (eg, the keyboard cover 310) of FIGS. 4A to 4D) for displaying the user interface may be displayed on the first region 410.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563)에 부착된 상기 외부 액세서리의 부착 및 종류를 검출하면, 메모리(530)에 저장된 외부 액세서리의 정보를 기반으로, 상기 외부 액세서리의 크기 정보 및/또는 형태 정보를 확인할 수 있다.According to an embodiment, when the processor 520 detects the attachment and type of the external accessory attached to the second display area 563, based on the external accessory information stored in the memory 530, the Size information and/or shape information of external accessories may be checked.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563) 중 상기 외부 액세서리가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))에 상기 외부 액세서리의 종류 및/또는 형태에 대응되는 사용자 인터페이스를 표시할 수 있다.According to an embodiment, the processor 520 may set the external accessory to a first area (eg, the first area 410 of FIGS. 4A to 4D ) of the second display area 563 to which the external accessory is attached. A user interface corresponding to the type and/or type of accessory may be displayed.

일 실시 예에 따르면, 상기 프로세서(520)는, 사용자의 선택을 기반으로, 상기 제2 디스플레이 영역(563) 중 상기 외부 액세서리가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))에 상기 외부 액세서리의 종류 및/또는 형태에 대응되는 다른 사용자 인터페이스를 표시할 수 있다. 예를 들어, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563) 중 키보드 표시를 위한 키보드 커버가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))에 키보드를 사용자 인터페이스로 표시하는 동안, 사용자의 선택을 기반으로 상기 키보드의 텍스트를 변경할 수 있다.According to an embodiment, the processor 520 may, based on the user's selection, set the first area of the second display area 563 to which the external accessory is attached (eg, the first area of FIGS. 4A to 4D ). (410)), another user interface corresponding to the type and/or shape of the external accessory may be displayed. For example, the processor 520 may place a keyboard on a first area (eg, the first area 410 of FIGS. 4A to 4D ) to which a keyboard cover for displaying a keyboard is attached among the second display area 563 . While displaying as a user interface, the text of the keyboard may be changed based on the user's selection.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563) 중 상기 외부 액세서리가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))에 상기 외부 액세서리의 종류 및/또는 형태에 대응되는 사용자 인터페이스를 표시하는 동안, 상기 외부 액세서리의 소정 영역의 눌림으로 상기 제2 디스플레이 영역(563) 중 상기 외부 액세서리가 부착된 제1 영역에 표시된 상기 사용자 인터페이스의 소정 영역에 대한 터치 입력을 검출할 수 있다. 상기 프로세서(520)는, 상기 터치 입력이 검출된 상기 사용자 인터페이스의 소정 영역에 대응되는 기능을 수행할 수 있다.According to an embodiment, the processor 520 may set the external accessory to a first area (eg, the first area 410 of FIGS. 4A to 4D ) of the second display area 563 to which the external accessory is attached. While displaying the user interface corresponding to the type and/or shape of the accessory, when a predetermined area of the external accessory is pressed, the user interface displayed on the first area to which the external accessory is attached among the second display area 563 is pressed. A touch input on a predetermined area may be detected. The processor 520 may perform a function corresponding to a predetermined area of the user interface where the touch input is detected.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563) 중 상기 외부 액세서리가 부착된 상태에서, 상기 외부 액세서리가 제거되면, 상기 제2 디스플레이 영역(563)에 사용자 인터페이스의 표시를 제거할 수 있다.According to an embodiment, the processor 520 displays the user interface on the second display area 563 when the external accessory is removed from the second display area 563 in a state in which it is attached. mark can be removed.

다양한 실시 예들에 따르면, 프로세서(520)는, 전자 장치(301)의 힌지(예: 도 2a의 힌지(281))가 폴딩된 상태(예: 도 2a의 전자 장치(201))의 폴딩 상태)에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4c의 제2 디스플레이 영역(263)) 중 사용자 인터페이스의 표시를 위해 외부 액세서리가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))의 위치에 따라 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 상기 제1 영역을 제외한 적어도 하나의 나머지 영역을 적어도 하나의 화면 영역으로 설정하고 상기 적어도 하나의 화면 영역 각각에 설정된 기능을 제공할 수 있다.According to various embodiments, the processor 520 is in a folded state (eg, the hinge 281 of FIG. 2A ) of the electronic device 301 (eg, the folded state of the electronic device 201 of FIG. 2A ) In the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4C ), the first area (eg, the second display area 263 of FIGS. 4A to 4D ) to which an external accessory is attached for displaying a user interface. According to the location of the first area 410), at least one remaining area other than the first area to which the external accessories are attached in the second display area is set as at least one screen area, and each of the at least one screen area It can provide the functions set in .

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치부터 상기 외부 액세서리가 부착된 제1 상태(예: 도 4a의 제1 상태)임을 검출하면, 상기 제2 디스플레이 영역(563)에서 상기 외부 액세서리가 부착된 제1 영역(예: 도 4a의 410)을 제외한 나머지 영역을 제1 화면 영역(예: 도 4a의 제1 화면 영역(411))으로 결정할 수 있다. 상기 프로세서(520)는, 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치된 상기 제1 화면 영역에 설정된 기능 예를 들어, 터치 패드 기능을 제공하기 위한 GUI를 표시할 수 있다.According to an embodiment, the processor 520 determines that the external accessory is attached from a first position corresponding to an upper side of the second display area 563 in a first state (eg, the first state in FIG. 4A ). If detected, the remaining area of the second display area 563 excluding the first area to which the external accessory is attached (eg, 410 in FIG. 4A ) is converted to a first screen area (eg, the first screen area 411 in FIG. 4A ). )) can be determined. The processor 520 may display a GUI for providing a set function, for example, a touch pad function, on the first screen area located below the first area to which the external accessory is attached.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 제1 거리 떨어진 제2 위치부터 상기 외부 액세서리가 부착된 제2 상태(예: 도 4b의 제2 상태)임을 검출하면, 상기 제2 디스플레이 영역(563)에서 상기 외부 액세서리가 부착된 제1 영역(예: 도 4b의 410)을 제외한 나머지 영역들을 제2 화면 영역(예: 도 4b의 제2 화면 영역(413))과 제3 화면 영역(예: 도 4b의 제3 화면 영역(415))으로 결정할 수 있다. 상기 프로세서(520)는, 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치된 상기 제2 화면 영역에 설정된 기능 예를 들어, 키보드의 기능키(예: fn키), 또는 제1 디스플레이 영역(561)에 표시되는 어플리케이션과 관련된 동작을 수행하기 위한 기능 키 중 적어도 하나를 표시할 수 있다. 상기 프로세서(520)는, 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치된 상기 제3 화면 영역에 설정된 기능 예를 들어, 터치 패드 기능을 제공할 수 있는 GUI을 표시할 수 있다. 상기 프로세서(520)는, 상기 제1 상태에서 터치 패드 기능을 제공할 수 있는 GUI를 표하는 제1 화면 영역 보다 크기를 감소한 상기 제3 화면 영역에 터치 패드 기능을 제공할 수 있는 GUI를 표시할 수 있다. 예를 들어, 상기 프로세서(520)는, 상기 제2 화면 영역에 키보드의 기능키를 표시하는 동안, 상기 제2 화면 영역에서 검출되는 상하 스크롤 동작 또는 특정 키의 입력을 기반으로, 상기 제2 화면 영역에 표시되는 기능 키의 종류를 변경하여 표시할 수 있다.According to an embodiment, the processor 520 may perform a second state in which the external accessory is attached from a second location that is a first distance away from the first location corresponding to the upper side of the second display area 563 (eg, 4B), the second screen area 563 except for the first area to which the external accessory is attached (eg, 410 in FIG. 4B) is displayed as a second screen area (eg, FIG. 4B). The second screen area 413 of FIG. 4b) and the third screen area (eg, the third screen area 415 of FIG. 4b) may be determined. The processor 520 performs a function set on the second screen area located above the first area to which the external accessories are attached, for example, a function key (eg, fn key) of a keyboard, or a first display area ( At least one of function keys for performing an operation related to an application displayed in 561) may be displayed. The processor 520 may display a GUI capable of providing a set function, for example, a touch pad function, on the third screen area located below the first area to which the external accessory is attached. In the first state, the processor 520 may display a GUI capable of providing a touch pad function on the third screen area whose size is reduced from that of the first screen area displaying a GUI capable of providing a touch pad function in the first state. there is. For example, while displaying function keys of a keyboard on the second screen area, the processor 520, based on an up-down scrolling motion detected on the second screen area or an input of a specific key, the second screen The type of function key displayed in the area can be changed and displayed.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 제2 상태의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 외부 액세서리가 부착된 제3 상태(예: 도 4c의 제3 상태)임을 검출하면, 상기 제2 디스플레이 영역(563)에서 상기 외부 액세서리가 부착된 제1 영역(예: 도 4c의 410)을 제외한 나머지 영역들을 제4 화면 영역(예: 도 4c의 제3 화면 영역(417))과 제5 화면 영역(예: 도 4c의 제5 화면 영역(419))으로 결정할 수 있다. 상기 프로세서(520)는, 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치된 상기 제4 화면 영역에 설정된 기능 예를 들어, 키보드의 기능키(예: fn 키) 표시, 최근 사용했던 어플리케이션에 대응되는 프리뷰 화면, 또는 자주 이용하는 어플리케이션에 대응되는 프리뷰 화면 중 적어도 하나를 표시할 수 있다. 상기 프로세서(520)는, 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치된 상기 제5 화면 영역에 설정된 기능 예를 들어, 터치 패드 기능을 제공할 수 있는 GUI를 표시할 수 있다. 상기 프로세서(520)는, 상기 제2 상태에서 터치 패드 기능을 제공할 수 있는 GUI를 표하는 제3 화면 영역 보다 크기를 감소한 상기 제5 화면 영역에 터치 패드 기능을 제공할 수 있는 GUI를 표시할 수 있다.According to an embodiment, the processor 520 may, from a first location corresponding to an upper side of the second display area 563, a third location separated by a second distance longer than the first distance in the second state to the outside of the second display area 563. When it is detected that the accessory is attached in the third state (eg, the third state in FIG. 4C ), the rest of the second display area 563 excluding the first area in which the external accessory is attached (eg, 410 in FIG. 4C ) is detected. The areas may be determined as a fourth screen area (eg, the third screen area 417 of FIG. 4C) and a fifth screen area (eg, the fifth screen area 419 of FIG. 4C). The processor 520 provides functions set in the fourth screen area located above the first area to which the external accessories are attached, such as displaying a function key (eg, fn key) of a keyboard, and a recently used application. At least one of a corresponding preview screen or a preview screen corresponding to a frequently used application may be displayed. The processor 520 may display a GUI capable of providing a set function, for example, a touch pad function, on the fifth screen area located below the first area to which the external accessory is attached. In the second state, the processor 520 may display a GUI capable of providing a touch pad function on the fifth screen area whose size is smaller than that of the third screen area displaying a GUI capable of providing a touch pad function in the second state. there is.

예를 들어, 상기 프로세서(520)는, 상기 제4 화면 영역에 포함된 두 개의 서브 영역 각각에 키보드의 기능키와 적어도 하나의 프리뷰 화면을 표시하는 동안, 상기 기능키를 표시하는 서브 영역에 스와이프 아웃(swipe out) 동작을 검출하면, 상기 제4 화면 영역에 상기 기능 키를 표시하지 않고, 상기 두 개의 서브 영역이 포함된 상기 4 화면 영역에 상기 적어도 하나의 프리뷰 화면을 확대하여 표시할 수 있다.For example, the processor 520, while displaying a function key of a keyboard and at least one preview screen on each of the two sub areas included in the fourth screen area, scans the sub area displaying the function key. When a swipe out operation is detected, the at least one preview screen may be enlarged and displayed on the four screen areas including the two sub areas without displaying the function key on the fourth screen area. there is.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 제3 상태의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 제2 디스플레이 영역의 하측에 대응되는 제5 위치까지 상기 외부 액세서리가 부착된 제4 상태(예: 도 4d의 제4 상태)임을 검출하면, 상기 제2 디스플레이 영역(563)에서 상기 외부 액세서리가 부착된 제1 영역(예: 도 4d의 410)을 제외한 나머지 영역을 제6 화면 영역(예: 도 4d의 제6 화면 영역(421))으로 결정할 수 있다. 상기 프로세서(520)는, 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치된 상기 제6 화면 영역에 설정된 기능 예를 들어, 최근 사용했던 어플리케이션에 대응되는 프리뷰 화면, 자주 이용하는 어플리케이션에 대응되는 프리뷰 화면, 또는 제1 디스플레이 영역(561)에서 표시되고 있는 실행 중인 어플리케이션과 관련된 기능 창 중 적어도 하나를 표시할 수 있다.According to an embodiment, the processor 520 starts the first position from a fourth position separated by a third distance longer than the second distance in the third state from the first position corresponding to the upper side of the second display area 563. 2 When it is detected that the external accessory is attached to the fifth position corresponding to the lower side of the display area (eg, the fourth state in FIG. 4D ), the external accessory is attached in the second display area 563. An area other than the first area (eg, 410 in FIG. 4D ) may be determined as a sixth screen area (eg, the sixth screen area 421 in FIG. 4D ). The processor 520 performs functions set in the sixth screen area located above the first area to which the external accessory is attached, for example, a preview screen corresponding to a recently used application and a preview corresponding to a frequently used application. At least one of the screen or a function window related to an application being executed displayed on the first display area 561 may be displayed.

예를 들어, 상기 프로세서(520)는, 상기 제6 화면 영역에 포함된 복수의 서브 영역들 각각에 복수의 프리뷰 화면을 표시하는 동안 상기 복수의 서브 영역들 중 어느 하나의 서브 영역에서 상하 스크롤 동작을 검출하면, 상기 상하 스크롤 동작을 검출한 서브 영역에 상기 상하 스크롤 동작에 대응되게 표시되지 않는 다른 프리뷰 화면을 순서적으로 표시할 수 있다.For example, while displaying a plurality of preview screens on each of a plurality of sub-regions included in the sixth screen area, the processor 520 performs an up-down scrolling operation on any one of the plurality of sub-regions. When detecting the up and down scrolling operation, other preview screens that are not displayed corresponding to the up and down scrolling operation may be sequentially displayed in the sub area where the up and down scrolling operation is detected.

일 실시 예에 따르면, 상기 프로세서(520)는 상기 제4 상태에서, 상기 제1 디스플레이 영역(561)과 상기 제2 디스플레이 영역(563)의 경계에 하측 드래그 동작을 검출하면, 상기 제1 디스플레이 영역(561)에 표시되는 이미지 화면을 상기 제2 디스플레이 영역(563)의 제6 화면 영역까지 확장하여 표시할 수 있다. 상기 프로세서(520)는, 상기 이미지 화면이 상기 제1 디스플레이 영역(561)과 상기 제2 디스플레이 영역(563)의 제6 화면 영역(421)을 포함하여 표시하는 동안, 상기 이미지 화면과 상기 제2 디스플레이 영역(563)에서 사용자 인터페이스가 표시되는 제1 영역의 경계에서 롱 터치를 검출하면, 상기 제1 디스플레이 영역(561)과 상기 제2 디스플레이 영역(563) 전체에 상기 이미지 화면을 표시할 수 있다. 상기 프로세서(520)는, 상기 제2 디스플레이 영역(563)에서 상기 제1 영역의 투명도를 조절하여 상기 제1 영역에 표시되는 사용자 인터페이스를 표시함으로써, 상기 이미지 화면의 일부와 상기 사용자 인터페이스를 중첩하여 표시할 수 있다.According to an embodiment, when the processor 520 detects a downward drag operation at the boundary between the first display area 561 and the second display area 563 in the fourth state, the first display area The image screen displayed at 561 can be displayed by extending it to the sixth screen area of the second display area 563 . While the processor 520 displays the image screen including the sixth screen area 421 of the first display area 561 and the second display area 563, the image screen and the second display area 561 are displayed. When a long touch is detected at the boundary of the first area where the user interface is displayed in the display area 563, the image screen can be displayed on the entire first display area 561 and the second display area 563. . The processor 520 adjusts the transparency of the first area in the second display area 563 to display the user interface displayed in the first area, thereby overlapping a part of the image screen with the user interface. can be displayed

다양한 실시 예들에 따르면, 메모리(530)는, 도 1의 메모리(130)와 실질적으로 동일하거나 유사하게 구현될 수 있다.According to various embodiments, the memory 530 may be implemented substantially the same as or similar to the memory 130 of FIG. 1 .

일 실시 예에 따르면, 상기 메모리(530)는, 사용자 인터페이스의 표시를 위한 외부 액세서리에 대한 정보(예: 종류 정보, 크기 정보 및 형태 정보)가 저장될 수 있다.According to an embodiment, the memory 530 may store information (eg, type information, size information, and shape information) about external accessories for displaying a user interface.

다양한 실시 예들에 따르면, 디스플레이(560)(예: 도 4a 내지 도 4d의 디스플레이(260))는, 제1 디스플레이 영역(561)(예: 도 4a 내지 도 4d의 제1 디스플레이 영역(261)) 및 제2 디스플레이 영역(563)(예: 도 4a 내지 도 4d의 제2 디스플레이 영역(263))을 포함할 수 있다. 상기 제1 디스플레이 영역(561)은 힌지(예: 도 2의 힌지(281))의 폴딩에 따라 일정 각도로 위치가 변경될 수 있다.According to various embodiments, the display 560 (eg, the display 260 of FIGS. 4A to 4D ) includes a first display area 561 (eg, the first display area 261 of FIGS. 4A to 4D ). and a second display area 563 (eg, the second display area 263 of FIGS. 4A to 4D). The position of the first display area 561 may be changed at a predetermined angle according to folding of a hinge (eg, the hinge 281 of FIG. 2 ).

일 실시 예에 따르면, 상기 제2 디스플레이 영역(563)에는, 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 도 4a 내지 도 4d의 외부 액세서리(310))가 부착된 제1 영역에 상기 외부 액세서리의 종류에 대응되는 사용자 인터페이스가 표시될 수 있다.According to an embodiment, in the second display area 563, an external accessory for displaying a user interface (eg, the external accessory 310 of FIGS. 4A to 4D) is attached to the first area of the external accessory. A user interface corresponding to the type may be displayed.

일 실시 예에 따르면, 상기 제2 디스플레이 영역(563)에는 상기 외부 액세서리가 부착된 제1 영역을 제외한 적어도 하나의 나머지 영역이 적어도 하나의 화면 영역으로 설정되면, 상기 적어도 하나의 화면 영역 각각에 설정된 기능이 제공될 수 있다.According to an embodiment, if at least one remaining area other than the first area to which the external accessory is attached is set as at least one screen area in the second display area 563, the screen area is set for each of the at least one screen area. function can be provided.

일 실시 예에 따르면, 상기 디스플레이(560)는, 도 1의 디스플레이 모듈(160)과 동일할 수 있거나, 상기 디스플레이 모듈(160)에서 수행되는 적어도 하나의 기능 또는 동작을 수행할 수 있다.According to an embodiment, the display 560 may be the same as the display module 160 of FIG. 1 , or may perform at least one function or operation performed by the display module 160 .

다양한 실시 예들에 따르면, 센서 모듈(576)는, 도 1의 센서 모듈(176) 과 실질적으로 동일하거나 유사하게 구현될 수 있다.According to various embodiments, the sensor module 576 may be implemented substantially the same as or similar to the sensor module 176 of FIG. 1 .

일 실시 예에 따르면, 상기 센서 모듈(576)는, 전자 장치의 언폴딩 상태, 전자 장치의 폴딩 상태, 전자 장치의 자세 상태 (또는 거치 상태), 및 전자 장치의 회전 상태를 검출할 수 있는 다양한 센서들을 포함할 수 있다. According to an embodiment, the sensor module 576 may detect the unfolding state of the electronic device, the folding state of the electronic device, the posture state (or mounting state) of the electronic device, and the rotation state of the electronic device. May contain sensors.

일 실시 예에 따르면, 상기 센서 모듈(376)는, 각도 센서, 기울기 센서, 가속도 센서, 지자기 센서, 자이로 센서, 모션 센서, 중력 센서 및 근접 센서등을 포함할 수 있다. 예를 들어, 상기 센서 모듈(576)는, 각도 센서, 기울기 센서, 가속도 센서, 지자기 센서, 자이로 센서 또는 모션 센서 중 적어도 하나의 센서로부터 수신되는 센서 정보를 이용하여, 전자 장치의 언폴딩 상태, 전자 장치의 폴딩 상태, 전자 장치의 자세 상태 (또는 거치 상태), 및 전자 장치의 회전 상태에 대응된 센서 정보를 상기 프로세서(520)로 전송할 수 있다.According to an embodiment, the sensor module 376 may include an angle sensor, a tilt sensor, an acceleration sensor, a geomagnetic sensor, a gyro sensor, a motion sensor, a gravity sensor, and a proximity sensor. For example, the sensor module 576 uses sensor information received from at least one of an angle sensor, a tilt sensor, an acceleration sensor, a geomagnetic sensor, a gyro sensor, and a motion sensor to determine an unfolded state of the electronic device, Sensor information corresponding to the folding state of the electronic device, the posture state (or mounting state) of the electronic device, and the rotation state of the electronic device may be transmitted to the processor 520 .

일 실시 예에 따르면, 상기 센서 모듈(576)는, 복수의 홀 센서들을 포함하고, 상기 복수의 홀 센서들 중 사용자 인터페이스의 표시를 위한 외부 액세서리에 포함된 적어도 하나의 자석에 의한 자장을 감지하는 홀 센서로부터 수신된 센서 정보를 프로세서(520)로 전송하여, 상기 프로세서(520)가 상기 센서 정보를 전송한 상기 홀 센서가 배치된 위치를 기반으로, 상기 제2 디스플레이 영역(563) 중 상기 외부 액세서리가 부착된 영역의 위치를 결정할 수 있도록 할 수 있다.According to an embodiment, the sensor module 576 includes a plurality of hall sensors, and detects a magnetic field by at least one magnet included in an external accessory for displaying a user interface among the plurality of hall sensors. The sensor information received from the hall sensor is transmitted to the processor 520, and the processor 520 transmits the sensor information to the outside of the second display area 563 based on the position where the hall sensor is disposed. You can make it possible to determine the location of the area where the accessory is attached.

다양한 실시 예들에 따르면, 통신 모듈(390)는, 도 1의 통신 모듈(190) 과 실질적으로 동일하거나 유사하게 구현될 수 있으며, 서로 다른 통신 기술을 사용하는 복수의 통신 회로를 포함할 수 있다. According to various embodiments, the communication module 390 may be implemented substantially the same as or similar to the communication module 190 of FIG. 1 and may include a plurality of communication circuits using different communication technologies.

일 실시 예에 따르면, 통신 모듈(390)은, 무선랜 모듈(미도시)과 근거리통신 모듈(미도시) 중 적어도 하나를 포함할 수 있으며, 상기 근거리통신 모듈(미도시)로 UWB(ultra wide band) 통신 모듈, Wi-Fi 통신 모듈, NFC 통신 모듈, 블루투스 레거시(legacy) 통신 모듈 및/또는 BLE통신 모듈을 포함할 수 있다.According to an embodiment, the communication module 390 may include at least one of a wireless LAN module (not shown) and a short-distance communication module (not shown), and the short-range communication module (not shown) is ultra wide (UWB). band) communication module, Wi-Fi communication module, NFC communication module, Bluetooth legacy communication module and / or BLE communication module.

도 6a는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 부착될 외부 액세서리를 설명하기 위한 도면(600a)이고, 도 6b는 다양한 실시 예들에 따른 도 6a에서 A-A'를 따라 절단한 단면도(600b)이다. 도 6a 내지 도 6b에서는 외부 액세서리를 키보드 커버(또는 키보드 스킨)로 예를 들어 설명하고 있으나, 다른 외부 액세서리에서도 동일하게 적용할 수 있다.6A is a diagram 600a for explaining an external accessory to be attached to a display of an electronic device according to various embodiments, and FIG. 6B is a cross-sectional view 600b taken along line A-A′ in FIG. 6A according to various embodiments. am. 6a to 6b, the external accessory is described as a keyboard cover (or keyboard skin) as an example, but the same can be applied to other external accessories.

상기 도 6a를 참조하면, 사용자 인터페이스 표시를 위한 외부 액세서리 중 키보드 표시를 위한 키보드 커버(또는 키보드 스킨)(310)는, 상기 키보드 커버(310)가 전자 장치(예: 도 2a 내지 도 4d의 전자 장치(201) 또는/및 도 5의 전자 장치(501))의 제2 디스플레이 영역(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263) 또는/및 도 5의 제2 디스플레이 영역(563))에 부착될 때, 상기 전자 장치가 상기 키보드 커버(또는 키보드 스킨)(310)의 부착 및 상기 키보드 커버(또는 키보드 스킨)(310)의 종류를 검출할 수 있도록 하기 위해, 상기 키보드 커버(또는 키보드 스킨)(310)의 내측에서 미리 정해진 일정 영역들 각각에 전도성 물질(611a, 611b)(예: 금속(예: 은, 구리, 금, 알루미늄, 텅스텐, 아연, 황동, 주석, 납, 또는 스테인리스 강) 또는 탄소 동소체(예: 흑연 또는 그래핀)이 배치되어 포함될 수 있다. 상기 키보드 커버(또는 키보드 스킨)(310)는, 상기 키보드 커버(310)가 상기 전자 장치의 상기 제2 디스플레이 영역에 부착될 때, 상기 전자 장치가 상기 제2 디스플레이 영역에 부착된 상기 키보드 커버(310)의 위치를 결정하고 상기 제2 디스플레이 영역에 부착된 상기 키보드 커버(310)의 이탈 방지를 위해, 상기 키보드 커버(310)의 내측의 양단 각각에 자석(613a, 613b)을 배치하여 포함할 수 있다. 상기 키보드 커버(310)의 내측의 양단 각각 배치된 자석(613a, 613b)은, 상기 키보드 커버(310)가 상기 전자 장치의 상기 제2 디스플레이 영역에 부착될 때, 상기 제2 디스플레이 영역에 배치된 복수의 자석들 중 하나의 자석과 접촉될 수 있다. 상기 도 6a에서는 상기 키보드 커버(310)의 내측의 양단 각각에 하나의 자석(613a, 613b)을 배치하는 것을 예로 설명하고 있으나, 상기 키보드 커버(310)의 내측의 양단 각각에 복수의 자석들을 일정 간격으로 배치하여 표시할 수 있다.상기 도 6a에서는 디스플레이 중 제2 디스플레이 영역에 키보드 커버(또는 키보드 스킨)(310)이 부착되는 것을 예로 설명하고 있으나, 상기 디스플레이 중 제1 디스플레이 영역에 키보드 커버(또는 키보드 스킨)(310)가 부착될 수 있으며, 상기 키보드 커버(또는 키보드 스킨)(310)가 부착된 상기 제1 디스플레이 영역은 상기 키보드 커버(또는 키보드 스킨)(310)가 부착된 상기 제2 디스플레이 영역과 동일하게 동작할 수 있다.Referring to FIG. 6A, among external accessories for displaying a user interface, a keyboard cover (or keyboard skin) 310 for displaying a keyboard is an electronic device (eg, the electronic device of FIGS. 2A to 4D). Second display area (eg, second display area 263 in FIGS. 2A to 4D or/and second display area 563 in FIG. 5 ) of device 201 or/and electronic device 501 in FIG. 5 . ), in order for the electronic device to be able to detect the attachment of the keyboard cover (or keyboard skin) 310 and the type of the keyboard cover (or keyboard skin) 310, the keyboard cover (or keyboard skin) 310 Conductive materials 611a and 611b (eg, metal (eg, silver, copper, gold, aluminum, tungsten, zinc, brass, tin, lead, or stainless steel) or a carbon allotrope (eg, graphite or graphene) may be disposed and included in the keyboard cover (or keyboard skin) 310, so that the keyboard cover 310 is in the second display area of the electronic device. When attached, the electronic device determines the position of the keyboard cover 310 attached to the second display area and prevents separation of the keyboard cover 310 attached to the second display area, the keyboard cover Magnets 613a and 613b may be disposed at both ends of the inside of the keyboard cover 310. The magnets 613a and 613b, respectively, are disposed at both ends of the inside of the keyboard cover 310, and the keyboard cover 310 When attached to the second display area of the electronic device, it may come into contact with one of a plurality of magnets disposed on the second display area 6A, the inside of the keyboard cover 310 Although one magnet (613a, 613b) has been described as an example of arranging one magnet (613a, 613b) at both ends, a plurality of magnets may be arranged and displayed at regular intervals at both ends of the inside of the keyboard cover 310. In FIG. 6A, Although the keyboard cover (or keyboard skin) 310 is attached to the second display area of the display as an example, the keyboard cover (or keyboard skin) 310 may be attached to the first display area of the display, The first display area to which the keyboard cover (or keyboard skin) 310 is attached may operate identically to the second display area to which the keyboard cover (or keyboard skin) 310 is attached.

상기 도 6a에서 A-A'를 따라 절단한 단면도를 도시하는 상기 도 6b를 참조하면, 키보드 커버(310)는, 상기 전자 장치의 제2 디스플레이 영역에서 표시되는 사용자의 인터페이스인 키보드가 보여지고, 상기 사용자 상기 키보드의 터치를 위해 눌러진 후 복원될 수 투명하고 얇은 탄력성을 가지는 재질로 이루어질 수 있다. 상기 키보드 커버(310)에 포함된 복수의 키 커버들 각각은 키 소재의 두께가 얇은 중앙부(611)가 눌렸을 때 상기 전자 장치의 제2 디스플레이 영역에 표시되는 상기 키보드의 터치를 인식할 수 있다. 상기 키보드 커버(310)에 포함된 복수의 키 커버들이 눌러진 후 복원 될 수 있도록, 상기 복수의 키 커버들 각각의 내측은 돔 형상(613)으로 이루어질 수 있다. 키보드의 터치 인식을 높이기 위해 상기 키 보드 커버(310)에 전도성 물질이 삽입될 수 있다. 또는 전도성 물질이 삽입되지 않은 상기 키보드 커버(310)에서 키보드 커버의 패턴을 인지하여 키보드의 터치를 인식하고 키보드의 위치 변화를 인식 수 있다.Referring to FIG. 6B, which is a cross-sectional view taken along A-A' in FIG. 6A, the keyboard cover 310 shows a keyboard, which is a user interface displayed in the second display area of the electronic device, It may be made of a transparent and thin material having elasticity that can be restored after being pressed for the user's touch of the keyboard. Each of the plurality of key covers included in the keyboard cover 310 can recognize the touch of the keyboard displayed on the second display area of the electronic device when the central portion 611 having a thin key material is pressed. . The inside of each of the plurality of key covers may be formed in a dome shape 613 so that the plurality of key covers included in the keyboard cover 310 can be restored after being pressed. A conductive material may be inserted into the keyboard cover 310 to enhance touch recognition of the keyboard. Alternatively, the keyboard cover 310 in which the conductive material is not inserted may recognize the keyboard cover pattern, thereby recognizing the touch of the keyboard and recognizing the position change of the keyboard.

도 7a 내지 도 7c는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 부착을 검출하는 동작을 설명하기 위한 도면들(700a 내지 도 700c)이다. 도 7a 내지 도 7c에서는 외부 액세서리를 키보드 커버(또는 키보드 스킨)로 예를 들어 설명하고 있으나, 다른 외부 액세서리에서도 동일하게 적용할 수 있다.7A to 7C are diagrams 700a to 700c for explaining an operation of detecting attachment of an external accessory to a display of an electronic device according to various embodiments. 7a to 7c, the external accessory is described as a keyboard cover (or keyboard skin) as an example, but the same can be applied to other external accessories.

상기 도 7a 내지 상기 도 7c 를 참조하면, 상기 도 7a 내지 상기 도 7b와 같이 전자 장치(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))의 힌지(예: 도 2의 힌지(281))가 폴딩된 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에서 키보드 표시를 위한 키보드 커버(또는 키보드 스킨)(310)(예: 도 6a 내지 도 6b의 키보드 커버(310))가 부착되면, 상기 전자 장치는, 상기 키보드 커버(310)의 내측에 포함된 전도성 물질(611a, 611b)이 상기 제2 디스플레이 영역(563)에 접촉됨에 따라 정전 용량 패턴의 변화를 검출할 수 있다. 상기 키보드 커버(310)의 내측에 포함된 상기 전도성 물질(611a, 611b)는, 상기 키보드 커버(또는 키보드 스킨)(310)의 위치 인식 및 상기 키보드 커버(또는 키보드 스킨)(310)의 위치 변화를 인식하기 위해 사용될 수 있다.Referring to FIGS. 7A to 7C, as shown in FIGS. 7A to 7B, the electronic device (eg, the electronic device 201 of FIGS. 2A to 4D or/and the electronic device 501 of FIG. 5) A keyboard cover for displaying a keyboard in the second display area 563 (eg, the second display area 263 in FIGS. 2A to 4D ) in a state in which the hinge (eg, the hinge 281 of FIG. 2 ) is folded ( Or, when a keyboard skin) 310 (eg, the keyboard cover 310 of FIGS. 6A and 6B) is attached, the electronic device is configured such that the conductive materials 611a and 611b included inside the keyboard cover 310 As the second display area 563 is in contact, a change in capacitance pattern may be detected. The conductive materials 611a and 611b included inside the keyboard cover 310 recognize the location of the keyboard cover (or keyboard skin) 310 and change the location of the keyboard cover (or keyboard skin) 310. can be used to recognize

다양한 실시 예들에 따르면, 상기 키보드 커버(310)의 내측의 양단 각각 배치된 자석(613a, 613b)은, 상기 키보드 커버(310)가 상기 전자 장치의 상기 제2 디스플레이 영역에 부착될 때, 상기 제2 디스플레이 영역에 배치된 복수의 자석들 중 하나의 자석과 접촉됨에 따라,상기 키보드 커버(310)의 부착 상태를 상기 제2 디스플레이 영역에 부착 및 상기 키보드 커버(310)의 이탈 방지를 위해 사용될 수 있다.According to various embodiments, the magnets 613a and 613b disposed at both ends of the inside of the keyboard cover 310, when the keyboard cover 310 is attached to the second display area of the electronic device, 2 As it comes into contact with one of the plurality of magnets disposed in the display area, the keyboard cover 310 can be attached to the second display area and prevented from leaving the keyboard cover 310. there is.

상기 도 7c와 같이 상기 전자 장치는 상기 제2 디스플레이(563)로부터 제1 정전 용량의 패턴을 검출하면, 상기 제2 디스플레이 영역(563)에 사용자 인터페이스의 표시를 위한 외부 액세서리가 부착되었고, 상기 부착된 상기 외부 액세서리의 종류가 키보드 표시를 위한 키보드 커버(310)임을 검출할 수 있다. 상기 전자 장치는, 상기 제2 디스플레이 영역(563)에 키보드 커버(310)가 부착되었음을 검출하면, 상기 제2 디스플레이 영역(563) 중 상기 키보드 커버(310)가 부착된 제1 영역(410)에 사용자 인터페이스로서 복수 키들을 포함하는 키보드를 표시할 수 있다.7C, when the electronic device detects the first capacitance pattern from the second display 563, an external accessory for displaying a user interface is attached to the second display area 563, and the attachment It is possible to detect that the type of the external accessory is the keyboard cover 310 for displaying the keyboard. When the electronic device detects that the keyboard cover 310 is attached to the second display area 563, the first area 410 of the second display area 563 to which the keyboard cover 310 is attached. A keyboard including a plurality of keys may be displayed as a user interface.

다양한 실시 예들에 따르면, 상기 전자 장치는, 키보드 커버의 내측에 복수의 전도성 물질(예: 전도성 물질(611a, 611b)이 특정 패턴으로 배치된 상기 키보드 커버가 제2 디스플레이 영역에 부착되어, 미리 정해진 패턴의 복수의 터치를 검출하면, 상기 검출된 복수의 터치를 기반으로 상기 전자 장치에 저장되어 있는 키보드 사이즈와 패턴을 기준으로 상대적 위치 값을 포함하는 정보를 호출하여, 상기 제2 디스플레이 영역에서 부착된 키보드 커버의 위치를 확인할 수 있다.According to various embodiments of the present disclosure, in the electronic device, a keyboard cover in which a plurality of conductive materials (eg, conductive materials 611a and 611b) are disposed in a specific pattern is attached to the second display area to display a predetermined When multiple touches of a pattern are detected, information including relative position values based on the keyboard size and pattern stored in the electronic device is called based on the detected multiple touches, and is attached in the second display area. You can check the location of the keyboard cover.

다양한 실시 예들에 따르면, 키보드의 터치 인식을 높이기 위해 상기 키 보드 커버(310)에 전도성 물질이 삽입될 수 있다. 또는 전도성 물질이 삽입되지 않은 상기 키보드 커버(310)에서 키보드 커버의 키 캡 내의 패턴을 인지하여 키보드의 터치를 인식하고 키보드의 위치 변화를 인식할 수 있다.According to various embodiments, a conductive material may be inserted into the keyboard cover 310 to enhance touch recognition of the keyboard. Alternatively, the keyboard cover 310 in which the conductive material is not inserted may recognize a touch of the keyboard and a change in the position of the keyboard by recognizing a pattern in a key cap of the keyboard cover.

도 8a 내지 도 8d는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 부착된 외부 액세서리의 위치를 검출하는 동작을 설명하기 위한 도면들(800a 내지 도 800d)이다. 도 8a 내지 도 8d에서는 외부 액세서리를 키보드 커버(또는 키보드 스킨)로 예를 들어 설명하고 있으나, 다른 외부 액세서리에서도 동일하게 적용할 수 있다.8A to 8D are diagrams 800a to 800d for explaining an operation of detecting a position of an external accessory attached to a display of an electronic device according to various embodiments. 8A to 8D describe the external accessory as a keyboard cover (or keyboard skin) as an example, but the same can be applied to other external accessories.

상기 도 8a 내지 도 8d는, 전자 장치(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))의 힌지(예: 도 2의 힌지(281))가 폴딩 되고, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(또는 키보드 스킨)(310)(예: 도 6a 내지 도 6b의 키보드 커버(310))가 부착된 상태에서, 상기 제2 디스플레이 영역(563)의 측면을 절단한 단면도들이다. 상기 키보드 커버(310)의 내측의 양단 각각에 자석(예: 도 7a의 자석들(613a, 613b))이 배치될 수 있으며, 상기 제2 디스플레이 영역(563)의 양단 각각에는 상기 키보드 커버(310)의 내측의 양단 각각에 배치된 자석(예: 도 7a의 자석들(613a, 613b))과 접촉될 수 있는 복수의 위치에 복수의 자석들을 배치할 수 있다.8A to 8D show a hinge (eg, the hinge 281 of FIG. 2 ) of an electronic device (eg, the electronic device 201 of FIGS. 2A to 4D , or/and the electronic device 501 of FIG. 5 ). is folded, and a keyboard cover (or keyboard skin) 310 (eg, FIGS. 6A to 4D) for displaying a keyboard on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D) These are cross-sectional views of the side of the second display area 563 in a state where the keyboard cover 310 of 6b is attached. Magnets (for example, the magnets 613a and 613b of FIG. 7A ) may be disposed at both ends of the inside of the keyboard cover 310 , and at both ends of the second display area 563 , the keyboard cover 310 A plurality of magnets may be disposed at a plurality of locations that may come into contact with magnets (eg, magnets 613a and 613b of FIG. 7A ) disposed at both ends of the inside of ).

상기 도 8a를 참조하면, 상기 전자 장치는, 상기 키보드 커버(310)가 상기 제2 디스플레이 영역(563)에 부착될 때, 상기 키보드 커버(310)의 자석(613b)이 상기 제2 디스플레이 영역(563)에 배치된 복수의 자석들(811) 중 제1 자석(811a)와 접촉함에 따라, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치부터 상기 키보드 커버(310)가 부착된 제1 상태(예: 도 4a의 제1 상태)임을 검출할 수 있다.Referring to FIG. 8A , in the electronic device, when the keyboard cover 310 is attached to the second display area 563, the magnet 613b of the keyboard cover 310 is attached to the second display area ( 563), the keyboard cover 310 is attached from the first position corresponding to the upper side of the second display area 563 as it contacts the first magnet 811a among the plurality of magnets 811 disposed thereon. The first state (eg, the first state of FIG. 4A ) may be detected.

상기 도 8b를 참조하면, 상기 전자 장치는, 상기 키보드 커버(310)가 상기 제2 디스플레이 영역(563)에 부착될 때, 상기 키보드 커버(310)의 자석(613b)이 상기 제2 디스플레이 영역(563)에 배치된 복수의 자석들(811) 중 제2 자석(811b)과 접촉함에 따라, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 제1 거리가 떨어진 제2 위치부터 상기 키보드 커버(310)가 부착된 제2 상태(예: 도 4b의 제2 상태)임을 검출할 수 있다.Referring to FIG. 8B , in the electronic device, when the keyboard cover 310 is attached to the second display area 563, the magnet 613b of the keyboard cover 310 is attached to the second display area ( 563), as it contacts the second magnet 811b among the plurality of magnets 811 disposed on the second display area 563, from a second position separated by a first distance from the first position corresponding to the upper side of the second display area 563. It may be detected that the keyboard cover 310 is attached to the second state (eg, the second state of FIG. 4B).

상기 도 8c를 참조하면, 상기 전자 장치는, 상기 키보드 커버(310)가 상기 제2 디스플레이 영역(563)에 부착될 때, 상기 키보드 커버(310)의 자석(613b)이 상기 제2 디스플레이 영역(563)에 배치된 복수의 자석들(811) 중 제3 자석(811c)과 접촉함에 따라, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 상기 제2 상태(예: 도 4b의 제2 상태)의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 키보드 커버(310)가 부착된 제3 상태(예: 도 4c의 제3 상태)임을 검출할 수 있다.Referring to FIG. 8C , in the electronic device, when the keyboard cover 310 is attached to the second display area 563, the magnet 613b of the keyboard cover 310 is attached to the second display area ( 563) as it contacts the third magnet 811c among the plurality of magnets 811 disposed in the second state (eg, FIG. 4B ) in the first position corresponding to the upper side of the second display area 563. It is possible to detect the third state (eg, the third state of FIG. 4C ) where the keyboard cover 310 is attached from the third position at which the second distance is longer than the first distance of the second state of).

상기 도 8d를 참조하면, 상기 전자 장치는, 상기 키보드 커버(310)가 상기 제2 디스플레이 영역(563)에 부착될 때, 상기 키보드 커버(310)의 자석(613b)이 상기 제2 디스플레이 영역(563)에 배치된 복수의 자석들(811) 중 제4 자석(811d)과 접촉함에 따라, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 상기 제3 상태(예: 도 4c의 제3 상태)의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 키보드 커버(310)가 부착된 제4 상태(예: 도 4d의 제4 상태)임을 검출할 수 있다.Referring to FIG. 8D , in the electronic device, when the keyboard cover 310 is attached to the second display area 563, the magnet 613b of the keyboard cover 310 moves the second display area ( 563), as it contacts the fourth magnet 811d among the plurality of magnets 811, the third state (eg, FIG. 4C ) in the first position corresponding to the upper side of the second display area 563. It may be detected that the keyboard cover 310 is attached to the fourth state (eg, the fourth state of FIG. 4D ) from the fourth position where the third distance is longer than the second distance of the third state of).

상기 전자 장치는, 상기 제2 디스플레이 영역(563)에 복수의 홀센서들이 포함되는 경우, 상기 복수의 홀 센서들 중 키보드 커버(310)의 자석과 접촉되는 홀 센서에서 출력되는 감지신호 정보를 기반으로, 상기 제2 디스플레이 영역(563)에 부착되는 키보드 커버(310)의 부착 상태(예: 도 제1 상태, 제2 상태, 제3 상태 또는 상태)을 결정할 수 있다.When a plurality of hall sensors are included in the second display area 563, the electronic device based on detection signal information output from a hall sensor contacting a magnet of the keyboard cover 310 among the plurality of hall sensors. As a result, an attachment state (eg, a first state, a second state, a third state or state) of the keyboard cover 310 attached to the second display area 563 can be determined.

도 9는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 부착된 외부 액세서리의 위치를 검출하는 동작을 설명하기 위한 도면(900)이다. 도 9에서는 외부 액세서리를 키보드 커버(또는 키보드 스킨)로 예를 들어 설명하고 있으나, 다른 외부 액세서리에서도 동일하게 적용할 수 있다.9 is a diagram 900 for explaining an operation of detecting a location of an external accessory attached to a display of an electronic device according to various embodiments. In FIG. 9 , the external accessory is described as a keyboard cover (or keyboard skin) as an example, but the same can be applied to other external accessories.

상기 도 9를 참조하면, 전자 장치(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))는 상기 전자 장치의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(310)가 부착되면, 상기 제2 디스플레이 영역(563)에서 상기 키보드 커버(310)가 부착된 위치를 검출하고, 메모리(예: 도 5의 메모리(530))에 저장된 상기 키보드 커버(310)의 정보를 기반으로 상기 키보드 커버(310)의 크기 정보 및/또는 형태 정보를 확인할 수 있다.Referring to FIG. 9, an electronic device (eg, the electronic device 201 of FIGS. 2A to 4D, or/and the electronic device 501 of FIG. 5) is a hinge of the electronic device (eg, the hinge of FIG. 2 ( 281) is in a folded state, when the keyboard cover 310 for displaying a keyboard is attached to the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D ), the second display area 563 is in a folded state. Detect the attached position of the keyboard cover 310 in the area 563, and based on the information of the keyboard cover 310 stored in a memory (eg, the memory 530 of FIG. 5), the keyboard cover 310 Size information and/or shape information of may be checked.

상기 전자 장치(201)는, 상기 제1 하우징(271)과 제2 하우징(273)이 맞닿고 있는 완전히 폴딩된 상태(접혀진 상태)에서 상기 전자 장치(201)가 바닥에 놓여진 후, 상기 전자 장치(201)의 센서 모듈을 기반으로 상기 제1 하우징(271)과 제2 하우징(273)이 일정 각도 또는 일정 거리로 폴딩된(접혀진 상태)로의 전환을 검출하면, 상기 디스플레이(560)을 상측 영역과 하측 영역으로 분할할 수 있다. 상기 전자 장치(201)는, 상기 제2 하우징(273)이 바닥에 맞닿은 상태이면, 상측 영역을 제1 디스플레이 영역(561)으로 설정하고, 하측 영역을 제2 디스플레이 영역(563)으로 설정하고, 상기 제2 디스플레이 영역(263)에서 상기 외부 액세서리(예: 키보드 커버(310))가 부착되면, 상기 메모리에 저장된 제2 디스플레이 영역(563)의 크기 정보를 기반으로 제2 디스플레이 영역의 상단 좌표 y값(SA(y))과 제2 디스플레이 영역의 y방향 크기 값(SY)을 확인할 수 있다. 상기 전자 장치(201)는, 상기 제2 디스플레이 영역(563)에 부착된 상기 키보드 커버(310)의 위치 정보 및 상기 키보드 커버(310)의 크기 정보를 상기 메모리에서 검출할 수 있다, 상기 전자 장치(201)는, 상기 키보드 커버(310)의 내측에 배치된 전도성 물질을 기반으로 정전 패턴 위치가 인식되면 상기 인식된 위치의 좌표를 결정할 수 있다. 상기 전자 장치(201)는, 상기 키보드 커버(310)의 위치 정보 및 상기 키보드 커버(310)의 크기 정보와 상기 정전 패턴이 인식된 위치의 좌표를 이용하여, 상기 제2 디스플레이 영역(563)에 부착된 키보드 커버(310)의 상단 좌표 y 값(KA(y)), 상기 제2 디스플레이 영역(563)에 부착된 키보드 커버(310)의 하단 좌표 y 값(BA(y)) 및 키보드 커버(310)의 y방향 크기 값(KY)을 검출할 수 있다.The electronic device 201, after the electronic device 201 is placed on the floor in a completely folded state (folded state) in which the first housing 271 and the second housing 273 are in contact, the electronic device 201 When the first housing 271 and the second housing 273 are converted to a folded (folded state) at a predetermined angle or a predetermined distance based on the sensor module of 201, the display 560 is displayed in the upper area. It can be divided into upper and lower regions. When the second housing 273 is in contact with the floor, the electronic device 201 sets the upper area as the first display area 561 and the lower area as the second display area 563, When the external accessory (eg, the keyboard cover 310) is attached to the second display area 263, the top coordinate y of the second display area 563 is determined based on the size information of the second display area 563 stored in the memory. The value SA(y) and the y-direction size value SY of the second display area may be checked. The electronic device 201 may detect location information and size information of the keyboard cover 310 attached to the second display area 563 from the memory. In step 201 , when a location of an electrostatic pattern is recognized based on the conductive material disposed inside the keyboard cover 310 , coordinates of the recognized location may be determined. The electronic device 201 uses the location information of the keyboard cover 310, the size information of the keyboard cover 310, and the coordinates of the position where the electrostatic pattern is recognized, to display the information on the second display area 563. The upper coordinate y value (KA (y)) of the attached keyboard cover 310, the lower coordinate y value (BA (y)) of the keyboard cover 310 attached to the second display area 563, and the keyboard cover ( 310) can detect the y-direction size value (KY).

상기 전자 장치(201)는, 상기 제2 디스플레이 영역의 상단 좌표 y값(SA(y)), 제2 디스플레이 영역의 y방향 크기 값(SY), 상기 제2 디스플레이 영역(563)에 부착된 키보드 커버(310)의 상단 좌표 y 값(KA(y)), 상기 제2 디스플레이 영역(563)에 부착된 키보드 커버(310)의 하단 좌표 y 값(BA(y)), 키보드 커버(310)의 y방향 크기 값(KY), 및 제2 디스플레이 영역에서 표시될 화면 영역을 인식하기 위한 임계 값(α)을 이용하는 상기 <식 1>을 기반으로, 제1 조건(KA(y)-SA(y) < α)을 만족하면, 제1상태(예: 도 4a의 제1 상태)로 상기 키보드 커버(310)가 상기 제2 디스플레이 영역(563)에 위치되어 부착되어 있음을 확인할 수 있다. 상기 전자 장치(201)는, 상기 제1상태(예: 도 4a의 제1 상태)에서 상기 제2 디스플레이 영역(563)에서 키보드 커버(310))가 부착된 제1 영역을 제외한 나머지 영역인 상기 제1 영역의 하측 영역을 제1 화면 영역으로 결정하고, 상기 제1 화면 영역에 설정된 기능(예: 터치 패드 영역 표시)을 제공할 수 있다.상기 전자 장치는, 상기 <식 1>을 기반으로, 제2 조건(KA(y)-SA(y) < (SY - KY) -α)을 만족하면, 제2 상태(예: 도 4b의 제2 상태) 또는 제3 상태(예: 도 4c의 제3 상태)로 상기 키보드 커버(310)가 상기 제2 디스플레이 영역(563)에 위치되어 부착되어 있음을 확인할 수 있다.The electronic device 201 includes an upper coordinate y value (SA(y)) of the second display area, a size value (SY) in the y direction of the second display area, and a keyboard attached to the second display area 563. The upper coordinate y value of the cover 310 (KA(y)), the lower coordinate y value of the keyboard cover 310 attached to the second display area 563 (BA(y)), and the keyboard cover 310 Based on <Equation 1> using the y-direction size value (KY) and the threshold value (α) for recognizing the screen area to be displayed in the second display area, the first condition (KA (y) -SA (y ) < α), it can be confirmed that the keyboard cover 310 is located and attached to the second display area 563 in a first state (eg, the first state of FIG. 4A). The electronic device 201, in the first state (eg, the first state of FIG. 4A ), the remaining area other than the first area to which the keyboard cover 310 is attached in the second display area 563 An area below the first area may be determined as the first screen area, and a set function (eg, touch pad area display) may be provided to the first screen area. Based on Equation 1, the electronic device , If the second condition (KA (y) - SA (y) < (SY - KY) -α) is satisfied, the second state (eg, the second state of FIG. 4b) or the third state (eg, the second state of FIG. 4c) In the third state), it can be confirmed that the keyboard cover 310 is located and attached to the second display area 563 .

상기 전자 장치(201)는, 상기 제2 디스플레이 영역의 상단 좌표 y값(SA(y))과 상기 제2 디스플레이 영역(563)에 부착된 키보드 커버(310)의 상단 좌표 y 값(KA(y))간의 길이를 기반으로 상기 제2 상태와 상기 3 상태를 구분할 수 있다. 상기 전자 장치는, 상기 길이가 상기 제2 상태의 제2 화면 영역(예: 도 4b의 제2 화면 영역(413))의 세로 길이와 동일하면 상기 제2 상태로 확인하고, 상기 길이가 상기 제3 상태의 제4 화면 영역(예: 도 4c의 제3 화면 영역(417))의 세로 길이와 동일하면 상기 제3 상태로 확인할 수 있다. The electronic device 201 calculates the upper coordinate y value of the second display area 563 (SA(y)) and the upper coordinate y value of the keyboard cover 310 attached to the second display area 563 (KA(y) )), the second state and the third state can be distinguished based on the length between. The electronic device, if the length is equal to the vertical length of the second screen area (eg, the second screen area 413 of FIG. 4B) in the second state, determines the second state, and determines that the length is the first If the vertical length of the fourth screen area in the third state (eg, the third screen area 417 in FIG. 4C ) is the same, the third state can be identified.

상기 전자 장치(201)는, 상기 제2 상태에서 상기 제2 디스플레이 영역(563)에서 상기 키보드 커버(310))가 부착된 제1 영역의 상측에 위치한 영역과 상기 제1 영역의 하측에 위치 영역 각각을 제2 화면 영역과 제3 화면 영역으로 결정하면, 상기 제2 화면 영역에 설정된 기능(예: 키보드의 적어도 하나의 기능키를 표시)을 제공하고, 상기 제3 화면 영역에 설정된 기능(예: 터치 패드 영역 표시)을 제공할 수 있다.In the second state, the electronic device 201 has an area located above the first area to which the keyboard cover 310 is attached and an area located below the first area in the second display area 563 in the second state. If each is determined as a second screen area and a third screen area, a function set in the second screen area (eg, displaying at least one function key of a keyboard) is provided, and a function set in the third screen area (eg, displaying at least one function key of a keyboard) is provided. : Display of touch pad area) may be provided.

상기 전자 장치(201)는, 상기 제3 상태에서 상기 제2 디스플레이 영역(563)에서 상기 키보드 커버(310))가 부착된 제1 영역의 상측에 위치한 영역과 상기 제1 영역의 하측에 위치 영역 각각을 제4 화면 영역과 제5 화면 영역으로 결정하면, 상기 제4 화면 영역에 설정된 기능(예: 최근 사용했던 어플리케이션에 대응되는 적어도 하나의 프리뷰 화면 표시)을 제공하고, 상기 제5 화면 영역에 설정된 기능(예: 터치 패드 영역 표시)을 제공할 수 있다. 상기 제3 상태에서, 상기 제4 화면 영역은 상기 제2 상태에서 제2 화면 영역 보다 큰 크기의 영역을 포함하고, 상기 제5 화면 영역은 상기 제2 상태에서 제3 화면 영역 보다 작은 크기의 영역을 포함하도록 설정될 수 있다.In the third state, the electronic device 201 has an area located above the first area to which the keyboard cover 310 is attached and an area located below the first area in the second display area 563 in the third state. If each is determined as a fourth screen area and a fifth screen area, a function set in the fourth screen area (eg, display of at least one preview screen corresponding to a recently used application) is provided, and the fifth screen area is displayed. A set function (eg, touch pad area display) may be provided. In the third state, the fourth screen area includes an area larger than the second screen area in the second state, and the fifth screen area includes an area smaller than the third screen area in the second state. It can be set to include.

상기 전자 장치는, 상기 <식 1>을 기반으로, 제3 조건(KA(y)-SA(y) > (SY - KY) -α)을 만족하면, 제4 상태(예: 도 4d의 제4 상태)로 상기 키보드 커버(310)가 상기 제2 디스플레이 영역(563)에 위치되어 부착되어 있음을 확인할 수 있다. 상기 전자 장치(201)는 상기 제4 상태에서, 상기 제2 디스플레이 영역(563)에서 상기 키보드 커버(310)가 부착된 제1 영역의 상측에 위치한 영역을 제6 화면 영역로 설정하고, 상기 제6 화면 영역에 설정된 기능(예: 최근 사용했던 어플리케이션에 대응되는 프리뷰 화면, 자주 이용하는 어플리케이션에 대응되는 프리뷰 화면, 또는 제1 디스플레이 영역(561)에서 표시되고 있는 실행 중인 어플리케이션과 관련된 기능 창 중 적어도 하나를 표시)을 제공할 수 있다.If the electronic device satisfies the third condition (KA(y)-SA(y) > (SY-KY)-α) based on Equation 1, the fourth state (eg, the first 4 state), it can be confirmed that the keyboard cover 310 is positioned and attached to the second display area 563 . In the fourth state, the electronic device 201 sets an area located above the first area to which the keyboard cover 310 is attached in the second display area 563 as a sixth screen area, and 6 Functions set in the screen area (eg, at least one of a preview screen corresponding to a recently used application, a preview screen corresponding to a frequently used application, or a function window related to an application currently being displayed on the first display area 561). display) can be provided.

도 10은 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리가 제1 상태로 위치될 때 화면 영역에 제공되는 기능을 설명하기 위한 도면(1000)이다. 도 10에서 외부 액세서리를 키보드 커버(또는 키보드 스킨)로 예를 들어 설명하고 있으나, 다른 외부 액세서리에서도 동일하게 적용할 수 있다.FIG. 10 is a diagram 1000 for explaining functions provided to a screen area when an external accessory is positioned on a display of an electronic device in a first state according to various embodiments. In FIG. 10, an external accessory is described as a keyboard cover (or keyboard skin) as an example, but the same can be applied to other external accessories.

상기 도 10을 참조하면, 전자 장치(1001)(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))는 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(310)가 제1 상태(예: 도 4a의 제1 상태)로 부착되면, 제2 디스플레이 영역(563) 중 키보드 커버(310)가 부착된 영역 외의 나머지 영역인 제1 화면 영역(411)에 터치 패드 기능을 제공하기 위한 터치 패드 영역(1011)을 GUI로 제공할 수 있다. 상기 전자 장치(1011)는, 상기 터치 패드 영역(1011)의 좌측 또는 우측 경계에 좌우 드래그 동작(1011a)을 검출하면, 상기 좌우 드래그 동작(1011a)에 대응되게 상기 터치 패드 영역(1011)의 크기를 조절할 수 있다. 상기 전자 장치(1001)는, 상기 제1 화면 영역(411) 중 터치 패드 영역(1011)을 제외한 나머지 영역에 대해서는 터치가 검출되지 않도록 팜 리젝션(Palm rejection)기능이 설정될 수 있다Referring to FIG. 10, the electronic device 1001 (eg, the electronic device 201 of FIGS. 2A to 4D, or/and the electronic device 501 of FIG. 5) is a hinge (eg, the electronic device 501 of FIG. 5). : When the hinge 281 of FIG. 2 is in a folded state, the keyboard cover 310 for displaying the keyboard is provided on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D) When attached in one state (eg, the first state in FIG. 4A ), a touch pad function is provided to the first screen region 411, which is the remaining region other than the region to which the keyboard cover 310 is attached, among the second display region 563. A touch pad area 1011 for processing may be provided as a GUI. When the electronic device 1011 detects a left and right drag operation 1011a on the left or right border of the touch pad area 1011, the size of the touch pad area 1011 corresponds to the left and right drag operation 1011a. can be adjusted. In the electronic device 1001, a palm rejection function may be set so that a touch is not detected on the remaining areas of the first screen area 411 except for the touch pad area 1011.

상기 전자 장치(1001)는, 상기 제1 상태에서 상기 제2 디스플레이 영역(563) 중의 상기 키보드 커버(310)가 부착된 제1 영역(410)에 키보드를 표시하는 동안, 사용자의 선택(예: 키보드 내의 특정 키의 선택)을 기반으로 상기 키보드의 텍스트를 변경할 수 있다. 상기 전자 장치(1011)는, 예를 들어 키보드의 영문 텍스트(a1)를 한글 텍스트(a2)로 변경할 수 있으며, 상기 키보드에는 한글 텍스트와 함께 지정된 아이콘 또는 이모티콘을 포함하여 표시할 수 있다. 상기 전자 장치(1011)는, 키보드의 영문 텍스(a1) 또는 한글 텍스트(a2)를 특수 문자 텍스트(a3)로 변경할 수 있으며, 상기 키보드에는 특수문자 텍스트와 함께 지정된 아이콘 또는 이모티콘을 포함하여 표시할 수 있다 While the electronic device 1001 displays a keyboard in the first area 410 to which the keyboard cover 310 is attached in the second display area 563 in the first state, the user's selection (eg: based on the selection of a specific key within the keyboard) to change the text of the keyboard. The electronic device 1011 may, for example, change the English text a1 on the keyboard to Korean text a2, and display the Korean text along with a designated icon or emoticon on the keyboard. The electronic device 1011 may change English text (a1) or Korean text (a2) of the keyboard into special character text (a3), and display the special character text along with designated icons or emoticons on the keyboard. can

도 11a 내지 도 11d는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리가 제2 상태로 위치될 때 화면 영역에 제공되는 기능을 설명하기 위한 도면들(1100a 내지 1100d)이다. 도 11a 내지 도 11d에서 외부 액세서리를 키보드 커버(또는 키보드 스킨)로 예를 들어 설명하고 있으나, 다른 외부 액세서리에서도 동일하게 적용할 수 있다.11A to 11D are diagrams 1100a to 1100d for explaining functions provided to a screen area when an external accessory is positioned on a display of an electronic device in a second state according to various embodiments. 11a to 11d, the external accessory is described as a keyboard cover (or keyboard skin) as an example, but the same can be applied to other external accessories.

상기 도 11a를 참조하면, 전자 장치(1101)(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))는 상기 전자 장치(1101)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(310)가 제2 상태(예: 도 4b의 제2 상태)로 부착되면, 제2 화면 영역(413)에 키보드의 제1 기능키(413a)(예: fn키)를 표시하고, 제3 화면 영역(415)에 터치 패드 기능을 제공하기 위한 터치 패드 영역(1111)을 제공할 수 있다. 상기 전자 장치(1101)는, 상기 제2 화면 영역(413)에 상기 제1 기능키(413a)(예: fn키) 뿐만 아니라 제1 디스플레이 영역(561)에서 실행 중인 어플리케이션과 관련된 기능 또는 상기 제1 디스플레이 영역(561)에서 실행 중인 어플리케이션과 관련되지 않은 다른 기능을 표시할 수 있다. 상기 전자 장치(1101)는, 상기 제2 디스플레이 영역(563) 중 키보드 커버(310)가 위치된 영역에 키보드를 표시할 수 있다. 상기 전자 장치(1101)는, 상기 제2 디스플레이 영역(563) 중 키보드 커버(310)가 위치된 영역의 나머지 영역으로 제3 화면 영역(415)이 설정되면, 상기 제3 화면 영역에 대응되게 터치 패드 영역(1111)을 조절하여 표시할 수 있다.Referring to FIG. 11A, the electronic device 1101 (eg, the electronic device 201 of FIGS. 2A to 4D, or/and the electronic device 501 of FIG. 5) is a hinge (eg, the electronic device 501 of FIG. 5) : When the hinge 281 of FIG. 2 is in a folded state, the keyboard cover 310 for displaying the keyboard is provided on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D) When attached in two states (eg, the second state of FIG. 4B), the first function key 413a (eg, fn key) of the keyboard is displayed on the second screen area 413, and the third screen area 415 A touch pad area 1111 for providing a touch pad function may be provided. The electronic device 1101 includes not only the first function key 413a (eg, fn key) on the second screen area 413, but also functions related to applications running on the first display area 561 or the first function key 413a. 1 Display area 561 may display other functions not related to an application being executed. The electronic device 1101 may display a keyboard in an area of the second display area 563 where the keyboard cover 310 is located. When the third screen area 415 is set as the remaining area of the second display area 563 where the keyboard cover 310 is located, the electronic device 1101 makes a touch corresponding to the third screen area. The pad area 1111 may be adjusted and displayed.

상기 도 11b를 참조하면, 상기 전자 장치(1101)는, 상기 도 11a와 같이 상기 제2 화면 영역(413)에 키보드의 제1 기능키(413a)를 표시하는 동안, 상기 제2 화면 영역(413)에서 상하 스크롤 동작(1103) 또는 특정 키의 입력(1105)을 검출하면, 상기 상하 스크롤 동작(1103) 또는 상기 특정 키의 입력(1105)을 검출을 기반으로 상기 제2 화면 영역(413)에 표시되는 기능 키의 종류를 변경하여 표시할 수 있다. 예를 들어, 상기 전자 장치(1101)는, 상기 상하 스크롤 동작(1103) 또는 특정 키의 입력(1105)을 기반으로 상기 제2 화면 영역(413)에 키보드의 제1 기능키(413a) 대신 키보드의 제2 기능키(413b) 또는 키보드의 제3 기능키(413c)를 표시할 수 있다.Referring to FIG. 11B, the electronic device 1101 displays the first function key 413a of the keyboard on the second screen area 413 as shown in FIG. 11A, while the second screen area 413 ) detects an up and down scroll operation 1103 or a specific key input 1105, the second screen area 413 is displayed based on the detection of the up and down scroll operation 1103 or the specific key input 1105. The type of displayed function key can be changed and displayed. For example, the electronic device 1101 displays a keyboard instead of a first function key 413a of the keyboard on the second screen area 413 based on the up/down scroll operation 1103 or a specific key input 1105. The second function key 413b of the keyboard or the third function key 413c of the keyboard may be displayed.

상기 도 11c를 참조하면, 상기 전자 장치(1101)는, 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(310)가 제2 상태(예: 도 4b의 제2 상태)로 부착되고, 제1 디스플레이 영역(561)의 일정 영역(571)에 실행되고 있는 어플리케이션(예: 메신저 어플리케이션)이 표시되면, 제2 화면 영역(413)에 제1 디스플레이 영역(561)에서 표시되고 있는 어플리케이션(예: 메신저 어플리케이션)과 관련 동작을 수행할 수 있는 기능 키(예: 이모티콘 선택을 위한 기능키)를 표시하고, 제3 화면 영역(415)에 터치 패드 기능을 제공하기 위한 터치 패드 영역(1111)을 제공할 수 있다. Referring to FIG. 11C , the electronic device 1101 displays a second display area 563 (eg, the hinge 281 of FIG. 2 ) in a folded state. The keyboard cover 310 for displaying the keyboard is attached to the second display area 263 of FIGS. 2A to 4D in a second state (eg, the second state of FIG. 4B), and the first display area 561 has a constant When an application (eg, messenger application) being executed is displayed on the area 571, an operation related to the application (eg, messenger application) displayed on the first display area 561 is performed on the second screen area 413. A function key (eg, a function key for selecting an emoticon) may be displayed, and a touch pad area 1111 may be provided to provide a touch pad function on the third screen area 415 .

상기 도 11d를 참조하면, 상기 전자 장치(1101)는, 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(310)가 제2 상태(예: 도 4b의 제2 상태)로 부착되고, 상기 제1 디스플레이 영역(561)에 재생 중인 동영상이 표시되면, 제2 화면 영역(413)에 제1 디스플레이 영역(561)에서 표시되고 있는 동영상과 관련된 동작을 수행할 수 있는 기능 키(예: 동영상을 제어할 수 있는 기능키)를 표시하고, 제3 화면 영역(415)에 터치 패드 기능을 제공하기 위한 터치 패드 영역(1111)을 제공할 수 있다. Referring to FIG. 11D , the electronic device 1101 displays a second display area 563 (eg, the hinge 281 of FIG. 2 ) of the electronic device 1001 in a folded state. The keyboard cover 310 for displaying the keyboard is attached to the second display area 263 of FIGS. 2A to 4D in a second state (eg, the second state of FIG. 4B), and is attached to the first display area 561. When a video being played is displayed, a function key capable of performing an operation related to the video being displayed in the first display area 561 is displayed on the second screen area 413 (eg, a function key capable of controlling the video). A touch pad area 1111 for displaying and providing a touch pad function to the third screen area 415 may be provided.

도 12a 내지 도 12b는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리가 제3 상태로 위치될 때 화면 영역에 제공되는 기능을 설명하기 위한 도면들(1200a 내지 1200b)이다. 도 12a 내지 도 12b에서 외부 액세서리를 키보드 커버(또는 키보드 스킨)로 예를 들어 설명하고 있으나, 다른 외부 액세서리에서도 동일하게 적용할 수 있다.12A to 12B are diagrams 1200a to 1200b for explaining functions provided to a screen area when an external accessory is positioned on a display of an electronic device in a third state according to various embodiments. 12a to 12b, the external accessory is described as a keyboard cover (or keyboard skin) as an example, but the same can be applied to other external accessories.

상기 도 12a를 참조하면, 전자 장치(1201)(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))는 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(310)가 제3 상태(예: 도 4c의 제3 상태)로 부착되면, 키보드 커버의 제2 상태(예: 도 4b의 제2 상태)에서 제2 화면 영역(413) 보다 확대된 제4 화면 영역(417) 중 제1 서브 영역(417a)에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 표시하고, 제2 서브 영역(417b)에 키보드의 기능키(예: fn키)를 표시하고, 제5 화면 영역(419)에 터치 패드 기능을 제공하기 위한 터치 패드 영역(1211)을 제공할 수 있다. Referring to FIG. 12A, an electronic device 1201 (eg, the electronic device 201 of FIGS. 2A to 4D, or/and the electronic device 501 of FIG. 5) is a hinge (eg, the electronic device 501 of FIG. 5) : When the hinge 281 of FIG. 2 is in a folded state, the keyboard cover 310 for displaying the keyboard is provided on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D) When attached in three states (eg, the third state of FIG. 4C), the fourth screen area 417 enlarged than the second screen area 413 in the second state of the keyboard cover (eg, the second state of FIG. 4B) A plurality of preview screens corresponding to recently used applications are displayed on the first sub-area 417a, a function key (eg, fn key) of the keyboard is displayed on the second sub-area 417b, and a fifth screen area A touch pad area 1211 for providing a touch pad function to 419 may be provided.

상기 도 12b를 참조하면, 상기 전자 장치(1201)는, 상기 도 12a와 같이 상기 제4 화면 영역(417) 중 제1 서브 영역(417a)에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 표시하고, 제2 서브 영역(417b)에 키보드의 기능키(예: fn키)를 표시하는 동안, 상기 제2 서브 영역(147b)이나, 제2 서브 영역(417b)에 표시되는 키보드의 기능키(예: fn키)를 클릭한 상태 또는 특정 키(1205)(예:Fn키)가 입력된 상태에서 스와이프 아웃(swipe out) 동작(1203)을 검출하면, 상기 제4 화면 영역(417) 중 제2 서브 영역(417b)에 표시되었던 기능 키의 표시를 제거하고, 상기 제1 서브 영역(417a)과 상기 제2 서브 영역(417b)의 하나의 영역으로 통합한 상기 제4 화면 영역(417)에 상기 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 확대하여 표시할 수 있다.Referring to FIG. 12B, the electronic device 1201 displays a plurality of preview screens corresponding to recently used applications on the first sub-region 417a of the fourth screen area 417, as shown in FIG. 12A. And, while displaying the function key (eg, fn key) of the keyboard on the second sub area 417b, the function key of the keyboard displayed on the second sub area 147b or the second sub area 417b ( Example: When a swipe out operation 1203 is detected in a state in which the fn key) is clicked or a specific key 1205 (eg, the Fn key) is input, in the fourth screen area 417 The fourth screen area 417 in which the function keys displayed on the second sub area 417b are removed and the first sub area 417a and the second sub area 417b are integrated into one area. A plurality of preview screens corresponding to the recently used application may be enlarged and displayed.

상기 전자 장치(1201)는, 상기 제1 서브 영역(417a)과 상기 제2 서브 영역(417b)을 하나의 영역으로 통합한 상기 제4 화면 영역(417)에 상기 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 확대하여 표시하는 동안, 상기 제4 화면 영역(417)의 하단에서 스와이프 업(swipe up) 동작을 검출하거나 또는 특정 키(예:Fn키)(1205)의 입력을 검출하면, 상기 도 12a와 같이 상기 제4 화면 영역(417) 중 제1 서브 영역(417a)에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 축소하여 표시하고, 제2 서브 영역(417b)에 키보드의 기능키(예: fn키)를 다시 표시할 수 있다.In the electronic device 1201, a plurality of pluralities corresponding to the recently used applications are displayed on the fourth screen area 417 in which the first sub area 417a and the second sub area 417b are combined into one area. If a swipe up operation is detected at the bottom of the fourth screen area 417 or an input of a specific key (eg, Fn key) 1205 is detected while the preview screens of are enlarged and displayed, As shown in FIG. 12A, a plurality of preview screens corresponding to recently used applications are reduced and displayed on the first sub-area 417a of the fourth screen area 417, and keyboard functions are displayed on the second sub-area 417b. Keys (e.g. the fn key) can be displayed again.

도 13a 내지 도 13j는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리가 제4 상태로 위치될 때 화면 영역에 제공되는 기능을 설명하기 위한 도면들(1300a 내지 1300j)이다. 도 13a 내지 도 13j에서 외부 액세서리를 키보드 커버(또는 키보드 스킨)로 예를 들어 설명하고 있으나, 다른 외부 액세서리에서도 동일하게 적용할 수 있다.13A to 13J are diagrams 1300a to 1300j for explaining functions provided to a screen area when an external accessory is positioned on a display of an electronic device in a fourth state according to various embodiments. 13a to 13j, the external accessory is described as a keyboard cover (or keyboard skin) as an example, but the same can be applied to other external accessories.

상기 도 13a를 참조하면, 전자 장치(1301)(예: 도 2a 내지 도 4d의 전자 장치(201) 또는/및 도 5의 전자 장치(501))는 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(310)가 제4 상태(예: 도 4d의 제4 상태)로 부착되면, 키보드 커버의 제2 상태(예: 도 4b의 제2 상태)에서 제2 화면 영역(413) 또는 키보드 커버의 제3 상태(예: 도 4c의 제3 상태)에서 제4 화면 영역(417) 보다 확대된 제6 화면 영역(421)에 포함된 복수 서브 영역들(421a, 421b) 각각에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 확대하여 표시할 수 있다. 상기 전자 장치(1301)는, 상기 제2 디스플레이 영역(563)에 키보드 표시를 위한 키보드 커버(310)가 제4 상태(예: 도 4d의 제4 상태)로 부착되면, 키보드 커버의 제2 상태(예: 도 4b의 제2 상태)에서 제3 화면 영역(415) 또는 키보드 커버의 제3 상태(예: 도 4c의 제3 상태)에서 제5 화면 영역(419) 에서 표시되었던 터치 패드 영역을 표시하지 않는다, Referring to FIG. 13A, an electronic device 1301 (eg, the electronic device 201 of FIGS. 2A to 4D or/and the electronic device 501 of FIG. 5) is a hinge (eg, the electronic device 501 of FIG. 5) of the electronic device 1001. When the hinge 281 of FIG. 2 is in a folded state, the keyboard cover 310 for displaying the keyboard on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D) is in a fourth When attached in a state (eg, the fourth state of FIG. 4D), the second screen area 413 or the third state (eg, Fig. 4B) of the keyboard cover in the second state (eg, the second state of FIG. In the third state of 4c), a plurality of preview screens corresponding to recently used applications are displayed on each of the plurality of sub-areas 421a and 421b included in the sixth screen area 421 enlarged from the fourth screen area 417. It can be displayed enlarged. In the electronic device 1301, when the keyboard cover 310 for displaying the keyboard is attached to the second display area 563 in the fourth state (eg, the fourth state of FIG. 4D), the keyboard cover is in the second state. (eg, the second state of FIG. 4B) the third screen area 415 or the third state of the keyboard cover (eg, the third state of FIG. 4C) the touch pad area displayed on the fifth screen area 419 do not show,

상기 전자 장치(1301)는, 상기 제6 화면 영역(421)에 포함된 복수의 서브 영역들(421a, 421b) 각각에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 표시하는 동안, 상기 복수의 서브 영역들(421a, 421b) 중 어느 하나의 서브 영역에 표시되는 프리뷰 화면이 선택되면, 상기 선택된 프리뷰 화면에 대응되는 어플리케이션을 실행하여 제1 디스플레이 영역(561)에 표시할 수 있다.While the electronic device 1301 displays a plurality of preview screens corresponding to recently used applications on each of the plurality of sub areas 421a and 421b included in the sixth screen area 421, the plurality of preview screens are displayed. When a preview screen displayed on one of the sub-regions 421a and 421b is selected, an application corresponding to the selected preview screen may be executed and displayed on the first display area 561 .

상기 도 13b를 참조하면, 상기 전자 장치(1301)는, 상기 도 13a와 같이 제6 화면 영역(421)에 포함된 복수의 서브 영역들(421a, 421b) 각각에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 표시하는 동안, 상기 복수의 서브 영역들(421a, 421b) 중 어느 하나의 서브 영역(421a 또는 421b)에 상하 스크롤 동작(1303a 또는 1303b)을 검출하면, 상기 상하 스크롤 동작에 대응되게 상기 상하 스크롤 동작이 검출된 서브 영역(421a 또는 421b)에 표시되지 않는 다른 프리뷰 화면을 순서적으로 표시하고, 상기 복수의 서브 영역들(421a, 421b) 중 어느 하나의 서브 영역(421a 또는 421b)에 다른 프리뷰 화면을 표시 할 수 있다.Referring to FIG. 13B, the electronic device 1301 includes a plurality of sub-areas 421a and 421b included in the sixth screen area 421, respectively, corresponding to a recently used application, as shown in FIG. 13A. While displaying the preview screens, if an up and down scroll operation 1303a or 1303b is detected in any one of the plurality of sub areas 421a or 421b, the corresponding up and down scroll operation is performed. Other preview screens that are not displayed in the sub-region 421a or 421b in which the up-down scrolling operation is detected are sequentially displayed, and any one of the plurality of sub-regions 421a or 421b is selected. Another preview screen can be displayed.

상기 도 13c를 참조하면, 상기 전자 장치(1301)는, 상기 도 13a와 같이 제6 화면 영역(421)에 포함된 복수의 서브 영역들(421a, 421b) 각각에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 표시하는 동안, 제1 서브 영역(421a)과 제2 서브 영역(421b)의 경계선에서 좌우 스크롤 동작을 검출하고, 상기 좌우 스크롤 동작에 따라 제1 서브 영역421a)과 제2 서브 영역(421b)의 크기를 변경시킬 수 있다.Referring to FIG. 13C , the electronic device 1301 includes a plurality of sub-regions 421a and 421b included in the sixth screen area 421 as shown in FIG. 13A, each corresponding to a recently used application. While displaying the preview screens, a left and right scrolling operation is detected at the boundary between the first sub area 421a and the second sub area 421b, and the first sub area 421a) and the second sub area 421a) and the second sub area are detected according to the left and right scrolling operation. The size of (421b) can be changed.

상기 도 13d를 참조하면, 상기 전자 장치(1301)는, 상기 도 13c와 같이 제1 서브 영역(421a)과 제2 서브 영역(421b)의 경계선에서 좌측 스크롤 동작을 검출하고, 상기 좌측 스크롤 동작을 기반으로 상기 제2 서브 영역(421b)의 크기의 확장을 결정할 수 있다. 상기 전자 장치(1301)는, 상기 좌측 스크롤 동작에 대응되게 상기 제1 서브 영역(421a)의 크기를 감소하고 제2 서브 영역(421b)의 크기를 확장하여, 상기 크기가 축소된 제1 서브 영역421a)과 상기 크기가 확장된 제2 서브 영역(421b) 각각에 대응되는 프리뷰 화면을 표시할 수 있다.Referring to FIG. 13D, as shown in FIG. 13C, the electronic device 1301 detects a left scroll operation at the boundary between the first sub area 421a and the second sub area 421b, and performs the left scroll operation. Based on this, it is possible to determine the expansion of the size of the second sub-region 421b. The electronic device 1301 reduces the size of the first sub-region 421a and expands the size of the second sub-region 421b to correspond to the left scroll operation, so that the size of the first sub-region is reduced. 421a) and preview screens corresponding to each of the enlarged second sub-regions 421b may be displayed.

상기 도 13e 내지 상기 도 13f를 참조하면, 상기 도 13e와 같이 전자 장치(1301)(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))는 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(310)가 제4 상태(예: 도 4d의 제4 상태)로 부착되면, 제6 화면 영역(421)에 포함된 복수 서브 영역들 각각에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 표시할 수 있다. 상기 도 13e와 같이, 상기 전자 장치(1301)는, 상기 제1 디스플레이 영역(561)의 일부 영역에 표시되는 복수의 기능 창들(1307a, 1307b 및 1307c) 각각을 상기 제6 화면 영역(421)으로 이동시키는 드래그 동작(b1, b2, 및 b3)을 검출하면, 상기 제6 화면 영역(421)을 상기 복수의 기능 창들을 표시하기 위한 복수의 서브 영역들로 구분하고, 상기 구분된 복수의 서브 영역들 각각을 상기 제6 화면 영역(421)에 상기 복수의 기능 창들(1307a, 1307b 및 1307c)로 표시할 수 있다.Referring to FIGS. 13E to 13F, as shown in FIG. 13E, the electronic device 1301 (eg, the electronic device 201 of FIGS. 2A to 4D or/and the electronic device 501 of FIG. 5) When the hinge (eg, hinge 281 of FIG. 2 ) of the electronic device 1001 is in a folded state, a keyboard is displayed on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D ) When the keyboard cover 310 for is attached in a fourth state (eg, the fourth state in FIG. 4D ), a plurality of subregions corresponding to recently used applications are provided in each of the plurality of subregions included in the sixth screen area 421 . Preview screens may be displayed. 13E, the electronic device 1301 displays each of the plurality of function windows 1307a, 1307b, and 1307c displayed on a partial area of the first display area 561 as the sixth screen area 421. When detecting the drag operation (b1, b2, and b3) for moving, the sixth screen area 421 is divided into a plurality of sub-regions for displaying the plurality of function windows, and the divided plurality of sub-regions Each of them may be displayed as the plurality of function windows 1307a, 1307b, and 1307c on the sixth screen area 421 .

상기 도 13g내지 도 13h를 참조하면, 상기 도 13g와 같이, 전자 장치(1301)(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))는 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 키보드 표시를 위한 키보드 커버(310)가 제4 상태(예: 도 4d의 제4 상태)로 부착되면, 제6 화면 영역(421)에 포함된 복수 서브 영역들 각각에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 표시할 수 있다. 상기 전자 장치(1301)는 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 언폴딩 상태에서, 제2 디스플레이 영역(563)에 키보드 표시를 위한 키보드 커버(310)가 제4 상태(예: 도 4d의 제4 상태)로 부착되면, 제6 화면 영역(421)에 포함된 복수 서브 영역들 각각에 최근 사용했던 어플리케이션에 대응되는 복수의 프리뷰 화면들을 표시할 수 있다. 상기 전자 장치는, 상기 제1 디스플레이 영역(561)에 이미지 화면(561a)를 표시하는 동안, 상기 제1 디스플레이 영역(561)과 상기 제2 디스플레이 영역(563)의 경계에서 하측 드래그 동작(1309)을 검출하면, 상기 도 13h와 같이 상기 제2 디스플레이 영역(563)의 제6 화면 영역(421)까지 상기 이미지 화면(561a)을 확장하여 표시할 수 있다.Referring to FIGS. 13G to 13H, as shown in FIG. 13G, the electronic device 1301 (eg, the electronic device 201 of FIGS. 2A to 4D or/and the electronic device 501 of FIG. 5) When the hinge (eg, hinge 281 of FIG. 2 ) of the electronic device 1001 is in a folded state, a keyboard is displayed on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D ) When the keyboard cover 310 for is attached in a fourth state (eg, the fourth state in FIG. 4D ), a plurality of subregions corresponding to recently used applications are provided in each of the plurality of subregions included in the sixth screen area 421 . Preview screens may be displayed. The electronic device 1301 has a keyboard cover 310 for displaying a keyboard on the second display area 563 when the hinge (eg, the hinge 281 of FIG. 2 ) of the electronic device 1001 is in an unfolded state. When attached in a fourth state (eg, the fourth state in FIG. 4D ), a plurality of preview screens corresponding to a recently used application may be displayed on each of a plurality of sub-regions included in the sixth screen area 421 . While displaying the image screen 561a on the first display area 561, the electronic device performs a downward drag operation 1309 at the boundary between the first display area 561 and the second display area 563. 13H, the image screen 561a can be expanded and displayed up to the sixth screen area 421 of the second display area 563, as shown in FIG. 13H.

상기 도 13i 내지 상기 도 13j를 참조하면, 상기 도 13i와 같이 상기 전자 장치(1301)는, 상기 이미지 화면(561a)이 상기 제1 디스플레이 영역(561)과 상기 제2 디스플레이 영역(563)의 제6 화면 영역(421)을 포함하여 표시하는 동안, 상기 이미지 화면(561 a)과 키보드가 표시되는 상기 제2 디스플레이 영역(563)의 제1 영역(410)의 경계에 롱 터치(1311)를 검출하면, 상기 도 13j와 같이 상기 제1 디스플레이 영역(561)과 상기 제2 디스플레이 영역(563) 전체에 상기 이미지 화면(561a)을 표시할 수 있다. 상기 전자 장치(1301)는, 상기 제2 디스플레이 영역(563)의 제1 영역(410)에 대한 투명도를 조절하여 상기 키보드를 표시함으로써 상기 이미지 화면(561a)의 일부와 상기 키보드를 중첩하여 표시할 수 있다. Referring to FIGS. 13I to 13J, as shown in FIG. 13I, in the electronic device 1301, the image screen 561a is the first display area 561 and the second display area 563. Detects a long touch 1311 at the boundary of the first area 410 of the second display area 563 where the image screen 561 a and the keyboard are displayed while displaying including the 6 screen areas 421 13J, the image screen 561a can be displayed on the entire first display area 561 and the second display area 563. The electronic device 1301 controls the transparency of the first area 410 of the second display area 563 to display the keyboard, thereby overlapping a part of the image screen 561a and the keyboard. can

도 14는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 종류를 설명하기 위한 도면(1400)이다.14 is a diagram 1400 for explaining types of external accessories on a display of an electronic device according to various embodiments.

상기 도 14를 참조하면, 사용자 인터페이스 표시를 위한 외부 액세서리는 용도에 따라 다양한 외부 액세서리를 포함할 수 있으며, 예를 들어, 키보드 표시를 위한 키보드 커버(또는 키보드 스킨)(예: 도 11a 내지 도 13j의 키보드 커버(310))외에, 다이얼 표시를 위한 다이얼 커버(또는 다이얼 스킨)(1401), 계산기 표시를 위한 계산기 커버(또는 계산기 스킨)(1403) 및 게임용 패드 표시를 위한 게임용 패드 커버(또는 게임용 패드 스킨)(1405)을 포함할 수 있다.Referring to FIG. 14, an external accessory for displaying a user interface may include various external accessories depending on the purpose, for example, a keyboard cover (or keyboard skin) for displaying a keyboard (eg, FIGS. 11A to 13J ). In addition to the keyboard cover 310), a dial cover (or dial skin) 1401 for displaying a dial, a calculator cover (or calculator skin) 1403 for displaying a calculator, and a game pad cover (or game pad cover for displaying a game pad) pad skin) 1405.

도 15는 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 동작을 설명하기 위한 도면(1500)이다.15 is a diagram 1500 for explaining an operation of an external accessory on a display of an electronic device according to various embodiments.

상기 도 15를 참조하면, (a)와 같이, 전자 장치(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))는, 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 사용자 인터페이스 표시를 위한 외부 액세서리로 다이얼 커버(1401)의 부착을 검출할 수 있다. 상기 전자 장치는, 상기 다이얼 커버(1401)의 내측의 적어도 일부 영역에 배치된 전도성 물체에 의해 검출되는 제2 정전 용량의 패턴을 기반으로 상기 제2 디스플레이 영역(563)에 상기 다이얼 커버(1401)의 부착을 검출할 수 있다. 상기 전자 장치는, 상기 제2 디스플레이 영역(563)에 배치된 복수의 홀 센서들 어느 하나의 홀 센서와 접촉하는 상기 제2 디스플레이 영역(263)에 부착된 상기 다이얼 커버(1401)에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역(563) 중 상기 다이얼 커버(1401)가 부착된 위치를 결정할 수 있다. (b)와 같이, 상기 전자 장치는, 상기 제2 디스플레이 영역 중 상기 다이얼 커버(1401)가 부착된 영역에 상기 다이얼 커버(1401) 대응되는 회전 스크롤 기능키를 표시할 수 있다. Referring to FIG. 15, as shown in (a), an electronic device (eg, the electronic device 201 of FIGS. 2A to 4D or/and the electronic device 501 of FIG. 5) is the electronic device 1001 External accessory for displaying a user interface on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D) when the hinge (eg, hinge 281 of FIG. 2) is in a folded state Attachment of the low dial cover 1401 can be detected. The electronic device displays the dial cover 1401 on the second display area 563 based on the second capacitance pattern detected by the conductive object disposed on at least a partial area inside the dial cover 1401. adhesion can be detected. The electronic device includes at least one included in the dial cover 1401 attached to the second display area 263 that contacts any one of the plurality of hall sensors disposed on the second display area 563. Based on one magnet, the attached position of the dial cover 1401 in the second display area 563 may be determined. As shown in (b), the electronic device may display a rotation scroll function key corresponding to the dial cover 1401 in an area of the second display area to which the dial cover 1401 is attached.

도 16은 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 동작을 설명하기 위한 도면(1600)이다.16 is a diagram 1600 for explaining an operation of an external accessory on a display of an electronic device according to various embodiments.

상기 도 16을 참조하면, (a)와 같이, 전자 장치(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))는, 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 사용자 인터페이스 표시를 위한 외부 액세서리로 계산기 커버(1403)의 부착을 검출할 수 있다. 상기 전자 장치는, 상기 계산기 커버(1403)의 내측의 적어도 일부 영역에 배치된 전도성 물체에 의해 검출되는 제2 정전 용량의 패턴을 기반으로 상기 제2 디스플레이 영역(563)에 상기 계산기 커버(1403)의 부착을 검출할 수 있다. 상기 전자 장치는, 상기 제2 디스플레이 영역(563)에 배치된 복수의 홀 센서들 어느 하나의 홀 센서와 접촉하는 상기 제2 디스플레이 영역(263)에 부착된 상기 계산기 커버(1403)에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역(563) 중 상기 계산기 커버(1403)가 부착된 위치를 결정할 수 있다. (b)와 같이, 상기 전자 장치는, 상기 제2 디스플레이 영역 중 상기 계산기 커버(1403)가 부착된 영역에 상기 계산기 커버(1401)에 대응되는 계산을 수행하기 위한 기능 키들을 표시할 수 있다. Referring to FIG. 16, as shown in (a), an electronic device (eg, the electronic device 201 of FIGS. 2A to 4D or/and the electronic device 501 of FIG. 5) is the electronic device 1001 External accessory for displaying a user interface on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D) when the hinge (eg, hinge 281 of FIG. 2) is in a folded state With this, the attachment of the calculator cover 1403 can be detected. The electronic device displays the calculator cover 1403 on the second display area 563 based on the second capacitance pattern detected by the conductive object disposed on at least a partial area inside the calculator cover 1403. adhesion can be detected. The electronic device includes at least one included in the calculator cover 1403 attached to the second display area 263 that contacts any one of the plurality of Hall sensors disposed on the second display area 563. Based on one magnet, the attached position of the calculator cover 1403 in the second display area 563 may be determined. As shown in (b), the electronic device may display function keys for performing calculations corresponding to the calculator cover 1401 in an area of the second display area to which the calculator cover 1403 is attached.

도 17은 다양한 실시 예들에 따른 전자 장치의 디스플레이에 외부 액세서리의 동작을 설명하기 위한 도면(1700)이다.17 is a diagram 1700 for explaining an operation of an external accessory on a display of an electronic device according to various embodiments.

상기 도 17을 참조하면, (a)와 같이, 전자 장치(예: 도 2a 내지 도 4d의 전자 장치(201), 또는/및 도 5의 전자 장치(501))는, 상기 전자 장치(1001)의 힌지(예: 도 2의 힌지(281))가 폴딩 상태에서, 제2 디스플레이 영역(563)(예: 도 2a 내지 도 4d의 제2 디스플레이 영역(263))에 사용자 인터페이스 표시를 위한 외부 액세서리로 게임용 패드 커버(1405)의 부착을 검출할 수 있다. 상기 전자 장치는, 상기 게임용 패드 커버(1405)의 내측의 적어도 일부 영역에 배치된 전도성 물체에 의해 검출되는 제2 정전 용량의 패턴을 기반으로 상기 제2 디스플레이 영역(563)에 상기 게임용 패드 커버(1405)의 부착을 검출할 수 있다. 상기 전자 장치는, 상기 제2 디스플레이 영역(563)에 배치된 복수의 홀 센서들 어느 하나의 홀 센서와 접촉하는 상기 제2 디스플레이 영역(263)에 부착된 상기 게임용 패드 커버(1405)에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역(563) 중 상기 게임용 패드 커버(1405)가 부착된 위치를 결정할 수 있다. (b)와 같이, 상기 전자 장치는, 상기 제2 디스플레이 영역 중 상기 게임용 패드 커버(1405)가 부착된 영역에 상기 게임용 패드 커버(1401)에 대응되는 게임 수행하기 위한 기능 키들을 표시할 수 있다. Referring to FIG. 17, as shown in (a), an electronic device (eg, the electronic device 201 of FIGS. 2A to 4D or/and the electronic device 501 of FIG. 5) is the electronic device 1001 External accessory for displaying a user interface on the second display area 563 (eg, the second display area 263 of FIGS. 2A to 4D) when the hinge (eg, hinge 281 of FIG. 2) is in a folded state Therefore, the attachment of the game pad cover 1405 can be detected. The electronic device displays the game pad cover ( 1405) can be detected. The electronic device is included in the game pad cover 1405 attached to the second display area 263 contacting any one of the plurality of hall sensors disposed on the second display area 563. Based on at least one magnet, the attached position of the game pad cover 1405 in the second display area 563 may be determined. As shown in (b), the electronic device may display function keys for playing a game corresponding to the game pad cover 1401 in the area where the game pad cover 1405 is attached in the second display area. .

다양한 실시 예들에 따르면, 전자 장치(예: 도 3의 전자 장치(501))는, 제1 하우징(예: 도 2a의 제1 하우징(271))), 제2 하우징(예: 도 2a의 제2 하우징(273), 상기 제1 하우징의 일측을 상기 제2 하우징의 일측에 폴딩 가능하게 연결하는 힌지(예: 도 2a의 힌지(281)), 상기 제1 하우징에 배치되는 제1 디스플레이 영역(예; 도 2a의 제1 디스플레이 영역(261), 및 상기 제2 하우징에 배치되는 제2 디스플레이 영역(예; 도 2a의 제2 디스플레이 영역(263))을 포함하는 디스플레이(예: 도 2a의 디스플레이(260), 및 프로세서(예: 도 5의 프로세서(520))를 포함하고, 상기 프로세서는, 상기 힌지가 폴딩된 상태에서, 상기 제2 디스플레이 영역에서 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버(310))의 부착을 검출하면, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 상기 외부 액세서리의 종류에 대응되는 사용자 인터페이스를 표시하도록 설정될 수 있다.According to various embodiments, an electronic device (eg, the electronic device 501 of FIG. 3 ) includes a first housing (eg, the first housing 271 of FIG. 2A ) and a second housing (eg, the first housing 271 of FIG. 2A ). 2 housing 273, a hinge that foldably connects one side of the first housing to one side of the second housing (for example, the hinge 281 of FIG. 2A), and a first display area disposed on the first housing ( Example; A display including the first display area 261 of FIG. 2A and a second display area (eg, second display area 263 of FIG. 2A) disposed in the second housing (eg, the display of FIG. 2A) 260, and a processor (eg, the processor 520 of FIG. 5), wherein the processor includes an external accessory (eg, the processor 520 of FIG. 5) for displaying a user interface in the second display area in a state in which the hinge is folded. When the attachment of the keyboard cover 310 is detected, a user interface corresponding to the type of the external accessory may be displayed in an area of the second display area to which the external accessory is attached.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리에 포함된 적어도 하나의 전도성 물체에 의해 검출되는 정전 용량의 패턴을 기반으로, 상기 제2 디스플레이 영역에 상기 외부 액세서리의 부착 및 상기 외부 액세서리의 종류를 검출하도록 설정될 수 있다.According to various embodiments of the present disclosure, the processor may display the external accessory attached to the second display area based on a pattern of capacitance detected by at least one conductive object included in the external accessory attached to the second display area. It can be set to detect the attachment of and the type of the external accessory.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 제2 디스플레이에 배치된 복수의 홀 센서들과 상기 외부 액세서리에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 위치를 결정하도록 설정될 수 있다.According to various embodiments of the present disclosure, the processor determines a position where the external accessory is attached in the second display area based on a plurality of hall sensors disposed on the second display and at least one magnet included in the external accessory. can be set to determine

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리의 종류를 검출하면, 상기 액세서리의 종류에 대응되는 상기 액세서리의 크기 및 형태 정보를 확인하고, 상기 확인된 액세서리의 크기 및 형태 정보에 대응되는 사용자 인터페이스를 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 표시하도록 설정될 수 있다.According to various embodiments of the present disclosure, when the type of the external accessory attached to the second display area is detected, the processor checks size and shape information of the accessory corresponding to the type of the accessory, and determines the type of the identified accessory. A user interface corresponding to size and shape information may be set to be displayed on an area of the second display area to which the external accessory is attached.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리의 소정 영역의 눌림으로 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 표시된 상기 사용자 인터페이스의 소정 영역에 터치 입력을 검출하면, 상기 사용자 인터페이스의 소정 영역에 대응되는 기능을 수행하도록 설정될 수 있다.According to various embodiments of the present disclosure, the processor may touch a predetermined area of the user interface displayed on an area to which the external accessory is attached among the second display area by pressing the predetermined area of the external accessory attached to the second display area. When an input is detected, it may be set to perform a function corresponding to a predetermined area of the user interface.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 위치에 따라 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 영역을 제외한 적어도 하나의 나머지 영역을 적어도 하나의 화면 영역으로 결정하고 상기 적어도 하나의 화면 영역 각각에 설정된 기능을 제공하도록 설정될 수 있다.According to various embodiments, the processor may set at least one remaining area of the second display area excluding the area to which the external accessory is attached according to the attached position of the external accessory in the second display area as at least one screen. It can be determined as an area and set to provide a function set for each of the at least one screen area.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치부터 상기 외부 액세서리의 부착을 검출하는 제1 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 영역을 제1 화면 영역으로 결정하고, 상기 제1 화면 영역에 설정된 기능 제공하도록 설정될 수 있다.According to various embodiments of the present disclosure, in a first state of detecting the attachment of the external accessory from a first position corresponding to an upper side of the second display area, the processor may detect the attachment of the external accessory in the second display area. An area other than area 1 may be determined as a first screen area and a function set in the first screen area may be provided.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제1 거리가 떨어진 제2 위치부터 상기 외부 액세서리의 부착을 검출하는 제2 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 두 개의 영역을 제2 화면 영역과 제3 화면 영역으로 결정하고, 상기 제2 화면 영역과 상기 제3 화면 영역 각각에 설정된 기능을 제공하고, 상기 제2 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치하고, 상기 제3 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치하도록 설정될 수 있다.According to various embodiments, the processor may, in a second state of detecting attachment of the external accessory from a second location separated by a first distance from the first location corresponding to the upper side of the second display area, the second display area. determining the remaining two areas other than the first area to which the external accessory is attached as a second screen area and a third screen area, and providing functions set for each of the second screen area and the third screen area; The second screen area may be set to be located above the first area to which the external accessory is attached, and the third screen area to be located below the first area to which the external accessory is attached.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제2 상태의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 외부 액세서리의 부착을 검출하는 제3 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 영역을 제외한 나머지 두 개의 영역을 제4 화면 영역과 5 화면 영역으로 결정하고, 상기 제4 화면 영역과 상기 제5 화면 영역 각각에 설정된 기능을 제공하고, 상기 제4 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치하고 제2 상태의 제2 화면 영역보다 큰 크기의 영역을 포함하고, 상기 제5 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치하고 제2 상태의 제3 화면 영역 보다 작은 크기의 영역을 포함하도록 설정될 수 있다.According to various embodiments, the processor detects the attachment of the external accessory from a third location separated by a second distance longer than the first distance in the second state from the first location corresponding to the upper side of the second display area. In the third state, the remaining two areas of the second display area excluding the area to which the external accessory is attached are determined as a fourth screen area and a fifth screen area, respectively, in the fourth screen area and the fifth screen area. Provides a set function, the fourth screen area is located above the first area to which the external accessory is attached and includes an area larger than the second screen area in a second state, and the fifth screen area is the outer It may be set to include an area located below the first area to which accessories are attached and having a smaller size than the third screen area in the second state.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제3 상태의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 제2 디스플레이 영역의 하측까지 상기 외부 액세서리의 부착을 검출하는 제4 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 영역을 제6 화면 영역으로 결정하고, 상기 제6 화면 영역에 설정된 기능을 제공하도록 설정될 수 있다.According to various embodiments of the present disclosure, the processor may cause a third distance from a first position corresponding to an upper side of the second display area to a lower side of the second display area from a fourth position separated by a third distance longer than the second distance in the third state. In the fourth state of detecting the attachment of the external accessory, an area other than the first area to which the external accessory is attached is determined as a sixth screen area in the second display area, and a function set in the sixth screen area is performed. can be set to provide

도 18은 다양한 실시 예들에 따른 전자 장치에서 외부 액세서리의 부착을 검출하는 동작을 나타내는 흐름도(1800)이다. 상기 외부 액세서리의 부착을 검출하는 동작들은 1801동작 내지 1803동작을 포함할 수 있다. 일 실시 예에 따르면, 1801동작 내지 1803동작 중 적어도 하나가 생략되거나, 일부 동작들의 순서가 바뀌거나, 다른 동작이 추가될 수 있다. 상기 외부 액세서리의 부착을 검출하는 동작은 도 1의 전자 장치(101), 도 1의 프로세서(120), 도 5의 전자 장치(501), 또는 도 5의 프로세서(520)에 의해 수행될 수 있다. 18 is a flowchart 1800 illustrating an operation of detecting attachment of an external accessory in an electronic device according to various embodiments. Operations for detecting attachment of the external accessory may include operations 1801 to 1803. According to an embodiment, at least one of operations 1801 to 1803 may be omitted, the order of some operations may be changed, or another operation may be added. The operation of detecting the attachment of the external accessory may be performed by the electronic device 101 of FIG. 1 , the processor 120 of FIG. 1 , the electronic device 501 of FIG. 5 , or the processor 520 of FIG. 5 .

1801동작에서, 전자 장치(501)는, 상기 전자 장치의 힌지(예: 도 2a의 힌지가 폴딩된 상태에서 디스플레이(예: 도 5의 디스플레이(560)) 중 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버)의 부착을 검출할 수 있다.In operation 1801, the electronic device 501 displays a second display area (eg, FIG. 5 ) of a display (eg, the display 560 of FIG. 5 ) in a state in which the hinge (eg, FIG. 2A of FIG. 2A is folded) of the electronic device. Attachment of an external accessory (eg, a keyboard cover) for displaying a user interface to the second display area 563 of the screen may be detected.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리에 포함된 적어도 하나의 전도성 물체에 의해 검출되는 정전 용량의 패턴을 기반으로, 상기 제2 디스플레이 영역에 상기 외부 액세서리의 부착 및 상기 외부 액세서리의 종류를 검출할 수 있다. According to an embodiment, the electronic device 501 determines the second display area based on a pattern of capacitance detected by at least one conductive object included in the external accessory attached to the second display area. Attachment of the external accessory and the type of the external accessory may be detected.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 제2 디스플레이 영역에 배치된 복수의 홀 센서들 어느 하나의 홀 센서와 접촉하는 상기 제2 디스플레이 영역(563)에 부착된 상기 외부 액세서리에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역(563) 중 상기 외부 액세서리가 부착된 영역의 위치를 결정할 수 있다.According to an embodiment, the processor 520 is included in the external accessory attached to the second display area 563 contacting any one of the plurality of Hall sensors disposed on the second display area. Based on the at least one magnet, the location of the area to which the external accessory is attached in the second display area 563 may be determined.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 외부 액세서리(예: 키보드 커버)에 포함된 적어도 하나의 자석(예: 도 7a의 자석(613a, 613b) 및/또는 도 8a 내지 도 8d의 자석(613b))을 감지할 수 있는 복수의 홀 센서들(예: 도 8a 내지 도 8d의 복수의 홀 센서들(811))을 포함할 수 있으며, 상기 복수의 홀 센서들 중 상기 외부 액세서리에 포함된 적어도 하나의 자석에 의한 자장을 감지하는 홀 센서가 배치된 위치를 기반으로, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역의 위치를 결정할 수 있다. According to an embodiment, the electronic device 501 includes at least one magnet included in the external accessory (eg, a keyboard cover) (eg, magnets 613a and 613b of FIG. 7A and/or FIGS. 8A to 8D ). may include a plurality of Hall sensors (eg, the plurality of Hall sensors 811 of FIGS. 8A to 8D ) capable of detecting the magnet 613b of the external accessory among the plurality of Hall sensors. A location of an area to which the external accessory is attached among the second display area may be determined based on a location where a hall sensor for sensing a magnetic field by at least one magnet included in is disposed.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 <식 1>을 기반으로 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역의 위치를 결정할 수 있다. According to an embodiment, the electronic device 501 may determine the position of the area to which the external accessory is attached among the second display areas based on Equation 1.

1803동작에서, 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563)) 중 외부 액세서리(예: 키보드 커버)가 부착된 영역에 외부 액세서리의 종류에 대응되는 사용자 인터페이스(예: 키보드)를 표시할 수 있다.In operation 1803, the electronic device 501 displays an area to which an external accessory (eg, a keyboard cover) is attached among the second display area (eg, the second display area 563 of FIG. 5 ) corresponding to the type of the external accessory. Can display a user interface (e.g. keyboard).

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리의 부착 및 종류를 검출하면, 메모리(예: 도 5의 메모리(530))에 저장된 상기 외부 액세서리의 정보를 기반으로, 상기 외부 액세서리의 크기 정보 및/또는 형태 정보를 확인할 수 있다.According to an embodiment, when the electronic device 501 detects the attachment and type of the external accessory attached to the second display area, the external accessory stored in a memory (eg, the memory 530 of FIG. 5 ) Based on the information of , size information and/or shape information of the external accessory may be checked.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))에 상기 외부 액세서리의 종류 및/또는 형태에 대응되는 사용자 인터페이스를 표시할 수 있다.According to an embodiment, the electronic device 501 displays the external accessory in a first area (eg, the first area 410 of FIGS. 4A to 4D ) to which the external accessory is attached among the second display area. A user interface corresponding to the type and/or form may be displayed.

일 실시 예에 따르면, 상기 프로세서(520)는, 사용자의 선택을 기반으로, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))에 상기 외부 액세서리의 종류 및/또는 형태에 대응되는 다른 사용자 인터페이스를 표시할 수 있다. 예를 들어, 상기 전자 장치(501)는, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))에 키보드 표시를 위한 키보드 커버를 표시하는 동안, 사용자의 선택을 기반으로 상기 키보드의 텍스트를 변경할 수 있다.According to an embodiment, the processor 520 selects a first area (eg, the first area 410 of FIGS. 4A to 4D ) to which the external accessory is attached among the second display area, based on the user's selection. ), another user interface corresponding to the type and/or shape of the external accessory may be displayed. For example, the electronic device 501 includes a keyboard cover for displaying a keyboard in a first area (eg, the first area 410 of FIGS. 4A to 4D ) to which the external accessories are attached among the second display areas. While displaying, the text of the keyboard may be changed based on the user's selection.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 제1 영역(예: 도 4a 내지 도 4d의 제1 영역(410))에 상기 외부 액세서리의 종류 및/또는 형태에 대응되는 사용자 인터페이스를 표시하는 동안, 상기 외부 액세서리의 소정 영역의 눌림으로 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 제1 영역에 표시된 상기 사용자 인터페이스의 소정 영역에 대한 터치 입력을 검출할 수 있다. 상기 전자 장치(501)는, 상기 터치 입력에 따라 상기 사용자 인터페이스의 소정 영역에 대응되는 기능을 수행할 수 있다.According to an embodiment, the electronic device 501 displays the external accessory in a first area (eg, the first area 410 of FIGS. 4A to 4D ) to which the external accessory is attached among the second display area. Touching a predetermined area of the user interface displayed on the first area to which the external accessory is attached among the second display area by pressing the predetermined area of the external accessory while displaying the user interface corresponding to the type and/or shape input can be detected. The electronic device 501 may perform a function corresponding to a predetermined area of the user interface according to the touch input.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 상태에서, 상기 외부 액세서리가 제거되면, 상기 제2 디스플레이 영역에 사용자 인터페이스의 표시를 제거할 수 있다.According to an embodiment, the electronic device 501 may remove the display of the user interface on the second display area when the external accessory is removed from the second display area in a state in which the external accessory is attached. there is.

도 19a 내지 도 19b는 다양한 실시 예들에 따른 전자 장치에서 디스플레이에 부착된 외부 액세서리의 위치에 따라 화면 영역을 제공하는 동작을 설명하기 위한 도면(1900a 내지 1900b)이다. 상기 디스플레이에 부착된 외부 액세서리의 위치에 따라 화면 영역을 제공하는 동작들은 1901동작 내지 1919동작을 포함할 수 있다. 일 실시 예에 따르면, 1901동작 내지 1919동작 중 적어도 하나가 생략되거나, 일부 동작들의 순서가 바뀌거나, 다른 동작이 추가될 수 있다. 상기 디스플레이에 부착된 외부 액세서리의 위치에 따라 화면 영역을 제공하는 동작은 도 1의 전자 장치(101), 도 1의 프로세서(120), 도 5의 전자 장치(501), 또는 도 5의 프로세서(520)에 의해 수행될 수 있다. 19A to 19B are diagrams 1900a to 1900b for explaining an operation of providing a screen area according to a location of an external accessory attached to a display in an electronic device according to various embodiments of the present disclosure. Operations of providing a screen area according to the location of an external accessory attached to the display may include operations 1901 to 1919. According to an embodiment, at least one of operations 1901 to 1919 may be omitted, the order of some operations may be changed, or another operation may be added. The operation of providing the screen area according to the position of the external accessory attached to the display is performed by the electronic device 101 of FIG. 1 , the processor 120 of FIG. 1 , the electronic device 501 of FIG. 5 , or the processor of FIG. 5 ( 520).

1901동작에서, 전자 장치(501)는, 상기 전자 장치의 힌지(예: 도 2a의 힌지가 폴딩된 상태에서 디스플레이(예: 도 5의 디스플레이(560)) 중 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에 사용자 인터페이스의 표시를 위한 외부 액세서리(예: 키보드 커버)의 부착을 검출할 수 있다.In operation 1901, the electronic device 501 displays a second display area (eg, FIG. 5) of a display (eg, the display 560 of FIG. 5) in a state in which the hinge (eg, FIG. 2A of the hinge is folded) of the electronic device. Attachment of an external accessory (eg, a keyboard cover) for displaying a user interface to the second display area 563 of the screen may be detected.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리에 포함된 적어도 하나의 전도성 물체에 의해 검출되는 정전 용량의 패턴을 기반으로, 상기 제2 디스플레이 영역에 상기 외부 액세서리의 부착 및 상기 외부 액세서리의 종류를 검출할 수 있다. According to an embodiment, the electronic device 501 determines the second display area based on a pattern of capacitance detected by at least one conductive object included in the external accessory attached to the second display area. Attachment of the external accessory and the type of the external accessory may be detected.

1903동작에서, 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 부착된 위치를 검출할 수 있다.In operation 1903, the electronic device 501 may detect an attached position of an external accessory (eg, a keyboard cover) in the second display area (eg, the second display area 563 of FIG. 5 ).

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 제2 디스플레이 영역에 배치된 복수의 홀 센서들 어느 하나의 홀 센서와 접촉하는 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역(563) 중 상기 외부 액세서리가 부착된 영역의 위치를 결정할 수 있다.According to an embodiment, the electronic device 501 includes at least one included in the external accessory attached to the second display area that contacts any one Hall sensor among a plurality of Hall sensors disposed on the second display area. Based on one magnet, the location of the area to which the external accessory is attached in the second display area 563 may be determined.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 외부 액세서리에 포함된 적어도 하나의 자석(예: 도 7a의 자석(613a, 613b) 및/또는 도 8a 내지 도 8d의 자석(613b))을 감지할 수 있는 복수의 홀 센서들(예: 도 8a 내지 도 8d의 복수의 홀 센서들(811))을 포함할 수 있으며, 상기 복수의 홀 센서들 중 상기 외부 액세서리에 포함된 적어도 하나의 자석에 의한 자장을 감지하는 홀 센서가 배치된 위치를 기반으로, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역의 위치를 결정할 수 있다. According to an embodiment, the electronic device 501 includes at least one magnet (eg, magnets 613a and 613b of FIG. 7A and/or magnets 613b of FIGS. 8A to 8D) included in the external accessory. may include a plurality of Hall sensors (eg, the plurality of Hall sensors 811 of FIGS. 8A to 8D) capable of detecting, and at least one of the plurality of Hall sensors included in the external accessory A location of an area to which the external accessory is attached in the second display area may be determined based on a location where a hall sensor for detecting a magnetic field by a magnet is disposed.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 <식 1>을 기반으로 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역의 위치를 결정할 수 있다. According to an embodiment, the electronic device 501 may determine the position of the area to which the external accessory is attached among the second display areas based on Equation 1.

1905동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 제1 상태로 부착되었는지 여부를 결정할 수 있다.In operation 1905, the electronic device 501 may determine whether an external accessory (eg, a keyboard cover) is attached in a first state in the second display area (eg, the second display area 563 of FIG. 5 ). there is.

일 실시 예에 따르면, 상기 전자 장치(501)는, 복수의 홀 센서들(예: 도 8a 내지 도 8d의 복수의 홀 센서들(811))중 제1 홀 센서(예: 도 8a의 제1 홀 센서(811a))로부터 자장에 대한 감지신호 정보를 수신하면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치부터 상기 외부 액세서리가 부착된 제1 상태(예: 도 4a의 제1 상태)임을 검출할 수 있다.According to an embodiment, the electronic device 501 may include a first Hall sensor (eg, the first Hall sensor of FIG. 8A ) among a plurality of Hall sensors (eg, the plurality of Hall sensors 811 of FIGS. 8A to 8D ). When receiving detection signal information on the magnetic field from the Hall sensor 811a), a first state in which the external accessory is attached from a first position corresponding to the upper side of the second display area (eg, the first state in FIG. 4A) can be detected.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 <식 1>을 기반으로 제1 조건을 만족하면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치부터 상기 외부 액세서리가 부착된 제1 상태(예: 도 4a의 제1 상태)임을 검출할 수 있다.According to an embodiment, if the electronic device 501 satisfies the first condition based on <Equation 1>, the external accessory is attached from the first position corresponding to the upper side of the second display area. 1 state (eg, the first state of FIG. 4A) may be detected.

상기 1905동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 제1 상태로 부착되었다고 결정하면, 1907동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 부착된 제1 영역(예: 도 4a의 제1 영역(410))을 제외한 나머지 영역을 제1 화면 영역(예: 도 4a의 제1 화면 영역(411))으로 결정하고, 상기 제1 화면 영역에 설정된 기능 예를 들어, 터치 패드 기능을 제공하기 위한 GUI를 표시할 수 있다.In operation 1905, when the electronic device 501 determines that an external accessory (eg, a keyboard cover) is attached in the first state in the second display area (eg, the second display area 563 of FIG. 5), In operation 1907, the electronic device 501 starts the first area (eg, FIG. 4A ) to which an external accessory (eg, a keyboard cover) is attached in the second display area (eg, the second display area 563 of FIG. 5 ). A function set in the first screen area, for example, a touch pad function, is determined as the first screen area (eg, the first screen area 411 of FIG. 4A ) except for the first area 410 of FIG. A GUI can be displayed to provide

1909동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 제2 상태로 부착되었는지 여부를 결정할 수 있다.In operation 1909, the electronic device 501 may determine whether an external accessory (eg, a keyboard cover) is attached in a second state in the second display area (eg, the second display area 563 of FIG. 5 ). there is.

일 실시 예에 따르면, 상기 전자 장치(501)는, 복수의 홀 센서들(예: 도 8a 내지 도 8d의 복수의 홀 센서들(811)) 중 제2 홀 센서(예: 도 8b의 제2 홀 센서(811b)로부터 자장에 대한 감지신호 정보를 수신하면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제1 거리가 떨어진 제2 위치부터 상기 외부 액세서리가 부착된 제2 상태(예: 도 4b의 제2 상태)임을 검출할 수 있다.According to an embodiment, the electronic device 501 may include a second Hall sensor (eg, the second Hall sensor of FIG. 8B ) among a plurality of Hall sensors (eg, the plurality of Hall sensors 811 of FIGS. 8A to 8D ). When the detection signal information on the magnetic field is received from the Hall sensor 811b, the second state (e.g. : the second state of FIG. 4B).

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 <식 1>을 기반으로 제2 조건을 만족하고, 상기 제2 디스플레이 영역의 상단 좌표 y값(SA(y))과 상기 제2 디스플레이 영역(563)에 부착된 키보드 커버(310)의 상단 좌표 y 값(KA(y))간의 길이가 상기 제2 상태의 제2 화면 영역(예: 도 4b의 제2 화면 영역(413))의 세로 길이와 동일하면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제1 거리가 떨어진 제2 위치부터 상기 외부 액세서리가 부착된 제2 상태(예: 도 4b의 제2 상태)임을 검출할 수 있다.According to an embodiment, the electronic device 501 satisfies the second condition based on <Equation 1>, and the upper coordinate y value of the second display area SA(y) and the second display area The length between the upper coordinate y values (KA(y)) of the keyboard cover 310 attached to the area 563 is the second screen area in the second state (eg, the second screen area 413 in FIG. 4B) If it is equal to the vertical length, it is detected that the external accessory is attached from a second position (eg, the second state of FIG. 4B) from a second position that is a first distance away from the first position corresponding to the upper side of the second display area. can do.

상기 1909동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 제2 상태로 부착되었다고 결정하면, 1911동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 부착된 제1 영역(예: 도 4a의 제1 영역(410))을 제외한 나머지 두 개의 영역을 제2 화면 영역(예: 도 4b의 제2 화면 영역(413))과 제3 화면 영역(예: 도 4b의 제3 화면 영역(415))으로 결정하고, 상기 제2 화면 영역과 상기 제3 화면 영역 각각에 설정된 기능을 제공할 수 있다.In operation 1909, when the electronic device 501 determines that an external accessory (eg, a keyboard cover) is attached in a second state in the second display area (eg, the second display area 563 of FIG. 5), In operation 1911, the electronic device 501 starts the first area (eg, FIG. 4A ) to which an external accessory (eg, a keyboard cover) is attached in the second display area (eg, the second display area 563 of FIG. 5 ). The remaining two areas except for the first area 410 of the second screen area (eg, the second screen area 413 of FIG. 4B) and the third screen area (eg, the third screen area 415 of FIG. 4B) )), and a set function may be provided to each of the second screen area and the third screen area.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치된 상기 제2 화면 영역에 설정된 기능 예를 들어, 키보드의 기능키(예: fn키), 또는 제1 디스플레이 영역(561)에 표시되는 어플리케이션과 관련된 동작을 수행하기 위한 기능 키 중 적어도 하나를 표시할 수 있다. 상기 전자 장치(501)는, 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치된 상기 제3 화면 영역에 설정된 기능 예를 들어, 터치 패드 기능을 제공할 수 있는 GUI을 표시할 수 있다. 상기 전자 장치(501)는, 상기 제1 상태에서 터치 패드 기능을 제공할 수 있는 GUI를 표하는 제1 화면 영역 보다 크기를 감소한 상기 제3 화면 영역에 터치 패드 기능을 제공할 수 있는 GUI를 표시할 수 있다. 예를 들어, 상기 전자 장치(501)는, 상기 제2 화면 영역에 키보드의 기능키를 표시하는 동안, 상기 제2 화면 영역에서 검출되는 상하 스크롤 동작 또는 특정 키의 입력을 기반으로, 상기 제2 화면 영역에 표시되는 기능 키의 종류를 변경하여 표시할 수 있다.According to an embodiment, the electronic device 501 has a function set in the second screen area located above the first area to which the external accessories are attached, for example, a function key (eg, fn key) of a keyboard. , or function keys for performing an operation related to an application displayed on the first display area 561 may be displayed. The electronic device 501 may display a GUI capable of providing a set function, for example, a touch pad function, on the third screen area located below the first area to which the external accessory is attached. The electronic device 501, in the first state, displays a GUI capable of providing a touch pad function on the third screen area whose size is reduced from that of the first screen area displaying a GUI capable of providing a touch pad function. can For example, the electronic device 501, while displaying function keys of a keyboard on the second screen area, based on an up-down scrolling motion or input of a specific key detected on the second screen area, the second screen area. The type of function key displayed on the screen area can be changed and displayed.

1913동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 제3 상태로 부착되었는지 여부를 결정할 수 있다.In operation 1913, the electronic device 501 may determine whether an external accessory (eg, a keyboard cover) is attached in a third state in the second display area (eg, the second display area 563 of FIG. 5 ). there is.

일 실시 예에 따르면, 상기 전자 장치(501)는, 복수의 홀 센서들(예: 도 8a 내지 도 8d의 복수의 홀 센서들(811)) 중 제3 홀 센서(예: 도 8c의 제3 홀 센서(811c)로부터 자장에 대한 감지신호 정보를 수신하면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제2 상태의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 외부 액세서리가 부착된 (예: 도 4c의 제3 상태)임을 검출할 수 있다.According to an embodiment, the electronic device 501 may include a third Hall sensor (eg, the third Hall sensor of FIG. 8C ) among a plurality of Hall sensors (eg, the plurality of Hall sensors 811 of FIGS. 8A to 8D ). When sensing signal information about the magnetic field is received from the hall sensor 811c, the outer third position is separated by a second distance longer than the first distance in the second state from the first position corresponding to the upper side of the second display area. It is possible to detect that an accessory is attached (eg, the third state of FIG. 4C ).

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 <식 1>을 기반으로 제2 조건을 만족하고 상기 제2 디스플레이 영역의 상단 좌표 y값(SA(y))과 상기 제2 디스플레이 영역(563)에 부착된 키보드 커버(310)의 상단 좌표 y 값(KA(y))간의 길이가 상기 제3 상태의 제4 화면 영역(예: 도 4c의 제3화면 영역(417))의 세로 길이와 동일하면, 상기 제2 디스플레이 영역(563)의 상측에 대응되는 제1 위치에서 상기 제2 상태(예: 도 4b의 제2 상태)의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 외부 액세서리가 부착된 제3 상태(예: 도 4c의 제3 상태)임을 검출할 수 있다.According to an embodiment, the electronic device 501 satisfies the second condition based on <Equation 1>, and the upper coordinate y value of the second display area SA(y) and the second display area The length between the coordinates y value (KA(y)) of the top of the keyboard cover 310 attached to 563 is the length of the fourth screen area (eg, the third screen area 417 of FIG. 4C) in the third state. If it is equal to the length, the third position is separated from the first position corresponding to the upper side of the second display area 563 by a second distance greater than the first distance of the second state (eg, the second state of FIG. 4B ). From this, it is possible to detect that the external accessory is attached to the third state (eg, the third state of FIG. 4C).

상기 1913동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 제3 상태로 부착되었다고 결정하면, 1915동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 부착된 제1 영역(예: 도 4a의 제1 영역(410))을 제외한 나머지 두 개의 영역들을 제4 화면 영역(예: 도 4c의 제4 화면 영역(417))과 제5 화면 영역(예: 도 4c의 제5 화면 영역(419))으로 결정하고, 상기 제4 화면 영역과 상기 제5 화면 영역 각각에 설정된 기능을 제공할 수 있다.In operation 1913, when the electronic device 501 determines that an external accessory (eg, a keyboard cover) is attached in the third state in the second display area (eg, the second display area 563 of FIG. 5), In operation 1915, the electronic device 501 starts the first area (eg, FIG. 4A ) to which an external accessory (eg, a keyboard cover) is attached in the second display area (eg, the second display area 563 of FIG. 5 ). The remaining two areas excluding the first area 410 of ) are the fourth screen area (eg, the fourth screen area 417 of FIG. 4C) and the fifth screen area (eg, the fifth screen area 419 of FIG. 4C). )), and a set function may be provided to each of the fourth screen area and the fifth screen area.

일 실시 예에 따르면, 상기 전자 장치(501), 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치된 상기 제4 화면 영역에 설정된 기능 예를 들어, 키보드의 기능키(예: fn 키) 표시, 최근 사용했던 어플리케이션에 대응되는 프리뷰 화면, 또는 자주 이용하는 어플리케이션에 대응되는 프리뷰 화면 중 적어도 하나를 표시할 수 있다. 상기 전자 장치(501)는, 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치된 상기 제5 화면 영역에 설정된 기능 예를 들어, 터치 패드 기능을 제공할 수 있는 GUI를 표시할 수 있다. 상기 전자 장치(501)는, 상기 제2 상태에서 터치 패드 기능을 제공할 수 있는 GUI를 표하는 제3 화면 영역 보다 크기를 감소한 상기 제5 화면 영역에 터치 패드 기능을 제공할 수 있는 GUI를 표시할 수 있다. 예를 들어, 상기 전자 장치(501)는, 상기 제4 화면 영역의 두 개의 서브 영역 각각에 키보드의 기능키와 프리뷰 화면을 표시하는 동안, 상기 기능키를 표시하는 서브 영역에 스와이프 아웃(swipe out) 동작을 검출하면, 상기 제4 화면 영역에 상기 기능 키를 표시하지 않고, 상기 프리뷰 화면을 확대하여 표시할 수 있다.According to an embodiment, a function set on the fourth screen area located above the first area to which the electronic device 501 and the external accessories are attached, for example, a function key (eg, fn key) of a keyboard is displayed. At least one of a preview screen corresponding to a recently used application or a preview screen corresponding to a frequently used application may be displayed. The electronic device 501 may display a GUI capable of providing a set function, for example, a touch pad function, on the fifth screen area located below the first area to which the external accessory is attached. In the second state, the electronic device 501 displays a GUI capable of providing a touch pad function on the fifth screen area whose size is smaller than that of the third screen area displaying a GUI capable of providing a touch pad function in the second state. can For example, the electronic device 501, while displaying a function key of the keyboard and a preview screen on each of the two sub-areas of the fourth screen area, swipe out the sub-area displaying the function key. out) operation, the preview screen may be enlarged and displayed without displaying the function key on the fourth screen area.

1917동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 제4 상태로 부착되었는지 여부를 결정할 수 있다.In operation 1917, the electronic device 501 may determine whether an external accessory (eg, a keyboard cover) is attached in a fourth state in the second display area (eg, the second display area 563 of FIG. 5 ). there is.

일 실시 예에 따르면, 상기 전자 장치(501)는, 복수의 홀 센서들(예: 도 8a 내지 도 8d의 복수의 홀 센서들(811)) 중 제4 홀 센서(예: 도 8d의 제4 홀 센서(811d)로부터 자장에 대한 감지신호 정보를 수신하면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제3 상태의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 제2 디스플레이 영역의 하측에 대응되는 제5 위치까지 상기 외부 액세서리가 부착된 (예: 도 4d의 제4 상태)임을 검출할 수 있다.According to an embodiment, the electronic device 501 may include a fourth Hall sensor (eg, the fourth Hall sensor of FIG. 8D ) among a plurality of Hall sensors (eg, the plurality of Hall sensors 811 of FIGS. 8A to 8D ). When sensing signal information on the magnetic field is received from the hall sensor 811d, the fourth position is separated by a third distance longer than the second distance in the third state from the first position corresponding to the upper side of the second display area. 2 It is possible to detect that the external accessory is attached (eg, the fourth state of FIG. 4D) up to a fifth position corresponding to the lower side of the display area.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 <식 1>을 기반으로 제3 조건을 만족하면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제3 상태의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 제2 디스플레이 영역의 하측에 대응되는 제5 위치까지 상기 외부 액세서리가 부착된 (예: 도 4d의 제4 상태)임을 검출할 수 있다.According to an embodiment, if the electronic device 501 satisfies the third condition based on Equation 1, the second distance in the third state from the first position corresponding to the upper side of the second display area. It may be detected that the external accessory is attached (eg, the fourth state of FIG. 4D ) from a fourth position at which the third distance is longer to a fifth position corresponding to the lower side of the second display area.

상기 1917동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 제4 상태로 부착되었다고 결정하면, 1919동작에서, 상기 전자 장치(501)는, 제2 디스플레이 영역(예: 도 5의 제2 디스플레이 영역(563))에서 외부 액세서리(예: 키보드 커버)가 부착된 제1 영역(예: 도 4a의 제1 영역(410))을 제외한 나머지 영역을 제6 화면 영역(예: 도 4d의 제6 화면 영역(421))으로 설정하고, 제6 화면 영역에 설정된 기능을 제공할 수 있다.In operation 1917, when the electronic device 501 determines that an external accessory (eg, a keyboard cover) is attached in the fourth state in the second display area (eg, the second display area 563 of FIG. 5), In operation 1919, the electronic device 501 starts the first area (eg, FIG. 4A ) to which an external accessory (eg, a keyboard cover) is attached in the second display area (eg, the second display area 563 of FIG. 5 ). An area other than the first area 410 of ) may be set as a sixth screen area (eg, the sixth screen area 421 of FIG. 4D ), and functions set in the sixth screen area may be provided.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치된 상기 제6 화면 영역에 설정된 기능 예를 들어, 최근 사용했던 어플리케이션에 대응되는 프리뷰 화면, 자주 이용하는 어플리케이션에 대응되는 프리뷰 화면, 또는 제1 디스플레이 영역(예: 도 5의 제1 디스플레이 영역(561))에서 표시되고 있는 실행 중인 어플리케이션과 관련된 기능 창 중 적어도 하나를 표시할 수 있다.According to an embodiment, the electronic device 501 includes a function set in the sixth screen area located above the first area to which the external accessory is attached, for example, a preview screen corresponding to a recently used application; At least one of a preview screen corresponding to a frequently used application or a function window related to an application currently being displayed in the first display area (eg, the first display area 561 of FIG. 5 ) may be displayed.

일 실시 예에 따르면, 상기 전자 장치(501)는, 상기 제6 화면 영역에 포함된 복수의 서브 영역들 각각에 복수의 프리뷰 화면을 표시하는 동안 상기 복수의 서브 영역들 중 어느 하나의 서브 영역에서 상하 스크롤 동작을 검출하면, 상기 상하 스크롤 동작에 대응되게 상기 상하 스크롤 동작을 검출한 서브 영역에 표시되고 있지 않는 다른 프리뷰 화면을 순서적으로 표시할 수 있다.According to an embodiment, while displaying a plurality of preview screens on each of a plurality of sub-regions included in the sixth screen area, the electronic device 501 operates in any one of the plurality of sub-regions. When an up and down scroll operation is detected, other preview screens that are not displayed in the sub area where the up and down scroll operation is detected may be sequentially displayed corresponding to the up and down scroll operation.

일 실시 예에 따르면, 상기 전자 장치(501)는 상기 제4 상태에서, 상기 제1 디스플레이 영역과 상기 제2 디스플레이 영역의 경계에 하측 드래그 동작을 검출하면, 상기 제1 디스플레이 영역에 표시되는 이미지 화면을 상기 제2 디스플레이 영역의 상기 제6 화면 영역까지 확장하여 표시할 수 있다. 상기 전자 장치(501)는, 상기 이미지 화면이 상기 제1 디스플레이 영역과 상기 제2 디스플레이 영역의 상기 제6 화면 영역을 포함하여 표시하는 동안, 상기 이미지 화면과 상기 제2 디스플레이 영역에서 상기 외부 액세서리에 대응되는 사용자 인터페이스(예: 키보드)를 표시하는 제1 영역의 경계에서 롱 터치를 검출하면, 상기 제1 디스플레이 영역과 상기 제2 디스플레이 영역 전체에서 상기 이미지 화면을 표시할 수 있다. 상기 전자 장치(501)는, 상기 제2 디스플레이 영역의 제1 영역의 투명도를 조절하여 상기 제1 영역에 표시되는 사용자 인터페이스(예: 키보드)를 표시함으로써 상기 이미지 화면의 일부와 상기 사용자 인터페이스(예: 키보드)를 중첩하여 표시할 수 있다.According to an embodiment, when the electronic device 501 detects a downward drag operation at the boundary between the first display area and the second display area in the fourth state, the image screen displayed on the first display area may be displayed by extending to the sixth screen area of the second display area. The electronic device 501, while displaying the image screen including the sixth screen area of the first display area and the second display area, displays the external accessory in the image screen and the second display area. When a long touch is detected at the boundary of the first area displaying the corresponding user interface (eg, keyboard), the image screen may be displayed on the entire first display area and the second display area. The electronic device 501 adjusts the transparency of the first area of the second display area to display a user interface (eg, keyboard) displayed on the first area, thereby displaying a part of the image screen and the user interface (eg, a keyboard). : keyboard) can be overlapped.

다양한 실시 예들에 따르면, 전자 장치에서 사용자 인터페이스를 표시하기 위한 외부 액세서리의 부착을 검출하는 방법은, 상기 전자 장치의 제1 하우징의 일측을 상기 전자 장치의 제2 하우징의 일측에 폴딩 가능하게 연결하는 힌지가 폴딩된 상태에서, 상기 제2 하우징에 배치된 제2 디스플레이 영역에서 사용자 인터페이스의 표시를 위한 외부 액세서리의 부착을 검출하는 동작, 및 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 상기 외부 액세서리의 종류에 대응되는 사용자 인터페이스를 표시하는 동작을 포함할 수 있다.According to various embodiments, a method for detecting attachment of an external accessory for displaying a user interface in an electronic device may include connecting one side of a first housing of the electronic device to one side of a second housing of the electronic device in a foldable manner. An operation of detecting attachment of an external accessory for displaying a user interface in a second display area disposed on the second housing in a state in which the hinge is folded, and the external accessory is attached to the area of the second display area An operation of displaying a user interface corresponding to the type of external accessory may be included.

다양한 실시 예들에 따르면, 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리에 포함된 적어도 하나의 전도성 물체에 의해 검출되는 정전 용량의 패턴을 기반으로, 상기 제2 디스플레이 영역에 상기 외부 액세서리의 부착 및 상기 외부 액세서리의 종류를 검출하는 동작을 더 포함할 수 있다.According to various embodiments, based on a capacitance pattern detected by at least one conductive object included in the external accessory attached to the second display area, attaching the external accessory to the second display area and the An operation of detecting the type of external accessory may be further included.

다양한 실시 예들에 따르면, 상기 제2 디스플레이에 배치된 복수의 홀 센서들과 상기 외부 액세서리에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 위치를 결정하는 동작을 더 포함할 수 있다.According to various embodiments, based on a plurality of hall sensors disposed on the second display and at least one magnet included in the external accessory, determining a position where the external accessory is attached in the second display area may further include.

다양한 실시 예들에 따르면, 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리의 종류를 검출하면, 상기 액세서리의 종류에 대응되는 상기 액세서리의 크기 및 형태 정보를 확인하는 동작, 및 상기 확인된 액세서리의 크기 및 형태 정보에 대응되는 사용자 인터페이스를 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 표시하는 동작을 더 포함할 수 있다.According to various embodiments, when the type of the external accessory attached to the second display area is detected, an operation of checking size and shape information of the accessory corresponding to the type of the accessory, and the identified size and shape of the accessory The method may further include displaying a user interface corresponding to the shape information on an area of the second display area to which the external accessory is attached.

다양한 실시 예들에 따르면, 상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리의 소정 영역의 눌림으로 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 표시된 상기 사용자 인터페이스의 소정 영역에 터치 입력을 검출하면, 상기 사용자 인터페이스의 소정 영역에 대응되는 기능을 수행하는 동작을 더 포함할 수 있다.According to various embodiments, when a touch input is detected on a predetermined area of the user interface displayed on the area to which the external accessory is attached among the second display area due to pressing of the predetermined area of the external accessory attached to the second display area , It may further include an operation of performing a function corresponding to a predetermined area of the user interface.

다양한 실시 예들에 따르면, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 위치에 따라 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 영역을 제외한 적어도 하나의 나머지 영역을 적어도 하나의 화면 영역으로 결정하는 동작, 및 상기 적어도 하나의 화면 영역 각각에 설정된 기능을 제공하는 동작을 더 포함할 수 있다.According to various embodiments, determining at least one remaining area excluding the area to which the external accessory is attached in the second display area as at least one screen area according to the attached position of the external accessory in the second display area An operation of providing a function set to each of the at least one screen area may be further included.

다양한 실시 예들에 따르면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치부터 상기 외부 액세서리의 부착을 검출하는 제1 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 영역을 제1 화면 영역으로 결정하는 동작, 및 상기 제1 화면 영역에 설정된 기능 제공하는 동작을 더 포함할 수 있다.According to various embodiments, in the first state of detecting the attachment of the external accessory from the first position corresponding to the upper side of the second display area, the second display area excluding the first area to which the external accessory is attached An operation of determining the remaining area as the first screen area and an operation of providing a function set in the first screen area may be further included.

다양한 실시 예들에 따르면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제1 거리가 떨어진 제2 위치부터 상기 외부 액세서리의 부착을 검출하는 제2 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 두 개의 영역을 제2 화면 영역과 제3 화면 영역으로 결정하는 동작, 및 상기 제2 화면 영역과 상기 제3 화면 영역 각각에 설정된 기능을 제공하는 동작을 더 포함하고, 상기 제2 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치하고, 상기 제3 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치할 수 있다.According to various embodiments, in a second state of detecting the attachment of the external accessory from a second location that is a first distance away from the first location corresponding to the upper side of the second display area, the external An operation of determining the remaining two areas except for the first area to which accessories are attached as a second screen area and a third screen area, and an operation of providing a set function to each of the second screen area and the third screen area are further performed. The second screen area may be located above the first area to which the external accessory is attached, and the third screen area may be located below the first area to which the external accessory is attached.

다양한 실시 예들에 따르면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제2 상태의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 외부 액세서리의 부착을 검출하는 제3 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 영역을 제외한 나머지 두 개의 영역을 제4 화면 영역과 5 화면 영역으로 결정하는 동작, 및 상기 제4 화면 영역과 상기 제5 화면 영역 각각에 설정된 기능을 제공하는 동작을 더 포함하고, 상기 제4 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치하고 제2 상태의 제2 화면 영역보다 큰 크기의 영역을 포함하고, 상기 제5 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치하고 제2 상태의 제3 화면 영역 보다 작은 크기의 영역을 포함할 수 있다.According to various embodiments, in a third state of detecting the attachment of the external accessory from a third position separated by a second distance longer than the first distance of the second state from the first position corresponding to the upper side of the second display area. , determining the remaining two areas of the second display area, excluding the area to which the external accessories are attached, as a fourth screen area and a fifth screen area, and a function set in each of the fourth screen area and the fifth screen area. The fourth screen area is located above the first area to which the external accessories are attached and includes an area larger than the second screen area in a second state, and the fifth screen area may include an area located below the first area to which the external accessory is attached and having a smaller size than the third screen area in the second state.

다양한 실시 예들에 따르면, 상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제3 상태의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 제2 디스플레이 영역의 하측까지 상기 외부 액세서리의 부착을 검출하는 제4 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 영역을 제6 화면 영역으로 결정하는 동작, 및 상기 제6 화면 영역에 설정된 기능을 제공하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, from a fourth position at which a third distance longer than the second distance in the third state is separated from the first position corresponding to the upper side of the second display area to the lower side of the second display area, the external accessory In a fourth state of detecting attachment, an operation of determining an area other than the first area to which the external accessory is attached as a sixth screen area in the second display area, and providing a function set in the sixth screen area More actions may be included.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be devices of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. An electronic device according to an embodiment of the present document is not limited to the aforementioned devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, like reference numbers may be used for like or related elements. The singular form of a noun corresponding to an item may include one item or a plurality of items, unless the relevant context clearly dictates otherwise. In this document, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A Each of the phrases such as "at least one of , B, or C" may include any one of the items listed together in the corresponding phrase, or all possible combinations thereof. Terms such as "first", "second", or "first" or "secondary" may simply be used to distinguish a given component from other corresponding components, and may be used to refer to a given component in another aspect (eg, importance or order) is not limited. A (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” When mentioned, it means that the certain component may be connected to the other component directly (eg by wire), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logical blocks, parts, or circuits. can be used as A module may be an integrally constructed component or a minimal unit of components or a portion thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(401)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(436) 또는 외장 메모리(438))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(440))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(401))의 프로세서(예: 프로세서(420))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of this document provide one or more instructions stored in a storage medium (eg, internal memory 436 or external memory 438) readable by a machine (eg, electronic device 401). It may be implemented as software (eg, the program 440) including them. For example, a processor (eg, the processor 420) of a device (eg, the electronic device 401) may call at least one command among one or more instructions stored from a storage medium and execute it. This enables the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-temporary' only means that the storage medium is a tangible device and does not contain a signal (e.g. electromagnetic wave), and this term refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products may be traded between sellers and buyers as commodities. A computer program product is distributed in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) online, directly between smart phones. In the case of online distribution, at least part of the computer program product may be temporarily stored or temporarily created in a device-readable storage medium such as a manufacturer's server, an application store server, or a relay server's memory.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. there is. According to various embodiments, one or more components or operations among the aforementioned corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by a corresponding component of the plurality of components prior to the integration. . According to various embodiments, the actions performed by a module, program, or other component are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.

Claims (20)

전자 장치에 있어서,
제1하우징;
제2하우징;
상기 제1 하우징의 일측을 상기 제2 하우징의 일측에 폴딩 가능하게 연결하는 힌지;
상기 제1 하우징에 배치되는 제1 디스플레이 영역 및 상기 제2 하우징에 배치되는 제2 디스플레이 영역을 포함하는 디스플레이; 및
프로세서를 포함하고, 상기 프로세서는,
상기 힌지가 폴딩된 상태에서, 상기 제2 디스플레이 영역에서 사용자 인터페이스의 표시를 위한 외부 액세서리의 부착을 검출하면, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 상기 외부 액세서리의 종류에 대응되는 사용자 인터페이스를 표시하도록 설정된 전자 장치.
In electronic devices,
a first housing;
a second housing;
a hinge connecting one side of the first housing to one side of the second housing in a foldable manner;
a display including a first display area disposed in the first housing and a second display area disposed in the second housing; and
It includes a processor, the processor comprising:
When the attachment of an external accessory for displaying a user interface is detected in the second display area while the hinge is folded, a region to which the external accessory is attached corresponds to the type of the external accessory in the second display area. An electronic device set to display a user interface.
제1 항에 있어서, 상기 프로세서는,
상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리에 포함된 적어도 하나의 전도성 물체에 의해 검출되는 정전 용량의 패턴을 기반으로, 상기 제2 디스플레이 영역에 상기 외부 액세서리의 부착 및 상기 외부 액세서리의 종류를 검출하도록 설정된 전자 장치.
The method of claim 1, wherein the processor,
Attachment of the external accessory to the second display area and detection of the type of the external accessory based on a pattern of capacitance detected by at least one conductive object included in the external accessory attached to the second display area. An electronic device set up to do so.
제1 항에 있어서, 상기 프로세서는,
상기 제2 디스플레이에 배치된 복수의 홀 센서들과 상기 외부 액세서리에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 위치를 결정하도록 설정된 전자 장치.
The method of claim 1, wherein the processor,
An electronic device configured to determine an attached position of the external accessory in the second display area based on a plurality of hall sensors disposed on the second display and at least one magnet included in the external accessory.
제1 항에 있어서, 상기 프로세서는,
상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리의 종류를 검출하면, 상기 액세서리의 종류에 대응되는 상기 액세서리의 크기 및 형태 정보를 확인하고, 상기 확인된 액세서리의 크기 및 형태 정보에 대응되는 사용자 인터페이스를 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 표시하도록 설정된 전자 장치.
The method of claim 1, wherein the processor,
When the type of the external accessory attached to the second display area is detected, size and shape information of the accessory corresponding to the type of accessory is checked, and a user interface corresponding to the identified size and shape information of the accessory is displayed. An electronic device set to be displayed on an area of the second display area to which the external accessory is attached.
제1 항에 있어서, 상기 프로세서는,
상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리의 소정 영역의 눌림으로 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 표시된 상기 사용자 인터페이스의 소정 영역에 터치 입력을 검출하면, 상기 사용자 인터페이스의 소정 영역에 대응되는 기능을 수행하도록 설정된 전자 장치.
The method of claim 1, wherein the processor,
When a touch input is detected on a predetermined area of the user interface displayed on the area to which the external accessory is attached among the second display area due to pressing of the predetermined area of the external accessory attached to the second display area, the predetermined area of the user interface is detected. An electronic device configured to perform a function corresponding to an area.
제1 항에 있어서, 상기 프로세서는,
상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 위치에 따라 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 영역을 제외한 적어도 하나의 나머지 영역을 적어도 하나의 화면 영역으로 결정하고 상기 적어도 하나의 화면 영역 각각에 설정된 기능을 제공하도록 설정된 전자 장치.
The method of claim 1, wherein the processor,
At least one remaining area of the second display area excluding the area to which the external accessory is attached is determined as at least one screen area according to the attached position of the external accessory in the second display area, and the at least one screen area is determined. Electronic devices set up to provide a set function for each.
제6 항에 있어서, 상기 프로세서는,
상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치부터 상기 외부 액세서리의 부착을 검출하는 제1 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 영역을 제1 화면 영역으로 결정하고, 상기 제1 화면 영역에 설정된 기능 제공하도록 설정된 전자 장치.
The method of claim 6, wherein the processor,
In the first state of detecting the attachment of the external accessory from the first position corresponding to the upper side of the second display area, the remaining area except for the first area to which the external accessory is attached is displayed as the first screen. An electronic device determined as an area and configured to provide a function set in the first screen area.
제 6 항에 있어서, 상기 프로세서는,
상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제1 거리가 떨어진 제2 위치부터 상기 외부 액세서리의 부착을 검출하는 제2 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 두 개의 영역을 제2 화면 영역과 제3 화면 영역으로 결정하고, 상기 제2 화면 영역과 상기 제3 화면 영역 각각에 설정된 기능을 제공하고,
상기 제2 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치하고, 상기 제3 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치하도록 설정된 전자 장치.
The method of claim 6, wherein the processor,
In a second state of detecting the attachment of the external accessory from a second location that is a first distance away from the first location corresponding to the upper side of the second display area, the first location where the external accessory is attached in the second display area determining the remaining two areas excluding the area as a second screen area and a third screen area, and providing a set function to each of the second screen area and the third screen area;
The electronic device of claim 1 , wherein the second screen area is positioned above the first area to which the external accessory is attached, and the third screen area is positioned below the first area to which the external accessory is attached.
제6 항에 있어서, 상기 프로세서는,
상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제2 상태의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 외부 액세서리의 부착을 검출하는 제3 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 영역을 제외한 나머지 두 개의 영역을 제4 화면 영역과 5 화면 영역으로 결정하고, 상기 제4 화면 영역과 상기 제5 화면 영역 각각에 설정된 기능을 제공하고,
상기 제4 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치하고 제2 상태의 제2 화면 영역보다 큰 크기의 영역을 포함하고, 상기 제5 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치하고 제2 상태의 제3 화면 영역 보다 작은 크기의 영역을 포함하도록 설정된 전자 장치.
The method of claim 6, wherein the processor,
In a third state in which the attachment of the external accessory is detected from a third position separated by a second distance greater than the first distance in the second state from the first position corresponding to the upper side of the second display area, the second display area determines the remaining two areas excluding the area to which the external accessory is attached as a fourth screen area and a fifth screen area, and provides a set function to each of the fourth screen area and the fifth screen area;
The fourth screen area is located above the first area to which the external accessory is attached and includes an area larger than the second screen area in a second state, and the fifth screen area is the first area to which the external accessory is attached. An electronic device set to include an area located below the area and having a size smaller than that of the third screen area in the second state.
제6 항에 있어서, 상기 프로세서는,
상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제3 상태의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 제2 디스플레이 영역의 하측까지 상기 외부 액세서리의 부착을 검출하는 제4 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 영역을 제6 화면 영역으로 결정하고, 상기 제6 화면 영역에 설정된 기능을 제공하도록 설정된 전자 장치.

The method of claim 6, wherein the processor,
A fourth method for detecting the attachment of the external accessory from a fourth location at which a third distance is longer than the second distance in the third state from the first location corresponding to the upper side of the second display area to the lower side of the second display area. In the state, the electronic device configured to determine a remaining area of the second display area excluding the first area to which the external accessory is attached as a sixth screen area, and to provide a function set in the sixth screen area.

전자 장치에서 사용자 인터페이스를 표시하기 위한 외부 액세서리의 부착을 검출하는 방법은,
상기 전자 장치의 제1 하우징의 일측을 상기 전자 장치의 제2 하우징의 일측에 폴딩 가능하게 연결하는 힌지가 폴딩된 상태에서, 상기 제2 하우징에 배치된 제2 디스플레이 영역에서 사용자 인터페이스의 표시를 위한 외부 액세서리의 부착을 검출하는 동작; 및
상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 상기 외부 액세서리의 종류에 대응되는 사용자 인터페이스를 표시하는 동작을 포함하는 방법.
A method for detecting attachment of an external accessory for displaying a user interface in an electronic device,
Displaying a user interface in a second display area disposed on the second housing in a folded state of a hinge connecting one side of the first housing of the electronic device to one side of the second housing of the electronic device in a folded state. detecting attachment of an external accessory; and
and displaying a user interface corresponding to the type of the external accessory on an area of the second display area to which the external accessory is attached.
제11 항에 있어서,
상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리에 포함된 적어도 하나의 전도성 물체에 의해 검출되는 정전 용량의 패턴을 기반으로, 상기 제2 디스플레이 영역에 상기 외부 액세서리의 부착 및 상기 외부 액세서리의 종류를 검출하는 동작을 더 포함하는 방법.
According to claim 11,
Attachment of the external accessory to the second display area and detection of the type of the external accessory based on a pattern of capacitance detected by at least one conductive object included in the external accessory attached to the second display area. A method that includes more actions to do.
제11 항에 있어서,
상기 제2 디스플레이에 배치된 복수의 홀 센서들과 상기 외부 액세서리에 포함된 적어도 하나의 자석을 기반으로, 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 위치를 결정하는 동작을 더 포함하는 방법.
According to claim 11,
The method further comprising determining a position where the external accessory is attached in the second display area based on a plurality of hall sensors disposed on the second display and at least one magnet included in the external accessory.
제11 항에 있어서,
상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리의 종류를 검출하면, 상기 액세서리의 종류에 대응되는 상기 액세서리의 크기 및 형태 정보를 확인하는 동작; 및
상기 확인된 액세서리의 크기 및 형태 정보에 대응되는 사용자 인터페이스를 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 표시하는 동작을 더 포함하는 방법.
According to claim 11,
checking size and shape information of the accessory corresponding to the type of the accessory when the type of the external accessory attached to the second display area is detected; and
and displaying a user interface corresponding to the size and shape information of the identified accessory on an area of the second display area to which the external accessory is attached.
제11 항에 있어서,
상기 제2 디스플레이 영역에 부착된 상기 외부 액세서리의 소정 영역의 눌림으로 상기 제2 디스플레이 영역 중 상기 외부 액세서리가 부착된 영역에 표시된 상기 사용자 인터페이스의 소정 영역에 터치 입력을 검출하면, 상기 사용자 인터페이스의 소정 영역에 대응되는 기능을 수행하는 동작을 더 포함하는 방법.
According to claim 11,
When a touch input is detected on a predetermined area of the user interface displayed on the area to which the external accessory is attached among the second display area due to pressing of the predetermined area of the external accessory attached to the second display area, the predetermined area of the user interface is detected. The method further comprising an operation of performing a function corresponding to the region.
제11 항에 있어서,
상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 위치에 따라 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 영역을 제외한 적어도 하나의 나머지 영역을 적어도 하나의 화면 영역으로 결정하는 동작; 및
상기 적어도 하나의 화면 영역 각각에 설정된 기능을 제공하는 동작을 더 포함하는 방법.
According to claim 11,
determining at least one remaining area of the second display area excluding the area to which the external accessory is attached as at least one screen area according to the attached position of the external accessory in the second display area; and
The method further comprising an operation of providing a set function to each of the at least one screen area.
제16 항에 있어서,
상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치부터 상기 외부 액세서리의 부착을 검출하는 제1 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 영역을 제1 화면 영역으로 결정하는 동작; 및
상기 제1 화면 영역에 설정된 기능 제공하는 동작을 더 포함하는 방법.
According to claim 16,
In the first state of detecting the attachment of the external accessory from the first position corresponding to the upper side of the second display area, the remaining area except for the first area to which the external accessory is attached is displayed as the first screen. an operation to determine as an area; and
The method further comprising an operation of providing a function set in the first screen area.
제 16 항에 있어서,
상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제1 거리가 떨어진 제2 위치부터 상기 외부 액세서리의 부착을 검출하는 제2 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 두 개의 영역을 제2 화면 영역과 제3 화면 영역으로 결정하는 동작; 및
상기 제2 화면 영역과 상기 제3 화면 영역 각각에 설정된 기능을 제공하는 동작을 더 포함하고,
상기 제2 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치하고, 상기 제3 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치하는 방법.
17. The method of claim 16,
In a second state of detecting the attachment of the external accessory from a second location that is a first distance away from the first location corresponding to the upper side of the second display area, the first location where the external accessory is attached in the second display area determining the remaining two areas excluding the area as a second screen area and a third screen area; and
An operation of providing a set function to each of the second screen area and the third screen area;
The second screen area is located above the first area to which the external accessory is attached, and the third screen area is located below the first area to which the external accessory is attached.
제16 항에 있어서,
상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제2 상태의 제1 거리 보다 긴 제2 거리가 떨어진 제3 위치부터 상기 외부 액세서리의 부착을 검출하는 제3 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 영역을 제외한 나머지 두 개의 영역을 제4 화면 영역과 5 화면 영역으로 결정하는 동작; 및
상기 제4 화면 영역과 상기 제5 화면 영역 각각에 설정된 기능을 제공하는 동작을 더 포함하고,
상기 제4 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 상측에 위치하고 제2 상태의 제2 화면 영역보다 큰 크기의 영역을 포함하고, 상기 제5 화면 영역은 상기 외부 액세서리가 부착된 제1 영역의 하측에 위치하고 제2 상태의 제3 화면 영역 보다 작은 크기의 영역을 포함하는 방법.
According to claim 16,
In a third state in which the attachment of the external accessory is detected from a third position separated by a second distance greater than the first distance in the second state from the first position corresponding to the upper side of the second display area, the second display area determining the remaining two areas except for the area to which the external accessory is attached as a fourth screen area and a fifth screen area; and
An operation of providing a set function to each of the fourth screen area and the fifth screen area;
The fourth screen area is located above the first area to which the external accessory is attached and includes an area larger than the second screen area in a second state, and the fifth screen area is the first area to which the external accessory is attached. A method of including an area located below the area and having a size smaller than that of the third screen area in the second state.
제16 항에 있어서,
상기 제2 디스플레이 영역의 상측에 대응되는 제1 위치에서 제3 상태의 제2 거리 보다 긴 제3 거리가 떨어진 제4 위치부터 상기 제2 디스플레이 영역의 하측까지 상기 외부 액세서리의 부착을 검출하는 제4 상태에서, 상기 제2 디스플레이 영역에서 상기 외부 액세서리가 부착된 제1 영역을 제외한 나머지 영역을 제6 화면 영역으로 결정하는 동작; 및
상기 제6 화면 영역에 설정된 기능을 제공하는 동작을 더 포함하는 방법.
According to claim 16,
A fourth method for detecting the attachment of the external accessory from a fourth location at which a third distance is longer than the second distance in the third state from the first location corresponding to the upper side of the second display area to the lower side of the second display area. in the second display area, determining an area other than the first area to which the external accessory is attached as a sixth screen area; and
The method further comprising an operation of providing a set function to the sixth screen area.
KR1020220012746A 2021-10-25 2022-01-27 Electronic device and method for detecting attachment of external accseeory for displaying user interface in electronic device KR20230059111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2022/016251 WO2023075329A1 (en) 2021-10-25 2022-10-24 Electronic device and method for detecting attachment of external accessory for displaying user interface in electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20210142397 2021-10-25
KR1020210142397 2021-10-25

Publications (1)

Publication Number Publication Date
KR20230059111A true KR20230059111A (en) 2023-05-03

Family

ID=86380730

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220012746A KR20230059111A (en) 2021-10-25 2022-01-27 Electronic device and method for detecting attachment of external accseeory for displaying user interface in electronic device

Country Status (1)

Country Link
KR (1) KR20230059111A (en)

Similar Documents

Publication Publication Date Title
KR102256292B1 (en) An electronic device for providing multiple windows using an expandable display
KR102247663B1 (en) Method of controlling display and electronic device supporting the same
KR20230009222A (en) An electronic device comprising a plurality of touch screen displays and screen division method
KR20220008742A (en) Electronic apparatus and method with a flexible display
KR20220032875A (en) Electronic apparatus providing user interface and method thereof
KR20220039085A (en) Foldable electronic device for displaying various types of content and operating method thereof
KR20220014751A (en) Slidable electronic device and method for controlling the same
KR20220015266A (en) Electronic device including flexible display module and method of operating the same
KR20220064024A (en) Electronic device including display with changeable display area and method for operating aspect ratio using an app icon in the same
KR20230059111A (en) Electronic device and method for detecting attachment of external accseeory for displaying user interface in electronic device
KR20220102263A (en) Electronic device, and method for processing input of stylus&#39;s pen in electronic device
KR20220048412A (en) Electronic device including flexible display and method for controlling temperature according to state of electronic device using the same
KR20220014968A (en) Method for providing screen division according to use electronic pen and foldable electronic device using the same
KR20220109254A (en) Electronic device and method for shape recognition based on stroke analysis in electronic device
KR20220069370A (en) Electronic device having extendable display and method for providing content thereof
KR20220014709A (en) Slidable electronic device and method for controlling the same
KR20230023416A (en) Method of processing touch input and electronic device supporting the same
KR20230086539A (en) Electronic device and operation method of electronic device for supporting one handed operation mode
KR20220101850A (en) Electronic device and operation method thereof
KR20230054227A (en) An electronic device for moving a location of a visual object located in a folded area and control method thereof
KR20220078929A (en) Electronic device using electronic pen and method thereof
KR20220078423A (en) Electronic device and method for driving slide based on multi touch
KR20220078430A (en) Electronic device for including extendable display and method using the same
KR20220150606A (en) Electronic device including touch pad module
KR20230120062A (en) Electronic device and method for displaying screen thereof