WO2023179182A1 - Device split screen adaptation processing - Google Patents

Device split screen adaptation processing Download PDF

Info

Publication number
WO2023179182A1
WO2023179182A1 PCT/CN2023/071361 CN2023071361W WO2023179182A1 WO 2023179182 A1 WO2023179182 A1 WO 2023179182A1 CN 2023071361 W CN2023071361 W CN 2023071361W WO 2023179182 A1 WO2023179182 A1 WO 2023179182A1
Authority
WO
WIPO (PCT)
Prior art keywords
split
screen
configuration
screen configuration
program
Prior art date
Application number
PCT/CN2023/071361
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 WO2023179182A1 publication Critical patent/WO2023179182A1/en

Links

Images

Classifications

    • 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

Definitions

  • This document relates to the field of data processing technology, especially methods and devices for device split-screen adaptation processing.
  • One or more embodiments of this specification provide a device split-screen adaptation processing method, applied to a program container, including: detecting the global split-screen configuration of the terminal device running the program container, and the program split of the accessed subroutine.
  • Screen configuration obtain local detection results; send an access request for the subroutine to the server and receive a returned request response, the request response carries remote detection results for detecting the dynamic split-screen configuration of the subroutine; according to the The local detection results and the remote detection results are subjected to split-screen adaptation processing to obtain a target split-screen configuration; based on the target split-screen configuration, a split-screen mode is set on the terminal device for accessing the subroutine.
  • One or more embodiments of this specification provide a device split-screen adaptation processing device, running in a program container, including: a local detection module configured to detect the global split-screen configuration of the terminal device running the program container, and The program of the accessed subroutine is configured in split screen to obtain local detection results; the remote detection module is configured to send an access request of the subroutine to the server and receive a returned request response, and the request response carries the detection of the subroutine.
  • a split-screen adaptation processing module configured to perform split-screen adaptation processing based on the local detection results and the remote detection results to obtain the target split-screen configuration
  • split-screen mode settings A module configured to set a split-screen mode for accessing the subroutine on the terminal device based on the target split-screen configuration.
  • One or more embodiments of the present specification provide a terminal device, including a processor and a memory configured to store computer-executable instructions.
  • the computer-executable instructions When executed, the computer-executable instructions cause the processor to: through the terminal Detect the global split-screen configuration of the program container running on the device, as well as the program split-screen configuration of the accessed subprogram, and obtain the local detection results; send the access request of the subprogram to the server and receive the returned request response, so
  • the request response carries the remote detection result of detecting the dynamic split-screen configuration of the subroutine; perform split-screen adaptation processing according to the local detection result and the remote detection result to obtain the target split-screen configuration; based on the target split-screen configuration Screen configuration, setting the split-screen mode for accessing the subroutine on the terminal device.
  • One or more embodiments of this specification provide a storage medium for storing computer-executable instructions.
  • the computer-executable instructions When executed by a processor, the computer-executable instructions implement the following process: detecting global split screen of a terminal device running a program container. configuration, as well as the program split-screen configuration of the accessed subprogram, to obtain local detection results; send an access request for the subprogram to the server and receive a returned request response; the request response carries the dynamic analysis of the subprogram that is detected Remote detection results of screen configuration; perform split-screen adaptation processing according to the local detection results and the remote detection results to obtain the target split-screen configuration; based on the target split-screen configuration, set the terminal device to perform the sub-screen configuration Split screen mode for program access.
  • Figure 1 is a processing flow chart of a device split-screen adaptation processing method provided by one or more embodiments of this specification;
  • Figure 2 is a schematic diagram of a page frame in a horizontal screen state provided by one or more embodiments of this specification;
  • Figure 3 is a schematic diagram of a page frame in a vertical screen state provided by one or more embodiments of this specification;
  • Figure 4 is a processing flow chart of a device split-screen adaptation processing method applied to IoT device scenarios provided by one or more embodiments of this specification;
  • Figure 5 is a processing flow chart of another device split-screen adaptation processing method provided by one or more embodiments of this specification.
  • Figure 6 is a schematic diagram of a device split-screen adaptation processing device provided by one or more embodiments of this specification.
  • Figure 7 is a schematic structural diagram of a terminal device provided by one or more embodiments of this specification.
  • FIG. 1 An embodiment of a device split-screen adaptation processing method provided in this specification: Referring to Figure 1, the device split-screen adaptation processing method provided in this embodiment is applied to a program container. The method specifically includes steps S102 to S108.
  • Step S102 Detect the global split-screen configuration of the terminal device running the program container and the program split-screen configuration of the accessed subprogram, and obtain local detection results.
  • the device split-screen adaptation processing method provided by this application uses the local detection method and the remote split-screen configuration detection method implemented with the access request of the sub-program during the process of the terminal device accessing the sub-program. Perform split-screen configuration detection in three dimensions: screen configuration and dynamic split-screen configuration, and based on the detection results of split-screen configuration in these three dimensions, determine the current subroutine access adaptation on the terminal device through split-screen adaptation processing
  • the target split-screen configuration is finally set to the split-screen mode for subroutine access on the terminal device according to the target split-screen configuration, so that the page layout during the subroutine access process is more suitable for the screen of the terminal device, so that the terminal can be used more rationally
  • the screen of the device displays the subprogram access page, improving the visual effect of subprogram access through the terminal device.
  • the terminal device described in this embodiment is configured with a display screen, including but not limited to at least one of the following: a vehicle terminal installed on the vehicle, an IoT (Internet of Things) device external to the vehicle, a smart speaker, an unmanned vending machine, and an interactive advertisement screens, POS equipment, and smart home appliances such as smart TVs and smart refrigerators.
  • a vehicle terminal installed on the vehicle
  • IoT Internet of Things
  • smart speaker external to the vehicle
  • an unmanned vending machine an interactive advertisement screens
  • POS equipment personal computer
  • smart home appliances such as smart TVs and smart refrigerators.
  • the party or parties that provide terminal equipment are called equipment providers, and the equipment providers specifically include terminal equipment manufacturers, sellers, and/or service operation and maintenance parties of terminal equipment.
  • the subprogram refers to a program function module or application component installed on the client, or a program function module or application component loaded and installed by the client, such as an applet. From a service perspective, the subroutines have the ability to independently provide self-closed-loop services, such as subroutines with self-closed-loop capabilities for service reservation and subscription message push.
  • the program container refers to an operating framework or an operating engine provided for terminal equipment. By installing the program container on the terminal equipment, subprogram access can be achieved on the terminal equipment.
  • the subprogram described in this embodiment is mounted on the program container running on the terminal device, and the interaction and access of the subprogram are realized through the program container.
  • the terminal device is also deployed with a device client.
  • the device client refers to the system program on which the IoT device itself depends.
  • the program container reduces the occupation of the terminal device's operating resources, thereby reducing the demand on the terminal device when the operating resources of the terminal device are limited.
  • the occupation of equipment's operating resources also helps to improve the operating efficiency of the terminal equipment itself.
  • the program container is installed and configured by the device provider of the terminal device. After the installation and configuration is completed, the device client can perform data communication with the program container through interface calling after the terminal device is started. Specifically, in the terminal When the device is started, the device client calls the program container to establish a data connection with the server. Through this data connection, data interaction with the server during the subprogram access process can be realized.
  • the global split-screen configuration refers to the configuration information of each split-screen that is set at the terminal device level to display the subroutine page according to the screen size of the terminal device.
  • the global split-screen configuration is determined by the The device provider of the terminal device performs settings during the initialization process of the terminal device. For example, the device provider sets the global split-screen configuration for the terminal device when the device leaves the factory; if the global split-screen configuration is set for the terminal device, you can Set the global split screen configuration for subroutine access.
  • the program split-screen configuration refers to the configuration information for personalized split-screen settings for the sub-program at the sub-program level based on the adaptation of the sub-program page and the terminal device.
  • the program split-screen configuration can be configured by the The equipment provider or the service provider of the subprogram performs configuration.
  • the terminal device owner can also set the program split screen configuration for the terminal device to access the subprogram when opening the subprogram for the first time. If the program split screen is set for the subprogram, screen configuration, you can access subprograms on the terminal device based on the set program split-screen configuration.
  • the above-mentioned method improves the diversity of split-screen settings by opening the split-screen setting interface at the terminal device level and sub-program level, making split-screen settings more targeted and flexible.
  • the global split-screen configuration consists of configuration information such as the position, size, and proportion of each split-screen in at least one split-screen.
  • the program split-screen configuration can also consist of the position of each split-screen in at least one split-screen. , size, proportion and other configuration information.
  • the global split-screen configuration and the program split-screen configuration may also be composed of one or more configuration information such as the position, size, and proportion of each split screen in at least one split screen, or may be composed of the aforementioned configuration information. One or more of them are combined with other configuration information, which is not limited in this embodiment.
  • the global split-screen configuration by storing the global split-screen configuration locally in the corresponding storage path of the terminal device, it is detected whether the global split-screen configuration is stored in the storage path. If there is stored If the global split-screen configuration is configured, a detection result carrying the global split-screen configuration is obtained; if the global split-screen configuration is not stored, a detection result of empty detection is obtained; similarly, in the process of detecting the program split-screen configuration In the corresponding storage path where the program split-screen configuration is stored, it is detected whether the program split-screen configuration is stored in the storage path.
  • the detection result carrying the program split-screen configuration is obtained; if If the program split-screen configuration is not stored, a detection result of empty detection is obtained; the local detection result consists of a detection result of detecting the global split-screen configuration and a detection result of detecting the program split-screen configuration.
  • Step S104 Send an access request for the subprogram to the server and receive a returned request response.
  • the terminal device accesses the subprogram, it sends an access request for the subprogram to the server.
  • the server accesses the subprogram.
  • Response processing obtains subprogram data, and returns the subprogram data to the program container in the form of a request response; and, after receiving the access request of the subprogram, the server detects whether the subprogram is stored in the server Dynamic split-screen configuration, that is: perform remote detection of dynamic split-screen configuration on the server.
  • the remote detection result carrying the dynamic split-screen configuration will be obtained; if the dynamic split-screen configuration is not stored , the remote detection result is obtained and the remote detection result is empty, and the remote detection result is returned to the program container through the request response.
  • the request response carries the remote detection result for detecting the dynamic split-screen configuration of the subroutine. result.
  • the dynamic split-screen configuration refers to the configuration information set for the subprogram through online setting based on the adaptation of the subprogram page and the terminal device at the subprogram level. This configuration information can be dynamically updated.
  • the dynamic split-screen configuration is set by the device provider or the service provider through the split-screen setting interface of the subprogram provided by the server.
  • the UI User Interface
  • Step S106 Perform split-screen adaptation processing according to the local detection result and the remote detection result to obtain a target split-screen configuration.
  • split-screen adaptation processing is performed according to the local detection result and the remote detection result to obtain a target split-screen configuration.
  • the split-screen adaptation processing refers to determining whether the sub-screen configuration is currently performed on the terminal device in split-screen configurations at different levels (global split-screen configuration at the terminal device level, program split-screen configuration at the sub-program level). The program accesses a split-screen configuration that is more suitable for this access scenario.
  • split-screen adaptation processing is performed according to the local detection result and the remote detection result to obtain the target split-screen configuration, including: if the local detection result includes the global Split-screen configuration and the program split-screen configuration, and the remote detection result includes the dynamic split-screen configuration, according to the respective adaptations of the global split-screen configuration, the program split-screen configuration and the dynamic split-screen configuration Priority determines the target split-screen configuration.
  • the adaptation priority of the dynamic split-screen configuration is higher than the adaptation priority of the program split-screen configuration
  • the adaptation priority of the program split-screen configuration is higher than the adaptation priority of the global split-screen configuration. class.
  • the respective adaptation priorities according to the global split-screen configuration and the dynamic split-screen configuration are determine the target split-screen configuration; or, if the local detection result includes the program split-screen configuration, and the remote detection result includes the dynamic split-screen configuration, according to the program split-screen configuration and the dynamic The respective adaptation priorities of the split-screen configurations determine the target split-screen configuration.
  • the reference split-screen configuration set by the program container is determined as the target split-screen configuration.
  • the reference split-screen configuration refers to the bottom-up split-screen configuration set by the program container, so that when the global split-screen configuration, the program split-screen configuration and the dynamic split-screen configuration do not exist, the sub-screen configuration performed by the terminal device Split-screen adaptation is performed during the program access process to improve the comprehensiveness of split-screen adaptation.
  • the dynamic split-screen configuration is determined as the target split-screen configuration; if the remote detection result is empty and If the local detection result contains the global split-screen configuration or the program split-screen configuration, then the local detection result containing the global split-screen configuration or the program split-screen configuration is determined to be the target split-screen configuration.
  • the process of performing split-screen adaptation processing based on the local detection result and the remote detection result can be implemented in the following manner: detecting whether the remote detection result contains a dynamic split-screen configuration; if so, the remote detection result is The dynamic split-screen configuration included in the detection result is determined to be the target split-screen configuration; if not, detect whether the local detection result includes the program split-screen configuration; if so, determine the program split-screen configuration included in the local detection result to be the target split-screen configuration.
  • the target split-screen configuration if not, detect whether the local detection result contains the global split-screen configuration; if so, determine the global split-screen configuration included in the local detection result as the target split-screen configuration; if not, determine the global split-screen configuration.
  • the bottom-up split-screen configuration set by the program container is determined as the target split-screen configuration.
  • the screen may "switch horizontally and vertically".
  • the terminal device accesses the subprogram and switches screens
  • the corresponding split-screen combination configuration and split-screen parameters can be read from the cache to improve the response timeliness of screen switching during subprogram access.
  • Step S108 Based on the target split-screen configuration, set a split-screen mode for accessing the subroutine on the terminal device.
  • a split-screen mode is set on the terminal device for accessing the subroutine based on the target split-screen configuration.
  • the split-screen mode refers to a split-screen mode on the terminal device.
  • setting the split-screen mode in the terminal device for accessing the subprogram refers to applying the target split-screen configuration to When the subroutine access is performed on a terminal device, after the split-screen mode of the subroutine access is set based on the target split-screen configuration, subsequent subroutine access can be performed in accordance with the target split-screen configuration during the subroutine access process.
  • the screen of the terminal device displays the corresponding split-screen page.
  • the target split-screen configuration can be preloaded to shorten the time for page rendering after receiving the subroutine data returned by the server.
  • the following method is used to implement preloading of the target split-screen configuration: constructing a first page frame for accessing the subroutine in the horizontal screen state of the terminal device according to the first split-screen combination configuration and the first split-screen parameters. , and construct a second page frame for accessing the subroutine in the vertical screen state of the terminal device according to the second split-screen combination configuration and the second split-screen parameters.
  • the first page frame includes a first split-screen area, a program interaction area and a second split-screen area; wherein the first split-screen area is used to display the performance of the terminal device within a preset time range.
  • the split-screen area corresponding to split-screen A is used to display the list of subroutines accessed by the user in the current IoT device in the past week; the split-screen area corresponding to split-screen B The screen area is used to display the operational information of the subprogram currently visited by the user; the split-screen area corresponding to the main body of the mini program is used to display the page of the subprogram currently visited.
  • the second page frame includes a first split-screen area and a program interaction area; wherein the first split-screen area is used to display a list of subprograms accessed by the terminal device within a preset time range. ;
  • the program interaction area is used to display the program page of the subprogram.
  • the split-screen area corresponding to split-screen A is used to display the list of subprograms that the user has accessed in the current IoT device in the past week; the sub-program corresponding to the main body of the mini program The screen area is used to display the page of the currently accessed subroutine.
  • the first page frame may also be composed of a program interaction area and one or It is composed of multiple split-screen areas, or the program interaction area is used as the first page frame in the horizontal screen state; similarly, the second page frame in the vertical screen state can also be composed of one or more split-screen areas and the program interaction area, or, Use the program interaction area as the second page frame in portrait mode.
  • the above-mentioned process of setting the split-screen mode for accessing the subroutine on the terminal device based on the target split-screen configuration can also be replaced by the process of setting the split-screen mode based on the first split-screen combination configuration and
  • the first split-screen parameter is constructed in the first page frame accessed by the subroutine in the horizontal screen state of the terminal device, and is constructed in the second split-screen combination configuration and the second split-screen parameter according to the second split-screen combination configuration and the second split-screen parameter.
  • the implementation process of the second page frame accessed by the subroutine is performed in the portrait screen state of the terminal device.
  • the program container renders and displays the access page of the subprogram on the basis of receiving the subprogram data of the subprogram returned by the server.
  • this embodiment distinguishes the screen status of the terminal device (horizontal screen status/vertical screen status), for different The screen status is displayed differently, so that the screen of the terminal device can be more reasonably used to display the access page of the subprogram in different screen states, and the visual effect of the terminal device accessing the subprogram in different screen states is improved; specifically, if The terminal device is in a horizontal screen state, reads the subroutine data contained in the request response, and associates the subroutine data to the split-screen area of the first page frame; based on the associated subroutine data and The first page frame renders the access page of the subroutine, and displays the rendering to obtain the horizontal screen access page.
  • the terminal device switches from a horizontal screen state to a vertical screen state, associate the subroutine data to the split-screen area of the second page frame; based on the associated subroutine data and the third
  • the second page frame renders the access page of the subroutine, and updates the horizontal access page using the vertical access page obtained by rendering.
  • the terminal device if the terminal device is in the portrait screen state, read the subroutine data contained in the request response, and associate the subroutine data to the split-screen area of the second page frame; based on the associated subroutine
  • the program data and the second page frame render the access page of the subprogram, and display the rendering to obtain the vertical screen access page.
  • the following takes the application of a device split-screen adaptation processing method provided in this embodiment in an IoT device scenario as an example to further explain the device split-screen adaptation processing method provided in this embodiment. See Figure 4, applied to IoT devices.
  • the device split-screen adaptation processing method of the scene specifically includes the following steps.
  • Step S402 Detect the global split-screen configuration of the IoT device running the program container and the program split-screen configuration of the accessed subprogram, and obtain local detection results.
  • Step S404 Send a subprogram access request to the server and receive a returned request response.
  • the request response carries the remote detection result of the dynamic split-screen configuration of the detection subroutine.
  • Step S406 Perform split-screen adaptation processing based on the local detection results and remote detection results to obtain the target split-screen configuration.
  • split-screen adaptation processing is performed based on the local detection results and remote detection results, which specifically includes: detecting whether the remote detection results include dynamic split-screen configuration; if so, determining the dynamic split-screen configuration included in the remote detection results as the target split-screen configuration; If not, check whether the local detection result contains the program split-screen configuration; if so, determine the program split-screen configuration included in the local detection result as the target split-screen configuration; if not, check whether the local detection result contains the global split-screen configuration; if so, determine The global split-screen configuration included in the local detection results is determined to be the target split-screen configuration; if not, the bottom-up split-screen configuration set by the program container is determined to be the target split-screen configuration.
  • Step S408 Cache the first split-screen combination configuration and first split-screen parameters of the IoT device in the horizontal screen state contained in the target split-screen configuration, and the second split-screen combination configuration and second split-screen parameters of the vertical screen state.
  • Step S410 Build a first page frame based on the first split-screen combination configuration and the first split-screen parameters, and build a second page frame based on the second split-screen combination configuration and the second split-screen parameters.
  • Step S412 if the IoT device is in a landscape orientation, read the subroutine data contained in the request response, and associate the subroutine data to the split-screen area of the first page frame.
  • Step S414 Render the access page of the subroutine based on the associated subroutine data and the first page frame, and display the rendering to obtain the horizontal screen access page.
  • Step S416 If the IoT device switches from the horizontal screen state to the vertical screen state, associate the subroutine data to the split-screen area of the second page frame.
  • Step S418 Render the access page of the subroutine based on the associated subroutine data and the second page frame, and update the horizontal screen access page using the vertical screen access page obtained by rendering.
  • This embodiment also provides another device split-screen adaptation processing method.
  • Refer to the device split-screen adaptation processing method provided in Figure 5 which specifically includes the following steps.
  • Step S502 Obtain the global split-screen configuration configured during the device initialization process of the terminal device running the program container, and the program split-screen configuration configured for the subprogram.
  • Step S504 Send an access request for the subprogram to the server, and read the dynamic split-screen configuration of the subprogram from the returned request response.
  • Step S506 Perform split-screen adaptation processing according to the global split-screen configuration, program split-screen configuration, and dynamic split-screen configuration to obtain the target split-screen configuration.
  • split-screen adaptation processing is performed according to the global split-screen configuration, program split-screen configuration, and dynamic split-screen configuration, including: determining the target according to the respective adaptation priorities of the global split-screen configuration, program split-screen configuration, and dynamic split-screen configuration.
  • Split screen configuration For example, the one with a higher adaptation priority than the other two among the global split-screen configuration, program split-screen configuration, and dynamic split-screen configuration is determined as the target split-screen configuration.
  • Step S508 Set a split-screen mode for subroutine access on the terminal device based on the target split-screen configuration.
  • the terminal included in the target split-screen configuration can be cached.
  • the process of setting the split-screen mode for subroutine access on the terminal device based on the target split-screen configuration can be replaced by constructing the first page frame according to the first split-screen combination configuration and the first split-screen parameters, and constructing the first page frame according to the first split-screen combination configuration and the first split-screen parameter.
  • the process of constructing the second page frame by combining the configuration of the second split screen and the parameters of the second split screen.
  • the rendering process of the horizontal screen access page includes: if the terminal device is in the horizontal screen state, read the subroutine data contained in the request response, and associate the subroutine data to the split-screen area of the first page frame; based on the association The subroutine data and the first page frame are used to render the access page of the subroutine, and display the rendering to obtain the horizontal screen access page.
  • the rendering process of the vertical screen access page includes: if the terminal device switches from the horizontal screen state to the vertical screen state, associate the subprogram data to the split-screen area of the second page frame; based on the associated subprogram data and the second page frame Render the access page of the subroutine, and update the horizontal access page using the rendered vertical access page.
  • a device split-screen adaptation processing device provided in this specification are as follows: In the above embodiment, a device split-screen adaptation processing method is provided. Correspondingly, a device running on the service is also provided. The device split-screen adaptation processing device of the client is explained below with reference to the accompanying drawings.
  • FIG. 6 a schematic diagram of a device split-screen adaptation processing device provided in this embodiment is shown.
  • the description is relatively simple. For relevant parts, please refer to the corresponding description of the method embodiment provided above.
  • the device embodiments described below are merely illustrative.
  • This embodiment provides a device split-screen adaptation processing device, including: a local detection module 602 configured to detect the global split-screen configuration of the terminal device running the program container and the program split-screen configuration of the accessed subprogram, Obtain local detection results; the remote detection module 604 is configured to send an access request for the subprogram to the server and receive a returned request response; the request response carries remote detection for detecting the dynamic split-screen configuration of the subprogram Result; the split-screen adaptation processing module 606 is configured to perform split-screen adaptation processing according to the local detection result and the remote detection result to obtain the target split-screen configuration; the split-screen mode setting module 608 is configured to perform split-screen adaptation processing based on the local detection result and the remote detection result.
  • the target split-screen configuration is to set a split-screen mode for accessing the subroutine on the terminal device.
  • FIG. 7 is a schematic structural diagram of a terminal device provided by one or more embodiments of this specification.
  • the terminal device may vary greatly due to different configurations or performance, and may include one or more processors 701 and memory 702.
  • the memory 702 may store one or more storage applications or data. . Among them, the memory 702 may be short-term storage or persistent storage.
  • the application program stored in the memory 702 may include one or more modules (not shown), and each module may include a series of computer-executable instructions in the terminal device.
  • the processor 701 may be configured to communicate with the memory 702 and execute a series of computer-executable instructions in the memory 702 on the terminal device.
  • the terminal device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705, one or more keyboards 706, etc.
  • the terminal device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each A module may include a series of computer-executable instructions in a terminal device, and the one or more programs configured to be executed by one or more processors may include computer-executable instructions for performing:
  • the program container detects the global split-screen configuration of the terminal device and the program split-screen configuration of the accessed subprogram, and obtains local detection results; sends an access request for the subprogram to the server and receives a returned request response; the request response carries the remote detection result for detecting the dynamic split-screen configuration of the subroutine; perform split-screen adaptation processing according to the local detection result and the remote detection result to obtain the target split-screen configuration; based on the target split-screen configuration, Set a split-screen mode for accessing the subroutine on the terminal device.
  • An example of a storage medium provided in this specification is as follows: Corresponding to the device split-screen adaptation processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a storage medium.
  • the storage medium provided by this embodiment is used to store computer executable instructions.
  • the computer executable instructions When executed by the processor, the computer executable instructions implement the following process: detect the global split-screen configuration of the terminal device running the program container, and the accessed subroutines.
  • the program split-screen configuration is configured to obtain local detection results; the access request of the subprogram is sent to the server and the returned request response is received; the request response carries the remote detection result of detecting the dynamic split-screen configuration of the subprogram; Split-screen adaptation processing is performed according to the local detection result and the remote detection result to obtain a target split-screen configuration; based on the target split-screen configuration, a split-screen mode is set on the terminal device for accessing the subroutine.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • the controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. , logic gates, switches, Application Specific Integrated Circuit (ASIC), programmable logic controllers and embedded microcontrollers.
  • controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, For Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic.
  • the controller in addition to implementing the controller in the form of pure computer-readable program code, the controller can be completely programmed with logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded logic by logically programming the method steps. Microcontroller, etc. to achieve the same function. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the means for implementing various functions can be considered as structures within hardware components as well as software modules implementing the methods.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
  • one or more embodiments of this specification may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk memory, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk memory, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-permanent storage in computer-readable media, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information.
  • Information may be computer-readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • read-only memory read-only memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • compact disc read-only memory CD-ROM
  • DVD digital versatile disc
  • Magnetic tape cassettes disk storage or other magnetic storage devices, or any other non-transmission medium, can be used to store information that can be accessed by a computing device.
  • computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • One or more embodiments of this specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network.
  • program modules may be located in both local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Digital Computer Display Output (AREA)

