CN111381669B - Foldable device, method, apparatus and storage medium for executing operation instruction - Google Patents

Foldable device, method, apparatus and storage medium for executing operation instruction Download PDF

Info

Publication number
CN111381669B
CN111381669B CN201811637135.3A CN201811637135A CN111381669B CN 111381669 B CN111381669 B CN 111381669B CN 201811637135 A CN201811637135 A CN 201811637135A CN 111381669 B CN111381669 B CN 111381669B
Authority
CN
China
Prior art keywords
folding
area
foldable
folding area
foldable device
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201811637135.3A
Other languages
Chinese (zh)
Other versions
CN111381669A (en
Inventor
李松
杜慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811637135.3A priority Critical patent/CN111381669B/en
Publication of CN111381669A publication Critical patent/CN111381669A/en
Application granted granted Critical
Publication of CN111381669B publication Critical patent/CN111381669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0214Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • 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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Abstract

The disclosure relates to a foldable device, a method, a device and a storage medium for executing operation instructions, and belongs to the technical field of terminals. The foldable device comprises: the device comprises a shell, a display screen, a first detection piece and a processor. The display screen is arranged on the shell, and when the shell is in a folded state, the display screen is divided into a display area and a folding area, and the folding area is used for displaying virtual keys. The first detection piece is connected with the processor and used for acquiring gesture operation of the virtual keys in the folding area, and the processor is used for executing operation instructions corresponding to the gesture operation. When the shell is in a folding state, the virtual keys are displayed in the folding area, so that the content of the folding area is enriched, the situation that the folding area is empty due to the fact that the content is only displayed in the display area is avoided, and screen resources of the folding area are wasted is avoided. And the virtual keys are displayed in the folding area, so that a user can correspondingly operate the foldable equipment through gesture operation of the virtual keys, and the utilization rate of the folding area is improved.

Description

Foldable device, method, apparatus and storage medium for executing operation instruction
Technical Field
The present disclosure relates to the field of terminal technologies. And more particularly, to a foldable device, a method, an apparatus, and a storage medium for executing operation instructions.
Background
With the rapid development of mobile terminals, foldable devices have been developed in order to meet the needs of users for large screens. When the foldable equipment is in an unfolding state, a larger display screen can be provided for a user; when the foldable device is in the folded state, the occupied space can be saved.
The foldable device includes a housing and a display screen disposed on the housing. When the shell is in an unfolding state, displaying content in the whole display screen; when the housing is in a folded state, the display screen is divided into a display area and a folded area, and content is displayed only in the display area.
Disclosure of Invention
Embodiments of the present disclosure provide a foldable device, a method, an apparatus, and a storage medium for executing operation instructions. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a foldable device comprising: the device comprises a shell, a display screen, a first detection piece and a processor arranged in the shell;
the display screen is arranged on the shell;
When the shell is in a folding state, the display screen is divided into a display area and a folding area;
the folding area is used for displaying virtual keys;
the first detection piece is arranged between the folding area and the shell, is connected with the processor and is used for acquiring gesture operation of the virtual keys in the folding area;
the processor is used for executing the operation instruction corresponding to the gesture operation.
In one possible implementation, the foldable device further includes: a second detecting member;
the second detection piece is arranged between the folding area and the shell, is connected with the processor and is used for detecting operation parameters of the gesture operation;
the processor is further configured to execute an operation instruction corresponding to the gesture operation when the operation parameter meets a preset condition.
In one possible implementation, the housing includes a first housing, a second housing, and a rotating shaft;
the rotating shaft is arranged between the first shell and the second shell and is used for connecting the first shell and the second shell.
In one possible implementation, the first detecting member is disposed between the rotating shaft and the folding region; the rotating shaft is also used for supporting the folding area.
In one possible implementation, the foldable device further includes: a fold region support;
the folding zone supporting piece is arranged at the bottom of the first detecting piece and used for supporting the folding zone.
According to a second aspect of embodiments of the present disclosure, there is provided a method of executing an operation instruction, the method comprising:
when the foldable equipment is in a folded state, displaying virtual keys in a first folding area of the foldable equipment;
when the virtual key is detected to be triggered, acquiring gesture operation of the virtual key triggered;
and executing an operation instruction corresponding to the gesture operation.
In a possible implementation manner, before the executing the operation instruction corresponding to the gesture operation, the method further includes:
acquiring operation parameters of the gesture operation;
and executing the operation instruction corresponding to the gesture operation when the operation parameter meets the preset condition.
In one possible implementation manner, the displaying the virtual key in the first folding area of the foldable device includes:
and displaying the virtual key in a first folding area of the foldable equipment based on the display style of the virtual key, wherein the display style is a default display style or a custom display style.
In one possible implementation manner, the method further includes, before the virtual key is displayed in the first folding area of the foldable device based on the display style of the virtual key:
displaying a setting interface, wherein the setting interface comprises a plurality of candidate display styles;
acquiring a selected candidate display style;
and setting the selected candidate display style as the display style of the virtual key.
In a possible implementation manner, before the virtual key is displayed in the first folding area of the foldable device, the method further includes:
the method comprises the steps of obtaining a stored area identifier of a first folding area for displaying the virtual key, and determining the first folding area corresponding to the area identifier based on the area identifier, wherein the area identifier is a default area identifier of foldable equipment or an area identifier which is custom set by the foldable equipment.
In a possible implementation manner, before the virtual key is displayed in the first folding area of the foldable device, the method further includes:
determining a first grip state in which the foldable device is gripped;
and determining a first folding zone corresponding to the first holding state from the corresponding relation between the holding state and the folding zone according to the first holding state.
In one possible implementation, the determining the first holding state in which the foldable apparatus is held includes:
determining a first grip state in which the foldable device is currently gripped; or,
and determining a first holding state of the foldable equipment with highest held frequency in a preset time period before the current time.
In one possible implementation manner, after the virtual key is displayed in the first folding area of the foldable device, the method further includes:
and when the foldable equipment is detected to meet a preset switching condition, switching the virtual key from the first folding area to the second folding area.
In one possible implementation, the method further includes:
when the currently held holding state of the foldable equipment is a second holding state, and the first folding area is a folding area corresponding to the first holding state, detecting a first holding time length of the foldable equipment held in the second holding state;
and when the first holding time is detected to reach a first preset time, determining that the foldable equipment meets a preset switching condition.
In one possible implementation, before the detecting the first holding period for which the foldable apparatus is held in the second holding state, the method further includes:
Determining whether an automatic switching function of the foldable equipment is started or not, wherein the automatic switching function is used for automatically switching a folding area where a virtual key is positioned;
and when the automatic switching function is started, executing the step of detecting the first holding time length of the foldable device held in the second holding state.
According to a third aspect of embodiments of the present disclosure, there is provided an apparatus for executing an operation instruction, the apparatus comprising:
the first display module is used for displaying virtual keys in a first folding area of the foldable equipment when the foldable equipment is in a folding state;
the first acquisition module is used for acquiring gesture operation of the virtual key when the virtual key is detected to be triggered;
and the execution module is used for executing the operation instruction corresponding to the gesture operation.
In one possible implementation, the apparatus further includes:
the execution module is also used for acquiring operation parameters of the gesture operation; and executing the operation instruction corresponding to the gesture operation when the operation parameter meets the preset condition.
In one possible implementation manner, the first display module is further configured to display the virtual key in a first folding area of the foldable device based on a display style of the virtual key, where the display style is a default display style or a custom display style.
In one possible implementation, the apparatus further includes:
the second display module is used for displaying a setting interface, and the setting interface comprises a plurality of candidate display patterns; acquiring a selected candidate display style; and setting the selected candidate display style as the display style of the virtual key.
In one possible implementation, the apparatus further includes:
the third obtaining module is used for obtaining the stored area identifier of the first folding area for displaying the virtual key, determining the first folding area corresponding to the area identifier based on the area identifier, wherein the area identifier is a default area identifier of the foldable device or an area identifier custom-set by the foldable device.
In one possible implementation, the apparatus further includes:
a determining module for determining a first holding state in which the foldable apparatus is held; and determining a first folding zone corresponding to the first holding state from the corresponding relation between the holding state and the folding zone according to the first holding state.
In a possible implementation manner, the determining module is further configured to determine a first holding state in which the foldable device is currently held; or determining a first holding state with highest holding frequency of the foldable equipment in a preset time period before the current time.
In one possible implementation, the apparatus further includes:
and the switching module is used for switching the virtual key from the first folding area to the second folding area when the foldable equipment is detected to meet the preset switching condition.
In one possible implementation, the apparatus further includes:
the detection module is used for detecting a first holding duration of the foldable equipment in the second holding state when the holding state of the foldable equipment in the current holding state is the second holding state and the first folding area is a folding area corresponding to the first holding state; and when the first holding time is detected to reach a first preset time, determining that the foldable equipment meets a preset switching condition.
In one possible implementation, the apparatus further includes:
the detection module is further used for determining whether an automatic switching function of the foldable equipment is started or not, and the automatic switching function is used for automatically switching a folding area where the virtual key is located; and when the automatic switching function is started, detecting a first holding duration of the foldable device held in the second holding state.
According to a fourth aspect of embodiments of the present disclosure, there is provided a foldable device comprising:
A processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the foldable equipment is in a folded state, displaying virtual keys in a first folding area of the foldable equipment; when the virtual key is detected to be triggered, acquiring gesture operation of the virtual key triggered; and executing an operation instruction corresponding to the gesture operation.
According to a fifth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of a foldable device, causes the foldable device to perform the method of executing operating instructions of the foldable device of any of the second aspects above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
the disclosed embodiments provide a foldable device that includes a housing, a display screen, a first detection member, and a processor disposed within the housing. The display screen is arranged on the shell, and when the shell is in a folded state, the display screen is divided into a display area and a folding area, and the folding area is used for displaying virtual keys. The first detection piece is arranged between the folding area and the shell, is connected with the processor and is used for acquiring gesture operation of the virtual keys in the folding area, and the processor is used for executing operation instructions corresponding to the gesture operation. When the shell is in a folding state, the virtual keys are displayed in the folding area, so that the content of the folding area is enriched, the situation that the folding area is empty due to the fact that the content is only displayed in the display area is avoided, and screen resources of the folding area are wasted is avoided. And the virtual keys are displayed in the folding area, so that a user can correspondingly operate the foldable equipment through gesture operation of the virtual keys, and the utilization rate of the folding area is improved.
Drawings
FIG. 1 is a schematic illustration of a foldable device provided by an embodiment of the present disclosure;
FIG. 2 is a schematic illustration of another foldable device provided by an embodiment of the present disclosure;
FIG. 3 is a flow chart of a method of executing an operational instruction provided by an embodiment of the present disclosure;
FIG. 4 is a flow chart of a method of executing an operational instruction provided by an embodiment of the present disclosure;
FIG. 5 is a flow chart of a method of executing an operational instruction provided by an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of an apparatus for executing an operation instruction according to an embodiment of the present disclosure;
fig. 7 is a block diagram of a foldable device provided in an embodiment of the present disclosure.
Reference numerals denote:
1-a shell, 11-a first shell, 12-a second shell, 13-a rotating shaft, 2-a display screen, 21-a display area,
22-fold area, 3-first detection member, 4-processor, 5-second detection member, 6-fold area support member.
Detailed Description
In order to make the technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure are described in further detail below.
Embodiments of the present disclosure provide a foldable device, see fig. 1, comprising: a housing 1, a display screen 2, a first detecting member 3, and a processor 4 provided in the housing 1;
The display screen 2 is arranged on the shell 1;
when the housing 1 is in the folded state, the display screen 2 is divided into a display area 21 and a folded area 22;
the folding area 22 is used for displaying virtual keys;
the first detecting piece 3 is arranged between the folding area 22 and the shell 1 and is connected with the processor 4, and is used for acquiring gesture operation of the virtual keys in the folding area 22;
the processor 4 is configured to execute an operation instruction corresponding to the gesture operation.
The display screen 2 is a foldable display screen; for example, the display screen 2 is a flexible display screen; the display screen 2 may be folded with the housing 1 to assume an unfolded state or a folded state. When the foldable device is in the unfolded state, the entire display screen 2 is referred to as a display area 21. When the display screen 2 is in the folded state, the area where the display screen 2 is folded is referred to as a folding area 22, and the area other than the folding area 22 is referred to as a display area 21.
The housing 1 is a foldable housing. The housing 1 may be a flexible foldable housing; the housing 1 may further include a first housing 11, a second housing 12, and a rotation shaft 13. The rotating shaft 13 is disposed between the first housing 11 and the second housing 12, and is used for connecting the first housing 11 and the second housing 12, and the first housing 11 and the second housing 12 can rotate around the rotating shaft 13 to realize folding or unfolding.
In one possible implementation, when the housing 1 is a flexible foldable housing 1, the first detecting element 3 is arranged between the flexible foldable housing 1 and the folding zone 22; when the housing 1 includes the first housing 11, the second housing 12 and the rotating shaft 13, the first detecting member 3 is disposed between the rotating shaft 13 and the folding zone 22, and the rotating shaft 13 is also used for supporting the folding zone 22.
The first detecting piece 3 is a gesture operation sensor; the gesture operation may be a press operation, a click operation, a slide operation, or the like. Correspondingly, the first detecting element 3 may be a pressure sensor, and the pressure sensor may acquire gesture operation on the virtual key in the folding area 22, and when detecting the gesture operation, the pressure sensor sends an operation instruction corresponding to the gesture operation to the processor 4. After receiving the operation instruction, the processor 4 executes the operation instruction.
The first detecting members 3 may be the same number as the folding areas 22; also, the number of the first detecting pieces 3 may be set and changed according to the number of the folding areas 22, which is not particularly limited in the embodiment of the present disclosure.
The size of the housing 1 and the size of the display screen 2 may be the same or different, and in the embodiment of the present disclosure, this is not particularly limited. For example, the size of the housing 1 and the size of the display screen 2 are not the same. When the size of the housing 1 and the size of the display screen 2 are not the same, the size of the housing 1 may be larger or smaller than the size of the display screen 2. In the embodiments of the present disclosure, this is not particularly limited. For example, the size of the housing 1 is smaller than the size of the display screen 2.
The size of the display screen 2 can be set and changed as needed. In the embodiment of the present disclosure, the size of the display screen 2 is not particularly limited. For example, the display screen 2 may be 10 inches, 11 inches, or 12 inches.
The number of times the display screen 2 is folded can be set and changed as needed. In the embodiment of the present disclosure, the number of times the display screen 2 is folded is not particularly limited. For example, when the display screen 2 is folded once, twice or three times.
In one possible implementation, when the display screen 2 is folded once, the display screen 2 is divided into two display areas 21 and one folding area 22. The two display areas 21 may be the same or different in size. In the embodiments of the present disclosure, this is not particularly limited. For example, the two display areas 21 are the same size.
The disclosed embodiments provide a foldable device that includes a housing 1, a display screen 2, a first detecting member 3, and a processor 4 disposed within the housing 1. The display screen 2 is disposed on the housing 1, and when the housing 1 is in a folded state, the display screen 2 is divided into a display area 21 and a folding area 22, and the folding area 22 is used for displaying virtual keys. The first detecting element 3 is disposed between the folding area 22 and the housing 1, and is connected to the processor 4, for acquiring gesture operation on the virtual key in the folding area 22, and the processor 4 is configured to execute an operation instruction corresponding to the gesture operation. When the shell 1 is in a folding state, the foldable device displays virtual keys in the folding area 22, enriches the content of the folding area 22, and avoids the phenomenon that the folding area 22 is empty and screen resources of the folding area 22 are wasted because the content is only displayed in the display area 21. And the virtual keys are displayed in the folding area 22, so that a user can correspondingly operate the foldable equipment through gesture operation on the virtual keys, and the utilization rate of the folding area 22 is improved.
In one possible implementation, referring to fig. 2, the foldable device further includes: a second detecting member 5; the second detecting element 5 is disposed between the folding area 22 and the housing 1, and is connected to the processor 4, for detecting an operation parameter of the gesture operation.
The processor 4 is further configured to execute an operation instruction corresponding to the gesture operation when the operation parameter meets a preset condition.
The second detecting element 5 is a pressure sensor, the pressure sensor is used for detecting operation parameters of gesture operation, the detected operation parameters are sent to the processor 4, the processor 4 monitors the operation parameters sent by the pressure sensor in real time, and when the operation parameters meet preset conditions, operation instructions corresponding to gesture operation are executed.
The number of the second detecting pieces 5 may be set and changed as needed, and in the embodiment of the present disclosure, this is not particularly limited. The number of the first detecting pieces 3 and the number of the second detecting pieces 5 may be the same or different, and in the embodiment of the present disclosure, this is not particularly limited.
In one possible implementation, the folding zone 22 may be supported by the rotating shaft 13; in another possible implementation, it is also possible to add a single fold-section support 6; correspondingly, the foldable device further comprises: a fold region support 6; the folding zone support 6 is disposed at the bottom of the first detecting member 3 and is used for supporting the folding zone 22. In another possible implementation, the folding zone 22 may be supported simultaneously by the shaft 13 and the support; correspondingly, the folding zone supporting piece 6 is arranged at the bottom of the first detecting piece 3, and the top of the rotating shaft 13.
The fold region support 6 may be any support, and in the embodiment of the present disclosure, this is not particularly limited. For example, the fold area support 6 is a bracket. The number of fold-over area supports 6 may be set and modified as desired, and in the presently disclosed embodiment, this is not particularly limited. For example, the number of fold area supports 6 is one or more.
The folding zone support 6 can support the folding zone 22, preventing the screen at the folding zone 22 from being broken due to excessive pressing force when the virtual key in the folding zone 22 is pressed.
The disclosed embodiments provide a foldable device further comprising a second detecting member 5, a fold region supporting member 6. The second detecting element 5 is configured to detect an operation parameter of the gesture operation, and when the operation parameter meets a preset condition, the processor 4 executes an operation instruction corresponding to the gesture operation. The fold region support 6 is used to support the fold region 22. When the shell 1 is in a folding state, the foldable device displays virtual keys in the folding area 22, enriches the content of the folding area 22, and avoids the phenomenon that the folding area 22 is empty and screen resources of the folding area 22 are wasted because the content is only displayed in the display area 21. And the virtual keys are displayed in the folding area 22, so that a user can correspondingly operate the foldable equipment through gesture operation on the virtual keys, and the utilization rate of the folding area 22 is improved. In addition, the folding zone supporting piece 6 can prevent the screen at the folding zone 22 from being broken due to overlarge pressing force in the process of pressing the virtual keys in the folding zone 22, so that the safety of the screen at the folding zone 22 is enhanced.
In the embodiment of the disclosure, referring to fig. 3, an example is described in which the foldable device includes a folding area, and the method includes:
in step S301, when the foldable device is in a folded state, the foldable device displays a virtual key in a first folding area of the foldable device.
The foldable device comprises a folding zone, and the folding zone is a first folding zone; the foldable device displays virtual keys in the first folding region. When the foldable device displays the virtual key in the first folding area, the display style of the virtual key can be obtained, and based on the display style of the virtual key, the virtual key is displayed in the first folding area of the foldable device.
In one possible implementation, the display style of the virtual key may be a default display style or a custom display style. When the display style is a default display style, the foldable device acquires the default display style, and virtual keys are displayed in the first folding area based on the default display style; when the display style is a custom display style, the foldable device obtains the custom display style, and based on the custom display style, virtual keys are displayed in the first folding area.
When the display style is a custom display style, the foldable device may customize the display style and store the custom display style prior to this step. Accordingly, the step of customizing the display style by the foldable device may be implemented by the following steps (1) to (3), including:
(1): the foldable device displays a first setup interface that includes a plurality of candidate display styles.
The main interface of the foldable equipment comprises a setting button, wherein the setting button is used for triggering a setting instruction; when the setting instruction is received, the foldable device may display a first setting interface including a plurality of candidate display styles therein, and the user may select one display style from the plurality of candidate display styles.
The first setting interface comprises a plurality of candidate display patterns, and the plurality of candidate display patterns can be stored locally in the foldable equipment, can be downloaded from the internet and can be set for a user. In the embodiments of the present disclosure, this is not particularly limited.
In addition, the foldable device can customize the display style in the unfolded state and also can customize the display style in the folded state. When the foldable device is in the folded state, the display style is customized, the foldable device may display the first setting interface in the display area, or may display the first setting interface in the folded area, which is not specifically limited in the embodiment of the present disclosure.
(2): the foldable device obtains the selected candidate display style.
(3): the foldable device sets the selected candidate display style as the display style of the virtual key.
The foldable device automatically sets the candidate display style as the display style of the virtual key after acquiring the selected candidate display style.
The number of virtual keys may be set and changed as desired. In the embodiment of the present disclosure, the number of virtual keys is not particularly limited. For example, the number of virtual keys is 1, 2, or 3, etc. And the type of the virtual key can be set and changed according to the needs. In the embodiment of the present disclosure, the type of the virtual key is not particularly limited. For example, the virtual key may be a volume key, a shutdown key, or an mute key, etc. In addition, when there are a plurality of virtual keys, the display style of each virtual key can be customized through the above steps (1) to (3).
It should be noted that, the steps (1) to (3) are processes of manually customizing the display style by the user; in embodiments of the present disclosure, the foldable device may also automatically define a display style. Accordingly, the step of automatically defining the display style by the foldable device may be:
The foldable device may periodically select one display style from the plurality of candidate display styles in a certain order as the selected candidate display style; or randomly selecting one display style from a plurality of candidate display styles at random to serve as a selected candidate display style; the foldable device obtains the selected display style and takes the display style as a selected candidate display style. In the embodiment of the present disclosure, the manner in which the foldable device acquires the selected candidate display style is not particularly limited.
Another point to be described is that the foldable device displays virtual keys in the first folding area only when the foldable device is in the folded state; when the foldable equipment is in an unfolding state, the foldable equipment does not display virtual keys in the first folding area; correspondingly, the method further comprises the steps of: the foldable equipment detects the state of the foldable equipment in real time; when the state of the foldable device is detected to be changed from the folded state to the unfolded state, the virtual keys displayed in the first folding area are hidden.
In step S302, when the virtual key is detected to be triggered, the foldable device acquires a gesture operation in which the virtual key is triggered.
The user can perform gesture operation on the virtual key, so that the foldable device is triggered to execute operation instructions. Correspondingly, the foldable device detects the virtual key in real time; when the virtual key is detected to be triggered, the foldable device acquires gesture operation of the virtual key.
The gesture operation for triggering the virtual key may be set and changed as required, and in the embodiment of the present disclosure, the gesture operation for triggering the virtual key is not particularly limited. For example, the gesture operation triggering the virtual key may be a press operation and/or a click operation and/or a slide operation, or the like.
The virtual key may be a volume key, an mute key, or a power off key. When the virtual key is a volume key, the virtual key includes a volume up key and a volume down key. Accordingly, the gesture operation may be a click operation, a press operation, or a slide operation. For example, when the user wants to increase the volume, the user may click on the volume up key, or press the volume up key, or perform a sliding operation of sliding up in the folding area. For another example, when the user wants to lower the volume, the user may click on the volume down key, or press the volume down key, or perform a sliding operation of sliding down in the folding area.
It should be noted that, after the step S302 is performed, the foldable device may directly perform the step of executing the operation instruction corresponding to the gesture operation by the foldable device in the step S304; or after step S302 is performed, the foldable device may further perform step S303 to perform the false touch preventing process.
In step S303, the foldable apparatus acquires the operation parameters of the gesture operation.
The foldable device obtains operation parameters corresponding to gesture operation. For example, when the gesture operation is a pressing operation, the operation parameter corresponding to the pressing operation may be a pressing duration. When the gesture operation is a click operation, the click operation may be a single click operation or a double click operation; for example, when the clicking operation is a clicking operation, the operation parameter corresponding to the clicking operation may be a clicking pressure; when the clicking operation is a double clicking operation, the operation parameter corresponding to the double clicking operation may be a time interval between two clicks. When the gesture operation is a sliding operation, the operation parameter corresponding to the sliding operation may be a sliding distance and/or a sliding direction. When the gesture operation is a press operation and a slide operation, the operation parameters corresponding to the gesture operation may be a press duration and a slide distance and/or a slide direction. The operation parameters may be set and changed as needed, and in the embodiment of the present disclosure, the operation parameters of the gesture operation are not particularly limited.
In step S304, when the operation parameter meets a preset condition, the foldable device executes an operation instruction corresponding to the gesture operation.
Discarding an operation instruction corresponding to gesture operation when the operation parameters of the foldable device do not meet preset conditions; and executing the operation instruction when the preset condition is met.
For example, when the operation parameter is a pressing time period, the preset condition may be a preset pressing time period; when the pressing duration reaches the preset pressing duration, the foldable device determines that the operation parameter meets the preset condition. When the operation parameter is a click pressure, the preset condition may be a preset click pressure; when the clicking pressure exceeds a preset clicking pressure, it is determined that the operating parameter meets a preset condition. When the operation parameter is a time interval between two clicks, the preset condition may be a preset time interval; and when the time interval between the two clicks is smaller than the preset time interval, determining that the operation parameters meet the preset conditions. When the operation parameters are a sliding distance and a sliding direction, the preset conditions may be a preset sliding distance and a preset sliding direction; when the sliding distance reaches the preset sliding distance and the sliding direction is the same as the preset sliding direction, determining that the operation parameters meet the preset conditions. When the operation parameters are the pressing time length and the sliding distance, the preset conditions can be the preset pressing time length and the preset sliding distance; when the pressing time length reaches the preset pressing time length and the sliding distance reaches the preset sliding distance, determining that the operation parameters meet the preset conditions.
The preset conditions may be set and changed as needed, and in the embodiment of the present disclosure, the preset conditions are not particularly limited.
In the embodiment of the disclosure, the foldable device executes the operation instruction corresponding to the gesture operation only when the operation parameter meets the preset condition, so that misoperation of a user is prevented, and the accuracy of triggering the virtual key is improved.
The embodiment of the disclosure provides a method for executing an operation instruction, when foldable equipment is in a folded state, virtual keys are displayed in a first folding area of the foldable equipment, when the foldable equipment detects that the virtual keys are triggered, gesture operation triggered by the virtual key area is obtained, and an operation instruction corresponding to the gesture operation is executed. According to the method, the virtual keys are displayed in the folding area, so that the content of the folding area is enriched, and the phenomenon that the folding area is empty and screen resources of the folding area are wasted due to the fact that the content is only displayed in the display area is avoided. And the virtual keys are displayed in the folding area, so that a user can correspondingly operate the foldable equipment through gesture operation of the virtual keys, and the utilization rate of the folding area is improved.
In the embodiment of the disclosure, referring to fig. 4, in which the foldable device includes a plurality of folding areas, and a virtual key is displayed in a fixed folding area for explanation, the method includes:
In step S401, when the foldable device is in a folded state, the foldable device acquires a stored area identifier of a first folding area for displaying a virtual key, and determines, based on the area identifier, a first folding area corresponding to the area identifier.
The area identifier is a default area identifier of the foldable device or an area identifier which is custom set by the foldable device. When the foldable device is folded, there may be a plurality of folding areas, and when the area identifier of the folding area for displaying the virtual key is a default area identifier, the foldable device selects a first folding area from the plurality of folding areas, the first folding area being used for displaying the virtual key, and storing the area identifier of the first folding area. The foldable device may randomly select a folding area from a plurality of folding areas as the first folding area, and may also select a folding area as the first folding area according to a habit of a user holding the foldable device. For example, the folding area includes a folding area 1 and a folding area 2, the folding area 1 is located at the left side of the display area, and the folding area 2 is located at the right side of the display area; when the user holds the foldable device with his left hand, the foldable device may take the folding area 2 as a first folding area; the foldable device may have fold 1 as the first fold when the user holds the foldable device with his right hand.
The area identifier of the folding area may be an area number of the folding area or a positional relationship between the folding area and the display area.
In another possible implementation, the user may customize the first folding area for displaying the virtual keys. The step of user-defining the first folding area for displaying the virtual key may be achieved by the following steps (1) to (3), including:
(1): the foldable device displays a second setup interface that includes area identifications of the plurality of folding areas.
The user may select an area identifier among the area identifiers of the plurality of folding areas.
(2): the foldable device obtains the selected region identification.
(3): the foldable device determines the selected region identifier as a region identifier for displaying a first folding region of the virtual key.
The foldable device determines the selected area identifier as an area identifier of a first folding area for displaying the virtual key, and stores the area identifier of the first folding area.
When the area identifications of the plurality of folding areas are stored, the area identification of each folding area is different. When the area identifier is a default area identifier, the foldable equipment directly displays virtual keys in a folding area corresponding to the default area identifier when being folded; when the area identifier is the area identifier which is set in a self-defining mode, the foldable equipment can set a folding area corresponding to the area identifier in a self-defining mode, and virtual keys are displayed in the folding area.
For example, when the foldable device is folded twice, there are two folding areas, the user-facing, upwardly facing display area is referred to as the first display area, which are located on the left and right sides of the first display area, respectively. For example, the area of the left fold is identified as 1 and the area of the right fold is identified as 2. In one possible implementation, when the area identifier is a default area identifier and the default area identifier is 1, the left folding area corresponding to the area identifier that is 1 is the first folding area. In another possible implementation manner, when the area identifier is a default area identifier and the default area identifier is 2, the right folding area corresponding to the area identifier that is 2 is the first folding area. In another possible implementation manner, when the area identifier is a user-defined area identifier, the folding area on the left side of the area identifier 1 may be set as the first folding area, and the folding area on the right side of the area identifier 2 may also be set as the first folding area.
The foldable device may determine the first folding zone based on the state of the grip being gripped or by the region identification of the folding zone. In the embodiments of the present disclosure, the manner in which the foldable device determines the first folding region is not particularly limited.
In step S402, when the foldable device is in a folded state, the foldable device displays a virtual key in a first folding area of the foldable device.
In step S403, when detecting that the virtual key is triggered, the foldable device acquires a gesture operation in which the virtual key is triggered.
In step S404, the foldable device acquires the operation parameters of the gesture operation.
In step S405, when the operation parameter meets a preset condition, the foldable device executes an operation instruction corresponding to the gesture operation.
In the embodiment of the present disclosure, steps S402 to S405 are the same as steps S301 to S304, and are not described herein.
The embodiment of the disclosure provides a method for executing an operation instruction, when foldable equipment is in a folded state, virtual keys are displayed in a first folding area of the foldable equipment, when the foldable equipment detects that the virtual keys are triggered, gesture operation triggered by the virtual key area is obtained, and an operation instruction corresponding to the gesture operation is executed. According to the method, the virtual keys are displayed in the folding area, so that the content of the folding area is enriched, and the phenomenon that the folding area is empty and screen resources of the folding area are wasted due to the fact that the content is only displayed in the display area is avoided. And the virtual keys are displayed in the folding area, so that a user can correspondingly operate the foldable equipment through gesture operation of the virtual keys, and the utilization rate of the folding area is improved.
In the embodiment of the disclosure, referring to fig. 5, the foldable device includes a plurality of folding areas, and the first folding area is determined according to the held state of the foldable device. The method comprises the following steps:
in step S501, when the foldable device is in a folded state, the foldable device determines a first grip state in which the foldable device is gripped.
In a first implementation, the foldable device sets a first folding area for displaying the virtual key according to the current holding state. Accordingly, the steps may be: the foldable device determines the current held state as a first held state in which the foldable device is held. The first grip state is used to indicate which hand of the user is holding the foldable device.
For example, the current foldable device is held by the left hand of the user or by the right hand of the user, and the foldable device determines the current held state as the first held state.
In a second implementation, the foldable device sets a first folding area for displaying virtual keys according to a state in which the user frequently holds the foldable device. Accordingly, the steps may be: the foldable device determines a first grip state in which the foldable device is gripped most frequently within a preset time period prior to the current time.
The preset duration may be set and changed as needed, and in the embodiment of the present disclosure, the preset duration is not specifically limited. For example, the preset time period is 1 hour, 2 hours, or 3 hours.
For example, if the preset time period is 2 hours, the foldable device determines the frequency of holding by the left hand and the frequency of holding by the right hand within 2 hours before the current time. For example, if the frequency of left hand grip is greater than the frequency of right hand grip within 2 hours prior to the current time, the foldable device determines the corresponding grip state of left hand grip as the first grip state; the frequency of the left hand holding within 2 hours before the current time is not greater than the frequency of the right hand holding, and the foldable device determines the holding state corresponding to the right hand holding as the first holding state.
In step S502, the foldable device displays a virtual key in a first folding area of the foldable device.
The steps of displaying the virtual key in the first folding area of the foldable device in this step and the foldable device in step S301 are the same, and will not be described here again.
It should be noted that, the foldable device may always display the virtual key in the first folding area, that is, after step S502 is performed, step S504 is directly performed; and the virtual key folding area can be switched when the foldable equipment meets the preset switching condition. I.e. after step S502 is performed, step S503 is performed.
In step S503, when the foldable device detects that the foldable device meets a preset switching condition, the virtual key is switched from the first folding region to the second folding region.
The foldable device detects whether the foldable device meets a preset switching condition; when the foldable equipment meets a preset switching condition, switching the virtual key from the first folding area to the second folding area; the second folding zone is any folding zone other than the first folding zone among the plurality of folding zones. The preset switching condition may be that the first holding time length reaches a first preset time length, and the time length for displaying the virtual key in the first folding area reaches a second preset time length.
When the preset switching condition is that the first holding time length reaches the first preset time length, for the second implementation manner in the step S501, the holding state of the foldable device that is currently held is the second holding state, and the first folding area is the folding area corresponding to the first holding state; the step of the foldable device detecting whether the foldable device meets the preset switching condition may be:
the foldable device detects a first duration of holding of the foldable device in the second holding state. When the foldable device detects that the first holding time length reaches a first preset time length, the foldable device is determined to meet the preset switching condition. When the foldable device detects that the first holding time period does not reach the first preset time period, the foldable device does not meet the preset switching condition; when the foldable device detects that the first holding time length reaches a first preset time length, the foldable device is determined to meet the preset switching condition.
For example, the first holding state of the foldable device is held by the right hand, and the second holding state is held by the left hand, and when the foldable device is changed from being held by the right hand to being held by the left hand, the first holding time of the foldable device in the holding state by the left hand is monitored in real time until the holding state is changed.
The first preset duration may be set and modified as needed, and in the embodiment of the present disclosure, the first preset duration is not specifically limited. For example, the first preset duration is 20 minutes, 30 minutes, or 40 minutes.
For example, after the foldable device is held by the left hand for a certain period of time, the foldable device is changed into being held by the right hand, the first holding period of time for the foldable device held by the left hand is 1 hour, the first preset period of time is 30 minutes, and it is determined that the foldable device meets the preset switching condition.
It should be noted that the foldable device can be provided with an automatic switching function; when the foldable device determines that the automatic switching function is not started, automatic switching cannot be performed, but a user can start the automatic switching function by himself. When the foldable device determines that the automatic switching function is started, the first holding time length of the foldable device held in the second holding state is monitored in real time when the holding state of the foldable device is changed. Correspondingly, before the foldable equipment detects whether the foldable equipment meets the preset switching condition, the foldable equipment determines whether an automatic switching function of the foldable equipment is started, and the automatic switching function is used for automatically switching a folding area where the virtual key is located. When the foldable device determines that the automatic switching function is on, the foldable device detects whether the foldable device meets a preset switching condition.
When the first grip state and the second grip state currently being gripped are different, the foldable device determines whether the automatic switching function is on. For example, when the foldable device is folded twice, the foldable device determines whether the automatic switching function is on when the first holding state of the foldable device is held by the right hand and the second holding state currently held is held by the left hand, the first holding state and the second holding state being different.
When the foldable equipment meets the preset switching conditions, the virtual key is switched from the first folding area to the second folding area; and when the foldable equipment does not meet the preset switching conditions, the virtual keys are not switched.
When the preset switching condition is that the duration of displaying the virtual key in the first folding area reaches the second preset duration, the step of detecting whether the foldable device meets the preset switching condition by the foldable device can be as follows: the foldable equipment detects the duration of displaying the virtual key in the first folding area; when the time length of displaying the virtual keys in the first folding area reaches the second preset time length, the foldable equipment determines that the foldable equipment meets the preset switching conditions; when the duration of displaying the virtual keys in the first folding area does not reach the second preset duration, the foldable device determines that the foldable device meets the preset switching condition. The second preset duration and the first preset duration may be the same or different.
When the foldable device meets the preset switching condition, the virtual key is switched from the first folding area to the second folding area. For example, the foldable device is folded twice, the folding region comprising a first folding region and a second folding region, the first folding region being located to the left of the display region and the second folding region being located to the right of the display region. The user often holds the foldable device with the right hand, the first holding state is held by the right hand, and the first folding area corresponding to the first holding state is positioned at the left side of the first display area; the second holding state is held by the left hand, and the second folding area corresponding to the second holding state is positioned on the right side of the first display area. For example, the first holding duration is 1 hour, the first preset duration is 30 minutes, and if the first holding duration reaches the first preset duration, the foldable device switches the first folding area on the left side where the virtual key is located to the second folding area on the right side of the first display area.
When the foldable equipment meets the preset switching conditions, the folding area where the virtual key is automatically switched can be prevented from being changed for many times in a short time by the held state of the foldable equipment, and the folding area is switched back and forth, so that the service life of the foldable equipment is influenced.
In step S504, when the virtual key is detected to be triggered, the foldable device acquires a gesture operation in which the virtual key is triggered.
In step S505, the foldable apparatus acquires the operation parameters of the gesture operation.
In step S506, when the operation parameter meets a preset condition, the foldable device executes an operation instruction corresponding to the gesture operation.
In the embodiment of the present disclosure, steps S504 to S506 are the same as steps S302 to S304, and are not described herein.
It should be noted that, the user may perform a gesture operation before the switching of the folding area for displaying the virtual key, or may perform a gesture operation after the switching of the folding area; when the user performs a gesture operation before switching the folding area for displaying the virtual key, step S504-step S506 are performed after step S502 is performed, and step S503 is performed after step S506 is performed.
The embodiment of the disclosure provides a method for executing an operation instruction, when foldable equipment is in a folded state, virtual keys are displayed in a first folding area of the foldable equipment, when the foldable equipment detects that the virtual keys are triggered, gesture operation triggered by the virtual key area is obtained, and an operation instruction corresponding to the gesture operation is executed. According to the method, the virtual keys are displayed in the folding area, so that the content of the folding area is enriched, and the phenomenon that the folding area is empty and screen resources of the folding area are wasted due to the fact that the content is only displayed in the display area is avoided. And the virtual keys are displayed in the folding area, so that a user can correspondingly operate the foldable equipment through gesture operation of the virtual keys, and the utilization rate of the folding area is improved.
An embodiment of the present disclosure provides an apparatus for executing an operation instruction, referring to fig. 6, the apparatus includes:
a first display module 601, configured to display a virtual key in a first folding area of the foldable device when the foldable device is in a folded state;
the first obtaining module 602 is configured to obtain a gesture operation of the virtual key triggered when the virtual key is detected to be triggered;
the execution module 603 is configured to execute an operation instruction corresponding to the gesture operation.
In one possible implementation, the apparatus further includes:
the execution module 603 is further configured to obtain an operation parameter of the gesture operation; and executing an operation instruction corresponding to the gesture operation when the operation parameter meets the preset condition.
In a possible implementation manner, the first display module 601 is further configured to display the virtual key in the first folding area of the foldable device based on a display style of the virtual key, where the display style is a default display style or a custom display style.
In one possible implementation, the apparatus further includes:
the second display module is used for displaying a setting interface, and the setting interface comprises a plurality of candidate display patterns; acquiring a selected candidate display style; the selected candidate display style is set as the display style of the virtual key.
In one possible implementation, the apparatus further includes:
the third acquisition module is used for acquiring the stored area identifier of the first folding area for displaying the virtual key, determining the first folding area corresponding to the area identifier based on the area identifier, wherein the area identifier is the default area identifier of the foldable device or the area identifier custom-set by the foldable device.
In one possible implementation, the apparatus further includes:
a determining module for determining a first holding state in which the foldable apparatus is held; and determining a first folding zone corresponding to the first holding state from the corresponding relation between the holding state and the folding zone according to the first holding state.
In one possible implementation, the determining module is further configured to determine a first holding state in which the foldable device is currently held; or determining a first holding state with highest holding frequency of the foldable device in a preset time period before the current time.
In one possible implementation, the apparatus further includes:
and the switching module is used for switching the virtual key from the first folding area to the second folding area when the foldable equipment is detected to meet the preset switching condition.
In one possible implementation, the apparatus further includes:
The detection module is used for detecting a first holding duration of the foldable equipment in the second holding state when the holding state of the foldable equipment in the current holding state is the second holding state and the first folding area is a folding area corresponding to the first holding state; and when the first holding time length is detected to reach the first preset time length, determining that the foldable equipment meets the preset switching condition.
In one possible implementation, the apparatus further includes:
the detection module is also used for determining whether an automatic switching function of the foldable equipment is started or not, and the automatic switching function is used for automatically switching a folding area where the virtual key is positioned; when the automatic switching function is turned on, a first holding time period for which the foldable apparatus is held in the second holding state is detected.
The embodiment of the disclosure provides a device for executing an operation instruction, when foldable equipment is in a folded state, virtual keys are displayed in a first folding area of the foldable equipment, when the foldable equipment detects that the virtual keys are triggered, gesture operation triggered by the virtual key area is obtained, and an operation instruction corresponding to the gesture operation is executed. The device enriches the content of the folding area by displaying the virtual keys in the folding area, and avoids the situation that the folding area is empty due to the fact that the content is only displayed in the display area, thereby wasting the screen resources of the folding area. And the virtual keys are displayed in the folding area, so that a user can correspondingly operate the foldable equipment through gesture operation of the virtual keys, and the utilization rate of the folding area is improved.
Fig. 7 is a block diagram of a foldable device 700 according to an embodiment of the present invention. For example, the foldable device 700 may be used to perform the method of executing the operation instructions provided in the various embodiments described above. Referring to fig. 7, a foldable device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the foldable device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 4 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the foldable device 700. Examples of such data include instructions for any application or method operating on the foldable device 700, contact data, phonebook data, messages, pictures, video, and the like. The memory 704 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply assembly 706 provides power to the various components of the foldable device 700. Power supply components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for foldable device 700.
The multimedia component 708 includes a screen between the foldable device 700 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. When the foldable device 700 is in an operational mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the foldable device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the foldable device 700. For example, the sensor assembly 714 may detect an open/closed state of the foldable device 700, a relative positioning of the components, such as a display and keypad of the foldable device 700, the sensor assembly 714 may also detect a change in position of the foldable device 700 or a component of the foldable device 700, the presence or absence of a user's contact with the foldable device 700, an orientation or acceleration/deceleration of the foldable device 700, and a change in temperature of the foldable device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communication between the foldable device 700 and other devices in a wired or wireless manner. The foldable device 700 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short range communications.
In an exemplary embodiment, the foldable device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the above method.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 704, comprising instructions executable by processor 4 of foldable device 700 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing is merely for the convenience of those skilled in the art to understand the technical solutions of the present disclosure, and is not used to control the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (19)

1. A foldable device, characterized in that the foldable device comprises: the device comprises a shell, a display screen, a first detection piece and a processor arranged in the shell;
the display screen is arranged on the shell;
when the shell is in a folding state, the display screen is divided into a display area and a plurality of folding areas;
the folding area is used for displaying virtual keys;
the first detection piece is arranged between the folding area and the shell, is connected with the processor and is used for acquiring gesture operation of the virtual keys in the folding area;
The processor is used for executing an operation instruction corresponding to the gesture operation;
the processor is further configured to determine a first holding state in which the housing is currently held when the housing is in the folded state; wherein the first grip state is for indicating which hand of a user grips the housing; determining a first folding zone corresponding to the first holding state from the corresponding relation between the holding state and the folding zone according to the first holding state; displaying virtual keys in the first folding area;
the processor is further configured to detect a first duration of holding the housing in a second holding state when a holding state of the housing currently being held is changed to the second holding state; when the first holding time is detected to reach a first preset time, switching the virtual key from the first folding area to a second folding area; the second fold region is any fold region of the plurality of fold regions other than the first fold region.
2. The foldable device of claim 1, wherein the foldable device further comprises: a second detecting member;
the second detection piece is arranged between the folding area and the shell, is connected with the processor and is used for detecting operation parameters of the gesture operation;
The processor is further configured to execute an operation instruction corresponding to the gesture operation when the operation parameter meets a preset condition.
3. The collapsible device of claim 1 wherein the housing comprises a first housing, a second housing, and a shaft;
the rotating shaft is arranged between the first shell and the second shell and is used for connecting the first shell and the second shell.
4. A collapsible device as claimed in claim 3 wherein the first detecting member is disposed between the axis of rotation and the fold region; the rotating shaft is also used for supporting the folding area.
5. The foldable device of claim 1, wherein the foldable device further comprises: a fold region support;
the folding zone supporting piece is arranged at the bottom of the first detecting piece and used for supporting the folding zone.
6. A method of executing an operating instruction, characterized by being applied in a foldable device according to any one of claims 1-5; the method comprises the following steps:
determining a first holding state in which the foldable device is currently held when the foldable device is in a folded state; wherein the first grip state is for indicating which hand of a user is holding the foldable device;
Determining a first folding zone corresponding to the first holding state from the corresponding relation between the holding state and the folding zone according to the first holding state;
displaying virtual keys in the first folding area;
detecting a first holding time length of the foldable equipment held in the second holding state when the holding state of the foldable equipment currently held is changed into the second holding state;
when the first holding time length is detected to reach a first preset time length, switching the virtual key from the first folding area to a second folding area, wherein the second folding area is any folding area except the first folding area in the plurality of folding areas;
when the virtual key is detected to be triggered, acquiring gesture operation of the virtual key triggered;
and executing an operation instruction corresponding to the gesture operation.
7. The method of claim 6, wherein prior to executing the operation instruction corresponding to the gesture operation, the method further comprises:
acquiring operation parameters of the gesture operation;
and executing the operation instruction corresponding to the gesture operation when the operation parameter meets the preset condition.
8. The method of claim 6, wherein displaying virtual keys in the first folding zone comprises:
and displaying the virtual key in a first folding area of the foldable equipment based on the display style of the virtual key, wherein the display style is a default display style or a custom display style.
9. The method of claim 8, wherein the virtual key is displayed in a first folding zone of the foldable device based on a display style of the virtual key, the method further comprising:
displaying a setting interface, wherein the setting interface comprises a plurality of candidate display styles;
acquiring a selected candidate display style;
and setting the selected candidate display style as the display style of the virtual key.
10. The method of claim 6 or 8, wherein the method further comprises, prior to displaying a virtual key in the first fold area:
the method comprises the steps of obtaining a stored area identifier of a first folding area for displaying the virtual key, and determining the first folding area corresponding to the area identifier based on the area identifier, wherein the area identifier is a default area identifier of foldable equipment or an area identifier which is custom set by the foldable equipment.
11. The method of claim 6, wherein the detecting a first duration of a grip of the foldable device in the second grip state is preceded by:
determining whether an automatic switching function of the foldable equipment is started or not, wherein the automatic switching function is used for automatically switching a folding area where a virtual key is positioned;
and when the automatic switching function is started, executing the step of detecting the first holding time length of the foldable device held in the second holding state.
12. Apparatus for executing operating instructions, characterized in that it is applied in a foldable device according to any one of claims 1-5; the device comprises:
a determining module configured to determine a first holding state in which the foldable apparatus is currently held; wherein the first grip state is for indicating which hand of a user is holding the foldable device; determining a first folding zone corresponding to the first holding state from the corresponding relation between the holding state and the folding zone according to the first holding state;
the first display module is used for displaying virtual keys in the first folding area when the foldable equipment is in a folding state;
The detection module is used for detecting a first holding duration of the foldable equipment held in the second holding state when the holding state of the foldable equipment currently held is changed into the second holding state;
the switching module is used for switching the virtual key from the first folding area to a second folding area when the first holding time length reaches a first preset time length, wherein the second folding area is any folding area except the first folding area in the plurality of folding areas;
the first acquisition module is used for acquiring gesture operation of the virtual key when the virtual key is detected to be triggered;
and the execution module is used for executing the operation instruction corresponding to the gesture operation.
13. The apparatus of claim 12, wherein the apparatus further comprises:
the execution module is also used for acquiring operation parameters of the gesture operation; and executing the operation instruction corresponding to the gesture operation when the operation parameter meets the preset condition.
14. The apparatus of claim 12, wherein the first display module is further configured to display the virtual key in a first folding zone of the foldable device based on a display style of the virtual key, the display style being a default display style or a custom display style.
15. The apparatus of claim 14, wherein the apparatus further comprises:
the second display module is used for displaying a setting interface, and the setting interface comprises a plurality of candidate display patterns; acquiring a selected candidate display style; and setting the selected candidate display style as the display style of the virtual key.
16. The apparatus according to claim 12 or 14, characterized in that the apparatus further comprises:
the third obtaining module is used for obtaining the stored area identifier of the first folding area for displaying the virtual key, determining the first folding area corresponding to the area identifier based on the area identifier, wherein the area identifier is a default area identifier of the foldable device or an area identifier custom-set by the foldable device.
17. The apparatus of claim 12, wherein the apparatus further comprises:
the detection module is further used for determining whether an automatic switching function of the foldable equipment is started or not, and the automatic switching function is used for automatically switching a folding area where the virtual key is located; and when the automatic switching function is started, detecting a first holding duration of the foldable device held in the second holding state.
18. A foldable device, characterized in that the foldable device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: determining a first holding state in which the foldable device is currently held when the foldable device is in a folded state; wherein the first grip state is for indicating which hand of a user is holding the foldable device; determining a first folding zone corresponding to the first holding state from the corresponding relation between the holding state and the folding zone according to the first holding state; displaying virtual keys in the first folding area; detecting a first holding time length of the foldable equipment held in the second holding state when the holding state of the foldable equipment currently held is changed into the second holding state; when the first holding time length is detected to reach a first preset time length, switching the virtual key from the first folding area to a second folding area, wherein the second folding area is any folding area except the first folding area in the plurality of folding areas; when the virtual key is detected to be triggered, acquiring gesture operation of the virtual key triggered; and executing an operation instruction corresponding to the gesture operation.
19. A non-transitory computer readable storage medium, which when executed by a processor of a foldable device, causes the foldable device to perform the method of executing operational instructions of any of claims 6-11.
CN201811637135.3A 2018-12-29 2018-12-29 Foldable device, method, apparatus and storage medium for executing operation instruction Active CN111381669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811637135.3A CN111381669B (en) 2018-12-29 2018-12-29 Foldable device, method, apparatus and storage medium for executing operation instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811637135.3A CN111381669B (en) 2018-12-29 2018-12-29 Foldable device, method, apparatus and storage medium for executing operation instruction

Publications (2)

Publication Number Publication Date
CN111381669A CN111381669A (en) 2020-07-07
CN111381669B true CN111381669B (en) 2024-03-01

Family

ID=71216480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811637135.3A Active CN111381669B (en) 2018-12-29 2018-12-29 Foldable device, method, apparatus and storage medium for executing operation instruction

Country Status (1)

Country Link
CN (1) CN111381669B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108037893A (en) * 2017-12-29 2018-05-15 努比亚技术有限公司 A kind of display control method of flexible screen, device and computer-readable recording medium
CN108459815A (en) * 2018-03-16 2018-08-28 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN108664185A (en) * 2018-04-28 2018-10-16 努比亚技术有限公司 Picture display process, mobile terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488400A (en) * 2013-09-27 2014-01-01 京东方科技集团股份有限公司 Method and device for building virtual keyboard

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108037893A (en) * 2017-12-29 2018-05-15 努比亚技术有限公司 A kind of display control method of flexible screen, device and computer-readable recording medium
CN108459815A (en) * 2018-03-16 2018-08-28 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN108664185A (en) * 2018-04-28 2018-10-16 努比亚技术有限公司 Picture display process, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111381669A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
US10908772B2 (en) Method and apparatus for adjusting running state of smart housing device
US10063760B2 (en) Photographing control methods and devices
EP3136793B1 (en) Method and apparatus for awakening electronic device
EP3046016A1 (en) Method and apparatus for switching display mode
RU2630189C1 (en) Method of controlling button functions in one-hand operation mode, device and electronic device
JP2017535208A (en) Control method, control device, terminal device, program, and recording medium for adjusting photographing function
EP3136699A1 (en) Method and device for connecting external equipment
EP3076745B1 (en) Methods and apparatuses for controlling wireless access point
KR20170012179A (en) Text input method and device
JP6134870B2 (en) Description Information Display Method, Description Information Display Device, Electronic Device, Program, and Recording Medium
EP3249514A1 (en) Method and device for determining operation mode of terminal
CN104898505A (en) Smart scene configuration method and device
EP2924552B1 (en) Method and mobile terminal for executing user instructions
CN107229411B (en) Method and device for controlling split screen state
US10042328B2 (en) Alarm setting method and apparatus, and storage medium
JP6283749B2 (en) Method and apparatus for prompting device connection
CN107885418B (en) Terminal, split screen display method and device
CN111381669B (en) Foldable device, method, apparatus and storage medium for executing operation instruction
EP3731078A1 (en) Method and apparatus for responding to gesture operation and storage medium
CN110381213B (en) Screen display method and device, mobile terminal and storage medium
CN112905027A (en) Timing method and device, mobile terminal and storage medium
CN111258480A (en) Operation execution method and device based on display area and storage medium
US20160127196A1 (en) Device connection prompt
EP4053675A1 (en) Method and apparatus for controlling mobile terminal, and storage medium
US11637800B2 (en) Method and device for information processing of cross-devices, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant