CN106325719B - Gravity sensing is the same as manually controlling the screen rotation control method and system combined - Google Patents

Gravity sensing is the same as manually controlling the screen rotation control method and system combined Download PDF

Info

Publication number
CN106325719B
CN106325719B CN201610638958.2A CN201610638958A CN106325719B CN 106325719 B CN106325719 B CN 106325719B CN 201610638958 A CN201610638958 A CN 201610638958A CN 106325719 B CN106325719 B CN 106325719B
Authority
CN
China
Prior art keywords
screen
manual
rotation
button
screen locking
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
CN201610638958.2A
Other languages
Chinese (zh)
Other versions
CN106325719A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201610638958.2A priority Critical patent/CN106325719B/en
Publication of CN106325719A publication Critical patent/CN106325719A/en
Application granted granted Critical
Publication of CN106325719B publication Critical patent/CN106325719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a kind of gravity sensings with manually controlling the screen rotation control method and system combined, is related to screen rotation control technology field.The screen rotation control method includes: to create manual screen locking control button in APP, force transverse screen button and force vertical screen button;When user's rotating machinery and when needing Rotation screen direction, realize manual unlocking using manual screen locking control button, and by gravity sensing or the pressure transverse screen button of creation, force vertical screen button, realize the rotation of screen;When user's rotating machinery but when being not necessarily to Rotation screen direction, screen locking is realized using the existing vertical screen lock function of equipment or manual screen locking control button, forbids the rotation of screen.The present invention can need to realize screen rotation directly in APP according to user and the control of screen rotation is forbidden to operate, and enhance user experience.

Description