Abstract

Embodiments of the present description provide a device split screen adaptation processing method and apparatus. The device split screen adaptation processing method comprises: detecting a global split screen configuration of a terminal device running a program container and a program split screen configuration of a subprogram to be accessed to obtain a local detection result; sending an access request for the subprogram to a server and receiving a returned request response, the request response carrying a remote detection result of detecting a dynamic split screen configuration of the subprogram; performing split screen adaptation processing according to the local detection result and the remote detection result to obtain a target split screen configuration; and on the basis of the target split screen configuration, setting a split screen mode for accessing the subprogram on the terminal device.

Description

设备分屏适配处理Device split screen adaptation processing 技术领域Technical field
本文件涉及数据处理技术领域,尤其涉及设备分屏适配处理的方法及装置。This document relates to the field of data processing technology, especially methods and devices for device split-screen adaptation processing.
背景技术Background technique
随着互联网技术发展和移动终端的普及,越来越多的服务开始向线上场景延伸,出现诸如能够搭载多个应用子程序的应用平台软件,避免了用户在移动终端上安装不同类型的应用程序,而是借助应用平台软件内搭载的应用子程序来实现服务的办理,同时,应用子程序也可以充分利用应用平台软件充足的用户流量,以此为应用子程序的服务提升提供助力。With the development of Internet technology and the popularization of mobile terminals, more and more services have begun to extend to online scenarios, such as application platform software that can carry multiple application sub-programs, preventing users from installing different types of applications on mobile terminals. Instead of using the program, the application sub-programs installed in the application platform software are used to implement service management. At the same time, the application sub-programs can also make full use of the sufficient user traffic of the application platform software to provide assistance for the service improvement of the application sub-programs.
发明内容Contents of the invention
本说明书一个或多个实施例提供了一种设备分屏适配处理方法,应用于程序容器,包括:检测运行所述程序容器的终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;向服务端发送所述子程序的访问请求并接收返回的请求响应,所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。One or more embodiments of this specification provide a device split-screen adaptation processing method, applied to a program container, including: detecting the global split-screen configuration of the terminal device running the program container, and the program split of the accessed subroutine. Screen configuration, obtain local detection results; send an access request for the subroutine to the server and receive a returned request response, the request response carries remote detection results for detecting the dynamic split-screen configuration of the subroutine; according to the The local detection results and the remote detection results are subjected to split-screen adaptation processing to obtain a target split-screen configuration; based on the target split-screen configuration, a split-screen mode is set on the terminal device for accessing the subroutine.
本说明书一个或多个实施例提供了一种设备分屏适配处理装置,运行于程序容器,包括:本地检测模块,被配置为检测运行所述程序容器的终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;远程检测模块,被配置为向服务端发送所述子程序的访问请求并接收返回的请求响应,所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;分屏适配处理模块,被配置为根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;分屏模式设置模块,被配置为基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。One or more embodiments of this specification provide a device split-screen adaptation processing device, running in a program container, including: a local detection module configured to detect the global split-screen configuration of the terminal device running the program container, and The program of the accessed subroutine is configured in split screen to obtain local detection results; the remote detection module is configured to send an access request of the subroutine to the server and receive a returned request response, and the request response carries the detection of the subroutine. Remote detection results of the program's dynamic split-screen configuration; a split-screen adaptation processing module configured to perform split-screen adaptation processing based on the local detection results and the remote detection results to obtain the target split-screen configuration; split-screen mode settings A module configured to set a split-screen mode for accessing the subroutine on the terminal device based on the target split-screen configuration.
本说明书一个或多个实施例提供了一种终端设备,包括处理器以及被配置为存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:通过所述终端设备运行的程序容器的检测终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;向服务端发送所述子程序的访问请求并接收返回的请求响应,所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。One or more embodiments of the present specification provide a terminal device, including a processor and a memory configured to store computer-executable instructions. When executed, the computer-executable instructions cause the processor to: through the terminal Detect the global split-screen configuration of the program container running on the device, as well as the program split-screen configuration of the accessed subprogram, and obtain the local detection results; send the access request of the subprogram to the server and receive the returned request response, so The request response carries the remote detection result of detecting the dynamic split-screen configuration of the subroutine; perform split-screen adaptation processing according to the local detection result and the remote detection result to obtain the target split-screen configuration; based on the target split-screen configuration Screen configuration, setting the split-screen mode for accessing the subroutine on the terminal device.
本说明书一个或多个实施例提供了一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:检测运行程序容器的终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;向服务端发送 所述子程序的访问请求并接收返回的请求响应;所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。One or more embodiments of this specification provide a storage medium for storing computer-executable instructions. When executed by a processor, the computer-executable instructions implement the following process: detecting global split screen of a terminal device running a program container. configuration, as well as the program split-screen configuration of the accessed subprogram, to obtain local detection results; send an access request for the subprogram to the server and receive a returned request response; the request response carries the dynamic analysis of the subprogram that is detected Remote detection results of screen configuration; perform split-screen adaptation processing according to the local detection results and the remote detection results to obtain the target split-screen configuration; based on the target split-screen configuration, set the terminal device to perform the sub-screen configuration Split screen mode for program access.
附图说明Description of the drawings
图1为本说明书一个或多个实施例提供的一种设备分屏适配处理方法处理流程图;Figure 1 is a processing flow chart of a device split-screen adaptation processing method provided by one or more embodiments of this specification;
图2为本说明书一个或多个实施例提供的一种横屏状态的页面框架的示意图;Figure 2 is a schematic diagram of a page frame in a horizontal screen state provided by one or more embodiments of this specification;
图3为本说明书一个或多个实施例提供的一种竖屏状态的页面框架的示意图;Figure 3 is a schematic diagram of a page frame in a vertical screen state provided by one or more embodiments of this specification;
图4为本说明书一个或多个实施例提供的一种应用于IoT设备场景的设备分屏适配处理方法处理流程图;Figure 4 is a processing flow chart of a device split-screen adaptation processing method applied to IoT device scenarios provided by one or more embodiments of this specification;
图5为本说明书一个或多个实施例提供的另一种设备分屏适配处理方法处理流程图;Figure 5 is a processing flow chart of another device split-screen adaptation processing method provided by one or more embodiments of this specification;
图6为本说明书一个或多个实施例提供的一种设备分屏适配处理装置示意图;Figure 6 is a schematic diagram of a device split-screen adaptation processing device provided by one or more embodiments of this specification;
图7为本说明书一个或多个实施例提供的一种终端设备的结构示意图。Figure 7 is a schematic structural diagram of a terminal device provided by one or more embodiments of this specification.
具体实施方式Detailed ways
本说明书提供的一种设备分屏适配处理方法实施例:参照图1,本实施例提供的设备分屏适配处理方法,应用于程序容器,所述方法具体包括步骤S102至步骤S108。An embodiment of a device split-screen adaptation processing method provided in this specification: Referring to Figure 1, the device split-screen adaptation processing method provided in this embodiment is applied to a program container. The method specifically includes steps S102 to S108.
步骤S102,检测运行所述程序容器的终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果。Step S102: Detect the global split-screen configuration of the terminal device running the program container and the program split-screen configuration of the accessed subprogram, and obtain local detection results.
本申请提供的设备分屏适配处理方法,在终端设备访问子程序的过程中,通过本地检测方式和借助子程序的访问请求实现的远程分屏配置检测方式,在全局分屏配置、程序分屏配置、动态分屏配置3个维度进行分屏配置检测,并在这3个维度的分屏配置的检测结果的基础上,通过分屏适配处理确定当前在终端设备进行子程序访问适配的目标分屏配置,最终根据目标分屏配置设置在终端设备进行子程序访问的分屏模式,使子程序访问过程中的页面布局与终端设备的屏幕更加适配,从而能够更加合理的利用终端设备的屏幕展示子程序的访问页面,提升通过终端设备进行子程序访问的视觉效果。The device split-screen adaptation processing method provided by this application uses the local detection method and the remote split-screen configuration detection method implemented with the access request of the sub-program during the process of the terminal device accessing the sub-program. Perform split-screen configuration detection in three dimensions: screen configuration and dynamic split-screen configuration, and based on the detection results of split-screen configuration in these three dimensions, determine the current subroutine access adaptation on the terminal device through split-screen adaptation processing The target split-screen configuration is finally set to the split-screen mode for subroutine access on the terminal device according to the target split-screen configuration, so that the page layout during the subroutine access process is more suitable for the screen of the terminal device, so that the terminal can be used more rationally The screen of the device displays the subprogram access page, improving the visual effect of subprogram access through the terminal device.
本实施例所述终端设备,配置有显示屏幕,包括不限于下述至少一项:车辆安装的车机终端,车辆外接的IoT(Internet of Things)设备,智能音箱,无人售卖机,互动广告屏,POS设备,以及智能电视、智能冰箱等智能家电产品。提供终端设备的一方或者多方称之为设备提供方,所述设备提供方具体包括终端设备的生产方、销售方和/或终端设备的服务运维方。The terminal device described in this embodiment is configured with a display screen, including but not limited to at least one of the following: a vehicle terminal installed on the vehicle, an IoT (Internet of Things) device external to the vehicle, a smart speaker, an unmanned vending machine, and an interactive advertisement screens, POS equipment, and smart home appliances such as smart TVs and smart refrigerators. The party or parties that provide terminal equipment are called equipment providers, and the equipment providers specifically include terminal equipment manufacturers, sellers, and/or service operation and maintenance parties of terminal equipment.
所述子程序,是指搭载于客户端的程序功能模块或者应用组件,或者,由客户端加载安装的程序功能模块或者应用组件,比如小程序。从服务的角度来讲,所述子程序具有独立提供自闭环服务的能力,比如具备服务预订、预订消息推送的自闭环能力的子程序。所述程序容器,是指面向终端设备提供的运行框架或者运行引擎,通过在终端设备安装该程序容器,能够在终端设备实现子程序访问。本实施例所述子程序搭载于所述终 端设备运行的所述程序容器,通过所述程序容器实现子程序的交互、访问。同时,所述终端设备还部署有设备客户端,所述设备客户端,是指IoT设备自身运行所依赖的系统程序。The subprogram refers to a program function module or application component installed on the client, or a program function module or application component loaded and installed by the client, such as an applet. From a service perspective, the subroutines have the ability to independently provide self-closed-loop services, such as subroutines with self-closed-loop capabilities for service reservation and subscription message push. The program container refers to an operating framework or an operating engine provided for terminal equipment. By installing the program container on the terminal equipment, subprogram access can be achieved on the terminal equipment. The subprogram described in this embodiment is mounted on the program container running on the terminal device, and the interaction and access of the subprogram are realized through the program container. At the same time, the terminal device is also deployed with a device client. The device client refers to the system program on which the IoT device itself depends.
所述程序容器作为一种轻量化的与设备客户端和服务端进行数据通信的客户端,降低了对终端设备的运行资源的占用,从而在终端设备的运行资源有限的情况下,降低对终端设备的运行资源的占用,也有助于提升终端设备自身的运行效率。实际应用中,所述程序容器由终端设备的设备提供方进行安装配置,在安装配置完成之后,终端设备启动后设备客户端能够通过接口调用的方式与所述程序容器进行数据通信,具体在终端设备启动时,设备客户端调用所述程序容器建立与服务端的数据连接,通过该数据连接能够实现子程序访问过程中与服务端的数据交互。As a lightweight client for data communication with the device client and server, the program container reduces the occupation of the terminal device's operating resources, thereby reducing the demand on the terminal device when the operating resources of the terminal device are limited. The occupation of equipment's operating resources also helps to improve the operating efficiency of the terminal equipment itself. In practical applications, the program container is installed and configured by the device provider of the terminal device. After the installation and configuration is completed, the device client can perform data communication with the program container through interface calling after the terminal device is started. Specifically, in the terminal When the device is started, the device client calls the program container to establish a data connection with the server. Through this data connection, data interaction with the server during the subprogram access process can be realized.
所述全局分屏配置,是指根据终端设备的屏幕大小,在终端设备层面设置的进行子程序的页面展示的各分屏的配置信息,可选的,所述全局分屏配置,由所述终端设备的设备提供方在所述终端设备的初始化过程中进行设置,比如设备提供方在设备出厂时针对终端设备设置该全局分屏配置;若针对终端设备设置该全局分屏配置,则可通过设置的全局分屏配置进行子程序访问。The global split-screen configuration refers to the configuration information of each split-screen that is set at the terminal device level to display the subroutine page according to the screen size of the terminal device. Optionally, the global split-screen configuration is determined by the The device provider of the terminal device performs settings during the initialization process of the terminal device. For example, the device provider sets the global split-screen configuration for the terminal device when the device leaves the factory; if the global split-screen configuration is set for the terminal device, you can Set the global split screen configuration for subroutine access.
所述程序分屏配置,是指在子程序层面,根据子程序的页面与终端设备的适配情况,针对子程序进行个性化分屏设置的配置信息,所述程序分屏配置,可由所述设备提供方或者所述子程序的服务提供方进行配置,此外还可由终端设备所属方在首次打开子程序时设置在终端设备访问该子程序的程序分屏配置,若针对子程序设置该程序分屏配置,则可在设置的程序分屏配置的基础上在终端设备进行子程序访问。The program split-screen configuration refers to the configuration information for personalized split-screen settings for the sub-program at the sub-program level based on the adaptation of the sub-program page and the terminal device. The program split-screen configuration can be configured by the The equipment provider or the service provider of the subprogram performs configuration. In addition, the terminal device owner can also set the program split screen configuration for the terminal device to access the subprogram when opening the subprogram for the first time. If the program split screen is set for the subprogram, screen configuration, you can access subprograms on the terminal device based on the set program split-screen configuration.
上述通过在终端设备层面和子程序层面开放分屏设置接口来提升分屏设置的多样性,使分屏设置更有针对性也更加灵活。The above-mentioned method improves the diversity of split-screen settings by opening the split-screen setting interface at the terminal device level and sub-program level, making split-screen settings more targeted and flexible.
具体的,所述全局分屏配置由至少一个分屏中各分屏的位置、大小、比例等配置信息组成,类似的,所述程序分屏配置同样可由至少一个分屏中各分屏的位置、大小、比例等配置信息组成。此外,所述全局分屏配置、所述程序分屏配置还可由至少一个分屏中各分屏的位置、大小、比例等配置信息中的一者或者多者组成,或者,由前述配置信息中的一者或者多者结合其他配置信息组成,本实施例对此不做限定。Specifically, the global split-screen configuration consists of configuration information such as the position, size, and proportion of each split-screen in at least one split-screen. Similarly, the program split-screen configuration can also consist of the position of each split-screen in at least one split-screen. , size, proportion and other configuration information. In addition, the global split-screen configuration and the program split-screen configuration may also be composed of one or more configuration information such as the position, size, and proportion of each split screen in at least one split screen, or may be composed of the aforementioned configuration information. One or more of them are combined with other configuration information, which is not limited in this embodiment.
具体实施时,在检测所述全局分屏配置的过程中,通过在所述终端设备本地存储全局分屏配置的相应存储路径下,检测该存储路径下是否存储有全局分屏配置,若存储有该全局分屏配置,则获得携带该全局分屏配置的检测结果;若未存储有该全局分屏配置,则获得检测为空的检测结果;类似的,在检测所述程序分屏配置的过程中,通过在存储程序分屏配置的相应存储路径下,检测该存储路径下是否存储有程序分屏配置,若存储有该程序分屏配置,则获得携带该程序分屏配置的检测结果;若未存储有该程序分屏配置,则获得检测为空的检测结果;所述本地检测结果由检测所述全局分屏配置的检测结果和检测所述程序分屏配置的检测结果构成。During specific implementation, during the process of detecting the global split-screen configuration, by storing the global split-screen configuration locally in the corresponding storage path of the terminal device, it is detected whether the global split-screen configuration is stored in the storage path. If there is stored If the global split-screen configuration is configured, a detection result carrying the global split-screen configuration is obtained; if the global split-screen configuration is not stored, a detection result of empty detection is obtained; similarly, in the process of detecting the program split-screen configuration In the corresponding storage path where the program split-screen configuration is stored, it is detected whether the program split-screen configuration is stored in the storage path. If the program split-screen configuration is stored, the detection result carrying the program split-screen configuration is obtained; if If the program split-screen configuration is not stored, a detection result of empty detection is obtained; the local detection result consists of a detection result of detecting the global split-screen configuration and a detection result of detecting the program split-screen configuration.
步骤S104,向服务端发送所述子程序的访问请求并接收返回的请求响应。Step S104: Send an access request for the subprogram to the server and receive a returned request response.
具体实施时,在终端设备进行所述子程序的访问过程中,向服务端发送所述子程序的访问请求,服务端在接收到所述子程序的访问请求之后,进行所述子程序的访问响应处理获得子程序数据,并以请求响应的方式将子程序数据返回至所述程序容器;以及,服务端在接收到所述子程序的访问请求之后,检测服务端是否存储有所述子程序的动态分屏配置,即:在服务端进行动态分屏配置的远程检测,若存储有该动态分屏配置,则获得携带动态分屏配置的远程检测结果;若未存储有该动态分屏配置,则获得检测为空的远程检测结果,并通过请求响应将远程检测结果返回所述程序容器,在这种情况下,所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果。During specific implementation, when the terminal device accesses the subprogram, it sends an access request for the subprogram to the server. After receiving the access request for the subprogram, the server accesses the subprogram. Response processing obtains subprogram data, and returns the subprogram data to the program container in the form of a request response; and, after receiving the access request of the subprogram, the server detects whether the subprogram is stored in the server Dynamic split-screen configuration, that is: perform remote detection of dynamic split-screen configuration on the server. If the dynamic split-screen configuration is stored, the remote detection result carrying the dynamic split-screen configuration will be obtained; if the dynamic split-screen configuration is not stored , the remote detection result is obtained and the remote detection result is empty, and the remote detection result is returned to the program container through the request response. In this case, the request response carries the remote detection result for detecting the dynamic split-screen configuration of the subroutine. result.
所述动态分屏配置,是指在子程序层面根据子程序的页面与终端设备的适配情况,通过线上设置方式针对子程序设置的配置信息,该配置信息可进行动态更新,可选的,所述动态分屏配置,由所述设备提供方或者所述服务提供方通过所述服务端提供的所述子程序的分屏设置接口进行设置,比如在子程序的版本更新后UI(User Interface)页面变化较大,可通过分屏设置接口更新子程序的动态分屏配置,以此来提升分屏设置的灵活性;若针对子程序设置该动态分屏配置,则可将动态分屏配置下发至终端设备运行的程序容器,从而在终端设备基于动态分屏配置进行子程序访问。The dynamic split-screen configuration refers to the configuration information set for the subprogram through online setting based on the adaptation of the subprogram page and the terminal device at the subprogram level. This configuration information can be dynamically updated. Optional , the dynamic split-screen configuration is set by the device provider or the service provider through the split-screen setting interface of the subprogram provided by the server. For example, after the version of the subprogram is updated, the UI (User Interface) page changes greatly, you can update the dynamic split screen configuration of the subprogram through the split screen setting interface to improve the flexibility of the split screen setting; if the dynamic split screen configuration is set for the subprogram, the dynamic split screen can be The configuration is delivered to the program container running on the terminal device, so that the terminal device can access subprograms based on dynamic split-screen configuration.
步骤S106,根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置。Step S106: Perform split-screen adaptation processing according to the local detection result and the remote detection result to obtain a target split-screen configuration.
上述在所述终端设备本地一侧进行全局分屏配置和程序分屏配置的检测获得所述本地检测结果,以及在服务端一侧进行动态分屏配置的检测获得所述远程检测结果之后,本步骤中,根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置。其中,所述分屏适配处理,是指在不同层次的(终端设备层次的全局分屏配置、子程序层次的程序分屏配置)分屏配置中,确定与当前在终端设备进行所述子程序访问这一访问场景的适配度更高的分屏配置。After the above-mentioned detection of global split-screen configuration and program split-screen configuration on the local side of the terminal device to obtain the local detection results, and detection of dynamic split-screen configuration on the server side to obtain the remote detection results, this In the step, split-screen adaptation processing is performed according to the local detection result and the remote detection result to obtain a target split-screen configuration. Wherein, the split-screen adaptation processing refers to determining whether the sub-screen configuration is currently performed on the terminal device in split-screen configurations at different levels (global split-screen configuration at the terminal device level, program split-screen configuration at the sub-program level). The program accesses a split-screen configuration that is more suitable for this access scenario.
本实施例提供的一种可选实施方式中,根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置,包括:若所述本地检测结果包含所述全局分屏配置和所述程序分屏配置,且所述远程检测结果包含所述动态分屏配置,根据所述全局分屏配置、所述程序分屏配置以及所述动态分屏配置各自的适配优先级确定所述目标分屏配置。其中,所述动态分屏配置的适配优先级高于所述程序分屏配置的适配优先级,所述程序分屏配置的适配优先级高于所述全局分屏配置的适配优先级。In an optional implementation provided by this embodiment, split-screen adaptation processing is performed according to the local detection result and the remote detection result to obtain the target split-screen configuration, including: if the local detection result includes the global Split-screen configuration and the program split-screen configuration, and the remote detection result includes the dynamic split-screen configuration, according to the respective adaptations of the global split-screen configuration, the program split-screen configuration and the dynamic split-screen configuration Priority determines the target split-screen configuration. Wherein, the adaptation priority of the dynamic split-screen configuration is higher than the adaptation priority of the program split-screen configuration, and the adaptation priority of the program split-screen configuration is higher than the adaptation priority of the global split-screen configuration. class.
类似的,若所述本地检测结果包含所述全局分屏配置,且所述远程检测结果包含所述动态分屏配置,根据所述全局分屏配置以及所述动态分屏配置各自的适配优先级确定所述目标分屏配置;或者,若所述本地检测结果包含所述程序分屏配置,且所述远程检测结果包含所述动态分屏配置,根据所述程序分屏配置以及所述动态分屏配置各自的适配优先级确定所述目标分屏配置。Similarly, if the local detection result includes the global split-screen configuration, and the remote detection result includes the dynamic split-screen configuration, the respective adaptation priorities according to the global split-screen configuration and the dynamic split-screen configuration are determine the target split-screen configuration; or, if the local detection result includes the program split-screen configuration, and the remote detection result includes the dynamic split-screen configuration, according to the program split-screen configuration and the dynamic The respective adaptation priorities of the split-screen configurations determine the target split-screen configuration.
可选的,在分屏适配处理的过程中,若所述本地检测结果和所述远程检测结果为空,则将所述程序容器设置的基准分屏配置确定为所述目标分屏配置。其中,所述基准分屏 配置,是指由程序容器设置的兜底分屏配置,从而在全局分屏配置、程序分屏配置和动态分屏配置均不存在的情况下,在终端设备进行的子程序访问过程进行分屏适配,以此来提升分屏适配的全面性。Optionally, during the split-screen adaptation process, if the local detection result and the remote detection result are empty, the reference split-screen configuration set by the program container is determined as the target split-screen configuration. Wherein, the reference split-screen configuration refers to the bottom-up split-screen configuration set by the program container, so that when the global split-screen configuration, the program split-screen configuration and the dynamic split-screen configuration do not exist, the sub-screen configuration performed by the terminal device Split-screen adaptation is performed during the program access process to improve the comprehensiveness of split-screen adaptation.
此外,若所述本地检测结果为空且所述远程检测结果包含所述动态分屏配置,则将所述动态分屏配置确定为所述目标分屏配置;若所述远程检测结果为空且所述本地检测结果包含全局分屏配置或者程序分屏配置,则将所述本地检测结果包含全局分屏配置或者程序分屏配置确定为所述目标分屏配置。In addition, if the local detection result is empty and the remote detection result contains the dynamic split-screen configuration, then the dynamic split-screen configuration is determined as the target split-screen configuration; if the remote detection result is empty and If the local detection result contains the global split-screen configuration or the program split-screen configuration, then the local detection result containing the global split-screen configuration or the program split-screen configuration is determined to be the target split-screen configuration.
具体实施时,根据所述本地检测结果和所述远程检测结果进行分屏适配处理的过程,可采用如下方式实现:检测所述远程检测结果是否包含动态分屏配置;若是,将所述远程检测结果包含的动态分屏配置确定为所述目标分屏配置;若否,检测所述本地检测结果是否包含程序分屏配置;若是,将所述本地检测结果包含的程序分屏配置确定为所述目标分屏配置;若否,检测所述本地检测结果是否包含全局分屏配置;若是,将所述本地检测结果包含的全局分屏配置确定为所述目标分屏配置;若否,将所述程序容器设置的兜底分屏配置确定为所述目标分屏配置。During specific implementation, the process of performing split-screen adaptation processing based on the local detection result and the remote detection result can be implemented in the following manner: detecting whether the remote detection result contains a dynamic split-screen configuration; if so, the remote detection result is The dynamic split-screen configuration included in the detection result is determined to be the target split-screen configuration; if not, detect whether the local detection result includes the program split-screen configuration; if so, determine the program split-screen configuration included in the local detection result to be the target split-screen configuration. The target split-screen configuration; if not, detect whether the local detection result contains the global split-screen configuration; if so, determine the global split-screen configuration included in the local detection result as the target split-screen configuration; if not, determine the global split-screen configuration. The bottom-up split-screen configuration set by the program container is determined as the target split-screen configuration.
实际应用中,在终端设备访问进行子程序访问的过程中,可能会出现屏幕“横竖切换”的情况,本实施例提供的一种可选实施方式中,在确定所述目标分屏配置之后,缓存所述目标分屏配置包含的所述终端设备的横屏状态的第一分屏组合配置和第一分屏参数,以及竖屏状态的第二分屏组合配置和第二分屏参数,从而在终端设备访问进行子程序访问的过程中进行屏幕切换时,能够从缓存中读取相应的分屏组合配置和分屏参数,以此提升子程序访问过程中屏幕切换的响应及时性。In actual applications, during the process of accessing a subroutine by a terminal device, the screen may "switch horizontally and vertically". In an optional implementation provided by this embodiment, after determining the target split-screen configuration, Cache the first split-screen combination configuration and first split-screen parameters of the terminal device in the horizontal screen state contained in the target split-screen configuration, and the second split-screen combination configuration and second split-screen parameters of the vertical screen state, thereby When the terminal device accesses the subprogram and switches screens, the corresponding split-screen combination configuration and split-screen parameters can be read from the cache to improve the response timeliness of screen switching during subprogram access.
步骤S108,基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。Step S108: Based on the target split-screen configuration, set a split-screen mode for accessing the subroutine on the terminal device.
上述通过分屏适配处理确定所述目标分屏配置之后,基于所述目标分屏配置设置在所述终端设备进行所述子程序访问的分屏模式,所述分屏模式是指在终端设备进行子程序访问时终端设备在屏幕展示子程序的访问页面的具体方式,此处,设置在所述终端设备进行所述子程序访问的分屏模式,是指将所述目标分屏配置应用到在终端设备进行的所述子程序访问,在基于所述目标分屏配置设置所述子程序访问的分屏模式之后,后续在所述子程序访问的过程中能够按照所述目标分屏配置在终端设备的屏幕展示相应的分屏页面。After the target split-screen configuration is determined through the split-screen adaptation process, a split-screen mode is set on the terminal device for accessing the subroutine based on the target split-screen configuration. The split-screen mode refers to a split-screen mode on the terminal device. A specific way for the terminal device to display the access page of the subprogram on the screen when accessing the subprogram. Here, setting the split-screen mode in the terminal device for accessing the subprogram refers to applying the target split-screen configuration to When the subroutine access is performed on a terminal device, after the split-screen mode of the subroutine access is set based on the target split-screen configuration, subsequent subroutine access can be performed in accordance with the target split-screen configuration during the subroutine access process. The screen of the terminal device displays the corresponding split-screen page.
具体实施时,在上述缓存横屏状态的第一分屏组合配置和第一分屏参数以及竖屏状态的第二分屏组合配置和第二分屏参数的基础上,为提升页面渲染效率,可通过对所述目标分屏配置进行预加载的方式,来缩短后续收到服务端返回的子程序数据后进行页面渲染的时间,具体的,本实施例提供的一种可选实施方式中,采用如下方式实现目标分屏配置的预加载:根据所述第一分屏组合配置和所述第一分屏参数构建在所述终端设备的横屏状态进行所述子程序访问的第一页面框架,并根据所述第二分屏组合配置和所述第二分屏参数构建在所述终端设备的竖屏状态进行所述子程序访问的第二页面框架。During specific implementation, on the basis of the above cached first split-screen combination configuration and first split-screen parameters in the horizontal screen state and the second split-screen combination configuration and second split-screen parameters in the vertical screen state, in order to improve page rendering efficiency, The target split-screen configuration can be preloaded to shorten the time for page rendering after receiving the subroutine data returned by the server. Specifically, in an optional implementation provided by this embodiment, The following method is used to implement preloading of the target split-screen configuration: constructing a first page frame for accessing the subroutine in the horizontal screen state of the terminal device according to the first split-screen combination configuration and the first split-screen parameters. , and construct a second page frame for accessing the subroutine in the vertical screen state of the terminal device according to the second split-screen combination configuration and the second split-screen parameters.
可选的,所述第一页面框架,包括第一分屏区域、程序交互区域和第二分屏区域;其中,所述第一分屏区域用于展示所述终端设备在预设时间范围内访问的子程序的列表;所述程序交互区域用于展示所述子程序的程序页面;所述第二分屏区域用于展示所述子程序的程序信息。Optionally, the first page frame includes a first split-screen area, a program interaction area and a second split-screen area; wherein the first split-screen area is used to display the performance of the terminal device within a preset time range. A list of accessed subprograms; the program interaction area is used to display program pages of the subprograms; and the second split-screen area is used to display program information of the subprograms.
例如,图2所示的IoT设备的横屏状态的页面框架,分屏A对应的分屏区域用于展示用户在当前IoT设备过去一周内的访问的子程序的列表;分屏B对应的分屏区域用于展示用户当前访问的子程序的运营信息;小程序主体对应的分屏区域用于展示当前访问的子程序的页面。For example, in the page frame of the horizontal screen state of the IoT device shown in Figure 2, the split-screen area corresponding to split-screen A is used to display the list of subroutines accessed by the user in the current IoT device in the past week; the split-screen area corresponding to split-screen B The screen area is used to display the operational information of the subprogram currently visited by the user; the split-screen area corresponding to the main body of the mini program is used to display the page of the subprogram currently visited.
可选的,所述第二页面框架,包括第一分屏区域和程序交互区域;其中,所述第一分屏区域用于展示所述终端设备在预设时间范围内访问的子程序的列表;所述程序交互区域用于展示所述子程序的程序页面。Optionally, the second page frame includes a first split-screen area and a program interaction area; wherein the first split-screen area is used to display a list of subprograms accessed by the terminal device within a preset time range. ; The program interaction area is used to display the program page of the subprogram.
例如,图3所示的IoT设备的竖屏状态的页面框架,分屏A对应的分屏区域用于展示用户在当前IoT设备过去一周内的访问的子程序的列表;小程序主体对应的分屏区域用于展示当前访问的子程序的页面。For example, in the page frame of the vertical screen state of the IoT device shown in Figure 3, the split-screen area corresponding to split-screen A is used to display the list of subprograms that the user has accessed in the current IoT device in the past week; the sub-program corresponding to the main body of the mini program The screen area is used to display the page of the currently accessed subroutine.
需要说明的是,除上述提供包括第一分屏区域、程序交互区域和第二分屏区域的横屏状态的第一页面框架之外,所述第一页面框架还可由程序交互区域与一个或者多个分屏区域构成,或者将程序交互区域作为横屏状态的第一页面框架;类似的,竖屏状态的第二页面框架还可由一个或者多个分屏区域与程序交互区域构成,或者,将程序交互区域作为竖屏状态的第二页面框架。It should be noted that, in addition to the above-mentioned first page frame that provides a horizontal screen state including a first split-screen area, a program interaction area, and a second split-screen area, the first page frame may also be composed of a program interaction area and one or It is composed of multiple split-screen areas, or the program interaction area is used as the first page frame in the horizontal screen state; similarly, the second page frame in the vertical screen state can also be composed of one or more split-screen areas and the program interaction area, or, Use the program interaction area as the second page frame in portrait mode.
此外,在具体实施过程中,上述基于所述目标分屏配置设置在所述终端设备进行所述子程序访问的分屏模式的过程,还可被替换为根据所述第一分屏组合配置和所述第一分屏参数构建在所述终端设备的横屏状态进行所述子程序访问的第一页面框架,并根据所述第二分屏组合配置和所述第二分屏参数构建在所述终端设备的竖屏状态进行所述子程序访问的第二页面框架这一实现过程。In addition, during specific implementation, the above-mentioned process of setting the split-screen mode for accessing the subroutine on the terminal device based on the target split-screen configuration can also be replaced by the process of setting the split-screen mode based on the first split-screen combination configuration and The first split-screen parameter is constructed in the first page frame accessed by the subroutine in the horizontal screen state of the terminal device, and is constructed in the second split-screen combination configuration and the second split-screen parameter according to the second split-screen combination configuration and the second split-screen parameter. The implementation process of the second page frame accessed by the subroutine is performed in the portrait screen state of the terminal device.
进一步,在对所述目标分屏配置进行预加载的基础上,程序容器在收到服务端返回的所述子程序的子程序数据的基础上,进行所述子程序的访问页面的渲染、展示,具体在访问页面的渲染、展示过程中,为使子程序的访问页面与终端设备的屏幕更加适配,本实施例通过区分终端设备的屏幕状态(横屏状态/竖屏状态),针对不同屏幕状态进行不同的展示,以此在不同屏幕状态都能更加合理的利用终端设备的屏幕展示子程序的访问页面,提升终端设备在不同屏幕状态下进行子程序访问的视觉效果;具体的,若所述终端设备处于横屏状态,读取所述请求响应中包含的子程序数据,并将所述子程序数据关联至所述第一页面框架的分屏区域;基于关联后的子程序数据和第一页面框架进行所述子程序的访问页面渲染,并展示渲染获得横屏访问页面。Further, on the basis of preloading the target split-screen configuration, the program container renders and displays the access page of the subprogram on the basis of receiving the subprogram data of the subprogram returned by the server. , specifically during the rendering and display process of the access page, in order to make the access page of the subroutine more suitable for the screen of the terminal device, this embodiment distinguishes the screen status of the terminal device (horizontal screen status/vertical screen status), for different The screen status is displayed differently, so that the screen of the terminal device can be more reasonably used to display the access page of the subprogram in different screen states, and the visual effect of the terminal device accessing the subprogram in different screen states is improved; specifically, if The terminal device is in a horizontal screen state, reads the subroutine data contained in the request response, and associates the subroutine data to the split-screen area of the first page frame; based on the associated subroutine data and The first page frame renders the access page of the subroutine, and displays the rendering to obtain the horizontal screen access page.
在此基础上,若所述终端设备从横屏状态切换为竖屏状态,将所述子程序数据关联至所述第二页面框架的分屏区域;基于关联后的子程序数据和所述第二页面框架进行所述子程序的访问页面渲染,并利用渲染获得的竖屏访问页面更新所述横屏访问页面。On this basis, if the terminal device switches from a horizontal screen state to a vertical screen state, associate the subroutine data to the split-screen area of the second page frame; based on the associated subroutine data and the third The second page frame renders the access page of the subroutine, and updates the horizontal access page using the vertical access page obtained by rendering.
此外,若所述终端设备处于竖屏状态,读取所述请求响应中包含的子程序数据,并将所述子程序数据关联至所述第二页面框架的分屏区域;基于关联后的子程序数据和第二页面框架进行所述子程序的访问页面渲染,并展示渲染获得竖屏访问页面。In addition, if the terminal device is in the portrait screen state, read the subroutine data contained in the request response, and associate the subroutine data to the split-screen area of the second page frame; based on the associated subroutine The program data and the second page frame render the access page of the subprogram, and display the rendering to obtain the vertical screen access page.
下述以本实施例提供的一种设备分屏适配处理方法在IoT设备场景的应用为例,对本实施例提供的设备分屏适配处理方法进行进一步说明,参见图4,应用于IoT设备场景的设备分屏适配处理方法,具体包括下述步骤。The following takes the application of a device split-screen adaptation processing method provided in this embodiment in an IoT device scenario as an example to further explain the device split-screen adaptation processing method provided in this embodiment. See Figure 4, applied to IoT devices. The device split-screen adaptation processing method of the scene specifically includes the following steps.
步骤S402,检测运行程序容器的IoT设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果。Step S402: Detect the global split-screen configuration of the IoT device running the program container and the program split-screen configuration of the accessed subprogram, and obtain local detection results.
步骤S404,向服务端发送子程序的访问请求并接收返回的请求响应。请求响应中携带检测子程序的动态分屏配置的远程检测结果。Step S404: Send a subprogram access request to the server and receive a returned request response. The request response carries the remote detection result of the dynamic split-screen configuration of the detection subroutine.
步骤S406,根据本地检测结果和远程检测结果进行分屏适配处理,获得目标分屏配置。Step S406: Perform split-screen adaptation processing based on the local detection results and remote detection results to obtain the target split-screen configuration.
其中,根据本地检测结果和远程检测结果进行分屏适配处理,具体包括:检测远程检测结果是否包含动态分屏配置;若是,将远程检测结果包含的动态分屏配置确定为目标分屏配置;若否,检测本地检测结果是否包含程序分屏配置;若是,将本地检测结果包含的程序分屏配置确定为目标分屏配置;若否,检测本地检测结果是否包含全局分屏配置;若是,将本地检测结果包含的全局分屏配置确定为目标分屏配置;若否,将程序容器设置的兜底分屏配置确定为目标分屏配置。Among them, split-screen adaptation processing is performed based on the local detection results and remote detection results, which specifically includes: detecting whether the remote detection results include dynamic split-screen configuration; if so, determining the dynamic split-screen configuration included in the remote detection results as the target split-screen configuration; If not, check whether the local detection result contains the program split-screen configuration; if so, determine the program split-screen configuration included in the local detection result as the target split-screen configuration; if not, check whether the local detection result contains the global split-screen configuration; if so, determine The global split-screen configuration included in the local detection results is determined to be the target split-screen configuration; if not, the bottom-up split-screen configuration set by the program container is determined to be the target split-screen configuration.
步骤S408,缓存目标分屏配置包含的IoT设备的横屏状态的第一分屏组合配置和第一分屏参数,以及竖屏状态的第二分屏组合配置和第二分屏参数。Step S408: Cache the first split-screen combination configuration and first split-screen parameters of the IoT device in the horizontal screen state contained in the target split-screen configuration, and the second split-screen combination configuration and second split-screen parameters of the vertical screen state.
步骤S410,根据第一分屏组合配置和第一分屏参数构建第一页面框架,并根据第二分屏组合配置和第二分屏参数构建第二页面框架。Step S410: Build a first page frame based on the first split-screen combination configuration and the first split-screen parameters, and build a second page frame based on the second split-screen combination configuration and the second split-screen parameters.
步骤S412,若IoT设备处于横屏状态,读取请求响应中包含的子程序数据,并将子程序数据关联至第一页面框架的分屏区域。Step S412, if the IoT device is in a landscape orientation, read the subroutine data contained in the request response, and associate the subroutine data to the split-screen area of the first page frame.
步骤S414,基于关联后的子程序数据和第一页面框架进行子程序的访问页面渲染,并展示渲染获得横屏访问页面。Step S414: Render the access page of the subroutine based on the associated subroutine data and the first page frame, and display the rendering to obtain the horizontal screen access page.
步骤S416,若IoT设备从横屏状态切换为竖屏状态,将子程序数据关联至第二页面框架的分屏区域。Step S416: If the IoT device switches from the horizontal screen state to the vertical screen state, associate the subroutine data to the split-screen area of the second page frame.
步骤S418,基于关联后的子程序数据和第二页面框架进行子程序的访问页面渲染,并利用渲染获得的竖屏访问页面更新横屏访问页面。Step S418: Render the access page of the subroutine based on the associated subroutine data and the second page frame, and update the horizontal screen access page using the vertical screen access page obtained by rendering.
本实施例还提供的另一种设备分屏适配处理方法,参见图5提供的设备分屏适配处理方法,具体包括下述步骤。This embodiment also provides another device split-screen adaptation processing method. Refer to the device split-screen adaptation processing method provided in Figure 5 , which specifically includes the following steps.
步骤S502,获取运行程序容器的终端设备的设备初始化过程中配置的全局分屏配置,以及针对子程序配置的程序分屏配置。Step S502: Obtain the global split-screen configuration configured during the device initialization process of the terminal device running the program container, and the program split-screen configuration configured for the subprogram.
步骤S504,向服务端发送子程序的访问请求,并从返回的请求响应中读取子程序的动态分屏配置。Step S504: Send an access request for the subprogram to the server, and read the dynamic split-screen configuration of the subprogram from the returned request response.
步骤S506,根据全局分屏配置、程序分屏配置和动态分屏配置进行分屏适配处理,获得目标分屏配置。Step S506: Perform split-screen adaptation processing according to the global split-screen configuration, program split-screen configuration, and dynamic split-screen configuration to obtain the target split-screen configuration.
其中,根据全局分屏配置、程序分屏配置和动态分屏配置进行分屏适配处理,包括:根据全局分屏配置、程序分屏配置以及动态分屏配置各自的适配优先级,确定目标分屏配置。比如将确定全局分屏配置、程序分屏配置以及动态分屏配置三者中适配优先级高于其他二者的一者确定为目标分屏配置。Among them, split-screen adaptation processing is performed according to the global split-screen configuration, program split-screen configuration, and dynamic split-screen configuration, including: determining the target according to the respective adaptation priorities of the global split-screen configuration, program split-screen configuration, and dynamic split-screen configuration. Split screen configuration. For example, the one with a higher adaptation priority than the other two among the global split-screen configuration, program split-screen configuration, and dynamic split-screen configuration is determined as the target split-screen configuration.
步骤S508,基于目标分屏配置设置在终端设备进行子程序访问的分屏模式。Step S508: Set a split-screen mode for subroutine access on the terminal device based on the target split-screen configuration.
具体执行过程中,在上述通过分屏适配处理确定目标分屏配置之后,并且在基于目标分屏配置设置在终端设备进行子程序访问的分屏模式之前,可缓存目标分屏配置包含的终端设备的横屏状态的第一分屏组合配置和第一分屏参数,以及竖屏状态的第二分屏组合配置和第二分屏参数。During the specific execution process, after the target split-screen configuration is determined through the split-screen adaptation process, and before the split-screen mode is set on the terminal device for subroutine access based on the target split-screen configuration, the terminal included in the target split-screen configuration can be cached. The first split-screen combination configuration and the first split-screen parameters of the device in the horizontal screen state, and the second split-screen combination configuration and the second split-screen parameters of the vertical screen state.
此处,基于目标分屏配置设置在终端设备进行子程序访问的分屏模式这一过程,可被替换为根据第一分屏组合配置和第一分屏参数构建第一页面框架,并根据第二分屏组合配置和第二分屏参数构建第二页面框架这一过程。Here, the process of setting the split-screen mode for subroutine access on the terminal device based on the target split-screen configuration can be replaced by constructing the first page frame according to the first split-screen combination configuration and the first split-screen parameters, and constructing the first page frame according to the first split-screen combination configuration and the first split-screen parameter. The process of constructing the second page frame by combining the configuration of the second split screen and the parameters of the second split screen.
进一步,在基于目标分屏配置设置在终端设备进行子程序访问的分屏模式之后,或者在根据第一分屏组合配置和第一分屏参数构建第一页面框架,并根据第二分屏组合配置和第二分屏参数构建第二页面框架之后,执行如下横屏访问页面和/或横屏访问页面的渲染处理过程。Further, after setting the split-screen mode for subroutine access on the terminal device based on the target split-screen configuration, or building the first page frame based on the first split-screen combination configuration and the first split-screen parameters, and based on the second split-screen combination After configuring and constructing the second page frame with the second split-screen parameters, perform the following rendering process of the horizontal screen access page and/or the horizontal screen access page.
其中,横屏访问页面的渲染处理过程包括:若终端设备处于横屏状态,读取请求响应中包含的子程序数据,并将子程序数据关联至第一页面框架的分屏区域;基于关联后的子程序数据和第一页面框架进行子程序的访问页面渲染,并展示渲染获得横屏访问页面。Among them, the rendering process of the horizontal screen access page includes: if the terminal device is in the horizontal screen state, read the subroutine data contained in the request response, and associate the subroutine data to the split-screen area of the first page frame; based on the association The subroutine data and the first page frame are used to render the access page of the subroutine, and display the rendering to obtain the horizontal screen access page.
竖屏访问页面的渲染处理过程包括:若终端设备从横屏状态切换为竖屏状态,将子程序数据关联至第二页面框架的分屏区域;基于关联后的子程序数据和第二页面框架进行子程序的访问页面渲染,并利用渲染获得的竖屏访问页面更新横屏访问页面。The rendering process of the vertical screen access page includes: if the terminal device switches from the horizontal screen state to the vertical screen state, associate the subprogram data to the split-screen area of the second page frame; based on the associated subprogram data and the second page frame Render the access page of the subroutine, and update the horizontal access page using the rendered vertical access page.
本说明书提供的一种设备分屏适配处理装置实施例如下:在上述的实施例中,提供了一种设备分屏适配处理方法,与之相对应的,还提供了一种运行于服务客户端的设备分屏适配处理装置,下面结合附图进行说明。The embodiments of a device split-screen adaptation processing device provided in this specification are as follows: In the above embodiment, a device split-screen adaptation processing method is provided. Correspondingly, a device running on the service is also provided. The device split-screen adaptation processing device of the client is explained below with reference to the accompanying drawings.
参照图6,其示出了本实施例提供的一种设备分屏适配处理装置示意图。Referring to FIG. 6 , a schematic diagram of a device split-screen adaptation processing device provided in this embodiment is shown.
由于装置实施例对应于方法实施例,所以描述得比较简单,相关的部分请参见上述提供的方法实施例的对应说明即可。下述描述的装置实施例仅仅是示意性的。Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiments described below are merely illustrative.
本实施例提供一种设备分屏适配处理装置,包括:本地检测模块602,被配置为检测运行所述程序容器的终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;远程检测模块604,被配置为向服务端发送所述子程序的访问请求并接收返回的请求响应;所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;分屏适配处理模块606,被配置为根据所述本地检测结果和所述远程检测结果 进行分屏适配处理,获得目标分屏配置;分屏模式设置模块608,被配置为基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。This embodiment provides a device split-screen adaptation processing device, including: a local detection module 602 configured to detect the global split-screen configuration of the terminal device running the program container and the program split-screen configuration of the accessed subprogram, Obtain local detection results; the remote detection module 604 is configured to send an access request for the subprogram to the server and receive a returned request response; the request response carries remote detection for detecting the dynamic split-screen configuration of the subprogram Result; the split-screen adaptation processing module 606 is configured to perform split-screen adaptation processing according to the local detection result and the remote detection result to obtain the target split-screen configuration; the split-screen mode setting module 608 is configured to perform split-screen adaptation processing based on the local detection result and the remote detection result. The target split-screen configuration is to set a split-screen mode for accessing the subroutine on the terminal device.
本说明书提供的一种终端设备实施例如下:对应上述描述的一种设备分屏适配处理方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种终端设备,该终端设备用于执行上述提供的设备分屏适配处理方法,图7为本说明书一个或多个实施例提供的一种终端设备的结构示意图。An example of a terminal device provided in this specification is as follows: Corresponding to the device split-screen adaptation processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a terminal device. The terminal device For executing the device split-screen adaptation processing method provided above, FIG. 7 is a schematic structural diagram of a terminal device provided by one or more embodiments of this specification.
本实施例提供的一种终端设备。如图7所示,终端设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器701和存储器702,存储器702中可以存储有一个或一个以上存储应用程序或数据。其中,存储器702可以是短暂存储或持久存储。存储在存储器702的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括终端设备中的一系列计算机可执行指令。更进一步地,处理器701可以设置为与存储器702通信,在终端设备上执行存储器702中的一系列计算机可执行指令。终端设备还可以包括一个或一个以上电源703,一个或一个以上有线或无线网络接口704,一个或一个以上输入/输出接口705,一个或一个以上键盘706等。This embodiment provides a terminal device. As shown in Figure 7, the terminal device may vary greatly due to different configurations or performance, and may include one or more processors 701 and memory 702. The memory 702 may store one or more storage applications or data. . Among them, the memory 702 may be short-term storage or persistent storage. The application program stored in the memory 702 may include one or more modules (not shown), and each module may include a series of computer-executable instructions in the terminal device. Furthermore, the processor 701 may be configured to communicate with the memory 702 and execute a series of computer-executable instructions in the memory 702 on the terminal device. The terminal device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705, one or more keyboards 706, etc.
在一个具体的实施例中,终端设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对终端设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:通过所述终端设备运行的程序容器的检测终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;向服务端发送所述子程序的访问请求并接收返回的请求响应;所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。In a specific embodiment, the terminal device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each A module may include a series of computer-executable instructions in a terminal device, and the one or more programs configured to be executed by one or more processors may include computer-executable instructions for performing: The program container detects the global split-screen configuration of the terminal device and the program split-screen configuration of the accessed subprogram, and obtains local detection results; sends an access request for the subprogram to the server and receives a returned request response; the request response carries the remote detection result for detecting the dynamic split-screen configuration of the subroutine; perform split-screen adaptation processing according to the local detection result and the remote detection result to obtain the target split-screen configuration; based on the target split-screen configuration, Set a split-screen mode for accessing the subroutine on the terminal device.
本说明书提供的一种存储介质实施例如下:对应上述描述的一种设备分屏适配处理方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种存储介质。An example of a storage medium provided in this specification is as follows: Corresponding to the device split-screen adaptation processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a storage medium.
本实施例提供的存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:检测运行程序容器的终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;向服务端发送所述子程序的访问请求并接收返回的请求响应;所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。The storage medium provided by this embodiment is used to store computer executable instructions. When executed by the processor, the computer executable instructions implement the following process: detect the global split-screen configuration of the terminal device running the program container, and the accessed subroutines. The program split-screen configuration is configured to obtain local detection results; the access request of the subprogram is sent to the server and the returned request response is received; the request response carries the remote detection result of detecting the dynamic split-screen configuration of the subprogram; Split-screen adaptation processing is performed according to the local detection result and the remote detection result to obtain a target split-screen configuration; based on the target split-screen configuration, a split-screen mode is set on the terminal device for accessing the subroutine.
需要说明的是,本说明书中关于存储介质的实施例与本说明书中关于设备分屏适配处理方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应方法的实施,重复之处不再赘述。It should be noted that the embodiment about the storage medium in this specification and the embodiment about the device split-screen adaptation processing method in this specification are based on the same inventive concept. Therefore, for the specific implementation of this embodiment, please refer to the implementation of the corresponding method mentioned above. Repeat No further details will be given.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执 行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the figures do not necessarily require the specific order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain implementations.
在20世纪30年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1930s, improvements in a technology could be clearly distinguished as hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements in method processes). However, with the development of technology, many improvements in today's method processes can be regarded as direct improvements in hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement of a method flow cannot be implemented using hardware entity modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic functions are determined by the user programming the device. Designers can program themselves to "integrate" a digital system on a PLD, instead of asking chip manufacturers to design and produce dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in program development and writing, and before compilation The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and HDL is not just one kind, but there are many, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., are currently the most commonly used The two are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that by simply logically programming the method flow using the above-mentioned hardware description languages and programming it into the integrated circuit, the hardware circuit that implements the logical method flow can be easily obtained.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. , logic gates, switches, Application Specific Integrated Circuit (ASIC), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, For Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program code, the controller can be completely programmed with logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded logic by logically programming the method steps. Microcontroller, etc. to achieve the same function. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the means for implementing various functions can be considered as structures within hardware components as well as software modules implementing the methods.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、 媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书实施例时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本领域内的技术人员应明白,本说明书一个或多个实施例可提供为方法、系统或计算机程序产品。因此,本说明书一个或多个实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be appreciated by those skilled in the art that one or more embodiments of this specification may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk memory, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The specification is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer-readable media, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可 以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory. (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, disk storage or other magnetic storage devices, or any other non-transmission medium, can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements not only includes those elements, but also includes Other elements are not expressly listed or are inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or device that includes the stated element.
本说明书一个或多个实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书的一个或多个实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。One or more embodiments of this specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner. The same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on its differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment.
以上所述仅为本文件的实施例而已,并不用于限制本文件。对于本领域技术人员来说,本文件可以有各种更改和变化。凡在本文件的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本文件的权利要求范围之内。The above are only examples of this document and are not intended to limit this document. Various modifications and variations of this document may occur to those skilled in the art. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this document shall be included in the scope of the claims of this document.

