WO2021073549A1 - Screen rotation picture display method and apparatus, computer device, and storage medium - Google Patents

Screen rotation picture display method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2021073549A1
WO2021073549A1 PCT/CN2020/121004 CN2020121004W WO2021073549A1 WO 2021073549 A1 WO2021073549 A1 WO 2021073549A1 CN 2020121004 W CN2020121004 W CN 2020121004W WO 2021073549 A1 WO2021073549 A1 WO 2021073549A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
switching
trigger
type
trigger operation
Prior art date
Application number
PCT/CN2020/121004
Other languages
French (fr)
Chinese (zh)
Inventor
郭鸿年
Original Assignee
深圳市万普拉斯科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市万普拉斯科技有限公司 filed Critical 深圳市万普拉斯科技有限公司
Publication of WO2021073549A1 publication Critical patent/WO2021073549A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • This application relates to the field of electronic equipment control technology, and in particular to a method, device, computer equipment, and storage medium for displaying a screen-turning picture.
  • smart electronic devices such as smart phones and tablet computers have been widely used. People can realize online social entertainment and online social entertainment through applications installed on smart electronic devices, such as social applications and shopping platform applications. Shopping has greatly facilitated people's work, life and entertainment. Different applications have different display requirements on electronic devices, such as game applications that need to be displayed on the horizontal screen, social applications that need to be displayed on the vertical screen, etc.
  • the electronic device will also be based on the actual situation, such as the position of the electronic device is horizontal. Put or stand to automatically switch between horizontal and vertical screens, so that the display screen of the electronic device screen can be kept upright, so that it is convenient for users to watch.
  • a method for displaying a screen switching screen comprising: when a screen switching event is detected, determining a screen switching trigger operation that triggers the screen switching event; determining the trigger type to which the screen switching trigger operation that triggers the screen switching event belongs; determining the trigger The type corresponds to the preset switching screen; when the horizontal and vertical screen switching processing is performed according to the switching event, the switching screen corresponding to the trigger type is displayed.
  • determining the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event includes: querying the switching process corresponding to the screen switching trigger operation that triggers the screen switching event; determining the switching type function from the switching process; The type function and the instruction corresponding to the screen switching trigger operation determine the trigger type corresponding to the screen switching trigger operation.
  • determining the trigger type corresponding to the screen switching trigger operation according to the switching type function and the instruction corresponding to the screen switching trigger operation includes: querying a preset trigger type table, and the trigger type table records each switching type function and each switching type function.
  • the instruction corresponding to the screen switching trigger operation corresponds to the corresponding trigger type of each screen switching trigger operation; the trigger type corresponding to the screen switching trigger operation is determined according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table.
  • determining the trigger type corresponding to the screen switching trigger operation according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table includes: querying the preset type to determine the priority; determining the priority according to the type from In the order of high to low, the switching type function, the instruction corresponding to the screen switching trigger operation and the trigger type table are type-matched to obtain the type matching result; the trigger type corresponding to the screen switching trigger operation is determined according to the type matching result.
  • it further includes: when a configuration event for the trigger type table is detected, displaying the type table configuration interface corresponding to the trigger type table; after triggering the type table configuration operation for the type table configuration interface, obtaining the passed type The type table configuration data generated by the table configuration operation; the trigger type table is updated and configured according to the type table configuration data.
  • the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, switching between multitasking and applications, switching between desktop startup applications, switching back to desktop, and switching between applications; according to the switching type function, switching
  • the instruction and trigger type table corresponding to the screen trigger operation determine the trigger type corresponding to the screen switch trigger operation, including: when the function value of the switch type function includes the lock screen label, determine the trigger type corresponding to the screen switch trigger operation as the lock screen interface switch ;
  • the instruction corresponding to the screen switching trigger operation includes the notification bar label, determine that the trigger type corresponding to the screen switching trigger operation belongs to the notification bar switch;
  • the instruction corresponding to the screen switching trigger operation includes the multi-task reference switching label, determine the screen switching trigger
  • the trigger type corresponding to the operation is multitasking and switching between applications; when the instruction corresponding to the screen switching trigger operation includes the desktop startup tag, it is determined that the trigger type corresponding to the screen switching trigger operation is desktop startup application switching; when the screen switching trigger operation corresponds to When the instruction includes the “return
  • it further includes: when it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, determining that the trigger type corresponding to the screen switching trigger operation belongs to the native screen switching.
  • determining that the trigger type corresponds to the preset screen conversion includes: querying the preset screen conversion screen library, the screen conversion screen library records the corresponding relationship between each trigger type and each screen conversion screen; according to the trigger The type performs screen matching in the screen transfer screen library to obtain the screen matching result; according to the screen matching result, the preset screen transfer screen corresponding to the trigger type is determined.
  • it further includes: when a configuration event for the screen library is detected, displaying the screen library configuration interface corresponding to the screen library; after triggering the screen library configuration operation for the screen library configuration interface, obtaining The configuration data of the screen library generated by the configuration operation of the screen library; the screen library is transferred according to the configuration data of the screen library.
  • a screen-turning picture display device comprising: a trigger operation determining module for determining a screen-turning trigger operation that triggers the screen-turning event when a screen-turning event is detected; a trigger type determining module for determining the triggering of the screen-turning event
  • the screen-turning trigger operation of the event corresponds to the trigger type it belongs to;
  • the screen-turning screen determination module is used to determine the trigger type corresponding to the preset screen-turning screen;
  • the screen-turning display module is used to switch between horizontal and vertical screens according to the screen-turning event To display the screen transition corresponding to the trigger type.
  • a computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: when a screen switching event is detected, the screen switching trigger operation that triggers the screen switching event is determined; the screen switching is determined to be triggered The screen switching trigger operation of the event corresponds to the trigger type to which it belongs; the trigger type is determined to correspond to the preset screen switching screen; when the horizontal and vertical screen switching processing is performed according to the screen switching event, the screen switching corresponding to the trigger type is displayed.
  • the screen switching trigger operation that triggers the screen switching event is determined; the screen switching event is determined to be triggered
  • the screen switching trigger operation corresponds to the trigger type; the trigger type is determined to correspond to the preset screen switching; when the horizontal and vertical screen switching processing is performed according to the screen switching event, the screen switching corresponding to the trigger type is displayed.
  • the above-mentioned display method, device, computer equipment and storage medium of the screen-turning screen determine the preset screen-turning screen corresponding to the trigger type corresponding to the screen-turning trigger operation that triggers the screen-turning event, and when performing horizontal and vertical screen switching processing according to the screen-turning event , To display the screen-shifting screen, and to switch the screen-shifting scenes of different trigger types by displaying the corresponding screen-shifting screens, which can effectively reflect the characteristics of the screen-shifting scene and improve the flexibility of screen-shifting processing.
  • FIG. 1 is an application environment diagram of a method for displaying a screen-shifting screen in an embodiment
  • FIG. 2 is a schematic flowchart of a method for displaying a screen-shifting screen in an embodiment
  • FIG. 3 is a schematic flowchart of configuring a trigger type table in an embodiment
  • Figure 4 is a schematic diagram of a type table configuration interface in another embodiment
  • Fig. 5 is a structural block diagram of an embodiment of a screen display device for switching screens
  • Fig. 6 is an internal structure diagram of a computer device in an embodiment.
  • the screen display method provided by this application can be applied to the application environment as shown in FIG. 1.
  • the terminal 102 determines the preset switch screen according to the trigger type corresponding to the trigger operation that triggers the screen switch event.
  • the screen switching event performs the horizontal and vertical screen switching processing
  • the screen switched screen is displayed, thereby realizing the horizontal and vertical screen switching of the terminal 102 screen.
  • the terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • a method for displaying a screen-turned screen is provided. Taking the method applied to the terminal in FIG. 1 as an example for description, the method includes the following steps.
  • Step S202 When a screen switching event is detected, a screen switching trigger operation that triggers the screen switching event is determined.
  • an event is a discovered behavior or an occurrence, and the event may be processed.
  • the event can be the behavior of the system itself, such as the behavior of automatically reporting positioning data triggered by the system, or user behavior, such as the user touching the terminal screen.
  • the screen switching event refers to the event of the screen switching process, generally a horizontal and vertical screen switching, that is, the terminal screen is switched from a horizontal screen state to a vertical screen state, or from a vertical screen state to a horizontal screen state.
  • the screen change event is onConfigurationChanged.
  • the screen-turning trigger operation is an operation that triggers a screen-turning event, which can be a user behavior. For example, a user clicks to launch an application displayed on a horizontal screen and triggers a screen-turning event, or when the user places the terminal horizontally, a screen-turning event is triggered.
  • the event that occurs is detected.
  • the screen switching event indicates that the screen switching process has been triggered, and the screen switching trigger operation that triggers the screen switching event is further determined.
  • the screen switching event can be analyzed and tracked.
  • the corresponding screen switching scene can be determined. For example, it can switch scenes between horizontal and vertical screens between applications, switch back to desktop switching scenes for horizontal screen multitasking, start horizontal screen applications on the desktop, or
  • the horizontal screen application returns to the desktop to switch scenes, the horizontal and vertical screen switching scenes between the multitasking interface and the application, the lock screen interface enters the horizontal screen application switching scene, or the horizontal and vertical screen switching scene between the floating window and the application, etc.
  • Step S204 Determine the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event.
  • the trigger type is obtained by classifying the screen switching trigger operation. For example, it can be classified according to the scene corresponding to the screen switching trigger operation, and the trigger type corresponding to each screen switching trigger operation can be determined.
  • the trigger type can be flexibly set according to actual needs, such as classifying each screen-turning trigger operation based on a predetermined division condition, so as to realize the flexible setting of the trigger type.
  • step S206 it is determined that the trigger type corresponds to the preset screen transition.
  • the screen-turning screen is the content that is displayed on the terminal screen when the screen-turning process is being performed, specifically when switching between horizontal and vertical screens.
  • the screen transition can be animation, image and other types of display content.
  • different trigger types are preset with corresponding screen-turning screens, and the corresponding screen-turning screens can specifically reflect the characteristics of the screen-turning scene of the trigger type, which improves the flexibility of screen-turning processing, thereby improving end users’ Use experience.
  • the screen switching trigger operation that triggers the screen switching event corresponds to the trigger type to which it belongs
  • the screen-shifting screen corresponding to the trigger type can be determined from the preset screen-shifting screen library.
  • step S208 when the horizontal and vertical screen switching processing is performed according to the screen switching event, the screen switching screen corresponding to the trigger type is displayed.
  • the terminal screen After determining the preset switch screen corresponding to the trigger type, when the horizontal and vertical screen switching processing is performed according to the switching event, for example, for the Android operating system, when performing the horizontal and vertical screen switching processing, the terminal screen will be redrawn and displayed at this time Trigger the screen transition corresponding to the type, so as to realize the switching of the screen before and after the screen transition of the terminal screen.
  • the preset screen-turning screen is determined according to the trigger type to which the screen-turning trigger operation that triggers the screen-turning event belongs, and the screen-turning screen is displayed when the horizontal and vertical screen switching processing is performed according to the screen-turning event,
  • the screen switching scenes of different trigger types are switched by displaying the corresponding screen switching screens, which can effectively reflect the characteristics of the screen switching scenes and improve the flexibility of the screen switching processing.
  • determining the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event includes: querying the switching process corresponding to the screen switching trigger operation that triggers the screen switching event; determining the switching type function from the switching process; according to the switching type The function and the instruction corresponding to the screen switching trigger operation determine the trigger type corresponding to the screen switching trigger operation.
  • the trigger type corresponding to the screen switching trigger operation is determined according to the switching type function determined in the switching process corresponding to the screen switching trigger operation and the instruction corresponding to the screen switching trigger operation. Specifically, when it is determined that the screen switching trigger operation that triggers the screen switching event corresponds to the trigger type to which it belongs, the switching process corresponding to the screen switching trigger operation that triggers the screen switching event is queried.
  • the switching process may be a process of performing screen switching processing after triggering a screen switching event, and the switching process is implemented by multiple functions.
  • the switching process corresponding to the screen switching trigger operation is AppTransition, and AppTransition implements the screen switching process through multiple functions. Determine the switching type function from the switching process.
  • the switching type function is a function marked with the switching type.
  • the corresponding trigger type can be initially determined based on the function value of the switching type function. If the switching type function is AppTransitionType in the Android system, it will be based on the AppTransitionType.
  • the function value can preliminarily determine the trigger type.
  • the trigger type is further based on the instruction corresponding to the screen switching trigger operation, such as the label in the instruction corresponding to the screen switching trigger operation, combined with the switching type function to determine the trigger type corresponding to the screen switching trigger operation, so as to accurately determine the triggering of the screen switching event
  • the flip-screen trigger operation corresponds to the trigger type it belongs to.
  • determining the trigger type corresponding to the screen switching trigger operation according to the switching type function and the instruction corresponding to the screen switching trigger operation includes: querying a preset trigger type table, and the trigger type table records each switching type function and each switching type.
  • the instruction corresponding to the screen trigger operation is corresponding to the corresponding trigger type of each screen switching trigger operation; the trigger type corresponding to the screen switching trigger operation is determined according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table.
  • the preset trigger type table is combined with the switching type function and the instruction corresponding to the screen switching trigger operation to determine the trigger type corresponding to the screen switching trigger operation. Specifically, when the trigger type corresponding to the screen switching trigger operation is determined according to the instruction corresponding to the switching type function and the screen switching trigger operation, the preset trigger type table is queried, and the trigger type table records each switching type function and each screen switching trigger The instruction corresponding to the operation is corresponding to the corresponding trigger type of each screen-turning trigger operation.
  • the trigger type table records various screen-turning trigger operations corresponding to their respective trigger types, and the trigger type table can be flexibly configured by the user. After the trigger type table is obtained, the trigger type corresponding to the screen switch trigger operation is determined according to the switch type function, the instruction corresponding to the screen switch trigger operation, and the trigger type table.
  • the various trigger types recorded in the trigger type table can include TRANSIT_TASK_OPEN (create a new task and create a window), TRANSIT_TASK_OPEN_BEHIND (hang the new task to run in the background), TRANSIT_TASK_TO_FRONT (move the task) To the top), TRANSIT_ACTIVITY_OPEN (open a window at the top in the same task), TRANSIT_ACTIVITY_RELAUNCH (reopen a window at the top in the same task), TRANSIT_TASK_CLOSE (close the current active window and return to the previous task), TRANSIT_TASK_TO_BACK( Move the current task to the end), TRANSIT_TASK_IN_PLACE (draw animation on the spot), TRANSIT_ACTIVITY_CLOSE (close the current active window, restore the previous window in the same task), TRANSIT_KEYGUARD_GOING_AWAY (lock screen), etc.
  • determining the trigger type corresponding to the screen switching trigger operation according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table includes: querying the preset type to determine the priority; determining the priority according to the type from higher In the lowest order, the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table are type-matched to obtain the type matching result; the trigger type corresponding to the screen switching trigger operation is determined according to the type matching result.
  • the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table are type-matched in the order of priority, so as to determine the trigger type corresponding to the screen switching trigger operation.
  • query the preset type to determine the priority and the type determination priority can be flexibly set according to actual needs.
  • the trigger type with higher frequency can be set to higher
  • the priority is matched first.
  • the type determination priority can be set by the user based on personal habits, or can be analyzed based on user data of the user and dynamically adjusted according to the trigger frequency of each trigger type.
  • type matching is performed on the switching type function, the instruction corresponding to the screen switching trigger operation and the trigger type table, and the type matching result is obtained.
  • the priority of the type the order of priority is from high to low, and the switching type function, the instruction corresponding to the screen switching trigger operation and the trigger type table are matched in sequence. Specifically, the function value and/or of the switching type function can be matched.
  • the label in the instruction corresponding to the screen switching trigger operation is matched with the trigger type table, and the type matching result is obtained.
  • the trigger type corresponding to the screen switching trigger operation is determined according to the type matching result. For example, the trigger type corresponding to the successful matching in the type matching result can be used as the trigger type corresponding to the screen switching trigger operation.
  • FIG. 3 it further includes the processing of configuring the trigger type table, which specifically includes the following steps.
  • Step S302 When a configuration event for the trigger type table is detected, a type table configuration interface corresponding to the trigger type table is displayed.
  • the trigger type table is configured according to the configuration event for the trigger type table, so as to realize the flexible setting of the trigger type table. Specifically, if a configuration event for the trigger type table is detected, it indicates that the trigger type table needs to be configured. For example, the end user touches and clicks the configuration control for the trigger type table in the interface to trigger the corresponding configuration event, and the trigger type is displayed Table corresponding to the type table configuration interface.
  • This type table configuration interface can display the trigger types included in the trigger type table and the corresponding activation state, that is, whether it is effective.
  • FIG. 4 it is a schematic diagram of a type table configuration interface in an embodiment, and the figure shows the types of trigger types and whether various trigger types are activated or not.
  • the type table configuration interface can be flexibly set according to actual needs. For example, after clicking various trigger types, you can enter the configuration sub-interface of the trigger type to further perform specific configuration processing in the configuration sub-interface.
  • Step S304 After triggering the type table configuration operation for the type table configuration interface, obtain the type table configuration data generated by the type table configuration operation.
  • the terminal user After displaying the type table configuration interface corresponding to the trigger type table, the terminal user can perform operations on the type table configuration interface. After the type table configuration operation on the type table configuration interface is triggered, the type table configuration data generated by the type table configuration operation is obtained.
  • the type table configuration data includes the configuration operation data triggered by the user in the type table configuration interface, such as adding, deleting, and switching the activation state of the trigger type.
  • step S306 the trigger type table is updated and configured according to the type table configuration data.
  • the trigger type table is updated and configured based on the type table configuration data, that is, the trigger type table is updated and configured according to the configuration operation of the terminal user on the trigger type table, so that the end user can set the trigger type table flexibly .
  • the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching; according to the switching type function, screen switching
  • the instruction and trigger type table corresponding to the trigger operation determines the trigger type corresponding to the screen switch trigger operation, including: when the function value of the switch type function includes the lock screen label, determine the trigger type corresponding to the screen switch trigger operation as the lock screen interface switch; When the instruction corresponding to the screen switching trigger operation includes the notification bar label, determine that the trigger type corresponding to the screen switching trigger operation belongs to notification bar switching; when the instruction corresponding to the screen switching trigger operation includes the multi-task reference switching label, determine the screen switching trigger operation The corresponding trigger type is multitasking and switching between applications; when the instruction corresponding to the screen switching trigger operation includes the desktop startup tag, it is determined that the trigger type corresponding to the screen switching trigger operation is desktop startup application switching; when the screen switching trigger operation corresponds to When the instruction includes the “Back to Desktop” tab, determine that the trigger
  • the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching, which are triggered according to the switching type function and screen switching.
  • the instruction corresponding to the operation determines the trigger type to which the screen-turning trigger operation corresponds.
  • the lock screen interface switch signifies that the screen needs to be switched when the lock screen is triggered
  • the notification bar switch signifies that the screen switch event is triggered when the application is launched through the notification bar
  • the multitasking and switching between applications signifies the switching between multiple tasks and applications.
  • the desktop startup application switching characterization triggers the screen transition event when the application is started from the terminal desktop
  • the return desktop switching characterization triggers the screen transition event when returning to the desktop from other interfaces
  • the application switching characterization triggers the transition when switching between multiple applications Screen event.
  • the function value of the switch type function includes the lock screen label
  • the trigger type corresponding to the screen switch trigger operation is the lock screen interface switch
  • the instruction corresponding to the screen switch trigger operation includes the notification bar label
  • the screen switch trigger is determined
  • the trigger type corresponding to the operation is the notification bar switch
  • the instruction corresponding to the screen switching trigger operation includes the multi-task reference switch tag
  • the trigger type corresponding to the screen switching trigger operation is the switching between multitasking and the application
  • the screen switching trigger operation When the corresponding instruction includes the desktop startup tag, determine that the trigger type corresponding to the screen-turning trigger operation is desktop startup application switching; when the instruction corresponding to the screen-turning trigger operation includes the desktop return tag, determine that the trigger type corresponding to the screen-turning trigger operation is Return to desktop switching;
  • the function value of the switching type function includes the application component task tag, it is determined that the trigger type corresponding to the screen switching trigger operation is the switching between applications.
  • the function value of the AppTransitionType function is KEYGUARD (specifically TRANSIT_KEYGUARD_GOING_AWAY), then it is determined that the trigger type corresponding to the screen switching trigger operation is the lock screen interface switch; if the screen switching trigger operation corresponds to If the instruction includes CATEGORY_LAUNCHER, the trigger type corresponding to the screen-turning trigger operation is determined to be desktop startup application switching; if the instruction corresponding to the screen-turning trigger operation includes HomeType, it is determined that the trigger type corresponding to the screen-turning trigger operation belongs to the desktop switch; if switching
  • the function value of the type function includes Activity (specifically including TRANSIT_ACTIVITY_OPEN, TRANSIT_ACTIVITY_RELAUNCH, TRANSIT_ACTIVITY_CLOSE) or Task (specifically including TRANSIT_TASK_OPEN, TRANSIT_TASK_OPEN_BEHIND, TRANSIT_TASK_TO_FRONT, TRANSIT_TASK_CLOSE, TR
  • type matching can be performed in the order of lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and switching between applications, or according to other flexible settings.
  • Type match can be performed in the order of lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and switching between applications, or according to other flexible settings.
  • the method further includes: when it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, determining that the trigger type corresponding to the screen switching trigger operation belongs to the native screen switching.
  • the trigger type is the native screen conversion, that is, the display of the horizontal and vertical screen switching can be performed according to the native screen conversion. Specifically, if it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, that is, when the screen switching trigger operation does not belong to the trigger type recorded in the trigger type table, it is determined that the trigger type corresponding to the screen switching trigger operation is native Turn screen, display the horizontal and vertical screen switching according to the native screen conversion.
  • the native screen rotation corresponding to the trigger type of native screen rotation can be the group of animations ScreenRotationAnimation.
  • the switch type function In a specific application, you can make a preliminary judgment based on the switch type function according to the sequence of lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and switching between applications.
  • the trigger type corresponding to the screen switching trigger operation is in the trigger type table, if it is and the corresponding trigger type cannot be determined only based on the function value of the switching type function, the screen switching trigger operation is further determined according to the instruction corresponding to the screen switching trigger operation.
  • the trigger type On the other hand, if not, that is, the function value of the switching type function is not in the trigger type table, it is determined that the trigger type corresponding to the screen switching trigger operation belongs to the native screen switching.
  • the switching type function is determined from the switching process corresponding to the screen switching trigger operation that triggers the screen switching event, and it is judged whether the function value of the switching type determination function is in the preset trigger type table, If not, it is determined that the trigger type corresponding to the screen switching trigger operation is native screen switching.
  • the trigger type corresponding to the screen switch trigger operation is determined to be the lock screen interface switch; if the instruction corresponding to the screen switch trigger operation includes the notification bar label, then the screen switch trigger operation is determined The corresponding trigger type is the notification bar switch; if the instruction corresponding to the screen switch trigger operation includes the multitask reference switch tag, then the trigger type corresponding to the switch screen trigger operation is determined to be the switch between multitask and application; if the screen switch trigger operation corresponds to If the instruction corresponding to the screen-turning trigger operation includes the desktop startup tag, the trigger type corresponding to the screen-turning trigger operation is determined to be desktop startup application switching; if the instruction corresponding to the screen-turning trigger operation includes the desktop-returning tag, it is determined that the trigger type corresponding to the screen-turning trigger operation is return Desktop switching; if the function value of the switching type function includes the application component task tag, it is determined that the trigger type corresponding to the screen switching trigger operation belongs to the switching between applications
  • AppTransitionType determines whether the trigger type corresponding to the switching screen trigger operation is in the trigger type table in. For example, when a screen transition event occurs when the application returns to the desktop, the AppTransitionType of the horizontal screen is TRANSIT_TASK_OPEN, and the corresponding trigger type cannot be determined at this time. Therefore, the Launcher in the instruction corresponding to the screen trigger operation is further combined with the HomeType to determine the trigger type To switch back to the desktop. Another example is when the application is switched from the notification bar and a screen transition event occurs, the function value of its AppTransitionType is in the trigger type table.
  • the trigger type is notification bar switching.
  • AppTransitionType is a function value including TRANSIT_KEYGUARD_GOING_AWAY, in the trigger type table and the corresponding trigger type can be determined, the trigger type is determined to be the switch type function.
  • determining that the trigger type corresponds to the preset screen-turning screen includes: querying a preset screen-turning screen library.
  • the screen-turning screen library records the corresponding relationship between each trigger type and each screen-turning screen; according to the trigger type Perform screen matching in the screen switching library to obtain the screen matching result; according to the screen matching result, determine the preset screen switching screen corresponding to the trigger type.
  • the screen switching screen corresponding to the trigger type is matched from the preset screen switching screen library. Specifically, after determining the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event, the preset screen switching screen library is queried, and the screen switching screen library records the corresponding relationship between each trigger type and each screen switching screen.
  • the screen transfer picture library can also be flexibly set according to actual needs. For example, the user can configure the screen transfer picture library through the picture library configuration interface. Perform screen matching between the determined trigger type and each trigger type recorded in the screen library to obtain the screen matching result. According to the screen matching result, the preset screen transition screen corresponding to the trigger type is determined. Specifically, the screen transition screen corresponding to the trigger type in the successfully matched screen transition screen library may be used as the preset screen transition screen corresponding to the trigger type.
  • the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching.
  • the screen library is triggered according to this
  • the type table records the corresponding construction of the trigger type, including the lock screen interface switching screen, the notification bar switching screen, the multitasking and the application switching screen, the desktop startup application switching screen, returning to the desktop switching screen and Switch between applications to switch screens.
  • the lock screen interface to switch to the screen the orientation of the horizontal screen application after unlocking is landscape (the terminal is rotated 90 degrees, and the charging port is now facing to the right), then the lock screen interface to switch to the screen will be landscape.
  • the application screen jumps in from the right side of the terminal screen and is displayed on the terminal screen.
  • the orientation of the horizontal screen application after unlocking is reverse-landscape (the terminal is rotated 270 degrees, the charging port is now facing the left)
  • the screen interface is locked Switching to the screen will be the horizontal screen application screen jumped in from the left of the terminal screen and displayed on the terminal screen.
  • the notification bar switching screen you can pull down the notification bar and click the notification when the (horizontal screen/vertical screen) application is launched, and the notification bar switching screen will be changed by (horizontal screen/vertical screen) after the notification bar is retracted. Screen) The right side of the screen jumps in.
  • the switching screen between multitasking and applications you can enter the multitasking interface when the screen is horizontal, and when you click the Home button of the terminal to return to the desktop, the screen for switching between multitasking and applications is a horizontal multitasking zoom and The transparency fades out, and finally the terminal desktop appears.
  • the desktop startup application switching screen when the horizontal screen application is launched from the desktop, the desktop startup application switching screen is the horizontal screen.
  • it further includes: when a configuration event for the screen library is detected, displaying the screen library configuration interface corresponding to the screen library; after triggering the screen library configuration operation for the screen library configuration interface, obtaining the pass The configuration data of the screen library generated by the configuration operation of the screen library; the screen library is updated and configured according to the configuration data of the screen library.
  • the terminal can be used to personalize the configuration of the screen-turning picture library. Specifically, when a configuration event for the screen conversion library is detected, for example, the terminal user touches and clicks the configuration control for the screen conversion library in the interface, thereby triggering the corresponding configuration event, indicating that the terminal user needs to configure the screen conversion library , Then display the screen library configuration interface corresponding to the screen transfer screen library.
  • the screen library configuration interface can display the content that the user can personally configure the screen library for the screen to be operated by the terminal user on the screen library configuration interface. After triggering the screen library configuration operation for the screen library configuration interface, obtain the screen library configuration data generated by the screen library configuration operation.
  • the screen library configuration data includes the configuration operation for the screen library that is triggered by the user in the screen library configuration interface.
  • the data for example, can include the replacement, addition, deletion, etc. of the screen-changing picture.
  • the screen transfer screen library is updated and configured, so that the terminal user can flexibly set the screen transfer screen library.
  • a device for displaying a screen-turning screen which includes: a trigger operation determining module 502, a trigger type determining module 504, a screen-turning screen determining module 506, and a screen-turning display module 508, Among them: the trigger operation determining module 502 is used to determine the screen switching trigger operation that triggers the screen switching event when the screen switching event is detected; the trigger type determining module 504 is used to determine the screen switching trigger operation that triggers the screen switching event corresponds to Trigger type; the screen transition determination module 506, used to determine the trigger type corresponding to the preset screen transition; the screen display module 508, used to display the transition corresponding to the trigger type when the horizontal and vertical screen switching processing is performed according to the screen transition event Screen picture.
  • the trigger operation determining module 502 includes a switching process query unit, a type function determining unit, and a trigger type determining unit; wherein: the switching process query unit is used to query the switching process corresponding to the screen switching trigger operation that triggers the screen switching event
  • the type function determining unit is used to determine the switching type function from the switching process; the trigger type determining unit is used to determine the trigger type corresponding to the screen switching trigger operation according to the switching type function and the instruction corresponding to the screen switching trigger operation.
  • the trigger type determination unit includes a type table query unit and a type table processing unit; wherein: the type table query unit is used to query a preset trigger type table, and the trigger type table records various switching type functions and various transitions.
  • the instruction corresponding to the screen trigger operation is corresponding to the corresponding trigger type of each screen switching trigger operation;
  • the type table processing unit is used to determine the screen switching trigger operation corresponding to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table The trigger type it belongs to.
  • the type table processing unit includes a priority query unit, a type matching unit, and a matching result processing unit; wherein: the priority query unit is used to query a preset type to determine the priority; the type matching unit is used to determine the priority according to the The priority of type determination is from high to low, and the type matching function, the instruction corresponding to the screen switching trigger operation and the trigger type table are matched to obtain the type matching result; the matching result processing unit is used to determine the screen switching according to the type matching result The trigger operation corresponds to the trigger type it belongs to.
  • it further includes a type table configuration interface display module, a type table configuration data acquisition module, and a type table update configuration module; wherein: the type table configuration interface display module is used when a configuration event for the trigger type table is detected , To display the type table configuration interface corresponding to the trigger type table; the type table configuration data acquisition module is used to obtain the type table configuration data generated by the type table configuration operation after the type table configuration operation for the type table configuration interface is triggered; The table update configuration module is used to update the trigger type table according to the type table configuration data.
  • the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching;
  • the type table processing unit includes lock screen Label unit, notification bar label unit, multi-task reference switching label unit, desktop startup label unit, back to desktop label unit, and application component task label unit; among them: lock screen label unit, used when the function value of the switch type function includes lock screen When labeling, determine the trigger type corresponding to the screen switching trigger operation as the lock screen interface switch;
  • the notification bar label unit is used to determine the trigger type corresponding to the screen switching trigger operation when the instruction corresponding to the screen switching trigger operation includes the notification bar label Switching for the notification bar;
  • the multitasking reference switch label unit used when the instruction corresponding to the screen switching trigger operation includes the multitask reference switching label, to determine the trigger type corresponding to the switching screen trigger operation is switching between multitasking and application;
  • desktop startup The label unit is used for determining that the trigger type corresponding to the screen switching trigger operation is desktop startup application
  • a native screen conversion unit is further included for determining that the trigger type corresponding to the screen conversion trigger operation is the native screen conversion when it is determined that the function value of the switch type function does not match the trigger type recorded in the trigger type table.
  • the screen-turning screen determination module 506 includes a screen database query unit, a screen matching unit, and a screen-turned screen determination unit; among them: the screen database query unit is used to query the preset screen-turning screen library, the screen-turning screen library The corresponding relationship between each trigger type and each screen to be switched is recorded; the screen matching unit is used to match the screen in the screen library according to the trigger type to obtain the screen matching result; the screen to determine the unit is used to match according to the screen As a result, the preset switch screen corresponding to the trigger type is determined.
  • the screen library configuration interface display module is used when a configuration event for the screen library is detected When displaying the screen library configuration interface corresponding to the screen library;
  • the screen library configuration data acquisition module is used to obtain the screen library configuration data generated by the screen library configuration operation after triggering the screen library configuration operation for the screen library configuration interface ;
  • Picture library update configuration module used to transfer the screen picture library according to the picture library configuration data.
  • the various modules in the above-mentioned screen-turning picture display device can be implemented in whole or in part by software, hardware and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • a computer device is provided.
  • the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 6.
  • the computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer programs.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize a screen display method.
  • the display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen
  • the input device of the computer equipment can be a touch layer covered on the display screen, or it can be a button, a trackball or a touch pad set on the housing of the computer equipment , It can also be an external keyboard, touchpad, or mouse.
  • FIG. 6 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • the screen switching trigger operation that triggers the screen switching event is determined
  • the screen switching screen corresponding to the trigger type is displayed.
  • the processor further implements the following steps when executing the computer program: query the switching process corresponding to the screen switching trigger operation that triggers the screen switching event; determine the switching type function from the switching process; trigger the operation according to the switching type function and the screen switching The corresponding instruction determines the trigger type to which the screen-turning trigger operation corresponds.
  • the processor further implements the following steps when executing the computer program: querying a preset trigger type table, the trigger type table records each switching type function and instructions corresponding to each screen switching trigger operation and each screen switching trigger operation, respectively Correspondence to the corresponding trigger type; determine the trigger type corresponding to the screen switching trigger operation according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table.
  • the processor further implements the following steps when executing the computer program: query the preset type to determine the priority; determine the priority according to the type in order from high to low, and switch the type function and the instruction corresponding to the screen switching trigger operation. Perform type matching with the trigger type table to obtain the type matching result; According to the type matching result, determine the trigger type corresponding to the screen switching trigger operation.
  • the processor further implements the following steps when executing the computer program: when a configuration event for the trigger type table is detected, the type table configuration interface corresponding to the trigger type table is displayed; when the type table configuration interface for the type table configuration interface is triggered After the configuration operation, the type table configuration data generated by the type table configuration operation is obtained; the trigger type table is updated and configured according to the type table configuration data.
  • the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching;
  • the following steps are implemented: when the function value of the switch type function includes the lock screen label, determine the trigger type corresponding to the screen switch trigger operation as the lock screen interface switch; when the instruction corresponding to the screen switch trigger operation includes the notification bar label, determine the switch screen The trigger type corresponding to the trigger operation is the notification bar switch; when the instruction corresponding to the screen switching trigger operation includes the multi-task reference switching tag, determine the trigger type corresponding to the switching screen trigger operation is the switching between multitasking and the application; when the screen switching trigger When the instruction corresponding to the operation includes the desktop startup tag, determine the trigger type corresponding to the screen-turning trigger operation as desktop startup application switching; when the instruction corresponding to the screen-turning trigger operation includes the desktop return tag, determine the trigger type corresponding to the screen-turning trigger operation To switch back to the desktop; when the function value of the switch type function includes the application
  • the processor further implements the following steps when executing the computer program: when it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, it is determined that the trigger type corresponding to the screen switching trigger operation is native conversion. Screen.
  • the processor further implements the following steps when executing the computer program: querying a preset screen-turning screen library, which records the corresponding relationship between each trigger type and each screen-turning screen;
  • the screen switching library performs screen matching to obtain the screen matching result; according to the screen matching result, the preset screen switching screen corresponding to the trigger type is determined.
  • the processor further implements the following steps when executing the computer program: when a configuration event for the screen library is detected, the screen library configuration interface corresponding to the screen library is displayed; when the configuration interface for the screen library is triggered After the screen library configuration operation, the screen library configuration data generated by the screen library configuration operation is obtained; the screen library is transferred according to the screen library configuration data.
  • a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the following steps are implemented: when a screen switching event is detected, the screen switching that triggers the screen switching event is determined Trigger operation; determine the trigger type to which the screen-turning trigger operation that triggers the screen-turning event belongs; determine the trigger type corresponding to the preset screen-turning screen; display the screen-turning screen corresponding to the trigger type when performing horizontal and vertical screen switching processing according to the screen-turning event .
  • the following steps are also implemented: query the switching process corresponding to the screen switching trigger operation that triggers the screen switching event; determine the switching type function from the switching process; according to the switching type function and screen switching trigger The instruction corresponding to the operation determines the trigger type to which the screen-turning trigger operation corresponds.
  • the following steps are also implemented: query a preset trigger type table, and the trigger type table records various switching type functions and instructions corresponding to each screen switching trigger operation respectively and each screen switching trigger The corresponding relationship of the operation corresponding to the trigger type; the trigger type corresponding to the switching screen trigger operation is determined according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table.
  • the following steps are also implemented: query the preset type to determine the priority; according to the type to determine the priority from high to low, switch the type function and switch screen trigger operation corresponding to The instruction and the trigger type table perform type matching to obtain the type matching result; according to the type matching result, the trigger type corresponding to the screen switching trigger operation is determined.
  • the following steps are also implemented: when a configuration event for the trigger type table is detected, the type table configuration interface corresponding to the trigger type table is displayed; After the table configuration operation, the type table configuration data generated by the type table configuration operation is obtained; the trigger type table is updated and configured according to the type table configuration data.
  • the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, switching between multitasking and applications, switching between desktop startup applications, switching back to desktop, and switching between applications; when the computer program is executed by the processor
  • the following steps are also implemented: when the function value of the switch type function includes the lock screen label, determine that the trigger type corresponding to the screen switch trigger operation is the lock screen interface switch; when the instruction corresponding to the screen switch trigger operation includes the notification bar label, determine the switch The trigger type corresponding to the screen trigger operation is the notification bar switch; when the instruction corresponding to the screen trigger operation includes the multi-task reference switch tag, the trigger type corresponding to the screen trigger operation is determined to be the switching between multi-task and application; when the screen is switched When the instruction corresponding to the trigger operation includes the desktop startup tag, determine that the trigger type corresponding to the screen-turning trigger operation is desktop startup application switching; when the instruction corresponding to the screen-turning trigger operation includes the desktop return tag, determine the trigger that the screen-turning trigger operation belongs to The type is switching back to
  • the following steps are also implemented: when it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, it is determined that the trigger type corresponding to the screen switching trigger operation is native Turn screen.
  • the following steps are also implemented: query a preset screen-turning screen library, which records the corresponding relationship between each trigger type and each screen-turned screen; according to the trigger type Perform screen matching in the screen switching library to obtain the screen matching result; according to the screen matching result, determine the preset screen switching screen corresponding to the trigger type.
  • the following steps are also implemented: when a configuration event for the screen library is detected, the screen library configuration interface corresponding to the screen library is displayed; when the configuration interface for the screen library is triggered After the screen library configuration operation, obtain the screen library configuration data generated by the screen library configuration operation; according to the screen library configuration data, the screen library is transferred to the screen.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A screen rotation picture display method and apparatus, a computer device, and a storage medium. The method comprises: when a screen rotation event is detected, determining a screen rotation triggering operation that triggers a screen rotation event (S202); determining a triggering type to which the screen rotation triggering operation that triggers the screen rotation event correspondingly belongs (S204); determining a preset screen rotation picture corresponding to the triggering type (S206); and when horizontal and vertical screen switching processing is performed according to the screen rotation event, displaying the screen rotation picture corresponding to the triggering type (S208).