Gravity sensing is the same as manually controlling the screen rotation control method and system combined
Technical field
The present invention relates to screen rotation control technology fields, and being specifically a kind of gravity sensing combines with manually controlling Screen rotation control method and system.
Background technique
With the rapid development of Internet technology, it is logical that the intelligent terminals such as computer, mobile phone can be used in more and more users Cross network viewing Online Video live streaming.Online Video live streaming refers to the live video live streaming clothes carried out using Internet resource Business is synchronized by the video capture at scene and is published on network, and user can see real-time scene the same time on network Situation.But since the screen of intelligent terminal (such as mobile phone) usually has certain limitation, how in limited screen area Content abundant is shown in domain, becomes the problem that net cast field needs to solve.
Currently, the net cast APP (Application, application program) of mainstream has although there is the horizontal, vertical screen page Can only can be manually rotated, have can only gravity sensing rotation, do not have both simultaneously manual with automatic two ways.That is, When the intelligent terminal vertical screen lock function of user is closed (unlocked vertical screen), the rotation of screen, Zhi Neng cannot be forbidden manually Pass through the vertical screen locking press button control of intelligent terminal outside APP;Equally, it (is locked when the intelligent terminal vertical screen of user is locked and opened Determine vertical screen), screen can not be can be manually rotated, the vertical setting of types lock function of intelligent terminal can only be closed outside APP, then pass through gravity sensing Rotation.Existing this single control mode, although easily realize, it is inconvenient to use, especially as user in APP into When row real-time operation, the mode of screen rotation can not be controlled as needed at any time in APP, so that poor user experience.
Summary of the invention
The purpose of the invention is to overcome the shortcomings of above-mentioned background technique, a kind of gravity sensing is provided and manually controls phase In conjunction with screen rotation control method and system, can be realized directly in APP according to user's needs and screen rotation and forbid screen The control of rotation operates, and enhances user experience.
To achieve the above objectives, the present invention provides a kind of gravity sensing with manually controlling the screen rotation controlling party combined Method, comprising the following steps: S1: manual screen locking control button is created in APP, force transverse screen button and forces vertical screen button;S2: When user's rotating machinery and when needing Rotation screen direction, manual unlocking is realized using manual screen locking control button, and pass through weight The pressure transverse screen button of power induction or creation forces vertical screen button, realizes the rotation of screen;S3: when user's rotating machinery but When without Rotation screen direction, screen locking is realized using the existing vertical screen lock function of equipment or manual screen locking control button, is prohibited The only rotation of screen.
Based on the above technical solution, step S2 specifically includes following operation:
S201: when user's rotating machinery and when needing Rotation screen direction, it is existing perpendicular to judge whether current device is opened Shield lock function, if so, being transferred to S202;Otherwise, it is transferred to S203;
S202: the state of inquiry current manual screen locking, if the state of manual screen locking is to open, first with manual screen locking control The status modifier of manual screen locking is to close by button processed, is recycled the pressure transverse screen button of creation or is forced vertical screen button, realizes The rotation of screen;If the state of manual screen locking is to close, directly utilizes the pressure transverse screen button of creation or forces vertical screen button, It realizes the rotation of screen, terminates S2;
S203: the state of inquiry current manual screen locking, if the state of manual screen locking is to open, first with manual screen locking control The status modifier of manual screen locking is to close by button processed, and gravity sensing is recycled to realize the rotation of screen;If the shape of manual screen locking State is to close, then the rotation of screen is directly realized using gravity sensing, terminates S2.
Based on the above technical solution, step S3 specifically includes following operation: S301: when user's rotating machinery but nothing When needing Rotation screen direction, judge whether current device opens existing vertical screen lock function, if so, without carrying out any behaviour Make, terminates;Otherwise, it is transferred to S302;S302: the state of inquiry current manual screen locking, if the state of manual screen locking is to open, nothing Any operation need to be carried out, is terminated;If the state of manual screen locking is to close, need to utilize manual screen locking control button by manual screen locking Status modifier be open, realize manual screen locking, forbid the rotation of screen.
Based on the above technical solution, when judging whether current device opens existing vertical screen lock function, pass through Whether APP is able to respond automatic rotation screen function shouldAutorotate to be judged, if APP is able to respond, shows to erect Screen lock function is not opened;If APP can not be responded, show that vertical screen lock function is opened.
Based on the above technical solution, when inquiring the state of current manual screen locking, by inquiring Boolean type variable The value of isLocked determines that the state of manual screen locking shows that the state of manual screen locking is to open if the value of isLocked is YES It opens;If the value of isLocked is NO, show the state of manual screen locking to close;On this basis, it is pressed using manual screen locking control It is that the value of isLocked is accordingly revised as NO or YES when button turns off or on the status modifier of manual screen locking.
The present invention also provides a kind of gravity sensing with manually controlling the screen rotation control system combined simultaneously, including presses Button control creation module, screen rotation module and screen forbid rotary module.The button control creation module is used for: in APP It is interior to create manual screen locking control button, force transverse screen button and force vertical screen button;The screen rotation module is used for: working as user Rotating machinery and when needing Rotation screen direction, realizes manual unlocking using manual screen locking control button, and pass through gravity sensing Or pressure transverse screen button, the pressure vertical screen button of creation, realize the rotation of screen;The screen forbids rotary module to be used for: When user's rotating machinery but be not necessarily to Rotation screen direction when, utilize the existing vertical screen lock function of equipment or manual screen locking control Button realizes screen locking, forbids the rotation of screen.
Based on the above technical solution, the screen rotation module realizes the detailed process of screen rotation are as follows: when with Family rotating machinery and when needing Rotation screen direction, first judges whether current device opens existing vertical screen lock function;
If vertical screen lock function has turned on, the state of current manual screen locking is inquired, if the state of manual screen locking is to open, The status modifier of manual screen locking is closed first with manual screen locking control button, recycles the pressure transverse screen button or strong of creation Vertical screen button processed, realizes the rotation of screen;If the state of manual screen locking is to close, the pressure transverse screen button of creation is directly utilized Or vertical screen button is forced, realize the rotation of screen;
If vertical screen lock function is not opened, the state of current manual screen locking is inquired, if the state of manual screen locking is to open, The status modifier of manual screen locking is closed first with manual screen locking control button, gravity sensing is recycled to realize the rotation of screen Turn;If the state of manual screen locking is to close, the rotation of screen is directly realized using gravity sensing.
Based on the above technical solution, the screen forbids rotary module to forbid the detailed process of screen rotation are as follows: When user's rotating machinery but be not necessarily to Rotation screen direction when, first judge whether current device opens existing vertical screen lock function, If so, without carrying out any operation;Otherwise, the state of current manual screen locking is inquired, if the state of manual screen locking is to open, Without carrying out any operation;If the state of manual screen locking is to close, need to utilize manual screen locking control button by manual screen locking Status modifier is to open, and realizes manual screen locking, forbids the rotation of screen.
Based on the above technical solution, the screen rotation module or the screen forbid rotary module judgement current It is that automatic rotation screen function whether is able to respond by APP when whether equipment opens existing vertical screen lock function ShouldAutorotate is judged, if APP is able to respond, shows that vertical screen lock function is not opened;If APP can not Response then shows that vertical screen lock function is opened.
Based on the above technical solution, the screen rotation module or the screen forbid rotary module inquiry current It is the state that manual screen locking is determined by the value of inquiry Boolean type variable i sLocked when the state of manual screen locking, if The value of isLocked is YES, shows the state of manual screen locking to open;If the value of isLocked is NO, show manual screen locking State is to close;On this basis, the screen rotation module or the screen forbid rotary module to control using manual screen locking It is that the value of isLocked is accordingly revised as NO or YES when button turns off or on the status modifier of manual screen locking.
The beneficial effects of the present invention are:
The present invention in APP by creating three button controls: manual screen locking control button forces transverse screen button and pressure Vertical screen button, to control the rotation of screen.No matter whether equipment opens vertical screen lock function, can directly pass through wound in APP The button built achievees the purpose that Rotation screen or forbids Rotation screen.Compared with the single control mode of the prior art, this hair It is bright to carry out locking without being switched to outside APP and unlock operation, the flexible control whether screen rotates can be realized directly in APP, User experience can effectively be enhanced, user experience is good.
Detailed description of the invention
Fig. 1 is gravity sensing in the embodiment of the present invention with the process for manually controlling the screen rotation control method combined Figure;
Fig. 2 is the specific flow chart of step S2 in the embodiment of the present invention;
Fig. 3 is the specific flow chart of step S3 in the embodiment of the present invention;
Fig. 4 is gravity sensing in the embodiment of the present invention with the structural frames for manually controlling the screen rotation control system combined Figure.
Specific embodiment
Below by taking application scenarios are IOS system as an example, the present invention is made in conjunction with the drawings and the specific embodiments further detailed Thin description.
Shown in Figure 1, the embodiment of the present invention provides a kind of gravity sensing with manually controlling the screen rotation control combined Method processed, comprising the following steps:
Step S1: manual screen locking control button is created in APP, force transverse screen button and forces vertical screen button;Wherein, hand Dynamic screen locking control button is used to change the state of manual screen locking, to realize manual screen locking or manual unlocking;Force transverse screen button For forcing rotation to transverse screen direction by vertical screen direction screen direction;Vertical screen button is forced to be used to screen direction by transverse screen side It rotates to pressure to vertical screen direction.
Step S2: when user's rotating machinery (intelligent terminal) and when needing Rotation screen direction, manual screen locking control is utilized Button realizes manual unlocking, and by gravity sensing or the pressure transverse screen button of creation, pressure vertical screen button, realizes screen Rotation.
When practical operation, as shown in Fig. 2, step S2 specifically includes following operation:
Step S201: when user's rotating machinery and when needing Rotation screen direction, it is existing to judge whether current device is opened Vertical screen lock function, if so, being transferred to step S202;Otherwise, it is transferred to step S203;
Step S202: the state of inquiry current manual screen locking, if the state of manual screen locking is that (i.e. current screen is locked for unlatching It is fixed, do not allow to rotate), then it need to be to close (i.e. realization hand by the status modifier of manual screen locking first with manual screen locking control button Dynamic unlock), it then recycles the pressure transverse screen button of creation or forces vertical screen button, realize the rotation of screen;If manual screen locking State be close (i.e. current screen is not locked out, and allows to rotate), then directly using create pressure transverse screen button or pressure Vertical screen button realizes the rotation of screen, end step S2;
Step S203: the state of inquiry current manual screen locking, if the state of manual screen locking is that (i.e. current screen is locked for unlatching It is fixed, do not allow to rotate), then it need to be to close (i.e. realization hand by the status modifier of manual screen locking first with manual screen locking control button Dynamic unlock), then recycle gravity sensing to realize the rotation of screen;If the state of manual screen locking is to close that (i.e. current screen is not It is locked, allow to rotate), then the rotation of screen, end step S2 are directly realized using gravity sensing.
It is understood that when realizing the rotation of screen using gravity sensing, system can be responded first automatically in the present embodiment To rotary heavy duty function willRotateToInterfaceOrientation (showing that screen will rotate);Then, system meeting It is automatic to call driving rotary heavy duty function willAnimateRotationToInterfaceOrientation, work as realizing When gravity sensing equipment changes, screen will be rotated with equipment variations direction.
In the present invention it can be seen from aforesaid operations, no matter whether equipment opens existing vertical screen lock function, Dou Nengli It is controlled with manual screen locking control button, and finally realizes the rotation of screen.Operation difference is only that: when vertical screen lock function When unlatching, after carrying out manual unlocking using manual screen locking control button, the pressure transverse screen button or pressure created can only be utilized The rotation of vertical screen button realization screen;And when vertical screen lock function is closed, since the gravity sensing function of equipment can be used, As long as therefore guaranteeing that manual screen lock state is in off state, the rotation of screen is realized using gravity sensing.
Step S3: when user's rotating machinery but be not necessarily to Rotation screen direction when, utilize the existing vertical screen lock function of equipment Or manual screen locking control button realizes screen locking, forbids the rotation of screen.
When practical operation, as shown in figure 3, step S3 specifically includes following operation:
Step S301: when user's rotating machinery but be not necessarily to Rotation screen direction when, it is existing to judge whether current device is opened Vertical screen lock function, then without carrying out any operation, terminate if so, showing that current screen is locked, will not rotate; Otherwise, it is transferred to step S302;
Step S302: the state of inquiry current manual screen locking shows current screen quilt if the state of manual screen locking is to open Locking, will not rotate, then without carrying out any operation, terminates;If the state of manual screen locking is to close, show current screen It is not locked out, it may occur that rotation then needs using manual screen locking control button the status modifier of manual screen locking realizing hand to open Dynamic screen locking, forbids the rotation of screen.
Further, in this embodiment (the step when judging whether current device opens existing vertical screen lock function In S201 and step S301), it is that automatic rotation screen function shouldAutorotate whether is able to respond by APP to be judged , if APP is able to respond, show that vertical screen lock function is not opened;If APP can not be responded, show vertical screen lock function It opens.
Further, in the present embodiment, inquire current manual screen locking state when (step S202, step S203 and In step S302), it is the state that manual screen locking is determined by the value of inquiry Boolean type variable i sLocked, if The value of isLocked is YES, shows the state of manual screen locking to open;If the value of isLocked is NO, show manual screen locking State is to close.On this basis, when the status modifier of manual screen locking being turned off or on using manual screen locking control button, The value of isLocked is accordingly actually revised as NO or YES.
Shown in Figure 4, the embodiment of the present invention provides a kind of gravity sensing with manually controlling the screen rotation control combined System processed, including button control creation module, screen rotation module and screen forbid rotary module.
Wherein, button control creation module is used for: created in APP manual screen locking control button, force transverse screen button and Force vertical screen button;Manual screen locking control button is used to change the state of manual screen locking, to realize manual screen locking or manually solution Lock;Transverse screen button is forced to be used to force rotation to transverse screen direction by vertical screen direction screen direction;Forcing vertical screen button to be used to will Screen direction forces rotation to vertical screen direction by transverse screen direction.
Screen rotation module is used for: when user's rotating machinery and when needing Rotation screen direction, utilizing manual screen locking control Button realizes manual unlocking, and by gravity sensing or the pressure transverse screen button of creation, pressure vertical screen button, realizes screen Rotation.Its concrete operations process are as follows: when user's rotating machinery and when needing Rotation screen direction, first judge whether current device is opened Open existing vertical screen lock function;
If vertical screen lock function has turned on, the state of current manual screen locking is inquired, if the state of manual screen locking is to open, The status modifier of manual screen locking is closed first with manual screen locking control button, recycles the pressure transverse screen button or strong of creation Vertical screen button processed, realizes the rotation of screen;If the state of manual screen locking is to close, the pressure transverse screen button of creation is directly utilized Or vertical screen button is forced, realize the rotation of screen;It is understood that realizing screen using gravity sensing in the present embodiment When rotation, screen rotation module can be responded first automatically to rotary heavy duty function willRotateToInterfaceOrientation (showing that screen will rotate);Then, screen rotation module can call driving rotary heavy duty function willAnimateRot automatically AtionToInterfaceOrientation, for realizing that screen will be with equipment variations when gravity sensing equipment changes Direction rotates.
If vertical screen lock function is not opened, the state of current manual screen locking is inquired, if the state of manual screen locking is to open, The status modifier of manual screen locking is closed first with manual screen locking control button, gravity sensing is recycled to realize the rotation of screen Turn;If the state of manual screen locking is to close, the rotation of screen is directly realized using gravity sensing.
Screen forbids rotary module to be used for: existing using equipment when user's rotating machinery but when being not necessarily to Rotation screen direction Vertical screen lock function or manual screen locking control button realize screen locking, forbid the rotation of screen.Its concrete operations process are as follows: when User's rotating machinery but be not necessarily to Rotation screen direction when, first judge whether current device opens existing vertical screen lock function, if It is, then without carrying out any operation;Otherwise, the state of current manual screen locking is inquired, if the state of manual screen locking is to open, nothing It need to carry out any operation;If the state of manual screen locking is to close, need to utilize manual screen locking control button by the shape of manual screen locking State is revised as opening, and realizes manual screen locking, forbids the rotation of screen.
Further it will be understood that screen rotation module or screen forbid rotary module judging whether current device is opened When opening existing vertical screen lock function, be whether be able to respond by APP automatic rotation screen function shouldAutorotate come into Row judgement, if APP is able to respond, show that vertical screen lock function is not opened;If APP can not be responded, show that vertical screen is locked Determine function unlatching.
In addition to this, screen rotation module or screen forbid rotary module when inquiring the state of current manual screen locking, It is to determine the state of manual screen locking by inquiring the value of Boolean type variable i sLocked, if the value of isLocked is YES, Show the state of manual screen locking to open;If the value of isLocked is NO, show the state of manual screen locking to close;Also, On the basis of this, screen rotation module or screen forbid rotary module using manual screen locking control button by the state of manual screen locking It is that the value of isLocked is accordingly revised as NO or YES when being revised as turning off or on.
It should be understood that system provided by the above embodiment is when being operated, only drawing with above-mentioned each functional module Divide and be illustrated, in practical application, can according to need and be completed by different functional modules above-mentioned function distribution, i.e., The internal structure of system is divided into different functional modules, to complete all or part of the functions described above.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention Within the scope of.
The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (8)