Claims (14)

  1. 一种设备分屏适配处理方法,应用于程序容器,包括:A device split-screen adaptation processing method, applied to program containers, including:
    检测运行所述程序容器的终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;Detect the global split-screen configuration of the terminal device running the program container and the program split-screen configuration of the accessed subprogram, and obtain local detection results;
    向服务端发送所述子程序的访问请求并接收返回的请求响应;所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;Send an access request for the subprogram to the server and receive a returned request response; the request response carries the remote detection result of detecting the dynamic split-screen configuration of the subprogram;
    根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;Perform split-screen adaptation processing according to the local detection results and the remote detection results to obtain the target split-screen configuration;
    基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。Based on the target split-screen configuration, a split-screen mode for accessing the subroutine on the terminal device is set.
  2. 根据权利要求1所述的设备分屏适配处理方法,所述根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置步骤执行之后,且所述基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式步骤执行之前,还包括:The device split-screen adaptation processing method according to claim 1, wherein the split-screen adaptation processing is performed according to the local detection result and the remote detection result, and after the step of obtaining the target split-screen configuration is performed, and the split-screen configuration is obtained based on the The target split-screen configuration is set before the terminal device performs the split-screen mode step of accessing the subroutine, and also includes:
    缓存所述目标分屏配置包含的所述终端设备的横屏状态的第一分屏组合配置和第一分屏参数,以及竖屏状态的第二分屏组合配置和第二分屏参数。Caching the target split-screen configuration includes the first split-screen combination configuration and first split-screen parameters of the terminal device in the horizontal screen state, and the second split-screen combination configuration and second split-screen parameters of the vertical screen state.
  3. 根据权利要求2所述的设备分屏适配处理方法,还包括:The device split-screen adaptation processing method according to claim 2, further comprising:
    根据所述第一分屏组合配置和所述第一分屏参数构建在所述终端设备的横屏状态进行所述子程序访问的第一页面框架,并根据所述第二分屏组合配置和所述第二分屏参数构建在所述终端设备的竖屏状态进行所述子程序访问的第二页面框架。According to the first split-screen combination configuration and the first split-screen parameters, a first page frame for accessing the subroutine in the horizontal screen state of the terminal device is constructed, and according to the second split-screen combination configuration and The second split-screen parameter constructs a second page frame for accessing the subroutine in the vertical screen state of the terminal device.
  4. 根据权利要求3所述的设备分屏适配处理方法,所述基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式步骤执行之后,还包括:The device split-screen adaptation processing method according to claim 3, said setting based on the target split-screen configuration after the terminal device performs the split-screen mode step of accessing the subroutine, further comprising:
    若所述终端设备处于横屏状态,读取所述请求响应中包含的子程序数据,并将所述子程序数据关联至所述第一页面框架的分屏区域;If the terminal device is in the horizontal screen state, read the subroutine data contained in the request response, and associate the subroutine data to the split-screen area of the first page frame;
    基于关联后的子程序数据和第一页面框架进行所述子程序的访问页面渲染,并展示渲染获得横屏访问页面。Based on the associated subprogram data and the first page frame, the access page of the subprogram is rendered, and the horizontal screen access page is obtained through display rendering.
  5. 根据权利要求4所述的设备分屏适配处理方法,还包括:The device split-screen adaptation processing method according to claim 4, further comprising:
    若所述终端设备从横屏状态切换为竖屏状态,将所述子程序数据关联至所述第二页面框架的分屏区域;If the terminal device switches from a horizontal screen state to a vertical screen state, associate the subroutine data to the split-screen area of the second page frame;
    基于关联后的子程序数据和所述第二页面框架进行所述子程序的访问页面渲染,并利用渲染获得的竖屏访问页面更新所述横屏访问页面。The access page of the subroutine is rendered based on the associated subroutine data and the second page frame, and the horizontal screen access page is updated using the vertical screen access page obtained by rendering.
  6. 根据权利要求1所述的设备分屏适配处理方法,所述根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置,包括:The device split-screen adaptation processing method according to claim 1, wherein the split-screen adaptation processing is performed according to the local detection result and the remote detection result to obtain the target split-screen configuration, including:
    若所述本地检测结果包含所述全局分屏配置和/或所述程序分屏配置,且所述远程检测结果包含所述动态分屏配置,根据所述全局分屏配置和/或所述程序分屏配置以及所述动态分屏配置各自的适配优先级,确定所述目标分屏配置。If the local detection result includes the global split-screen configuration and/or the program split-screen configuration, and the remote detection result includes the dynamic split-screen configuration, according to the global split-screen configuration and/or the program The split-screen configuration and the respective adaptation priorities of the dynamic split-screen configuration determine the target split-screen configuration.
  7. 根据权利要求1所述的设备分屏适配处理方法,所述根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置,包括:The device split-screen adaptation processing method according to claim 1, wherein the split-screen adaptation processing is performed according to the local detection result and the remote detection result to obtain the target split-screen configuration, including:
    若所述本地检测结果和所述远程检测结果为空,将所述程序容器设置的基准分屏配置确定为所述目标分屏配置。If the local detection result and the remote detection result are empty, the reference split-screen configuration set by the program container is determined as the target split-screen configuration.
  8. 根据权利要求3所述的设备分屏适配处理方法,所述第一页面框架,包括第一分屏区域、程序交互区域和第二分屏区域;The device split-screen adaptation processing method according to claim 3, the first page frame includes a first split-screen area, a program interaction area and a second split-screen area;
    其中,所述第一分屏区域用于展示所述终端设备在预设时间范围内访问的子程序的列表;Wherein, the first split-screen area is used to display a list of subprograms accessed by the terminal device within a preset time range;
    所述程序交互区域用于展示所述子程序的程序页面;The program interaction area is used to display the program page of the subprogram;
    所述第二分屏区域用于展示所述子程序的程序信息。The second split-screen area is used to display program information of the subroutine.
  9. 根据权利要求3所述的设备分屏适配处理方法,所述第二页面框架,包括第一分屏区域和程序交互区域;The device split-screen adaptation processing method according to claim 3, the second page frame includes a first split-screen area and a program interaction area;
    其中,所述第一分屏区域用于展示所述终端设备在预设时间范围内访问的子程序的列表;Wherein, the first split-screen area is used to display a list of subprograms accessed by the terminal device within a preset time range;
    所述程序交互区域用于展示所述子程序的程序页面。The program interaction area is used to display the program page of the subprogram.
  10. 根据权利要求1所述的设备分屏适配处理方法,所述全局分屏配置,由所述终端设备的设备提供方在所述终端设备的初始化过程中进行设置;According to the device split-screen adaptation processing method of claim 1, the global split-screen configuration is set by the device provider of the terminal device during the initialization process of the terminal device;
    所述程序分屏配置,由所述设备提供方或者所述子程序的服务提供方进行配置。The program split-screen configuration is configured by the device provider or the service provider of the subprogram.
  11. 根据权利要求1所述的设备分屏适配处理方法,所述动态分屏配置,由所述设备提供方或者所述服务提供方通过所述服务端提供的所述子程序的分屏设置接口进行设置。The device split-screen adaptation processing method according to claim 1, the dynamic split-screen configuration is provided by the device provider or the service provider through the split-screen setting interface of the subroutine provided by the server. Make settings.
  12. 一种设备分屏适配处理装置,运行于程序容器,包括:A device split-screen adaptation processing device, running in a program container, including:
    本地检测模块,被配置为检测运行所述程序容器的终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;A local detection module configured to detect the global split-screen configuration of the terminal device running the program container and the program split-screen configuration of the accessed subprogram, and obtain local detection results;
    远程检测模块,被配置为向服务端发送所述子程序的访问请求并接收返回的请求响应;所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;A remote detection module configured to send an access request for the subprogram to the server and receive a returned request response; the request response carries a remote detection result for detecting the dynamic split-screen configuration of the subprogram;
    分屏适配处理模块,被配置为根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;A split-screen adaptation processing module configured to perform split-screen adaptation processing based on the local detection results and the remote detection results to obtain a target split-screen configuration;
    分屏模式设置模块,被配置为基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。A split-screen mode setting module is configured to set a split-screen mode for accessing the subroutine on the terminal device based on the target split-screen configuration.
  13. 一种终端设备,包括:A terminal device including:
    处理器;以及,被配置为存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:a processor; and, a memory configured to store computer-executable instructions that, when executed, cause the processor to:
    通过所述终端设备运行的程序容器的检测终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;Obtain local detection results by detecting the global split-screen configuration of the terminal device by the program container running on the terminal device, and the program split-screen configuration of the accessed subroutine;
    向服务端发送所述子程序的访问请求并接收返回的请求响应;所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;Send an access request for the subprogram to the server and receive a returned request response; the request response carries the remote detection result of detecting the dynamic split-screen configuration of the subprogram;
    根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;Perform split-screen adaptation processing according to the local detection results and the remote detection results to obtain the target split-screen configuration;
    基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。Based on the target split-screen configuration, a split-screen mode for accessing the subroutine on the terminal device is set.
  14. 一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:A storage medium used to store computer-executable instructions that implement the following process when executed by a processor:
    检测运行程序容器的终端设备的全局分屏配置,以及访问的子程序的程序分屏配置,获得本地检测结果;Detect the global split-screen configuration of the terminal device running the program container, as well as the program split-screen configuration of the accessed subprogram, and obtain local detection results;
    向服务端发送所述子程序的访问请求并接收返回的请求响应;所述请求响应中携带检测所述子程序的动态分屏配置的远程检测结果;Send an access request for the subprogram to the server and receive a returned request response; the request response carries the remote detection result of detecting the dynamic split-screen configuration of the subprogram;
    根据所述本地检测结果和所述远程检测结果进行分屏适配处理,获得目标分屏配置;Perform split-screen adaptation processing according to the local detection results and the remote detection results to obtain the target split-screen configuration;
    基于所述目标分屏配置,设置在所述终端设备进行所述子程序访问的分屏模式。Based on the target split-screen configuration, a split-screen mode for accessing the subroutine on the terminal device is set.