Description

转屏画面显示方法、装置、计算机设备和存储介质Screen display method, device, computer equipment and storage medium
交叉引用cross reference
本发明要求在2019年10月15日提交中国专利局、申请号为201910978531.0、发明名称为“转屏画面显示方法、装置、计算机设备和存储介质”的中国专利申请的优先权,上述申请的全部内容通过引用结合在本发明中。The present invention claims the priority of a Chinese patent application filed with the Chinese Patent Office on October 15, 2019, the application number is 201910978531.0, and the invention title is "Display method, device, computer equipment, and storage medium for screen rotation". All of the above applications The content is incorporated in the present invention by reference.
技术领域Technical field
本申请涉及电子设备控制技术领域,特别是涉及一种转屏画面显示方法、装置、计算机设备和存储介质。This application relates to the field of electronic equipment control technology, and in particular to a method, device, computer equipment, and storage medium for displaying a screen-turning picture.
背景技术Background technique
随着互联网技术的发展,智能手机、平板电脑等智能电子设备得到了广泛应用,人们可以通过智能电子设备上安装的应用程序,如社交应用程序、购物平台应用程序等实现线上社交娱乐、网上购物等,极大便利了人们的工作、生活和娱乐。不同应用程序在电子设备上有不同的显示需求,如需要横屏显示的游戏应用程序、竖屏显示的社交应用程序等,此外,电子设备还会根据实际情况,如电子设备的位姿为横放或竖立来自动切换横竖屏,以便使电子设备屏幕的显示画面可以保持正立,从而方便用户观看。With the development of Internet technology, smart electronic devices such as smart phones and tablet computers have been widely used. People can realize online social entertainment and online social entertainment through applications installed on smart electronic devices, such as social applications and shopping platform applications. Shopping has greatly facilitated people's work, life and entertainment. Different applications have different display requirements on electronic devices, such as game applications that need to be displayed on the horizontal screen, social applications that need to be displayed on the vertical screen, etc. In addition, the electronic device will also be based on the actual situation, such as the position of the electronic device is horizontal. Put or stand to automatically switch between horizontal and vertical screens, so that the display screen of the electronic device screen can be kept upright, so that it is convenient for users to watch.
目前电子设备在进行转屏,即横竖屏切换时,会通过展示默认的转屏动画来实现切换。然而,需要进行横竖屏切换的转屏场景众多,均通过默认转屏动画进行展示切换,无法有效反映出各场景的切换特点,转屏处理的灵活性较差。At present, when the electronic device is performing screen switching, that is, when switching between horizontal and vertical screens, the switching is realized by displaying the default screen switching animation. However, there are many screen switching scenes that need to switch between horizontal and vertical screens, all of which are displayed and switched through the default screen switching animation, which cannot effectively reflect the switching characteristics of each scene, and the flexibility of screen switching processing is poor.
发明内容Summary of the invention
基于此,有必要针对上述技术问题,提供一种能够提高转屏处理灵活性 的转屏画面显示方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a method, device, computer equipment, and storage medium for displaying a converted screen that can improve the flexibility of screen conversion processing to address the above-mentioned technical problems.
一种转屏画面显示方法,所述方法包括:当检测到转屏事件时,确定触发转屏事件的转屏触发操作;确定触发转屏事件的转屏触发操作对应所属的触发类型;确定触发类型对应预设的转屏画面;在根据转屏事件进行横竖屏切换处理时,展示触发类型对应的转屏画面。A method for displaying a screen switching screen, the method comprising: when a screen switching event is detected, determining a screen switching trigger operation that triggers the screen switching event; determining the trigger type to which the screen switching trigger operation that triggers the screen switching event belongs; determining the trigger The type corresponds to the preset switching screen; when the horizontal and vertical screen switching processing is performed according to the switching event, the switching screen corresponding to the trigger type is displayed.
在其中一个实施例中,确定触发转屏事件的转屏触发操作对应所属的触发类型包括:查询触发转屏事件的转屏触发操作对应的切换流程;从切换流程中确定切换类型函数;根据切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型。In one of the embodiments, determining the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event includes: querying the switching process corresponding to the screen switching trigger operation that triggers the screen switching event; determining the switching type function from the switching process; The type function and the instruction corresponding to the screen switching trigger operation determine the trigger type corresponding to the screen switching trigger operation.
在其中一个实施例中,根据切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型包括:查询预设的触发类型表,触发类型表记录有各切换类型函数和各转屏触发操作对应的指令分别与各转屏触发操作对应所属触发类型的对应关系;根据切换类型函数、转屏触发操作对应的指令和触发类型表确定转屏触发操作对应所属的触发类型。In one of the embodiments, determining the trigger type corresponding to the screen switching trigger operation according to the switching type function and the instruction corresponding to the screen switching trigger operation includes: querying a preset trigger type table, and the trigger type table records each switching type function and each switching type function. The instruction corresponding to the screen switching trigger operation corresponds to the corresponding trigger type of each screen switching trigger operation; the trigger type corresponding to the screen switching trigger operation is determined according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table.
在其中一个实施例中,根据切换类型函数、转屏触发操作对应的指令和触发类型表确定转屏触发操作对应所属的触发类型包括:查询预设的类型确定优先级;按照类型确定优先级从高到低的顺序,将切换类型函数、转屏触发操作对应的指令和触发类型表进行类型匹配,得到类型匹配结果;根据类型匹配结果确定转屏触发操作对应所属的触发类型。In one of the embodiments, determining the trigger type corresponding to the screen switching trigger operation according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table includes: querying the preset type to determine the priority; determining the priority according to the type from In the order of high to low, the switching type function, the instruction corresponding to the screen switching trigger operation and the trigger type table are type-matched to obtain the type matching result; the trigger type corresponding to the screen switching trigger operation is determined according to the type matching result.
在其中一个实施例中,还包括:当检测到针对触发类型表的配置事件时,展示触发类型表对应的类型表配置界面;在触发针对类型表配置界面的类型表配置操作后,获取通过类型表配置操作所产生的类型表配置数据;根据类型表配置数据对触发类型表进行更新配置。In one of the embodiments, it further includes: when a configuration event for the trigger type table is detected, displaying the type table configuration interface corresponding to the trigger type table; after triggering the type table configuration operation for the type table configuration interface, obtaining the passed type The type table configuration data generated by the table configuration operation; the trigger type table is updated and configured according to the type table configuration data.
在其中一个实施例中,触发类型表记录的触发类型包括锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换;根据切换类型函数、转屏触发操作对应的指令和触发类型表确定转屏触发操作对应所属的触发类型包括:当切换类型函数的函数值包括锁屏 标签时,确定转屏触发操作对应所属的触发类型为锁屏接口切换;当转屏触发操作对应的指令包括通知栏标签时,确定转屏触发操作对应所属的触发类型为通知栏切换;当转屏触发操作对应的指令包括多任务引用切换标签时,确定转屏触发操作对应所属的触发类型为多任务与应用间切换;当转屏触发操作对应的指令包括桌面启动标签时,确定转屏触发操作对应所属的触发类型为桌面启动应用切换;当转屏触发操作对应的指令包括返回桌面标签时,确定转屏触发操作对应所属的触发类型为返回桌面切换;当切换类型函数的函数值包括应用组件任务标签时,确定转屏触发操作对应所属的触发类型为应用间切换。In one of the embodiments, the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, switching between multitasking and applications, switching between desktop startup applications, switching back to desktop, and switching between applications; according to the switching type function, switching The instruction and trigger type table corresponding to the screen trigger operation determine the trigger type corresponding to the screen switch trigger operation, including: when the function value of the switch type function includes the lock screen label, determine the trigger type corresponding to the screen switch trigger operation as the lock screen interface switch ; When the instruction corresponding to the screen switching trigger operation includes the notification bar label, determine that the trigger type corresponding to the screen switching trigger operation belongs to the notification bar switch; when the instruction corresponding to the screen switching trigger operation includes the multi-task reference switching label, determine the screen switching trigger The trigger type corresponding to the operation is multitasking and switching between applications; when the instruction corresponding to the screen switching trigger operation includes the desktop startup tag, it is determined that the trigger type corresponding to the screen switching trigger operation is desktop startup application switching; when the screen switching trigger operation corresponds to When the instruction includes the “return to desktop” tab, determine that the trigger type corresponding to the screen-turning trigger operation is “return to desktop switching; when the function value of the switch type function includes the application component task tag, determine that the trigger type corresponding to the screen-turning trigger operation belongs to inter-application Switch.
在其中一个实施例中,还包括:当确定切换类型函数的函数值与触发类型表记录的触发类型不匹配时,确定转屏触发操作对应所属的触发类型为原生转屏。In one of the embodiments, it further includes: when it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, determining that the trigger type corresponding to the screen switching trigger operation belongs to the native screen switching.
在其中一个实施例中,确定触发类型对应预设的转屏画面包括:查询预设的转屏画面库,转屏画面库记录有各触发类型与各转屏画面之间的对应关系;根据触发类型在转屏画面库进行画面匹配,得到画面匹配结果;根据画面匹配结果确定与触发类型对应预设的转屏画面。In one of the embodiments, determining that the trigger type corresponds to the preset screen conversion includes: querying the preset screen conversion screen library, the screen conversion screen library records the corresponding relationship between each trigger type and each screen conversion screen; according to the trigger The type performs screen matching in the screen transfer screen library to obtain the screen matching result; according to the screen matching result, the preset screen transfer screen corresponding to the trigger type is determined.
在其中一个实施例中,还包括:当检测到针对转屏画面库的配置事件时,展示转屏画面库对应的画面库配置界面;在触发针对画面库配置界面的画面库配置操作后,获取通过画面库配置操作所产生的画面库配置数据;根据画面库配置数据对转屏画面库进行。In one of the embodiments, it further includes: when a configuration event for the screen library is detected, displaying the screen library configuration interface corresponding to the screen library; after triggering the screen library configuration operation for the screen library configuration interface, obtaining The configuration data of the screen library generated by the configuration operation of the screen library; the screen library is transferred according to the configuration data of the screen library.
一种转屏画面显示装置,所述装置包括:触发操作确定模块,用于当检测到转屏事件时,确定触发转屏事件的转屏触发操作;触发类型确定模块,用于确定触发转屏事件的转屏触发操作对应所属的触发类型;转屏画面确定模块,用于确定触发类型对应预设的转屏画面;转屏画面展示模块,用于在根据转屏事件进行横竖屏切换处理时,展示触发类型对应的转屏画面。A screen-turning picture display device, the device comprising: a trigger operation determining module for determining a screen-turning trigger operation that triggers the screen-turning event when a screen-turning event is detected; a trigger type determining module for determining the triggering of the screen-turning event The screen-turning trigger operation of the event corresponds to the trigger type it belongs to; the screen-turning screen determination module is used to determine the trigger type corresponding to the preset screen-turning screen; the screen-turning display module is used to switch between horizontal and vertical screens according to the screen-turning event To display the screen transition corresponding to the trigger type.
一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现以下步骤:当检测到转屏事件时,确定触发转屏 事件的转屏触发操作;确定触发转屏事件的转屏触发操作对应所属的触发类型;确定触发类型对应预设的转屏画面;在根据转屏事件进行横竖屏切换处理时,展示触发类型对应的转屏画面。A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: when a screen switching event is detected, the screen switching trigger operation that triggers the screen switching event is determined; the screen switching is determined to be triggered The screen switching trigger operation of the event corresponds to the trigger type to which it belongs; the trigger type is determined to correspond to the preset screen switching screen; when the horizontal and vertical screen switching processing is performed according to the screen switching event, the screen switching corresponding to the trigger type is displayed.
一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:当检测到转屏事件时,确定触发转屏事件的转屏触发操作;确定触发转屏事件的转屏触发操作对应所属的触发类型;确定触发类型对应预设的转屏画面;在根据转屏事件进行横竖屏切换处理时,展示触发类型对应的转屏画面。A computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when a screen switching event is detected, the screen switching trigger operation that triggers the screen switching event is determined; the screen switching event is determined to be triggered The screen switching trigger operation corresponds to the trigger type; the trigger type is determined to correspond to the preset screen switching; when the horizontal and vertical screen switching processing is performed according to the screen switching event, the screen switching corresponding to the trigger type is displayed.
上述转屏画面显示方法、装置、计算机设备和存储介质,根据触发转屏事件的转屏触发操作对应所属的触发类型确定预设的转屏画面,并在根据转屏事件进行横竖屏切换处理时,展示该转屏画面,针对不同触发类型的转屏场景通过显示对应的转屏画面进行切换,能够有效反映出转屏场景的特点,提高了转屏处理的灵活性。The above-mentioned display method, device, computer equipment and storage medium of the screen-turning screen determine the preset screen-turning screen corresponding to the trigger type corresponding to the screen-turning trigger operation that triggers the screen-turning event, and when performing horizontal and vertical screen switching processing according to the screen-turning event , To display the screen-shifting screen, and to switch the screen-shifting scenes of different trigger types by displaying the corresponding screen-shifting screens, which can effectively reflect the characteristics of the screen-shifting scene and improve the flexibility of screen-shifting processing.
附图说明Description of the drawings
图1为一个实施例中转屏画面显示方法的应用环境图;FIG. 1 is an application environment diagram of a method for displaying a screen-shifting screen in an embodiment;
图2为一个实施例中转屏画面显示方法的流程示意图;FIG. 2 is a schematic flowchart of a method for displaying a screen-shifting screen in an embodiment;
图3为一个实施例中配置触发类型表的流程示意图;FIG. 3 is a schematic flowchart of configuring a trigger type table in an embodiment;
图4为另一个实施例中类型表配置界面的示意图;Figure 4 is a schematic diagram of a type table configuration interface in another embodiment;
图5为一个实施例中转屏画面显示装置的结构框图;Fig. 5 is a structural block diagram of an embodiment of a screen display device for switching screens;
图6为一个实施例中计算机设备的内部结构图。Fig. 6 is an internal structure diagram of a computer device in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions, and advantages of this application clearer, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.
本申请提供的转屏画面显示方法,可以应用于如图1所示的应用环境中。 其中,终端102在需要进行转屏,如终端用户将竖立的终端102横放时,终端102根据触发转屏事件的转屏触发操作对应所属的触发类型确定预设的转屏画面,并在根据转屏事件进行横竖屏切换处理时,展示该转屏画面,从而实现终端102屏幕的横竖屏切换。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。The screen display method provided by this application can be applied to the application environment as shown in FIG. 1. Wherein, when the terminal 102 needs to switch the screen, for example, when the terminal user places the upright terminal 102 horizontally, the terminal 102 determines the preset switch screen according to the trigger type corresponding to the trigger operation that triggers the screen switch event. When the screen switching event performs the horizontal and vertical screen switching processing, the screen switched screen is displayed, thereby realizing the horizontal and vertical screen switching of the terminal 102 screen. Among them, the terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
在一个实施例中,如图2所示,提供了一种转屏画面显示方法,以该方法应用于图1中的终端为例进行说明,包括以下步骤。In an embodiment, as shown in FIG. 2, a method for displaying a screen-turned screen is provided. Taking the method applied to the terminal in FIG. 1 as an example for description, the method includes the following steps.
步骤S202,当检测到转屏事件时,确定触发转屏事件的转屏触发操作。Step S202: When a screen switching event is detected, a screen switching trigger operation that triggers the screen switching event is determined.
其中,事件为发现的行为或发生的事情,且事件可能被处理,事件可以是系统本身的行为,如系统触发自动上报定位数据的行为,也可以是用户行为,如用户通过触摸终端屏幕产生的操作事件。转屏事件是指进行转屏处理的事件,一般为横竖屏切换,即终端屏幕从横屏状态切换成竖屏状态,或从竖屏状态切换成横屏状态。如在安卓操作系统中,转屏事件为onConfigurationChanged。转屏触发操作为触发转屏事件的操作,可以为用户行为,如用户点击启动横屏展示的应用程序后,触发了转屏事件,又如用户将终端横放时,触发转屏事件。Among them, an event is a discovered behavior or an occurrence, and the event may be processed. The event can be the behavior of the system itself, such as the behavior of automatically reporting positioning data triggered by the system, or user behavior, such as the user touching the terminal screen. Operational events. The screen switching event refers to the event of the screen switching process, generally a horizontal and vertical screen switching, that is, the terminal screen is switched from a horizontal screen state to a vertical screen state, or from a vertical screen state to a horizontal screen state. For example, in the Android operating system, the screen change event is onConfigurationChanged. The screen-turning trigger operation is an operation that triggers a screen-turning event, which can be a user behavior. For example, a user clicks to launch an application displayed on a horizontal screen and triggers a screen-turning event, or when the user places the terminal horizontally, a screen-turning event is triggered.
本实施例中,对发生的事件进行检测,当检测到转屏事件时,表明已触发转屏处理,进一步确定触发转屏事件的转屏触发操作,如可以对转屏事件进行解析跟踪,确定触发转屏事件的转屏触发操作,根据转屏触发操作可以确定对应触发的转屏场景,如可以为应用间的横竖屏切换场景、横屏多任务返回桌面切换场景、桌面启动横屏应用或横屏应用回到桌面切换场景、多任务界面与应用间的横竖屏切换场景、锁屏接口进入横屏应用切换场景或悬浮窗口与应用间的横竖屏切换场景等。In this embodiment, the event that occurs is detected. When the screen switching event is detected, it indicates that the screen switching process has been triggered, and the screen switching trigger operation that triggers the screen switching event is further determined. For example, the screen switching event can be analyzed and tracked. The screen switching trigger operation that triggers the screen switching event. According to the screen switching trigger operation, the corresponding screen switching scene can be determined. For example, it can switch scenes between horizontal and vertical screens between applications, switch back to desktop switching scenes for horizontal screen multitasking, start horizontal screen applications on the desktop, or The horizontal screen application returns to the desktop to switch scenes, the horizontal and vertical screen switching scenes between the multitasking interface and the application, the lock screen interface enters the horizontal screen application switching scene, or the horizontal and vertical screen switching scene between the floating window and the application, etc.
步骤S204,确定触发转屏事件的转屏触发操作对应所属的触发类型。Step S204: Determine the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event.
其中,触发类型通过针对转屏触发操作进行分类得到,如可以根据转屏触发操作对应的场景进行分类,确定各转屏触发操作对应所属的触发类型。触发类型可以根据实际需求进行灵活设置,如基于预定的划分条件对各转屏 触发操作进行分类,从而实现对触发类型的灵活设置。Among them, the trigger type is obtained by classifying the screen switching trigger operation. For example, it can be classified according to the scene corresponding to the screen switching trigger operation, and the trigger type corresponding to each screen switching trigger operation can be determined. The trigger type can be flexibly set according to actual needs, such as classifying each screen-turning trigger operation based on a predetermined division condition, so as to realize the flexible setting of the trigger type.
步骤S206,确定触发类型对应预设的转屏画面。In step S206, it is determined that the trigger type corresponds to the preset screen transition.
其中,转屏画面为在进行转屏处理,具体在进行横竖屏切换时,在终端屏幕进行展示的内容。转屏画面可以为动画、图像等类型的展示内容。本实施例中,不同的触发类型预设有对应的转屏画面,对应的转屏画面可以针对地体现出该触发类型的转屏场景特点,提高转屏处理的灵活性,从而提高终端用户的使用体验。Among them, the screen-turning screen is the content that is displayed on the terminal screen when the screen-turning process is being performed, specifically when switching between horizontal and vertical screens. The screen transition can be animation, image and other types of display content. In this embodiment, different trigger types are preset with corresponding screen-turning screens, and the corresponding screen-turning screens can specifically reflect the characteristics of the screen-turning scene of the trigger type, which improves the flexibility of screen-turning processing, thereby improving end users’ Use experience.
本实施例中,在确定触发转屏事件的转屏触发操作对应所属的触发类型后,进一步确定该触发类型对应预设的转屏画面。具体实现时,可以从预设的转屏画面库中确定该触发类型对应的转屏画面。In this embodiment, after it is determined that the screen switching trigger operation that triggers the screen switching event corresponds to the trigger type to which it belongs, it is further determined that the trigger type corresponds to a preset screen switching screen. During specific implementation, the screen-shifting screen corresponding to the trigger type can be determined from the preset screen-shifting screen library.
步骤S208,在根据转屏事件进行横竖屏切换处理时,展示触发类型对应的转屏画面。In step S208, when the horizontal and vertical screen switching processing is performed according to the screen switching event, the screen switching screen corresponding to the trigger type is displayed.
确定触发类型对应的预设转屏画面后,在根据转屏事件进行横竖屏切换处理时,如对于安卓操作系统,在进行横竖屏切换处理时,会进行终端屏幕画面的重新绘制,此时展示触发类型对应的转屏画面,从而实现终端屏幕的转屏前后画面的切换。After determining the preset switch screen corresponding to the trigger type, when the horizontal and vertical screen switching processing is performed according to the switching event, for example, for the Android operating system, when performing the horizontal and vertical screen switching processing, the terminal screen will be redrawn and displayed at this time Trigger the screen transition corresponding to the type, so as to realize the switching of the screen before and after the screen transition of the terminal screen.
上述转屏画面显示方法中,根据触发转屏事件的转屏触发操作对应所属的触发类型确定预设的转屏画面,并在根据转屏事件进行横竖屏切换处理时,展示该转屏画面,针对不同触发类型的转屏场景通过显示对应的转屏画面进行切换,能够有效反映出转屏场景的特点,提高了转屏处理的灵活性。In the above-mentioned screen-turning screen display method, the preset screen-turning screen is determined according to the trigger type to which the screen-turning trigger operation that triggers the screen-turning event belongs, and the screen-turning screen is displayed when the horizontal and vertical screen switching processing is performed according to the screen-turning event, The screen switching scenes of different trigger types are switched by displaying the corresponding screen switching screens, which can effectively reflect the characteristics of the screen switching scenes and improve the flexibility of the screen switching processing.
在一个实施例中,确定触发转屏事件的转屏触发操作对应所属的触发类型包括:查询触发转屏事件的转屏触发操作对应的切换流程;从切换流程中确定切换类型函数;根据切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型。In one embodiment, determining the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event includes: querying the switching process corresponding to the screen switching trigger operation that triggers the screen switching event; determining the switching type function from the switching process; according to the switching type The function and the instruction corresponding to the screen switching trigger operation determine the trigger type corresponding to the screen switching trigger operation.
本实施例中,根据从转屏触发操作对应的切换流程中确定的切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型。具体地,在确定触发转屏事件的转屏触发操作对应所属的触发类型时,查询触发 转屏事件的转屏触发操作对应的切换流程。其中,切换流程可以为触发转屏事件后执行转屏处理的流程,该切换流程通过多个函数实现。例如,在安卓操作系统中,转屏触发操作对应的切换流程为AppTransition,AppTransition通过多个函数实现转屏处理。从切换流程中确定切换类型函数,切换类型函数为标记了切换类型的函数,根据切换类型函数的函数值可以初步确定对应的触发类型,如在安卓系统中切换类型函数为AppTransitionType,则根据AppTransitionType的函数值可以初步确定触发类型。In this embodiment, the trigger type corresponding to the screen switching trigger operation is determined according to the switching type function determined in the switching process corresponding to the screen switching trigger operation and the instruction corresponding to the screen switching trigger operation. Specifically, when it is determined that the screen switching trigger operation that triggers the screen switching event corresponds to the trigger type to which it belongs, the switching process corresponding to the screen switching trigger operation that triggers the screen switching event is queried. Among them, the switching process may be a process of performing screen switching processing after triggering a screen switching event, and the switching process is implemented by multiple functions. For example, in the Android operating system, the switching process corresponding to the screen switching trigger operation is AppTransition, and AppTransition implements the screen switching process through multiple functions. Determine the switching type function from the switching process. The switching type function is a function marked with the switching type. The corresponding trigger type can be initially determined based on the function value of the switching type function. If the switching type function is AppTransitionType in the Android system, it will be based on the AppTransitionType. The function value can preliminarily determine the trigger type.
进一步地,除了根据切换类型函数初步确定触发类型外,考虑到有一些不同触发类型的转屏触发操作对应切换类型函数的函数值可能相同,此时无法直接根据切换类型函数的函数值确定其具体的触发类型,则进一步根据转屏触发操作对应的指令,如根据转屏触发操作对应的指令中的标签结合切换类型函数确定转屏触发操作对应所属的触发类型,从而准确确定触发转屏事件的转屏触发操作对应所属的触发类型。Further, in addition to the preliminary determination of the trigger type based on the switch type function, considering that there are some different trigger types of screen switch trigger operations corresponding to the switch type function function value may be the same, at this time it is impossible to directly determine the specific value based on the function value of the switch type function. The trigger type is further based on the instruction corresponding to the screen switching trigger operation, such as the label in the instruction corresponding to the screen switching trigger operation, combined with the switching type function to determine the trigger type corresponding to the screen switching trigger operation, so as to accurately determine the triggering of the screen switching event The flip-screen trigger operation corresponds to the trigger type it belongs to.
在一个实施例中,根据切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型包括:查询预设的触发类型表,触发类型表记录有各切换类型函数和各转屏触发操作对应的指令分别与各转屏触发操作对应所属触发类型的对应关系;根据切换类型函数、转屏触发操作对应的指令和触发类型表确定转屏触发操作对应所属的触发类型。In one embodiment, determining the trigger type corresponding to the screen switching trigger operation according to the switching type function and the instruction corresponding to the screen switching trigger operation includes: querying a preset trigger type table, and the trigger type table records each switching type function and each switching type. The instruction corresponding to the screen trigger operation is corresponding to the corresponding trigger type of each screen switching trigger operation; the trigger type corresponding to the screen switching trigger operation is determined according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table.
本实施例中,通过预设的触发类型表结合切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型。具体地,根据切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型时,查询预设的触发类型表,该触发类型表记录有各切换类型函数和各转屏触发操作对应的指令分别与各转屏触发操作对应所属触发类型的对应关系。触发类型表记录有各种转屏触发操作对应所属触发类型,触发类型表可以由用户进行灵活配置。获得触发类型表后,根据切换类型函数、转屏触发操作对应的指令和该触发类型表确定转屏触发操作对应所属的触发类型。In this embodiment, the preset trigger type table is combined with the switching type function and the instruction corresponding to the screen switching trigger operation to determine the trigger type corresponding to the screen switching trigger operation. Specifically, when the trigger type corresponding to the screen switching trigger operation is determined according to the instruction corresponding to the switching type function and the screen switching trigger operation, the preset trigger type table is queried, and the trigger type table records each switching type function and each screen switching trigger The instruction corresponding to the operation is corresponding to the corresponding trigger type of each screen-turning trigger operation. The trigger type table records various screen-turning trigger operations corresponding to their respective trigger types, and the trigger type table can be flexibly configured by the user. After the trigger type table is obtained, the trigger type corresponding to the screen switch trigger operation is determined according to the switch type function, the instruction corresponding to the screen switch trigger operation, and the trigger type table.
在具体实现时,如在安卓操作系统中实现时,触发类型表中记录的各种 触发类型可以包括TRANSIT_TASK_OPEN(新建任务并创建窗口)、TRANSIT_TASK_OPEN_BEHIND(新建任务挂在后台运行)、TRANSIT_TASK_TO_FRONT(将任务移至最顶)、TRANSIT_ACTIVITY_OPEN(在同一task中在最顶端打开一个窗口)、TRANSIT_ACTIVITY_RELAUNCH(在同一task中在最顶端重新打开一个窗口)、TRANSIT_TASK_CLOSE(关闭当前活动窗口,回到上一个任务)、TRANSIT_TASK_TO_BACK(将当前任务移至最末)、TRANSIT_TASK_IN_PLACE(在现场画动画)、TRANSIT_ACTIVITY_CLOSE(关闭当前活动窗口,恢复同一个task中的上一个窗口)和TRANSIT_KEYGUARD_GOING_AWAY(锁屏)等。针对不同的触发类型对应设有不同的转屏画面。In specific implementation, such as when implemented in the Android operating system, the various trigger types recorded in the trigger type table can include TRANSIT_TASK_OPEN (create a new task and create a window), TRANSIT_TASK_OPEN_BEHIND (hang the new task to run in the background), TRANSIT_TASK_TO_FRONT (move the task) To the top), TRANSIT_ACTIVITY_OPEN (open a window at the top in the same task), TRANSIT_ACTIVITY_RELAUNCH (reopen a window at the top in the same task), TRANSIT_TASK_CLOSE (close the current active window and return to the previous task), TRANSIT_TASK_TO_BACK( Move the current task to the end), TRANSIT_TASK_IN_PLACE (draw animation on the spot), TRANSIT_ACTIVITY_CLOSE (close the current active window, restore the previous window in the same task), TRANSIT_KEYGUARD_GOING_AWAY (lock screen), etc. There are different screens for different trigger types.
在一个实施例中,根据切换类型函数、转屏触发操作对应的指令和触发类型表确定转屏触发操作对应所属的触发类型包括:查询预设的类型确定优先级;按照类型确定优先级从高到低的顺序,将切换类型函数、转屏触发操作对应的指令和触发类型表进行类型匹配,得到类型匹配结果;根据类型匹配结果确定转屏触发操作对应所属的触发类型。In one embodiment, determining the trigger type corresponding to the screen switching trigger operation according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table includes: querying the preset type to determine the priority; determining the priority according to the type from higher In the lowest order, the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table are type-matched to obtain the type matching result; the trigger type corresponding to the screen switching trigger operation is determined according to the type matching result.
本实施例中,按照优先级的顺序将切换类型函数、转屏触发操作对应的指令和触发类型表进行类型匹配,从而确定转屏触发操作对应所属的触发类型。具体地,在确定转屏触发操作对应所属的触发类型时,查询预设的类型确定优先级,类型确定优先级根据实际需求进行灵活设置,如可以将频率较高的触发类型设为更高的优先级以优先进行匹配。类型确定优先级可以由用户基于个人习惯进行设置,也可以基于用户的用户数据进行分析并根据各触发类型的触发频率进行动态调整。按照类型确定优先级从高到低的顺序,将切换类型函数、转屏触发操作对应的指令和触发类型表进行类型匹配,得到类型匹配结果。按照类型确定优先级由优先级高到至优先级低的顺序,依次将切换类型函数、转屏触发操作对应的指令和触发类型表进行类型匹配,具体可以将切换类型函数的函数值和/或转屏触发操作对应的指令中的标签与 触发类型表进行匹配,得到类型匹配结果。根据类型匹配结果确定转屏触发操作对应所属的触发类型,如可以将类型匹配结果中匹配成功对应的触发类型作为转屏触发操作对应所属的触发类型。In this embodiment, the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table are type-matched in the order of priority, so as to determine the trigger type corresponding to the screen switching trigger operation. Specifically, when determining the trigger type corresponding to the screen switching trigger operation, query the preset type to determine the priority, and the type determination priority can be flexibly set according to actual needs. For example, the trigger type with higher frequency can be set to higher The priority is matched first. The type determination priority can be set by the user based on personal habits, or can be analyzed based on user data of the user and dynamically adjusted according to the trigger frequency of each trigger type. According to the order of priority from high to low for type determination, type matching is performed on the switching type function, the instruction corresponding to the screen switching trigger operation and the trigger type table, and the type matching result is obtained. According to the priority of the type, the order of priority is from high to low, and the switching type function, the instruction corresponding to the screen switching trigger operation and the trigger type table are matched in sequence. Specifically, the function value and/or of the switching type function can be matched. The label in the instruction corresponding to the screen switching trigger operation is matched with the trigger type table, and the type matching result is obtained. The trigger type corresponding to the screen switching trigger operation is determined according to the type matching result. For example, the trigger type corresponding to the successful matching in the type matching result can be used as the trigger type corresponding to the screen switching trigger operation.
在一个实施例中,如图3所示,还包括配置触发类型表的处理,具体包括如下步骤。In one embodiment, as shown in FIG. 3, it further includes the processing of configuring the trigger type table, which specifically includes the following steps.
步骤S302,当检测到针对触发类型表的配置事件时,展示触发类型表对应的类型表配置界面。Step S302: When a configuration event for the trigger type table is detected, a type table configuration interface corresponding to the trigger type table is displayed.
本实施例中,根据针对触发类型表的配置事件对触发类型表进行配置,以实现对触发类型表的灵活设置。具体地,若检测到针对触发类型表的配置事件,即表明需要对触发类型表进行配置,如终端用户触摸点击界面中针对触发类型表的配置控件,从而触发对应的配置事件,则展示触发类型表对应的类型表配置界面。该类型表配置界面可以展示触发类型表中包括的触发类型及对应激活状态,即是否生效。如图4所示,为一个实施例中类型表配置界面的示意图,图中展示了触发类型的种类及各种触发类型激活与否。此外,类型表配置界面可以根据实际需求进行灵活设置,如在点击各种触发类型后,可以进入该触发类型的配置子界面,以在配置子界面中进一步进行具体的配置处理。In this embodiment, the trigger type table is configured according to the configuration event for the trigger type table, so as to realize the flexible setting of the trigger type table. Specifically, if a configuration event for the trigger type table is detected, it indicates that the trigger type table needs to be configured. For example, the end user touches and clicks the configuration control for the trigger type table in the interface to trigger the corresponding configuration event, and the trigger type is displayed Table corresponding to the type table configuration interface. This type table configuration interface can display the trigger types included in the trigger type table and the corresponding activation state, that is, whether it is effective. As shown in FIG. 4, it is a schematic diagram of a type table configuration interface in an embodiment, and the figure shows the types of trigger types and whether various trigger types are activated or not. In addition, the type table configuration interface can be flexibly set according to actual needs. For example, after clicking various trigger types, you can enter the configuration sub-interface of the trigger type to further perform specific configuration processing in the configuration sub-interface.
步骤S304,在触发针对类型表配置界面的类型表配置操作后,获取通过类型表配置操作所产生的类型表配置数据。Step S304: After triggering the type table configuration operation for the type table configuration interface, obtain the type table configuration data generated by the type table configuration operation.
展示触发类型表对应的类型表配置界面后,由终端用户在该类型表配置界面进行操作。在触发针对类型表配置界面的类型表配置操作后,获取通过类型表配置操作所产生的类型表配置数据。类型表配置数据包括用户在类型表配置界面中触发的配置操作数据,如包括对触发类型的添加、删除、激活状态切换等。After displaying the type table configuration interface corresponding to the trigger type table, the terminal user can perform operations on the type table configuration interface. After the type table configuration operation on the type table configuration interface is triggered, the type table configuration data generated by the type table configuration operation is obtained. The type table configuration data includes the configuration operation data triggered by the user in the type table configuration interface, such as adding, deleting, and switching the activation state of the trigger type.
步骤S306,根据类型表配置数据对触发类型表进行更新配置。In step S306, the trigger type table is updated and configured according to the type table configuration data.
得到类型表配置数据后,基于该类型表配置数据对触发类型表进行更新配置,即根据终端用户对触发类型表的配置操作对触发类型表进行更新配置, 从而实现由终端用户灵活设置触发类型表。After obtaining the type table configuration data, the trigger type table is updated and configured based on the type table configuration data, that is, the trigger type table is updated and configured according to the configuration operation of the terminal user on the trigger type table, so that the end user can set the trigger type table flexibly .
在一个实施例中,触发类型表记录的触发类型包括锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换;根据切换类型函数、转屏触发操作对应的指令和触发类型表确定转屏触发操作对应所属的触发类型包括:当切换类型函数的函数值包括锁屏标签时,确定转屏触发操作对应所属的触发类型为锁屏接口切换;当转屏触发操作对应的指令包括通知栏标签时,确定转屏触发操作对应所属的触发类型为通知栏切换;当转屏触发操作对应的指令包括多任务引用切换标签时,确定转屏触发操作对应所属的触发类型为多任务与应用间切换;当转屏触发操作对应的指令包括桌面启动标签时,确定转屏触发操作对应所属的触发类型为桌面启动应用切换;当转屏触发操作对应的指令包括返回桌面标签时,确定转屏触发操作对应所属的触发类型为返回桌面切换;当切换类型函数的函数值包括应用组件任务标签时,确定转屏触发操作对应所属的触发类型为应用间切换。In one embodiment, the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching; according to the switching type function, screen switching The instruction and trigger type table corresponding to the trigger operation determines the trigger type corresponding to the screen switch trigger operation, including: when the function value of the switch type function includes the lock screen label, determine the trigger type corresponding to the screen switch trigger operation as the lock screen interface switch; When the instruction corresponding to the screen switching trigger operation includes the notification bar label, determine that the trigger type corresponding to the screen switching trigger operation belongs to notification bar switching; when the instruction corresponding to the screen switching trigger operation includes the multi-task reference switching label, determine the screen switching trigger operation The corresponding trigger type is multitasking and switching between applications; when the instruction corresponding to the screen switching trigger operation includes the desktop startup tag, it is determined that the trigger type corresponding to the screen switching trigger operation is desktop startup application switching; when the screen switching trigger operation corresponds to When the instruction includes the “Back to Desktop” tab, determine that the trigger type corresponding to the screen-turning trigger operation is “Back to Desktop Switching”; when the function value of the switch type function includes the application component task tag, determine that the trigger type corresponding to the screen-turning trigger operation is Inter-application switching. .
本实施例中,触发类型表记录的触发类型包括锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换,根据切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型。其中,锁屏接口切换表征触发锁屏时需要进行转屏,通知栏切换表征通过通知栏启动应用程序时触发转屏事件,多任务与应用间切换表征多个任务和应用程序之间进行切换时触发转屏事件,桌面启动应用切换表征从终端桌面启动应用程序时触发转屏事件,返回桌面切换表征从其他界面返回桌面时触发转屏事件;应用间切换表征在多个应用间切换时触发转屏事件。In this embodiment, the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching, which are triggered according to the switching type function and screen switching. The instruction corresponding to the operation determines the trigger type to which the screen-turning trigger operation corresponds. Among them, the lock screen interface switch signifies that the screen needs to be switched when the lock screen is triggered, the notification bar switch signifies that the screen switch event is triggered when the application is launched through the notification bar, and the multitasking and switching between applications signifies the switching between multiple tasks and applications. Trigger the screen transition event, the desktop startup application switching characterization triggers the screen transition event when the application is started from the terminal desktop, the return desktop switching characterization triggers the screen transition event when returning to the desktop from other interfaces; the application switching characterization triggers the transition when switching between multiple applications Screen event.
具体地,当切换类型函数的函数值包括锁屏标签时,确定转屏触发操作对应所属的触发类型为锁屏接口切换;当转屏触发操作对应的指令包括通知栏标签时,确定转屏触发操作对应所属的触发类型为通知栏切换;当转屏触发操作对应的指令包括多任务引用切换标签时,确定转屏触发操作对应所属的触发类型为多任务与应用间切换;当转屏触发操作对应的指令包括桌面启 动标签时,确定转屏触发操作对应所属的触发类型为桌面启动应用切换;当转屏触发操作对应的指令包括返回桌面标签时,确定转屏触发操作对应所属的触发类型为返回桌面切换;当切换类型函数的函数值包括应用组件任务标签时,确定转屏触发操作对应所属的触发类型为应用间切换。Specifically, when the function value of the switch type function includes the lock screen label, it is determined that the trigger type corresponding to the screen switch trigger operation is the lock screen interface switch; when the instruction corresponding to the screen switch trigger operation includes the notification bar label, the screen switch trigger is determined The trigger type corresponding to the operation is the notification bar switch; when the instruction corresponding to the screen switching trigger operation includes the multi-task reference switch tag, it is determined that the trigger type corresponding to the screen switching trigger operation is the switching between multitasking and the application; when the screen switching trigger operation When the corresponding instruction includes the desktop startup tag, determine that the trigger type corresponding to the screen-turning trigger operation is desktop startup application switching; when the instruction corresponding to the screen-turning trigger operation includes the desktop return tag, determine that the trigger type corresponding to the screen-turning trigger operation is Return to desktop switching; when the function value of the switching type function includes the application component task tag, it is determined that the trigger type corresponding to the screen switching trigger operation is the switching between applications.
具体应用中,如在安卓操作系统中实现时,AppTransitionType函数的函数值为KEYGUARD(具体为TRANSIT_KEYGUARD_GOING_AWAY),则确定转屏触发操作对应所属的触发类型为锁屏接口切换;若转屏触发操作对应的指令包括CATEGORY_LAUNCHER,则确定转屏触发操作对应所属的触发类型为桌面启动应用切换;若转屏触发操作对应的指令包括HomeType,则确定转屏触发操作对应所属的触发类型为返回桌面切换;若切换类型函数的函数值包括Activity(具体包括TRANSIT_ACTIVITY_OPEN、TRANSIT_ACTIVITY_RELAUNCH、TRANSIT_ACTIVITY_CLOSE)或者Task(具体包括TRANSIT_TASK_OPEN、TRANSIT_TASK_OPEN_BEHIND、TRANSIT_TASK_TO_FRONT、TRANSIT_TASK_CLOSE、TRANSIT_TASK_TO_BACK、TRANSIT_TASK_IN_PLACE),则确定转屏触发操作对应所属的触发类型为应用间切换。In specific applications, such as when implemented in the Android operating system, the function value of the AppTransitionType function is KEYGUARD (specifically TRANSIT_KEYGUARD_GOING_AWAY), then it is determined that the trigger type corresponding to the screen switching trigger operation is the lock screen interface switch; if the screen switching trigger operation corresponds to If the instruction includes CATEGORY_LAUNCHER, the trigger type corresponding to the screen-turning trigger operation is determined to be desktop startup application switching; if the instruction corresponding to the screen-turning trigger operation includes HomeType, it is determined that the trigger type corresponding to the screen-turning trigger operation belongs to the desktop switch; if switching The function value of the type function includes Activity (specifically including TRANSIT_ACTIVITY_OPEN, TRANSIT_ACTIVITY_RELAUNCH, TRANSIT_ACTIVITY_CLOSE) or Task (specifically including TRANSIT_TASK_OPEN, TRANSIT_TASK_OPEN_BEHIND, TRANSIT_TASK_TO_FRONT, TRANSIT_TASK_CLOSE, TRACE_TRANS_TRANS_ITACE, and the corresponding operation is determined to be the triggering operation.
在具体实现时,可以按照锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换的顺序进行类型匹配,也可以按照其他灵活设置的顺序进行类型匹配。In specific implementation, type matching can be performed in the order of lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and switching between applications, or according to other flexible settings. Type match.
在一个实施例中,还包括:当确定切换类型函数的函数值与触发类型表记录的触发类型不匹配时,确定转屏触发操作对应所属的触发类型为原生转屏。In an embodiment, the method further includes: when it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, determining that the trigger type corresponding to the screen switching trigger operation belongs to the native screen switching.
本实施例中,对于不属于触发类型表记录的触发类型,确定其触发类型为原生转屏,即可以按照原生转屏画面进行横竖屏切换的展示。具体地,若确定切换类型函数的函数值与触发类型表记录的触发类型不匹配,即转屏触发操作不属于触发类型表记录的触发类型时,确定转屏触发操作对应所属的触发类型为原生转屏,按照原生转屏画面进行横竖屏切换的展示。在具体应 用中,如对于安卓操作系统,原生转屏的触发类型对应的原生转屏画面可以为ScreenRotationAnimation这组动画。In this embodiment, for the trigger type that is not recorded in the trigger type table, it is determined that the trigger type is the native screen conversion, that is, the display of the horizontal and vertical screen switching can be performed according to the native screen conversion. Specifically, if it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, that is, when the screen switching trigger operation does not belong to the trigger type recorded in the trigger type table, it is determined that the trigger type corresponding to the screen switching trigger operation is native Turn screen, display the horizontal and vertical screen switching according to the native screen conversion. In specific applications, such as for the Android operating system, the native screen rotation corresponding to the trigger type of native screen rotation can be the group of animations ScreenRotationAnimation.
在一个具体应用中,可以按照锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换的顺序,先基于切换类型函数进行初步判断,以确定转屏触发操作对应所属的触发类型是否在触发类型表中,若是且仅根据切换类型函数的函数值无法确定对应的触发类型,则进一步根据转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型。另一方面,若否,即切换类型函数的函数值不在触发类型表中,则确定转屏触发操作对应所属的触发类型为原生转屏。In a specific application, you can make a preliminary judgment based on the switch type function according to the sequence of lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and switching between applications. Whether the trigger type corresponding to the screen switching trigger operation is in the trigger type table, if it is and the corresponding trigger type cannot be determined only based on the function value of the switching type function, the screen switching trigger operation is further determined according to the instruction corresponding to the screen switching trigger operation. The trigger type. On the other hand, if not, that is, the function value of the switching type function is not in the trigger type table, it is determined that the trigger type corresponding to the screen switching trigger operation belongs to the native screen switching.
具体地,在检测到转屏事件时,从触发转屏事件的转屏触发操作对应的切换流程中确定切换类型函数,判断该确定切换类型函数的函数值是否在预设的触发类型表中,若否,则确定转屏触发操作对应所属的触发类型为原生转屏。若是,且切换类型函数的函数值包括锁屏标签,则确定转屏触发操作对应所属的触发类型为锁屏接口切换;若转屏触发操作对应的指令包括通知栏标签,则确定转屏触发操作对应所属的触发类型为通知栏切换;若转屏触发操作对应的指令包括多任务引用切换标签,则确定转屏触发操作对应所属的触发类型为多任务与应用间切换;若转屏触发操作对应的指令包括桌面启动标签,则确定转屏触发操作对应所属的触发类型为桌面启动应用切换;若转屏触发操作对应的指令包括返回桌面标签,则确定转屏触发操作对应所属的触发类型为返回桌面切换;若切换类型函数的函数值包括应用组件任务标签,则确定转屏触发操作对应所属的触发类型为应用间切换。Specifically, when a screen switching event is detected, the switching type function is determined from the switching process corresponding to the screen switching trigger operation that triggers the screen switching event, and it is judged whether the function value of the switching type determination function is in the preset trigger type table, If not, it is determined that the trigger type corresponding to the screen switching trigger operation is native screen switching. If it is, and the function value of the switch type function includes the lock screen label, the trigger type corresponding to the screen switch trigger operation is determined to be the lock screen interface switch; if the instruction corresponding to the screen switch trigger operation includes the notification bar label, then the screen switch trigger operation is determined The corresponding trigger type is the notification bar switch; if the instruction corresponding to the screen switch trigger operation includes the multitask reference switch tag, then the trigger type corresponding to the switch screen trigger operation is determined to be the switch between multitask and application; if the screen switch trigger operation corresponds to If the instruction corresponding to the screen-turning trigger operation includes the desktop startup tag, the trigger type corresponding to the screen-turning trigger operation is determined to be desktop startup application switching; if the instruction corresponding to the screen-turning trigger operation includes the desktop-returning tag, it is determined that the trigger type corresponding to the screen-turning trigger operation is return Desktop switching; if the function value of the switching type function includes the application component task tag, it is determined that the trigger type corresponding to the screen switching trigger operation belongs to the switching between applications.
在具体应用中,如在安卓操作系统中,触发onConfigurationChanged后,根据从转屏触发操作对应的切换流程中确定的切换类型函数,即AppTransitionType确定转屏触发操作对应所属的触发类型是否在触发类型表中。如横屏在应用返回桌面发生转屏事件时,其AppTransitionType是TRANSIT_TASK_OPEN,此时仍无法确定其对应触发类型,所以进一步结合屏触发操作对应的指令中的Launcher,即为HomeType,则确定其触发类型 为返回桌面切换。又如从通知栏切换应用且发生了转屏事件时时,其AppTransitionType的函数值在触发类型表中,进一步检测到转屏触发操作对应的指令包括通知栏标签时,确定转屏触发操作对应所属的触发类型为通知栏切换。再如,锁屏解锁时,如果启动的应用发生了转屏事件,其AppTransitionType是函数值包括TRANSIT_KEYGUARD_GOING_AWAY,在触发类型表中且已能够确定对应的触发类型,则确定其触发类型为切换类型函数。In specific applications, such as in the Android operating system, after triggering onConfigurationChanged, according to the switching type function determined in the switching process corresponding to the switching screen trigger operation, that is, AppTransitionType determines whether the trigger type corresponding to the switching screen trigger operation is in the trigger type table in. For example, when a screen transition event occurs when the application returns to the desktop, the AppTransitionType of the horizontal screen is TRANSIT_TASK_OPEN, and the corresponding trigger type cannot be determined at this time. Therefore, the Launcher in the instruction corresponding to the screen trigger operation is further combined with the HomeType to determine the trigger type To switch back to the desktop. Another example is when the application is switched from the notification bar and a screen transition event occurs, the function value of its AppTransitionType is in the trigger type table. When it is further detected that the instruction corresponding to the screen transition trigger operation includes the notification bar label, it is determined that the screen transition trigger operation corresponds to it The trigger type is notification bar switching. For another example, when the lock screen is unlocked, if a screen transition event occurs in the launched application, and its AppTransitionType is a function value including TRANSIT_KEYGUARD_GOING_AWAY, in the trigger type table and the corresponding trigger type can be determined, the trigger type is determined to be the switch type function.
在一个实施例中,确定触发类型对应预设的转屏画面包括:查询预设的转屏画面库,转屏画面库记录有各触发类型与各转屏画面之间的对应关系;根据触发类型在转屏画面库进行画面匹配,得到画面匹配结果;根据画面匹配结果确定与触发类型对应预设的转屏画面。In one embodiment, determining that the trigger type corresponds to the preset screen-turning screen includes: querying a preset screen-turning screen library. The screen-turning screen library records the corresponding relationship between each trigger type and each screen-turning screen; according to the trigger type Perform screen matching in the screen switching library to obtain the screen matching result; according to the screen matching result, determine the preset screen switching screen corresponding to the trigger type.
本实施例中,从预设的转屏画面库中匹配与触发类型对应的转屏画面。具体地,在确定触发转屏事件的转屏触发操作对应所属的触发类型后,查询预设的转屏画面库,转屏画面库记录有各触发类型与各转屏画面之间的对应关系。转屏画面库也可以根据实际需求进行灵活设置,如由用户通过画面库配置界面对转屏画面库进行配置。将确定的触发类型与转屏画面库记录的各触发类型进行画面匹配,得到画面匹配结果。根据画面匹配结果确定与触发类型对应预设的转屏画面,具体可以将匹配成功的转屏画面库中触发类型对应的转屏画面作为该触发类型对应预设的转屏画面。In this embodiment, the screen switching screen corresponding to the trigger type is matched from the preset screen switching screen library. Specifically, after determining the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event, the preset screen switching screen library is queried, and the screen switching screen library records the corresponding relationship between each trigger type and each screen switching screen. The screen transfer picture library can also be flexibly set according to actual needs. For example, the user can configure the screen transfer picture library through the picture library configuration interface. Perform screen matching between the determined trigger type and each trigger type recorded in the screen library to obtain the screen matching result. According to the screen matching result, the preset screen transition screen corresponding to the trigger type is determined. Specifically, the screen transition screen corresponding to the trigger type in the successfully matched screen transition screen library may be used as the preset screen transition screen corresponding to the trigger type.
在一个具体应用中,触发类型表记录的触发类型包括锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换,转屏画面库根据该触发类型表记录的触发类型对应构建,包括锁屏接口切换转屏画面、通知栏切换转屏画面、多任务与应用间切换转屏画面、桌面启动应用切换转屏画面、返回桌面切换转屏画面和应用间切换转屏画面。In a specific application, the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching. The screen library is triggered according to this The type table records the corresponding construction of the trigger type, including the lock screen interface switching screen, the notification bar switching screen, the multitasking and the application switching screen, the desktop startup application switching screen, returning to the desktop switching screen and Switch between applications to switch screens.
其中,对于锁屏接口切换转屏画面,可以在解锁后横屏应用的方向为landscape(终端旋转90度,充电口此时朝向右方)时,则锁屏接口切换转屏画面会是横屏应用的画面从终端屏幕右方跳进来在终端屏幕中显示,如果此时 解锁后横屏应用的方向为reverse-landscape(终端旋转270度,充电口此时朝向左方)的,则锁屏接口切换转屏画面会是横屏应用的画面从终端屏幕左方跳进来在终端屏幕中显示。对于通知栏切换转屏画面,可以在下拉通知栏后点击通知时,启动了(横屏/竖屏)应用,则通知栏切换转屏画面会在通知栏收起后,由(横屏/竖屏)画面的右方跳进来。对于多任务与应用间切换转屏画面,可以在画面为横屏并且进入多任务界面,点击终端的Home键返回桌面时,则多任务与应用间切换转屏画面为横屏的多任务放大并且透明度淡出,最后出现终端桌面。对于桌面启动应用切换转屏画面,可以在从桌面启动横屏应用时,桌面启动应用切换转屏画面为横屏画面从靠近欲启动的应用程序图标的位置附近,由小放大至终端全屏幕。对于返回桌面切换转屏画面,可以在当前处于横屏画面,点击Home键返回桌面时,则返回桌面切换转屏画面由终端全屏幕开始,往屏幕中央缩小并且透明度渐渐消失;在点击Back按键返回桌面时,则返回桌面切换转屏画面为由横屏画面往屏幕下方位移并且透明度渐渐消失。对于应用间切换转屏画面,可以在点击连结或者其他操作而启动了另一个(横屏/竖屏)应用时,则应用间切换转屏画面由另一个(横屏/竖屏)应用的画面右方跳进来在终端屏幕中显示。Among them, for the lock screen interface to switch to the screen, the orientation of the horizontal screen application after unlocking is landscape (the terminal is rotated 90 degrees, and the charging port is now facing to the right), then the lock screen interface to switch to the screen will be landscape. The application screen jumps in from the right side of the terminal screen and is displayed on the terminal screen. If the orientation of the horizontal screen application after unlocking is reverse-landscape (the terminal is rotated 270 degrees, the charging port is now facing the left), the screen interface is locked Switching to the screen will be the horizontal screen application screen jumped in from the left of the terminal screen and displayed on the terminal screen. For the notification bar switching screen, you can pull down the notification bar and click the notification when the (horizontal screen/vertical screen) application is launched, and the notification bar switching screen will be changed by (horizontal screen/vertical screen) after the notification bar is retracted. Screen) The right side of the screen jumps in. For the switching screen between multitasking and applications, you can enter the multitasking interface when the screen is horizontal, and when you click the Home button of the terminal to return to the desktop, the screen for switching between multitasking and applications is a horizontal multitasking zoom and The transparency fades out, and finally the terminal desktop appears. For the desktop startup application switching screen, when the horizontal screen application is launched from the desktop, the desktop startup application switching screen is the horizontal screen. From near the position near the icon of the application to be launched, zoom in from small to the full screen of the terminal. For returning to the desktop to switch the screen, you can click the Home button to return to the desktop when you are currently in a landscape screen, the desktop switching screen starts from the full screen of the terminal, shrinks to the center of the screen and the transparency gradually disappears; click the Back button to return When it is on the desktop, returning to the desktop to switch the screen is shifted from the horizontal screen to the bottom of the screen and the transparency gradually disappears. For switching screens between applications, when another (landscape/portrait) application is started by clicking a link or other operations, the screen for switching between applications will be the screen of another (landscape/portrait) application. Jump in from the right and display it on the terminal screen.
在一个实施例中,还包括:当检测到针对转屏画面库的配置事件时,展示转屏画面库对应的画面库配置界面;在触发针对画面库配置界面的画面库配置操作后,获取通过画面库配置操作所产生的画面库配置数据;根据画面库配置数据对转屏画面库进行更新配置。In one embodiment, it further includes: when a configuration event for the screen library is detected, displaying the screen library configuration interface corresponding to the screen library; after triggering the screen library configuration operation for the screen library configuration interface, obtaining the pass The configuration data of the screen library generated by the configuration operation of the screen library; the screen library is updated and configured according to the configuration data of the screen library.
本实施例中,可以由终端用对转屏画面库进行个性化配置。具体地,当检测到针对转屏画面库的配置事件时,如终端用户触摸点击界面中针对转屏画面库的配置控件,从而触发对应的配置事件,表明终端用户需要对转屏画面库进行配置,则展示转屏画面库对应的画面库配置界面。画面库配置界面可以展示用户能够对转屏画面库进行个性化配置的内容,以由终端用户在该画面库配置界面进行操作。在触发针对画面库配置界面的画面库配置操作后,获取通过画面库配置操作所产生的画面库配置数据,画面库配置数据包括用 户在画面库配置界面中触发的针对转屏画面库的配置操作数据,如可以包括对转屏画面的替换、添加、删除等。再根据画面库配置数据对转屏画面库进行更新配置,从而实现由终端用户灵活设置转屏画面库。In this embodiment, the terminal can be used to personalize the configuration of the screen-turning picture library. Specifically, when a configuration event for the screen conversion library is detected, for example, the terminal user touches and clicks the configuration control for the screen conversion library in the interface, thereby triggering the corresponding configuration event, indicating that the terminal user needs to configure the screen conversion library , Then display the screen library configuration interface corresponding to the screen transfer screen library. The screen library configuration interface can display the content that the user can personally configure the screen library for the screen to be operated by the terminal user on the screen library configuration interface. After triggering the screen library configuration operation for the screen library configuration interface, obtain the screen library configuration data generated by the screen library configuration operation. The screen library configuration data includes the configuration operation for the screen library that is triggered by the user in the screen library configuration interface. The data, for example, can include the replacement, addition, deletion, etc. of the screen-changing picture. Then according to the configuration data of the screen library, the screen transfer screen library is updated and configured, so that the terminal user can flexibly set the screen transfer screen library.
应该理解的是,虽然图2-3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-3中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowchart of FIGS. 2-3 are displayed in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order for the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figure 2-3 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or stages The execution order of is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
在一个实施例中,如图5所示,提供了一种转屏画面显示装置,包括:触发操作确定模块502、触发类型确定模块504、转屏画面确定模块506和转屏画面展示模块508,其中:触发操作确定模块502,用于当检测到转屏事件时,确定触发转屏事件的转屏触发操作;触发类型确定模块504,用于确定触发转屏事件的转屏触发操作对应所属的触发类型;转屏画面确定模块506,用于确定触发类型对应预设的转屏画面;转屏画面展示模块508,用于在根据转屏事件进行横竖屏切换处理时,展示触发类型对应的转屏画面。In one embodiment, as shown in FIG. 5, a device for displaying a screen-turning screen is provided, which includes: a trigger operation determining module 502, a trigger type determining module 504, a screen-turning screen determining module 506, and a screen-turning display module 508, Among them: the trigger operation determining module 502 is used to determine the screen switching trigger operation that triggers the screen switching event when the screen switching event is detected; the trigger type determining module 504 is used to determine the screen switching trigger operation that triggers the screen switching event corresponds to Trigger type; the screen transition determination module 506, used to determine the trigger type corresponding to the preset screen transition; the screen display module 508, used to display the transition corresponding to the trigger type when the horizontal and vertical screen switching processing is performed according to the screen transition event Screen picture.
在一个实施例中,触发操作确定模块502包括切换流程查询单元、类型函数确定单元和触发类型确定单元;其中:切换流程查询单元,用于查询触发转屏事件的转屏触发操作对应的切换流程;类型函数确定单元,用于从切换流程中确定切换类型函数;触发类型确定单元,用于根据切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型。In one embodiment, the trigger operation determining module 502 includes a switching process query unit, a type function determining unit, and a trigger type determining unit; wherein: the switching process query unit is used to query the switching process corresponding to the screen switching trigger operation that triggers the screen switching event The type function determining unit is used to determine the switching type function from the switching process; the trigger type determining unit is used to determine the trigger type corresponding to the screen switching trigger operation according to the switching type function and the instruction corresponding to the screen switching trigger operation.
在一个实施例中,触发类型确定单元包括类型表查询单元和类型表处理单元;其中:类型表查询单元,用于查询预设的触发类型表,触发类型表记录有各切换类型函数和各转屏触发操作对应的指令分别与各转屏触发操作对应所属触发类型的对应关系;类型表处理单元,用于根据切换类型函数、转 屏触发操作对应的指令和触发类型表确定转屏触发操作对应所属的触发类型。In one embodiment, the trigger type determination unit includes a type table query unit and a type table processing unit; wherein: the type table query unit is used to query a preset trigger type table, and the trigger type table records various switching type functions and various transitions. The instruction corresponding to the screen trigger operation is corresponding to the corresponding trigger type of each screen switching trigger operation; the type table processing unit is used to determine the screen switching trigger operation corresponding to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table The trigger type it belongs to.
在一个实施例中,类型表处理单元包括优先级查询单元、类型匹配单元和匹配结果处理单元;其中:优先级查询单元,用于查询预设的类型确定优先级;类型匹配单元,用于按照类型确定优先级从高到低的顺序,将切换类型函数、转屏触发操作对应的指令和触发类型表进行类型匹配,得到类型匹配结果;匹配结果处理单元,用于根据类型匹配结果确定转屏触发操作对应所属的触发类型。In one embodiment, the type table processing unit includes a priority query unit, a type matching unit, and a matching result processing unit; wherein: the priority query unit is used to query a preset type to determine the priority; the type matching unit is used to determine the priority according to the The priority of type determination is from high to low, and the type matching function, the instruction corresponding to the screen switching trigger operation and the trigger type table are matched to obtain the type matching result; the matching result processing unit is used to determine the screen switching according to the type matching result The trigger operation corresponds to the trigger type it belongs to.
在一个实施例中,还包括类型表配置界面展示模块、类型表配置数据获取模块和类型表更新配置模块;其中:类型表配置界面展示模块,用于当检测到针对触发类型表的配置事件时,展示触发类型表对应的类型表配置界面;类型表配置数据获取模块,用于在触发针对类型表配置界面的类型表配置操作后,获取通过类型表配置操作所产生的类型表配置数据;类型表更新配置模块,用于根据类型表配置数据对触发类型表进行更新配置。In one embodiment, it further includes a type table configuration interface display module, a type table configuration data acquisition module, and a type table update configuration module; wherein: the type table configuration interface display module is used when a configuration event for the trigger type table is detected , To display the type table configuration interface corresponding to the trigger type table; the type table configuration data acquisition module is used to obtain the type table configuration data generated by the type table configuration operation after the type table configuration operation for the type table configuration interface is triggered; The table update configuration module is used to update the trigger type table according to the type table configuration data.
在一个实施例中,触发类型表记录的触发类型包括锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换;类型表处理单元包括锁屏标签单元、通知栏标签单元、多任务引用切换标签单元、桌面启动标签单元、返回桌面标签单元和应用组件任务标签单元;其中:锁屏标签单元,用于当切换类型函数的函数值包括锁屏标签时,确定转屏触发操作对应所属的触发类型为锁屏接口切换;通知栏标签单元,用于当转屏触发操作对应的指令包括通知栏标签时,确定转屏触发操作对应所属的触发类型为通知栏切换;多任务引用切换标签单元,用于当转屏触发操作对应的指令包括多任务引用切换标签时,确定转屏触发操作对应所属的触发类型为多任务与应用间切换;桌面启动标签单元,用于当转屏触发操作对应的指令包括桌面启动标签时,确定转屏触发操作对应所属的触发类型为桌面启动应用切换;返回桌面标签单元,用于当转屏触发操作对应的指令包括返回桌面标签时,确定转屏触发操作对应所属的触发类型为返回桌面切换;应用组件任务标签单元,用于当切换类型函数的函数值包括应用组件任务标 签时,确定转屏触发操作对应所属的触发类型为应用间切换。In one embodiment, the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching; the type table processing unit includes lock screen Label unit, notification bar label unit, multi-task reference switching label unit, desktop startup label unit, back to desktop label unit, and application component task label unit; among them: lock screen label unit, used when the function value of the switch type function includes lock screen When labeling, determine the trigger type corresponding to the screen switching trigger operation as the lock screen interface switch; the notification bar label unit is used to determine the trigger type corresponding to the screen switching trigger operation when the instruction corresponding to the screen switching trigger operation includes the notification bar label Switching for the notification bar; the multitasking reference switch label unit, used when the instruction corresponding to the screen switching trigger operation includes the multitask reference switching label, to determine the trigger type corresponding to the switching screen trigger operation is switching between multitasking and application; desktop startup The label unit is used for determining that the trigger type corresponding to the screen switching trigger operation is desktop startup application switching when the instruction corresponding to the screen switching trigger operation includes the desktop startup label; returning to the desktop label unit for the instruction corresponding to the screen switching trigger operation When including the return to desktop tab, determine the trigger type corresponding to the screen-turning trigger operation to return to desktop switching; the application component task tag unit is used to determine the corresponding to the screen-turning trigger operation when the function value of the switching type function includes the application component task label The trigger type is switching between applications.
在一个实施例中,还包括原生转屏单元,用于当确定切换类型函数的函数值与触发类型表记录的触发类型不匹配时,确定转屏触发操作对应所属的触发类型为原生转屏。In one embodiment, a native screen conversion unit is further included for determining that the trigger type corresponding to the screen conversion trigger operation is the native screen conversion when it is determined that the function value of the switch type function does not match the trigger type recorded in the trigger type table.
在一个实施例中,转屏画面确定模块506包括画面库查询单元、画面匹配单元和转屏画面确定单元;其中:画面库查询单元,用于查询预设的转屏画面库,转屏画面库记录有各触发类型与各转屏画面之间的对应关系;画面匹配单元,用于根据触发类型在转屏画面库进行画面匹配,得到画面匹配结果;转屏画面确定单元,用于根据画面匹配结果确定与触发类型对应预设的转屏画面。In one embodiment, the screen-turning screen determination module 506 includes a screen database query unit, a screen matching unit, and a screen-turned screen determination unit; among them: the screen database query unit is used to query the preset screen-turning screen library, the screen-turning screen library The corresponding relationship between each trigger type and each screen to be switched is recorded; the screen matching unit is used to match the screen in the screen library according to the trigger type to obtain the screen matching result; the screen to determine the unit is used to match according to the screen As a result, the preset switch screen corresponding to the trigger type is determined.
在一个实施例中,还包括画面库配置界面展示模块、画面库配置数据获取模块和画面库更新配置模块;其中:画面库配置界面展示模块,用于当检测到针对转屏画面库的配置事件时,展示转屏画面库对应的画面库配置界面;画面库配置数据获取模块,用于在触发针对画面库配置界面的画面库配置操作后,获取通过画面库配置操作所产生的画面库配置数据;画面库更新配置模块,用于根据画面库配置数据对转屏画面库进行。In one embodiment, it also includes a screen library configuration interface display module, a screen library configuration data acquisition module, and a screen library update configuration module; among them: the screen library configuration interface display module is used when a configuration event for the screen library is detected When displaying the screen library configuration interface corresponding to the screen library; the screen library configuration data acquisition module is used to obtain the screen library configuration data generated by the screen library configuration operation after triggering the screen library configuration operation for the screen library configuration interface ; Picture library update configuration module, used to transfer the screen picture library according to the picture library configuration data.
关于转屏画面显示装置的具体限定可以参见上文中对于转屏画面显示方法的限定,在此不再赘述。上述转屏画面显示装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Regarding the specific limitation of the screen-turning picture display device, please refer to the above-mentioned limitation on the screen-turning picture display method, which will not be repeated here. The various modules in the above-mentioned screen-turning picture display device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机 设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种转屏画面显示方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 6. The computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to realize a screen display method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, or it can be a button, a trackball or a touch pad set on the housing of the computer equipment , It can also be an external keyboard, touchpad, or mouse.
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 6 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
当检测到转屏事件时,确定触发转屏事件的转屏触发操作;When a screen switching event is detected, the screen switching trigger operation that triggers the screen switching event is determined;
确定触发转屏事件的转屏触发操作对应所属的触发类型;Determine the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event;
确定触发类型对应预设的转屏画面;Confirm that the trigger type corresponds to the preset screen conversion;
在根据转屏事件进行横竖屏切换处理时,展示触发类型对应的转屏画面。When performing horizontal and vertical screen switching processing according to the screen switching event, the screen switching screen corresponding to the trigger type is displayed.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:查询触发转屏事件的转屏触发操作对应的切换流程;从切换流程中确定切换类型函数;根据切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型。In one embodiment, the processor further implements the following steps when executing the computer program: query the switching process corresponding to the screen switching trigger operation that triggers the screen switching event; determine the switching type function from the switching process; trigger the operation according to the switching type function and the screen switching The corresponding instruction determines the trigger type to which the screen-turning trigger operation corresponds.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:查询预设的触发类型表,触发类型表记录有各切换类型函数和各转屏触发操作对应的指令分别与各转屏触发操作对应所属触发类型的对应关系;根据切换类型函数、转屏触发操作对应的指令和触发类型表确定转屏触发操作对应所属的触发类型。In one embodiment, the processor further implements the following steps when executing the computer program: querying a preset trigger type table, the trigger type table records each switching type function and instructions corresponding to each screen switching trigger operation and each screen switching trigger operation, respectively Correspondence to the corresponding trigger type; determine the trigger type corresponding to the screen switching trigger operation according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:查询预设的类型确定优先级;按照类型确定优先级从高到低的顺序,将切换类型函数、转屏触发操作对应的指令和触发类型表进行类型匹配,得到类型匹配结果; 根据类型匹配结果确定转屏触发操作对应所属的触发类型。In one embodiment, the processor further implements the following steps when executing the computer program: query the preset type to determine the priority; determine the priority according to the type in order from high to low, and switch the type function and the instruction corresponding to the screen switching trigger operation. Perform type matching with the trigger type table to obtain the type matching result; According to the type matching result, determine the trigger type corresponding to the screen switching trigger operation.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:当检测到针对触发类型表的配置事件时,展示触发类型表对应的类型表配置界面;在触发针对类型表配置界面的类型表配置操作后,获取通过类型表配置操作所产生的类型表配置数据;根据类型表配置数据对触发类型表进行更新配置。In one embodiment, the processor further implements the following steps when executing the computer program: when a configuration event for the trigger type table is detected, the type table configuration interface corresponding to the trigger type table is displayed; when the type table configuration interface for the type table configuration interface is triggered After the configuration operation, the type table configuration data generated by the type table configuration operation is obtained; the trigger type table is updated and configured according to the type table configuration data.
在一个实施例中,触发类型表记录的触发类型包括锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换;处理器执行计算机程序时还实现以下步骤:当切换类型函数的函数值包括锁屏标签时,确定转屏触发操作对应所属的触发类型为锁屏接口切换;当转屏触发操作对应的指令包括通知栏标签时,确定转屏触发操作对应所属的触发类型为通知栏切换;当转屏触发操作对应的指令包括多任务引用切换标签时,确定转屏触发操作对应所属的触发类型为多任务与应用间切换;当转屏触发操作对应的指令包括桌面启动标签时,确定转屏触发操作对应所属的触发类型为桌面启动应用切换;当转屏触发操作对应的指令包括返回桌面标签时,确定转屏触发操作对应所属的触发类型为返回桌面切换;当切换类型函数的函数值包括应用组件任务标签时,确定转屏触发操作对应所属的触发类型为应用间切换。In one embodiment, the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application switching; The following steps are implemented: when the function value of the switch type function includes the lock screen label, determine the trigger type corresponding to the screen switch trigger operation as the lock screen interface switch; when the instruction corresponding to the screen switch trigger operation includes the notification bar label, determine the switch screen The trigger type corresponding to the trigger operation is the notification bar switch; when the instruction corresponding to the screen switching trigger operation includes the multi-task reference switching tag, determine the trigger type corresponding to the switching screen trigger operation is the switching between multitasking and the application; when the screen switching trigger When the instruction corresponding to the operation includes the desktop startup tag, determine the trigger type corresponding to the screen-turning trigger operation as desktop startup application switching; when the instruction corresponding to the screen-turning trigger operation includes the desktop return tag, determine the trigger type corresponding to the screen-turning trigger operation To switch back to the desktop; when the function value of the switch type function includes the application component task tag, it is determined that the trigger type corresponding to the screen switch trigger operation is the switch between applications.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:当确定切换类型函数的函数值与触发类型表记录的触发类型不匹配时,确定转屏触发操作对应所属的触发类型为原生转屏。In one embodiment, the processor further implements the following steps when executing the computer program: when it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, it is determined that the trigger type corresponding to the screen switching trigger operation is native conversion. Screen.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:查询预设的转屏画面库,转屏画面库记录有各触发类型与各转屏画面之间的对应关系;根据触发类型在转屏画面库进行画面匹配,得到画面匹配结果;根据画面匹配结果确定与触发类型对应预设的转屏画面。In one embodiment, the processor further implements the following steps when executing the computer program: querying a preset screen-turning screen library, which records the corresponding relationship between each trigger type and each screen-turning screen; The screen switching library performs screen matching to obtain the screen matching result; according to the screen matching result, the preset screen switching screen corresponding to the trigger type is determined.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:当检测到针对转屏画面库的配置事件时,展示转屏画面库对应的画面库配置界面;在触发针对画面库配置界面的画面库配置操作后,获取通过画面库配置操作所 产生的画面库配置数据;根据画面库配置数据对转屏画面库进行。In one embodiment, the processor further implements the following steps when executing the computer program: when a configuration event for the screen library is detected, the screen library configuration interface corresponding to the screen library is displayed; when the configuration interface for the screen library is triggered After the screen library configuration operation, the screen library configuration data generated by the screen library configuration operation is obtained; the screen library is transferred according to the screen library configuration data.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:当检测到转屏事件时,确定触发转屏事件的转屏触发操作;确定触发转屏事件的转屏触发操作对应所属的触发类型;确定触发类型对应预设的转屏画面;在根据转屏事件进行横竖屏切换处理时,展示触发类型对应的转屏画面。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when a screen switching event is detected, the screen switching that triggers the screen switching event is determined Trigger operation; determine the trigger type to which the screen-turning trigger operation that triggers the screen-turning event belongs; determine the trigger type corresponding to the preset screen-turning screen; display the screen-turning screen corresponding to the trigger type when performing horizontal and vertical screen switching processing according to the screen-turning event .
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:查询触发转屏事件的转屏触发操作对应的切换流程;从切换流程中确定切换类型函数;根据切换类型函数和转屏触发操作对应的指令确定转屏触发操作对应所属的触发类型。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: query the switching process corresponding to the screen switching trigger operation that triggers the screen switching event; determine the switching type function from the switching process; according to the switching type function and screen switching trigger The instruction corresponding to the operation determines the trigger type to which the screen-turning trigger operation corresponds.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:查询预设的触发类型表,触发类型表记录有各切换类型函数和各转屏触发操作对应的指令分别与各转屏触发操作对应所属触发类型的对应关系;根据切换类型函数、转屏触发操作对应的指令和触发类型表确定转屏触发操作对应所属的触发类型。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: query a preset trigger type table, and the trigger type table records various switching type functions and instructions corresponding to each screen switching trigger operation respectively and each screen switching trigger The corresponding relationship of the operation corresponding to the trigger type; the trigger type corresponding to the switching screen trigger operation is determined according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:查询预设的类型确定优先级;按照类型确定优先级从高到低的顺序,将切换类型函数、转屏触发操作对应的指令和触发类型表进行类型匹配,得到类型匹配结果;根据类型匹配结果确定转屏触发操作对应所属的触发类型。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: query the preset type to determine the priority; according to the type to determine the priority from high to low, switch the type function and switch screen trigger operation corresponding to The instruction and the trigger type table perform type matching to obtain the type matching result; according to the type matching result, the trigger type corresponding to the screen switching trigger operation is determined.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:当检测到针对触发类型表的配置事件时,展示触发类型表对应的类型表配置界面;在触发针对类型表配置界面的类型表配置操作后,获取通过类型表配置操作所产生的类型表配置数据;根据类型表配置数据对触发类型表进行更新配置。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when a configuration event for the trigger type table is detected, the type table configuration interface corresponding to the trigger type table is displayed; After the table configuration operation, the type table configuration data generated by the type table configuration operation is obtained; the trigger type table is updated and configured according to the type table configuration data.
在一个实施例中,触发类型表记录的触发类型包括锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换;计算机程序被处理器执行时还实现以下步骤:当切换类型函数的函数值包括锁屏标签时,确定转屏触发操作对应所属的触发类型为锁屏接口切换; 当转屏触发操作对应的指令包括通知栏标签时,确定转屏触发操作对应所属的触发类型为通知栏切换;当转屏触发操作对应的指令包括多任务引用切换标签时,确定转屏触发操作对应所属的触发类型为多任务与应用间切换;当转屏触发操作对应的指令包括桌面启动标签时,确定转屏触发操作对应所属的触发类型为桌面启动应用切换;当转屏触发操作对应的指令包括返回桌面标签时,确定转屏触发操作对应所属的触发类型为返回桌面切换;当切换类型函数的函数值包括应用组件任务标签时,确定转屏触发操作对应所属的触发类型为应用间切换。In one embodiment, the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, switching between multitasking and applications, switching between desktop startup applications, switching back to desktop, and switching between applications; when the computer program is executed by the processor The following steps are also implemented: when the function value of the switch type function includes the lock screen label, determine that the trigger type corresponding to the screen switch trigger operation is the lock screen interface switch; when the instruction corresponding to the screen switch trigger operation includes the notification bar label, determine the switch The trigger type corresponding to the screen trigger operation is the notification bar switch; when the instruction corresponding to the screen trigger operation includes the multi-task reference switch tag, the trigger type corresponding to the screen trigger operation is determined to be the switching between multi-task and application; when the screen is switched When the instruction corresponding to the trigger operation includes the desktop startup tag, determine that the trigger type corresponding to the screen-turning trigger operation is desktop startup application switching; when the instruction corresponding to the screen-turning trigger operation includes the desktop return tag, determine the trigger that the screen-turning trigger operation belongs to The type is switching back to the desktop; when the function value of the switching type function includes the application component task tag, it is determined that the trigger type corresponding to the screen switching trigger operation is the switching between applications.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:当确定切换类型函数的函数值与触发类型表记录的触发类型不匹配时,确定转屏触发操作对应所属的触发类型为原生转屏。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, it is determined that the trigger type corresponding to the screen switching trigger operation is native Turn screen.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:查询预设的转屏画面库,转屏画面库记录有各触发类型与各转屏画面之间的对应关系;根据触发类型在转屏画面库进行画面匹配,得到画面匹配结果;根据画面匹配结果确定与触发类型对应预设的转屏画面。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: query a preset screen-turning screen library, which records the corresponding relationship between each trigger type and each screen-turned screen; according to the trigger type Perform screen matching in the screen switching library to obtain the screen matching result; according to the screen matching result, determine the preset screen switching screen corresponding to the trigger type.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:当检测到针对转屏画面库的配置事件时,展示转屏画面库对应的画面库配置界面;在触发针对画面库配置界面的画面库配置操作后,获取通过画面库配置操作所产生的画面库配置数据;根据画面库配置数据对转屏画面库进行。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when a configuration event for the screen library is detected, the screen library configuration interface corresponding to the screen library is displayed; when the configuration interface for the screen library is triggered After the screen library configuration operation, obtain the screen library configuration data generated by the screen library configuration operation; according to the screen library configuration data, the screen library is transferred to the screen.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为 说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage. In the medium, when the computer program is executed, it may include the procedures of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, they should It is considered as the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and their description is relatively specific and detailed, but they should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (12)

  1. 一种转屏画面显示方法,所述方法包括:A method for displaying a screen-turned picture, the method comprising:
    当检测到转屏事件时,确定触发所述转屏事件的转屏触发操作;When a screen switching event is detected, determining a screen switching trigger operation that triggers the screen switching event;
    确定触发所述转屏事件的转屏触发操作对应所属的触发类型;Determining the trigger type to which the screen switching trigger operation that triggers the screen switching event belongs;
    确定所述触发类型对应预设的转屏画面;Determining that the trigger type corresponds to a preset screen-turning screen;
    在根据所述转屏事件进行横竖屏切换处理时,展示所述触发类型对应的所述转屏画面。When performing horizontal and vertical screen switching processing according to the screen switching event, the screen switching screen corresponding to the trigger type is displayed.
  2. 根据权利要求1所述的方法,其特征在于,所述确定触发所述转屏事件的转屏触发操作对应所属的触发类型包括:The method according to claim 1, wherein the determining the trigger type corresponding to the screen switching trigger operation that triggers the screen switching event comprises:
    查询触发所述转屏事件的转屏触发操作对应的切换流程;Query the switching process corresponding to the screen switching trigger operation that triggered the screen switching event;
    从所述切换流程中确定切换类型函数;Determining the switching type function from the switching process;
    根据所述切换类型函数和所述转屏触发操作对应的指令确定所述转屏触发操作对应所属的触发类型。The trigger type corresponding to the screen switching trigger operation is determined according to the switching type function and the instruction corresponding to the screen switching trigger operation.
  3. 根据权利要求2所述的方法,其特征在于,根据所述切换类型函数和所述转屏触发操作对应的指令确定所述转屏触发操作对应所属的触发类型包括:The method according to claim 2, wherein determining the trigger type corresponding to the screen switching trigger operation according to the switching type function and the instruction corresponding to the screen switching trigger operation comprises:
    查询预设的触发类型表,所述触发类型表记录有各切换类型函数和各转屏触发操作对应的指令分别与各转屏触发操作对应所属触发类型的对应关系;Query a preset trigger type table, where the trigger type table records the corresponding relationship between each switching type function and the instruction corresponding to each screen switching trigger operation and the corresponding trigger type of each screen switching trigger operation;
    根据所述切换类型函数、所述转屏触发操作对应的指令和所述触发类型表确定所述转屏触发操作对应所属的触发类型。The trigger type corresponding to the screen switching trigger operation is determined according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述切换类型函数、所述转屏触发操作对应的指令和所述触发类型表确定所述转屏触发操作对应所属的触发类型包括:The method according to claim 3, wherein the determining the trigger type corresponding to the screen switching trigger operation according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table comprises :
    查询预设的类型确定优先级;Query the preset type to determine the priority;
    按照所述类型确定优先级从高到低的顺序,将所述切换类型函数、所述转屏触发操作对应的指令和所述触发类型表进行类型匹配,得到类型匹配结 果;According to the order of the type determination priority from high to low, type matching the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table to obtain a type matching result;
    根据所述类型匹配结果确定所述转屏触发操作对应所属的触发类型。According to the type matching result, the trigger type corresponding to the screen switching trigger operation is determined.
  5. 根据权利要求3所述的方法,其特征在于,还包括:The method according to claim 3, further comprising:
    当检测到针对所述触发类型表的配置事件时,展示所述触发类型表对应的类型表配置界面;When a configuration event for the trigger type table is detected, display the type table configuration interface corresponding to the trigger type table;
    在触发针对所述类型表配置界面的类型表配置操作后,获取通过所述类型表配置操作所产生的类型表配置数据;After triggering the type table configuration operation for the type table configuration interface, acquiring the type table configuration data generated by the type table configuration operation;
    根据所述类型表配置数据对所述触发类型表进行更新配置。The trigger type table is updated and configured according to the type table configuration data.
  6. 根据权利要求3所述的方法,其特征在于,所述触发类型表记录的触发类型包括锁屏接口切换、通知栏切换、多任务与应用间切换、桌面启动应用切换、返回桌面切换和应用间切换;所述根据所述切换类型函数、所述转屏触发操作对应的指令和所述触发类型表确定所述转屏触发操作对应所属的触发类型包括:The method according to claim 3, wherein the trigger types recorded in the trigger type table include lock screen interface switching, notification bar switching, multitasking and switching between applications, desktop startup application switching, back to desktop switching, and application Switching; the determination of the trigger type corresponding to the screen switching trigger operation according to the switching type function, the instruction corresponding to the screen switching trigger operation, and the trigger type table includes:
    当所述切换类型函数的函数值包括锁屏标签时,确定所述转屏触发操作对应所属的触发类型为锁屏接口切换;When the function value of the switch type function includes a lock screen label, determining that the trigger type corresponding to the screen switch trigger operation belongs to lock screen interface switch;
    当所述转屏触发操作对应的指令包括通知栏标签时,确定所述转屏触发操作对应所属的触发类型为通知栏切换;When the instruction corresponding to the screen switching trigger operation includes a notification bar label, determining that the trigger type corresponding to the screen switching trigger operation belongs to notification bar switching;
    当所述转屏触发操作对应的指令包括多任务引用切换标签时,确定所述转屏触发操作对应所属的触发类型为多任务与应用间切换;When the instruction corresponding to the screen switching trigger operation includes a multitask reference switching tag, determining that the trigger type corresponding to the screen switching trigger operation belongs to multitasking and switching between applications;
    当所述转屏触发操作对应的指令包括桌面启动标签时,确定所述转屏触发操作对应所属的触发类型为桌面启动应用切换;When the instruction corresponding to the screen switching trigger operation includes a desktop startup tag, determining that the trigger type corresponding to the screen switching trigger operation belongs to desktop startup application switching;
    当所述转屏触发操作对应的指令包括返回桌面标签时,确定所述转屏触发操作对应所属的触发类型为返回桌面切换;When the instruction corresponding to the screen switching trigger operation includes a return to desktop tab, determining that the trigger type corresponding to the screen switching trigger operation belongs to switching back to the desktop;
    当所述切换类型函数的函数值包括应用组件任务标签时,确定所述转屏触发操作对应所属的触发类型为应用间切换。When the function value of the switching type function includes the application component task tag, it is determined that the trigger type corresponding to the screen switching trigger operation is the switching between applications.
  7. 根据权利要求6所述的方法,其特征在于,还包括:The method according to claim 6, further comprising:
    当确定所述切换类型函数的函数值与所述触发类型表记录的触发类型不 匹配时,确定所述转屏触发操作对应所属的触发类型为原生转屏。When it is determined that the function value of the switching type function does not match the trigger type recorded in the trigger type table, it is determined that the trigger type corresponding to the screen switching trigger operation belongs to the native screen switching.
  8. 根据权利要求1至7任意一项所述的方法,其特征在于,所述确定所述触发类型对应预设的转屏画面包括:The method according to any one of claims 1 to 7, wherein the determining that the trigger type corresponds to a preset screen-turning screen comprises:
    查询预设的转屏画面库,所述转屏画面库记录有各触发类型与各转屏画面之间的对应关系;Query a preset screen-turning screen library, which records the corresponding relationship between each trigger type and each screen-turning screen;
    根据所述触发类型在所述转屏画面库进行画面匹配,得到画面匹配结果;Performing screen matching in the screen-turning screen library according to the trigger type to obtain a screen matching result;
    根据所述画面匹配结果确定与所述触发类型对应预设的转屏画面。According to the screen matching result, a preset screen transition screen corresponding to the trigger type is determined.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    当检测到针对所述转屏画面库的配置事件时,展示所述转屏画面库对应的画面库配置界面;When a configuration event for the screen-turning screen library is detected, display the screen library configuration interface corresponding to the screen-turning screen library;
    在触发针对所述画面库配置界面的画面库配置操作后,获取通过所述画面库配置操作所产生的画面库配置数据;After triggering the screen library configuration operation for the screen library configuration interface, acquiring the screen library configuration data generated by the screen library configuration operation;
    根据所述画面库配置数据对所述转屏画面库进行更新配置。The screen-turning screen library is updated and configured according to the screen library configuration data.
  10. 一种转屏画面显示装置,其特征在于,所述装置包括:A screen display device for turning screen, characterized in that the device comprises:
    触发操作确定模块,用于当检测到转屏事件时,确定触发所述转屏事件的转屏触发操作;The trigger operation determination module is used to determine the screen switching trigger operation that triggers the screen switching event when the screen switching event is detected;
    触发类型确定模块,用于确定触发所述转屏事件的转屏触发操作对应所属的触发类型;A trigger type determining module, configured to determine the trigger type to which the screen switching trigger operation that triggers the screen switching event belongs;
    转屏画面确定模块,用于确定所述触发类型对应预设的转屏画面;The screen transition picture determining module is used to determine the preset screen transition picture corresponding to the trigger type;
    转屏画面展示模块,用于在根据所述转屏事件进行横竖屏切换处理时,展示所述触发类型对应的所述转屏画面。The screen switching display module is configured to display the screen switching screen corresponding to the trigger type when performing horizontal and vertical screen switching processing according to the screen switching event.
  11. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至9中任一项所述方法的步骤。A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 9 when the computer program is executed by the processor.
  12. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至9中任一项所述的方法的步骤。A computer-readable storage medium with a computer program stored thereon, wherein the computer program implements the steps of the method according to any one of claims 1 to 9 when the computer program is executed by a processor.
    Figure PCTCN2020121004-appb-100001
    Figure PCTCN2020121004-appb-100001