1. a kind of gravity sensing is the same as manually controlling the screen rotation control method combined, which is characterized in that this method include with Lower step:
S1: manual screen locking control button is created in APP, force transverse screen button and forces vertical screen button;
S2: when user's rotating machinery and when needing Rotation screen direction, realizing manual unlocking using manual screen locking control button, and By gravity sensing or the pressure transverse screen button of creation, vertical screen button is forced, realizes the rotation of screen;
S3: when user's rotating machinery but be not necessarily to Rotation screen direction when, using the existing vertical screen lock function of equipment or manually Screen locking control button realizes screen locking, forbids the rotation of screen;
Wherein, step S2 specifically includes following operation:
S201: when user's rotating machinery and when needing Rotation screen direction, judge whether current device opens existing vertical screen lock Function is determined, if so, being transferred to S202;Otherwise, it is transferred to S203;
S202: the state of inquiry current manual screen locking is pressed if the state of manual screen locking is to open first with manual screen locking control The status modifier of manual screen locking is to close by button, is recycled the pressure transverse screen button of creation or is forced vertical screen button, realizes screen Rotation;If the state of manual screen locking is to close, directly using the pressure transverse screen button of creation or pressure vertical screen button, realize The rotation of screen terminates S2;
S203: the state of inquiry current manual screen locking is pressed if the state of manual screen locking is to open first with manual screen locking control The status modifier of manual screen locking is to close by button, and gravity sensing is recycled to realize the rotation of screen;If the state of manual screen locking is It closes, then directly realizes the rotation of screen using gravity sensing, terminate S2.
2. gravity sensing as described in claim 1 is the same as manually controlling the screen rotation control method combined, which is characterized in that Step S3 specifically includes following operation:
S301: when user's rotating machinery but when being not necessarily to Rotation screen direction, judge whether current device opens existing vertical screen lock Function is determined, if so, terminating without carrying out any operation;Otherwise, it is transferred to S302;
S302: the state of inquiry current manual screen locking, without carrying out any operation, is tied if the state of manual screen locking is to open Beam;If the state of manual screen locking is to close, need the status modifier of manual screen locking using manual screen locking control button to open, It realizes manual screen locking, forbids the rotation of screen.
3. gravity sensing as claimed in claim 1 or 2 exists with manually controlling the screen rotation control method combined, feature In: when judging whether current device opens existing vertical screen lock function, whether automatic rotation screen function is able to respond by APP ShouldAutorotate is judged, if APP is able to respond, shows that vertical screen lock function is not opened;If APP can not Response then shows that vertical screen lock function is opened.
4. gravity sensing as claimed in claim 1 or 2 exists with manually controlling the screen rotation control method combined, feature In: when inquiring the state of current manual screen locking, manual screen locking is determined by inquiring the value of Boolean type variable i sLocked State shows the state of manual screen locking if the value of isLocked is YES to open;If the value of isLocked is NO, show manually The state of screen locking is to close;
On this basis, using manual screen locking control button by the status modifier of manual screen locking be turn off or on when, be by The value of isLocked is accordingly revised as NO or YES.
5. a kind of gravity sensing is the same as manually controlling the screen rotation control system combined, it is characterised in that: the system includes pressing Button control creation module, screen rotation module and screen forbid rotary module;
The button control creation module is used for: being created manual screen locking control button in APP, is forced transverse screen button and force perpendicular Shield button;
The screen rotation module is used for: when user's rotating machinery and when needing Rotation screen direction, utilizing manual screen locking control Button realizes manual unlocking, and by gravity sensing or the pressure transverse screen button of creation, pressure vertical screen button, realizes screen Rotation;
The screen forbids rotary module to be used for: existing using equipment when user's rotating machinery but when being not necessarily to Rotation screen direction Vertical screen lock function or manual screen locking control button realize screen locking, forbid the rotation of screen;
Wherein, the screen rotation module realizes the detailed process of screen rotation are as follows: when user's rotating machinery and needs rotary screen When curtain direction, first judge whether current device opens existing vertical screen lock function;
If vertical screen lock function has turned on, the state of current manual screen locking is inquired, it is first sharp if the state of manual screen locking is to open By the status modifier of manual screen locking it is closing with manual screen locking control button, recycles the pressure transverse screen button of creation or force perpendicular Shield button, realizes the rotation of screen;If the state of manual screen locking is to close, directly using the pressure transverse screen button of creation or by force Vertical screen button processed, realizes the rotation of screen;
If vertical screen lock function is not opened, the state of current manual screen locking is inquired, it is first sharp if the state of manual screen locking is to open By the status modifier of manual screen locking it is closing with manual screen locking control button, gravity sensing is recycled to realize the rotation of screen;If The state of manual screen locking is to close, then the rotation of screen is directly realized using gravity sensing.
6. gravity sensing as claimed in claim 5 is the same as manually controlling the screen rotation control system combined, it is characterised in that: The screen forbids rotary module to forbid the detailed process of screen rotation are as follows: when user's rotating machinery but is not necessarily to Rotation screen direction When, first judge whether current device opens existing vertical screen lock function, if so, without carrying out any operation;Otherwise, it inquires The state of current manual screen locking, if the state of manual screen locking is to open, without carrying out any operation;If the state of manual screen locking To close, then need using manual screen locking control button to realize manual screen locking, forbid shielding the status modifier of manual screen locking to open The rotation of curtain.
7. as gravity sensing described in claim 5 or 6 exists with manually controlling the screen rotation control system combined, feature In: the screen rotation module or the screen forbid rotary module to judge whether current device opens existing vertical screen locking function It is that automatic rotation screen function shouldAutorotate whether is able to respond by APP to be judged, if APP can be rung when energy It answers, then shows that vertical screen lock function is not opened;If APP can not be responded, show that vertical screen lock function is opened.
8. as gravity sensing described in claim 5 or 6 exists with manually controlling the screen rotation control system combined, feature In: it is to pass through inquiry when the screen rotation module or the screen forbid the state of rotary module inquiry current manual screen locking The value of Boolean type variable i sLocked determines that the state of manual screen locking shows manual lock if the value of isLocked is YES The state of screen is to open;If the value of isLocked is NO, show the state of manual screen locking to close;
On this basis, the screen rotation module or the screen forbid rotary module to utilize manual screen locking control button by hand The status modifier of screen locking is moved to be that the value of isLocked is accordingly revised as NO or YES when turning off or on.
CN201610638958.2A 2016-08-05 2016-08-05 Gravity sensing is the same as manually controlling the screen rotation control method and system combined Active CN106325719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610638958.2A CN106325719B (en) 2016-08-05 2016-08-05 Gravity sensing is the same as manually controlling the screen rotation control method and system combined

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610638958.2A CN106325719B (en) 2016-08-05 2016-08-05 Gravity sensing is the same as manually controlling the screen rotation control method and system combined