PCT/CN2023/071361 2022-03-22 2023-01-09 Device split screen adaptation processing WO2023179182A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210284353.3A CN114637568B (en) 2022-03-22 2022-03-22 Split-screen adaptive processing method and device for equipment
CN202210284353.3 2022-03-22

Publications (1)

Publication Number Publication Date
WO2023179182A1 true WO2023179182A1 (en) 2023-09-28

Family

ID=81950064

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/071361 WO2023179182A1 (en) 2022-03-22 2023-01-09 Device split screen adaptation processing

Country Status (2)

Country Link
CN (1) CN114637568B (en)
WO (1) WO2023179182A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637568B (en) * 2022-03-22 2024-06-04 支付宝(杭州)信息技术有限公司 Split-screen adaptive processing method and device for equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502647A (en) * 2016-09-27 2017-03-15 深圳市金立通信设备有限公司 A kind of method of split screen application compatible processing and terminal
CN110083413A (en) * 2019-03-13 2019-08-02 维沃移动通信有限公司 A kind of small routine call method and terminal device
US20210118147A1 (en) * 2019-10-21 2021-04-22 Qualcomm Incorporated Detection of a split-screen condition
CN113521728A (en) * 2021-07-23 2021-10-22 北京字节跳动网络技术有限公司 Cloud application implementation method and device, electronic equipment and storage medium
CN114637568A (en) * 2022-03-22 2022-06-17 支付宝(杭州)信息技术有限公司 Equipment split screen adaptation processing method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130089779A (en) * 2011-12-30 2013-08-13 경희대학교 산학협력단 System for proving contents based on cloud computing and method thereof
CN104850373A (en) * 2014-02-18 2015-08-19 中兴通讯股份有限公司 Method and device for processing split screen
CN107508990A (en) * 2017-08-29 2017-12-22 北京安云世纪科技有限公司 The method and terminal device of a kind of split screen display available
CN111897502A (en) * 2020-06-10 2020-11-06 中国气象局气象探测中心 Split screen control system and method
CN112988310A (en) * 2021-04-16 2021-06-18 辽宁向日葵教育科技有限公司 Online experiment method based on multi-split-screen browser
CN113282833B (en) * 2021-06-15 2023-03-24 支付宝(杭州)信息技术有限公司 Ticket processing method and device
CN113553074B (en) * 2021-07-23 2023-07-25 北京百度网讯科技有限公司 Applet distribution control method, device, electronic equipment and storage medium
CN113687753B (en) * 2021-08-09 2024-03-15 深圳康佳电子科技有限公司 Split screen style configuration method and device, intelligent terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502647A (en) * 2016-09-27 2017-03-15 深圳市金立通信设备有限公司 A kind of method of split screen application compatible processing and terminal
CN110083413A (en) * 2019-03-13 2019-08-02 维沃移动通信有限公司 A kind of small routine call method and terminal device
US20210118147A1 (en) * 2019-10-21 2021-04-22 Qualcomm Incorporated Detection of a split-screen condition
CN113521728A (en) * 2021-07-23 2021-10-22 北京字节跳动网络技术有限公司 Cloud application implementation method and device, electronic equipment and storage medium
CN114637568A (en) * 2022-03-22 2022-06-17 支付宝(杭州)信息技术有限公司 Equipment split screen adaptation processing method and device