PCT/CN2020/121004 2019-10-15 2020-10-15 Screen rotation picture display method and apparatus, computer device, and storage medium WO2021073549A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910978531.0 2019-10-15
CN201910978531.0A CN112667327B (en) 2019-10-15 2019-10-15 Method and device for displaying screen turning picture, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021073549A1 true WO2021073549A1 (en) 2021-04-22

Family

ID=75400078

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/121004 WO2021073549A1 (en) 2019-10-15 2020-10-15 Screen rotation picture display method and apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN112667327B (en)
WO (1) WO2021073549A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104672A (en) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 Mobile phone and method for switching landscape display modes and portrait display modes of mobile phone
US20130222431A1 (en) * 2012-02-24 2013-08-29 Samsung Electronics Co., Ltd. Method and apparatus for content view display in a mobile device
CN104978115A (en) * 2014-04-02 2015-10-14 腾讯科技(深圳)有限公司 Content display method and device
CN109634542A (en) * 2018-10-26 2019-04-16 努比亚技术有限公司 A kind of switching display control method, terminal and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455249B (en) * 2012-05-30 2018-12-18 腾讯科技(深圳)有限公司 The method and apparatus of split screen switching
JP6892429B2 (en) * 2014-03-12 2021-06-23 華為終端有限公司 Screen lock method and mobile device
CN107102801A (en) * 2017-03-28 2017-08-29 北京小米移动软件有限公司 Terminal screen spinning solution and device
CN108334349B (en) * 2017-08-29 2021-07-13 Oppo广东移动通信有限公司 Mobile terminal, display image switching method thereof and computer-readable storage medium
CN108234763B (en) * 2017-12-29 2021-02-26 阿里巴巴(中国)有限公司 Horizontal and vertical screen switching method and device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104672A (en) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 Mobile phone and method for switching landscape display modes and portrait display modes of mobile phone
US20130222431A1 (en) * 2012-02-24 2013-08-29 Samsung Electronics Co., Ltd. Method and apparatus for content view display in a mobile device
CN104978115A (en) * 2014-04-02 2015-10-14 腾讯科技(深圳)有限公司 Content display method and device
CN109634542A (en) * 2018-10-26 2019-04-16 努比亚技术有限公司 A kind of switching display control method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN112667327A (en) 2021-04-16
CN112667327B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US20200241746A1 (en) Multi-task management method and terminal device
US10613701B2 (en) Customizable bladed applications
US9851865B2 (en) Method for managing application and electronic device thereof
WO2021082739A1 (en) Multi-task interface management method and electronic device
US11165963B2 (en) Device, method, and graphical user interface for accessing an application in a locked device
EP3805908B1 (en) Annotation display method, device and apparatus, and storage medium
US20120216146A1 (en) Method, apparatus and computer program product for integrated application and task manager display
TWI515646B (en) Methods for handling applications running in the extend mode and tablet computers using the same
US9804767B2 (en) Light dismiss manager
US11455075B2 (en) Display method when application is exited and terminal
WO2022048513A1 (en) Search display method and apparatus, and electronic device
US9678632B2 (en) Data processing method and apparatus
US20240077998A1 (en) Application compatibility on a computing device
CN114116098A (en) Application icon management method and device, electronic equipment and storage medium
WO2018145582A1 (en) Method and device for view transition
WO2023198064A1 (en) Application program starting method and apparatus, and electronic device and storage medium
WO2021073549A1 (en) Screen rotation picture display method and apparatus, computer device, and storage medium
WO2023046106A1 (en) Desktop editing method and apparatus, and electronic device
EP4345593A1 (en) Screen rotation control method and apparatus, and electronic device
CN115576463A (en) Background application management method and device, electronic equipment and medium
WO2022143337A1 (en) Display control method and apparatus, and electronic device and storage medium
CN114416269A (en) Interface display method and display device
CN114115639A (en) Interface control method and device, electronic equipment and storage medium
CN112948844A (en) Control method and device and electronic equipment
WO2020113502A1 (en) Screen division control method, display terminal and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20877512

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 22/08/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20877512

Country of ref document: EP

Kind code of ref document: A1