Publications (2)

Publication Number Publication Date
CN106325719A CN106325719A (en) 2017-01-11
CN106325719B true CN106325719B (en) 2019-09-10

Family

ID=57739786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610638958.2A Active CN106325719B (en) 2016-08-05 2016-08-05 Gravity sensing is the same as manually controlling the screen rotation control method and system combined

Country Status (1)

Country Link
CN (1) CN106325719B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234763B (en) * 2017-12-29 2021-02-26 阿里巴巴(中国)有限公司 Horizontal and vertical screen switching method and device and terminal
CN109451159A (en) * 2018-11-09 2019-03-08 长沙龙生光启新材料科技有限公司 A kind of Intelligent mobile equipment
CN112948037B (en) * 2021-02-08 2023-09-26 深圳市慧为智能科技股份有限公司 Application display direction control method, system, equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799370A (en) * 2012-06-29 2012-11-28 珠海金山办公软件有限公司 Method and system for controlling rotation of screen of touch terminal
CN103425401A (en) * 2013-08-21 2013-12-04 乐视网信息技术(北京)股份有限公司 Method for adjusting file playing angle and electronic terminal
CN103677571A (en) * 2013-12-20 2014-03-26 乐视网信息技术(北京)股份有限公司 Method, module and system for locking screen direction and gravity sensing module
CN104391634A (en) * 2014-11-26 2015-03-04 北京京东尚科信息技术有限公司 Method for automatically controlling screen rotating mode of mobile terminal based on user panting
CN104991752A (en) * 2015-07-17 2015-10-21 小米科技有限责任公司 Method and device for controlling screen to rotate
CN105487797A (en) * 2015-11-25 2016-04-13 广东欧珀移动通信有限公司 Screen display mode control method and terminal device
CN105589636A (en) * 2014-10-24 2016-05-18 中国电信股份有限公司 Method and mobile terminal used for realizing virtual pointer control on touch screen
CN105700672A (en) * 2014-11-27 2016-06-22 小米科技有限责任公司 Screen rotation processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201237728A (en) * 2011-03-08 2012-09-16 Acer Inc Screen rotation lock methods and systems, and computer program products thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799370A (en) * 2012-06-29 2012-11-28 珠海金山办公软件有限公司 Method and system for controlling rotation of screen of touch terminal
CN103425401A (en) * 2013-08-21 2013-12-04 乐视网信息技术(北京)股份有限公司 Method for adjusting file playing angle and electronic terminal
CN103677571A (en) * 2013-12-20 2014-03-26 乐视网信息技术(北京)股份有限公司 Method, module and system for locking screen direction and gravity sensing module
CN105589636A (en) * 2014-10-24 2016-05-18 中国电信股份有限公司 Method and mobile terminal used for realizing virtual pointer control on touch screen
CN104391634A (en) * 2014-11-26 2015-03-04 北京京东尚科信息技术有限公司 Method for automatically controlling screen rotating mode of mobile terminal based on user panting
CN105700672A (en) * 2014-11-27 2016-06-22 小米科技有限责任公司 Screen rotation processing method and device
CN104991752A (en) * 2015-07-17 2015-10-21 小米科技有限责任公司 Method and device for controlling screen to rotate
CN105487797A (en) * 2015-11-25 2016-04-13 广东欧珀移动通信有限公司 Screen display mode control method and terminal device

