CPC G06F 1/1652 (2013.01) [G06F 1/1656 (2013.01); G06F 3/048 (2013.01)] | 18 Claims |
1. An electronic device comprising:
a first housing;
a second housing movably coupled to the first housing;
a third housing movably coupled to the second housing;
a flexible display on at least a portion of the first housing, the second housing, and the third housing;
at least one sensor;
a plurality of electromagnets comprising:
a first electromagnet provided on a portion of the first housing,
a second electromagnet provided on a first portion of the second housing,
a third electromagnet provided on a second portion of the second housing, and
a fourth electromagnet provided on a portion of the third housing;
at least one processor operatively coupled to the at least one sensor; and
a memory operatively coupled to the at least one processor,
wherein the memory stores instructions that, when executed by the at least one processor, cause the electronic device to:
detect, through the at least one sensor, a state change in at least one of first arrangement of the first housing with respect to the second housing or second arrangement of the third housing with respect to the second housing, and
based on the state change, control magnetism of at least one electromagnet among the plurality of electromagnets,
wherein the detected state change comprises a determination, by using the at least one sensor, that a state of the electronic device is changed from a first state to a second state,
wherein the first state corresponds to a state in which the first housing is in-folded with respect to the second housing and the third housing is out-folded with respect to the second housing,
wherein the second state corresponds to a state in which the in-folded first housing with respect to the second housing is un-folded and the out-folded third housing with respect to the second housing is out-folded, and
wherein the controlled magnetism of the at least one electromagnet comprises:
reducing a first strength of the first electromagnet,
increasing a second strength of the second electromagnet,
reducing a third strength of the third electromagnet, and
increasing a fourth strength of the fourth electromagnet.
|