Also Published As

Publication number Publication date
CN114637568B (en) 2024-06-04
CN114637568A (en) 2022-06-17

Similar Documents

Publication Publication Date Title
US20200267221A1 (en) Method, system, and device for controlling an internet of things device
US20210173550A1 (en) Method for icon display, terminal, and storage medium
TW201923546A (en) Data processing method and apparatus for displaying interface content, and processing device
US20180121027A1 (en) Screen controlling method and electronic device thereof
CN112631679B (en) Preloading method and device for micro-applications
CN110496395B (en) Component operation method, system and equipment for illusion engine
CN112364277A (en) Webpage loading method and device
CN108549562A (en) A kind of method and device of image load
US11397597B2 (en) Application processing method and apparatus
CN111881393B (en) Page rendering method and device, medium and electronic equipment
WO2023179182A1 (en) Device split screen adaptation processing
CN111310482A (en) Real-time translation method, device, terminal and storage medium
WO2018227495A1 (en) Electronic device and processing method therefor
WO2023273350A1 (en) Application authorization method and apparatus, and terminal device
CN112416613A (en) Application data processing method, device, equipment and medium
CN111291244A (en) House resource information display method, device, terminal and storage medium
WO2023179183A1 (en) Subprogram synchronization processing
CN108008925A (en) Application data sharing method, device, terminal and storage medium under span mode
CN111159615A (en) Webpage processing method and device
TWI812895B (en) Data display, payment method, device, equipment and media
CN114035870A (en) Terminal device, application resource control method and storage medium
WO2023216872A1 (en) Event processing method and apparatus applied to iot device
CN107766022A (en) A kind of picture display process, device and storage medium
WO2023151440A1 (en) Program update processing
CN114500635A (en) Service processing method and device

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: 23773434

Country of ref document: EP

Kind code of ref document: A1