Also Published As

Publication number Publication date
CN106325719A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN106325719B (en) Gravity sensing is the same as manually controlling the screen rotation control method and system combined
CN104050743B (en) A kind of set up defences supervisory system and the method for gate control system
CN104902430B (en) The flow control methods and system of intelligent terminal
CN104301891A (en) Method and system for interconnecting intelligent device and WiFi router
CN103901844A (en) Intelligent home control method and system based on Alljoyn technology
CN106850719A (en) A kind of data transmission method and device
DE102011013469A1 (en) TRUSTED GROUP OF A MULTIPLE OF FACILITIES WITH A SAFE AUTHENTICATION WITH SINGLE SIGN-ON
CN105354900A (en) Intelligent door lock snapshot method and system thereof
CN102542641A (en) Door control system for building
CN106550194A (en) Photographic method, device and mobile terminal
CN107547820A (en) Building talkback entrance guard controlling method and system based on Quick Response Code
CN107222519A (en) A kind of method that remote access to intranet equipment is realized based on outer net
CN108222752A (en) A kind of electric window interlock method and system based on cloud lock
CN106709292A (en) Terminal permission control method and system
CN205754647U (en) A kind of based on 4G wireless network intelligent building conversational system
CN105517286B (en) A kind of intelligence WIFI lamp control system and its control method
CN106559258A (en) Mobile terminal management-control method and system
CN104967762A (en) Configuration method for wireless Internet camera and configuration system thereof
CN204166592U (en) A kind of dynamic puzzle-lock
CN109300212A (en) A kind of automatic door locks
CN108305359A (en) A kind of electric power warehouse electronic access control system and method
CN106096383A (en) Automatically mobile terminal and the method thereof of unlocking pin are changed
CN208819314U (en) A kind of intelligent door lock and inbox interactive system
CN106919305A (en) A kind of method of control intelligent household
CN107450913B (en) ExtJS-based window component access control method

Legal Events

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