WO2024169824A1 - 页面控制方法、装置及电子设备 - Google Patents
页面控制方法、装置及电子设备 Download PDFInfo
- Publication number
- WO2024169824A1 WO2024169824A1 PCT/CN2024/076516 CN2024076516W WO2024169824A1 WO 2024169824 A1 WO2024169824 A1 WO 2024169824A1 CN 2024076516 W CN2024076516 W CN 2024076516W WO 2024169824 A1 WO2024169824 A1 WO 2024169824A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- page
- pointer
- electronic device
- application
- instruction
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 72
- 230000004044 response Effects 0.000 claims abstract description 28
- 238000004891 communication Methods 0.000 claims abstract description 17
- 230000001960 triggered effect Effects 0.000 claims abstract description 13
- 238000012217 deletion Methods 0.000 claims description 14
- 230000037430 deletion Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 27
- 230000006870 function Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04815—Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present application belongs to the field of communication technology, and specifically relates to a page control method, device and electronic equipment.
- Folding screen electronic devices are favored by many consumers because of their multiple screens and the ability to display applications on split screens.
- the split screen technology of related technologies is mainly used on large-screen devices such as folding screens and tablets, and the application object is a single device.
- the related technology cannot be realized.
- the purpose of the embodiments of the present application is to provide a page control method, device and electronic device, which can solve the problem that related technologies cannot achieve application split-screen between multiple electronic devices.
- an embodiment of the present application provides a page control method, the method comprising:
- the target page triggered by the page touch operation instruction is controlled to be displayed on a target electronic device among N first electronic devices, the device pointer array includes N device pointers of the first electronic devices, each of the device pointers is used to indicate the display page of the corresponding first electronic device, wherein N is a positive integer greater than 1.
- an embodiment of the present application provides a page control device, including:
- An acquisition module is used to acquire page touch operation instructions
- a page control module is used to respond to the page touch operation instruction and control the target page triggered by the page touch operation instruction to be displayed on a target electronic device among N first electronic devices according to the indication state of the device pointer array, wherein the device pointer array includes N device pointers of the first electronic devices, each of the device pointers is used to indicate a display page of the corresponding first electronic device, wherein N is a positive integer greater than 1.
- an embodiment of the present application provides an electronic device, which is a first electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the page control method described in the first aspect are implemented.
- an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored.
- the program or instruction is executed by a processor, the steps of the page control method described in the first aspect are implemented.
- an embodiment of the present application provides a chip, the chip comprising a processor and a communication interface, the communication interface The signal interface is coupled to the processor, and the processor is used to run programs or instructions to implement the page control method as described in the first aspect.
- an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the page control method as described in the first aspect.
- a page touch operation instruction is obtained; in response to the page touch operation instruction, a target page triggered by the page touch operation instruction is controlled to be displayed on a target electronic device among N first electronic devices according to the indication state of a device pointer array, wherein the device pointer array includes N device pointers of the first electronic devices, each of the device pointers is used to indicate a display page of a corresponding first electronic device, wherein N is a positive integer greater than 1, so that application split-screen can be achieved between multiple electronic devices to meet the user's split-screen needs between multiple devices.
- FIG1 is a schematic diagram of a flow chart of a page control method according to an embodiment of the present application.
- FIG2 is one of the operation schematic diagrams of wireless connection of multiple devices according to an embodiment of the present application.
- FIG3 is a second schematic diagram of the operation of wirelessly connecting multiple devices according to an embodiment of the present application.
- FIG4 is a third schematic diagram of the operation of wirelessly connecting multiple devices according to an embodiment of the present application.
- FIG5 is a schematic diagram of the Bluetooth connection topology structure between the master control machine and the slave control machine after the cascade is established;
- FIG6 is a schematic diagram of the operation of displaying a page on the front end of a host control machine according to an embodiment of the present application
- FIG. 7 is a schematic diagram of one of the operations of adding a new page on a device according to an embodiment of the present application.
- FIG8 is a second schematic diagram of the operation of adding a new page on a device according to an embodiment of the present application.
- FIG9 is a third schematic diagram of the operation of adding a new page on a device according to an embodiment of the present application.
- FIG10 is a fourth schematic diagram of the operation of adding a new page on a device according to an embodiment of the present application.
- FIG11 is a fifth schematic diagram of the operation of adding a new page on a device according to an embodiment of the present application.
- FIG12 is a sixth schematic diagram of the operation of adding a new page on a device according to an embodiment of the present application.
- FIG. 13 is a schematic diagram showing the page data type of the master control machine sending page data to the slave control machine according to an embodiment of the present application
- FIG14 is a schematic diagram showing a sub-control machine displaying a page data type as a text content file according to an embodiment of the present application
- 15 is a second schematic diagram showing that the data type of the sub-controller display page of the embodiment of the present application is a text content file;
- 16 is a schematic diagram showing that the sub-control machine displays a page data type of a multimedia file according to an embodiment of the present application
- 17 is a schematic diagram showing that the sub-control machine of the embodiment of the present application displays a page data type as an interactive control file;
- FIG18 is a schematic diagram of one of the operations of deleting a page on a device according to an embodiment of the present application.
- FIG19 is a second schematic diagram of an operation of deleting a page on a device according to an embodiment of the present application.
- FIG20 is a schematic diagram of an operation of switching pages on a device according to an embodiment of the present application.
- FIG21 is a second schematic diagram of the operation of switching pages on a device according to an embodiment of the present application.
- FIG22 is a module diagram of a page control device according to an embodiment of the present application.
- FIG23 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application.
- FIG. 24 is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present application.
- first, second, etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
- the first object can be one or more.
- “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
- FIG1 it is a schematic diagram of a flow chart of a page control method provided in an embodiment of the present application.
- the method may specifically include:
- Step 101 obtaining a page touch operation instruction.
- the page touch operation instructions include but are not limited to: adding a new page instruction, deleting a page instruction, and switching pages instruction.
- Step 102 in response to the page touch operation instruction, according to the indication state of the device pointer array, control the target page triggered by the page touch operation instruction to be displayed on the target electronic device among N first electronic devices, the device pointer array includes N device pointers of the first electronic devices, each of the device pointers is used to indicate the display page of the corresponding first electronic device, wherein N is a positive integer greater than 1.
- the N first electronic devices are communicatively connected, specifically, the N first electronic devices are cascaded via a wired or wireless method, wherein the wireless method includes but is not limited to a cellular mobile network, Wi-Fi, Bluetooth, NFC, and the like.
- the page touch operation instruction may come from any one of the N first electronic devices. It should be noted that the execution subject of the method embodiment of the present application is the first electronic device as the master device among the N first electronic devices.
- step 101 may specifically include: when it is determined to be a master device, obtaining a page touch operation instruction through the communication connection of N first electronic devices.
- the method of the present application may further include:
- the first application icon is an application icon of a first application, and the first application is used to implement device cascade control, for example, the first application can be called "device cascade control" software.
- the first application is installed on each of the N first electronic devices, and the first application icon is displayed on the desktop of each first electronic device.
- the first input is a pre-set input, which may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, slide input and swipe input. That is to say, the first input may be one of the above inputs, or a combination of two or more of them.
- the first window is an initialization window of the first application.
- the first functional component is a first virtual button, which is a button used to set the host control machine.
- the second input is a pre-set input, which may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, slide input and swipe input. That is to say, the second input may be one of the above inputs, or a combination of two or more of them.
- the first electronic device executing the method is the main control device, which means that the first electronic device executing the method is the main control end for applying split screen between N first electronic devices, and the other N-1 first electronic devices that subsequently establish communication connections with it are all sub-control devices, and the user's page operations on other first electronic devices need to be reported to the main control device, that is, the main control device can be aware of the user's page operations on other sub-control devices, so as to realize cascade display of pages among N first electronic devices through the main control device.
- Example 1 multiple devices receive the user's click input on the application icon 1 of the "Device Cascade Control” software, see Figure 2, that is, the user opens the “Device Cascade Control” software on multiple devices; then, each device opens the Bluetooth connection and scans nearby Bluetooth devices, and at the same time, each device displays the initialization window 2 (i.e., the first window) popped up by clicking the "Device Cascade Control” software, see Figure 3.
- the initialization window 2 includes:
- (1) List of nearby Bluetooth devices Displays the names of the Bluetooth devices scanned nearby. Each device is represented by a draggable device icon.
- device 1 receives a user's click input on a button of "set this device as the master", and device 1 is selected as the master.
- the user selects a device and clicks "Set this machine as the master machine” to select the device as the master machine, and other devices are set as slave machines by default; in this example, the master machine is the master device, and the slave machines are the slave devices.
- the first window further includes: a first area and a second area, the first area is used to display device icons of connectable devices, and the second area is used to display device icons of connected devices;
- the first area is the area where the list of nearby Bluetooth devices in FIG. 3 is located
- the second area is the area where the list of cascaded devices in FIG. 3 is located.
- the present application Please also include:
- the third input is a pre-set input, which may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, slide input and swipe input. That is to say, the third input may be one of the above inputs, or a combination of two or more of them.
- the device icon in the first area ie, the device icon of the connectable device
- the second area through the third input, so that the user can select the device he wants to cascade and establish a wireless connection with it.
- the master After selecting device 1 as the master in Example 1, the master receives the user's drag input of dragging the device icon in the "Nearby Bluetooth Device List” to the "Cascaded Device List", see Figure 4.
- a device pointer array is initialized in the memory of the master, each device pointer represents a cascaded device, and the arrangement order of the device pointers in the device pointer array is consistent with the order in which the user drags the icons.
- the master receives the user's click input on the "Finish Button", and the master establishes Bluetooth connections with the devices in the "Cascaded Device List” respectively.
- the page control method of the embodiment of the present application can realize application split-screen among multiple electronic devices and meet the user's split-screen needs among multiple devices.
- the device pointer array is displayed on the master device, and further, the page control list is also displayed on the master device, wherein the page control list is initially an empty list, including page nodes for storing memory addresses of page data, and the page nodes reflect the display page of the corresponding first electronic device indicated by the device pointer.
- the main control device in addition to displaying the device pointer array and the page control linked list, the main control device also displays an exit button for subsequently exiting the device cascade state.
- the visualization of the device pointer array in FIG. 6 makes it easy for the user to immediately understand the page display status of the first electronic device with which the communication connection is established.
- the host computer receives a user's click input on a second application A (for example, the second application A is an application (Application, APP) of the current affairs news type), and through the second application A, the host computer sends a page request to a corresponding application server; the host computer receives page data returned by the application server based on the page request; and displays the page corresponding to the page data on the front end of the host computer.
- the second application A is an application (Application, APP) of the current affairs news type
- the main control machine creates a new page node in the page control linked list to store the page data received by the first request to the application service, and names it "Page 1", see Figure 6.
- the main control machine modifies the memory address of the page data corresponding to the page node pointed to by device pointer 1 (device pointer corresponding to device 1) from the initialized "null" (null) to the memory address of "Page 1".
- Device pointer 2 (device pointer corresponding to device 2) and device pointer 3 (device pointer corresponding to device 3) still point to null unchanged. That is, the front end of sub-control 1 (device 2) and sub-control machine 2 (device 3) displays the desktop.
- the above step 102 may include:
- Step 1021a in the case where the page touch operation instruction is an application page adding instruction, in response to the application page adding instruction, obtaining a new application page corresponding to the application page adding instruction;
- the instruction to add new application pages can come from the main control device (the first control electronic device that executes the embodiment of the method of the present application).
- the main control device obtains the user's click input on the target link on the first page on it.
- the instruction generated corresponding to the click input is an instruction to add new application pages, which should be understood as an instruction requesting to display the next level page of the first page.
- the application page new addition instruction may also come from other first electronic devices (other sub-control devices) other than the main control device among the N cascaded first electronic devices.
- the main control device obtains the application page new addition instruction from other first electronic devices (other sub-control devices) through the communication connection between the devices.
- the master control device sends a page request message corresponding to the application page adding instruction to the application server in response to the application page adding instruction; thereafter, the master control device receives the newly added application page returned by the application server based on the page request message.
- Step 1022a based on the first device pointer indication state corresponding to the second electronic device that generates the new application page addition instruction and the arrangement order of the device pointers of N first electronic devices, control the display of the new application page on the target electronic device, where the second electronic device is one of the N first electronic devices.
- step 1022a may specifically include:
- the first device pointer indicates that the front-end display page of the second electronic device is a first application page, and there is a second device pointer after the first device pointer in the device pointer array, then the first electronic device corresponding to the second device pointer is determined to be the target electronic device, wherein the second device pointer indicates that the front-end display page of the target electronic device is a main page or a second application page, and the second application page and the newly added application page are application pages of the same level; the newly added application page is controlled to be displayed on the target electronic device, and the newly added application page is an application page of the next level of the first application page.
- step 1022a the indication status of the device pointer array is updated; and based on the updated indication status of the device pointer array, the front-end display page of the electronic device to be updated is updated.
- updating the indication status of the device pointer array includes: making the second device pointer indicate that the front display page of the target electronic device is the newly added application page; all device pointers after the second device pointer in the device pointer array indicate that their corresponding front display page is the main page.
- the main page is replaced with the newly added application page; if the front-end display page of the first electronic device indicated by the second device pointer is If the page is the second application page, the second application page is replaced with the newly added application page.
- the second device pointer indicates that the front-end display page of the target electronic device is the main page, it means that the second electronic device is the last first electronic device with an application page displayed on the front; if the second device pointer indicates that the front-end display page of the target electronic device is the second application page, it means that the second electronic device is not the last first electronic device with an application page displayed on the front.
- an optional processing method is: first, by judging whether the page node pointed to by the first device pointer is the last page node of the memory address storing the application page data, determine whether the second electronic device is the last first electronic device with the application page displayed on the front; if the judgment result is no, determine that the second electronic device is not the last first electronic device with the application page displayed on the front; if the judgment result is yes, determine that the second electronic device is the last first electronic device with the application page displayed on the front.
- a page data deletion instruction is sent to the first electronic device corresponding to these page nodes, so that the relevant first electronic device locally deletes the currently displayed application page and displays the main page instead.
- Example 3 see FIG. 7 , device 2 (sub-control machine) receives a user's click input on a target link on its front-end page (page 2);
- the page request parameters are obtained; the page request parameters are transmitted to device 1 (master machine) via Bluetooth connection.
- device 1 master machine
- FIG10 there is a master machine (device 1) and two slave machines that have created a device cascade, and the three devices display three pages in sequence.
- Now device 2 receives the user's click input on the target link on its front-end page (page 2).
- device 1 After receiving the page request parameters transmitted by device 2, device 1 sends a page request message to the application server, where the page request message carries the page request parameters; and receives the page data returned by the application server;
- device 1 finds the page node executed by the device pointer (device pointer 2) currently operated by the user through the device pointer array; deletes all page nodes after the page node pointed to by device pointer 2 in the page control list (i.e., deletes the page node named page 3); the corresponding device pointer (device pointer 3) points to null.
- the page displayed by device 3 corresponding to the device pointer (device pointer 3) pointing to null does not change, and the previous page is still displayed, as shown in Figure 10;
- device 1 adds a new page node (named as new page 3 in FIG. 11 ) after the tail node of the page control linked list (i.e., the page node pointed to by device pointer 2 of device 2), and stores the memory address of the page data returned by the application server.
- the memory space corresponding to the memory address stores the page data returned by the application server.
- device 1 finds the pointer behind the device pointer operated by the user in the device pointer array (device pointer 3), point the device pointer 3 to the newly added page node, see Figure 12;
- device 1 transmits the page data returned by the application server to device 3 corresponding to device pointer 3 via Bluetooth connection, and device 3 displays new page 3 corresponding to the page data on the front end, replacing the original page 3.
- the second electronic device when it is determined that the second electronic device is the last first electronic device to display an application page on the front end, a new page node is added after the page node pointed to by the first device pointer, and the newly added application page is transmitted to the first electronic device (target electronic device) corresponding to the second device pointer.
- the second device pointer points to the newly added page node, and the newly added page node stores the memory address corresponding to the page data of the newly added application page.
- Example 4 device 2 (sub-control machine) receives a user's click input of a target link on its front-end page (first page, page 2 in the figure);
- a page request parameter is obtained; the page request parameter is transmitted to device 1 (host) via Bluetooth connection; after receiving the page request parameter transmitted by device 2, device 1 sends a page request message to the application server, the page request message carrying the page request parameter; and receives the page data returned by the application server;
- the first device pointer pointing to null is found in the device pointer array, and the corresponding device (the second terminal, see device 3 in FIG. 7 ) is obtained; at this time, device 1 adds a new page node (see FIG. 7 named page 3) after the tail node of the page control linked list (i.e., the page node pointed to by device pointer 2 of device 2 (see FIG. 7 named page 2)), and stores the memory address of the page data returned by the application server.
- the memory space corresponding to the memory address stores the page data returned by the application server;
- the page data returned by the application server is transmitted to the device 3 via the Bluetooth connection, and the device 3 displays the page (target page) corresponding to the page data on the front end, see FIG. 7 .
- step 1022a may specifically include:
- the second electronic device is determined to be the target electronic device; the newly added application page is controlled to be displayed on the target electronic device, and the newly added application page is the next-level application page of the first application page.
- step 1022a the indication status of the device pointer array is updated; and based on the updated indication status of the device pointer array, the front-end display page of the electronic device to be updated is updated.
- updating the indication status of the device pointer array includes: making the first device pointer indicate that the front display page of the target electronic device is the newly added application page; all device pointers before the first device pointer in the device pointer array indicate that their corresponding front display pages are the next level pages of their respective original pages.
- the first device pointer indicates that the front-end display page of the second electronic device is the first application page
- the first device pointer is the last device pointer in the device pointer array
- a new page node is added after the page node pointed to by the first device pointer
- each device pointer in the device pointer array is moved along the direction of the newly added page node to the next page node of the page node originally pointed to, and at the same time, the newly added application page is transmitted to the first electronic device (target electronic device) corresponding to the second device pointer, and the next level page of the original page is displayed on the local device, and each of the other first electronic devices except the second electronic device and the local device (the first electronic device as the main control device) is displayed.
- the page data of the next level page of the corresponding original page is transmitted to the corresponding first electronic device.
- Example 5 see FIG8 , device 3 (sub-control machine) receives a user's click input on a target link on its front-end page (page 3);
- a page request parameter is obtained; the page request parameter is transmitted to device 1 (host) via Bluetooth connection; after receiving the page request parameter transmitted by device 3, device 1 sends a page request message to the application server, the page request message carrying the page request parameter; and receives the page data returned by the application server;
- device 1 adds a page node (named as page four in FIG. 8 ) after the tail node of the page control linked list (that is, the page node pointed to by device pointer 3 of device 3 (named as page three in FIG. 8 )), and stores the memory address of the page data returned by the application server.
- the memory space corresponding to the memory address stores the page data returned by the application server;
- the memory address pointed to by each device pointer in the device pointer array is sequentially shifted along the page control linked list toward the end of the linked list by one page node, as shown in FIG8 ;
- device 1 transmits the page data stored in the corresponding page node to the corresponding device according to the page node pointed to by the updated device pointer.
- each device displays the page on the front end.
- device 1 corresponding to device pointer 1 displays the next level page of page 1, that is, page 2;
- the front end of device 2 corresponding to device pointer 2 displays the next level page of page 2, that is, page 3;
- the front end of device 3 corresponding to device pointer 3 displays the next level page of page 3, that is, page 4, see Figure 9.
- the various situations in the above embodiments all involve the situation where the main control device transmits page data to at least one first electronic device (sub-control device) other than the main control device among N first electronic devices, that is, the page needs to be displayed on the sub-control device, wherein the page display situation is determined by the display parameters of each sub-control device. Specifically:
- the master computer sends page data to the slave computer.
- the data includes three types of files: text content files, multimedia files (such as pictures and videos), and interactive control files (such as buttons and icons), see Figure 13;
- the sub-controller After receiving the page data, the sub-controller stores these three types of files in the memory. When the sub-controller screen size is not large enough to display all the data, only the part that can be displayed is displayed. The part that cannot be displayed is read from the memory and displayed again after the user slides down the screen.
- the text content file contains multiple text blocks, each of which contains positioning data, font data, and text content.
- the positioning data is two coordinates, and the unit is pixel.
- the first set of coordinates of the positioning data is the position of the upper left corner point of the rectangular box, and the second set of coordinates is the position of the lower right corner point of the rectangular box.
- the first number of each set of coordinates is the pixel number on the first coordinate axis, and the second number is the pixel number on the second coordinate axis, see Figure 14.
- the multimedia file is then displayed.
- the multimedia file includes multiple media blocks, each of which includes positioning data, media type, size data and media content.
- step (1) circle the rectangular box that displays the multimedia, see Figure 16;
- a new thread is started for playing multimedia according to the media type. For example, a player thread needs to be started for video and music media, but no new thread needs to be started for image media.
- (c) Adjust the media size to fit the screen.
- the adjustment method is: let the original length of the media be L1 and the width be W1; let the length of the rectangular frame be L2 and the width be W2.
- the length refers to the number of pixels along the first coordinate axis, and the width refers to the number of pixels along the second coordinate axis.
- L1/L2 and W1/W2 are greater than 1, then compare the sizes of L1/L2 and W1/W2. If L1/L2>W1/W2, then adjust the length of the media to L1 and the width of the media to W1*L2/L1; if L1/L2 ⁇ W1/W2, then adjust the length of the media to L1*W2/W1 and the width of the media to W2.
- Each interactive control file contains multiple controls, and each control contains positioning data, control type, control size and control content.
- the positioning data of the control only contains a set of coordinates, set as (X, Y), which are the display coordinates of the upper left corner of the control;
- the size of the control contains a set of dimensions, set as (L, W), which are the number of pixels of the control along the first and second coordinate axes respectively;
- the width of the mobile phone screen is set as D;
- each first electronic device when N first electronic devices are connected for communication, each first electronic device can freely add pages by adding new pages to the device, and the cascaded devices can adapt to displaying the newly added pages.
- the above step 102 may specifically include:
- Step 1021b when the page touch operation instruction is an application page deletion instruction, determining a third application page corresponding to the application page deletion instruction;
- the application page deletion instruction is a command that a user uses to execute the method on a first electronic device (the first electronic device is a Delete command from the application page on the master device).
- Step 1022b updating the indication status of the third device pointer and all device pointers arranged after the third device pointer, obtaining the updated indication status of the third device pointer and all device pointers arranged after the third device pointer, and determining the first electronic device corresponding to the device pointer with the updated indication status as the target electronic device, wherein the third device pointer is the device pointer corresponding to the third application page;
- updating the indication status of the third device pointer and all device pointers arranged after the third device pointer includes all device pointers arranged after the third device pointer in the device pointer array indicating that their corresponding front-end display page is the main page, and the indication status of the third device pointer is updated according to the third application page. Specifically, if the third application page is the first page of the application, the update process is: make the third device pointer indicate that its corresponding front-end display page is the main page; if the third application page is not the first page of the application, make the third device pointer indicate that its corresponding front-end display page is the upper-level application page of the third application page.
- Step 1023b according to the updated indication states of all device pointers arranged after the third device pointer, controlling the main page to be displayed on the target electronic devices corresponding to the respective device pointers;
- Step 1024b when the third application page is the application home page, according to the indication state of the updated third device pointer, control the main page to be displayed on the target electronic device corresponding to the third device pointer;
- Step 1025b when the third application page is not the application home page, control the upper-level application page of the third application page to be displayed on the target electronic device corresponding to the third device pointer according to the indication state of the updated third device pointer.
- an optional processing method is described based on Figure 6: 1 In response to the application page deletion instruction, mark the third device pointer and all device pointers in the device pointer array that are after the third device pointer; 2 When the third device pointer is not the device pointer of the first electronic device, or when the third device pointer is the device pointer of the first electronic device, and the page node corresponding to the third device pointer is the head node in the page control linked list (that is, the third application page indicated by the third device pointer is the application first page), send the application page deletion instruction to the first electronic device corresponding to the marked device pointer, and delete the page node corresponding to the third device pointer, the page data of the third application page corresponding to the page node, all page nodes after the page node, and the page data corresponding to these page nodes.
- Example 6 device 1 (host) receives a user's drag input for a page node named "Page 3", see FIG18 , and after dragging the page node outside the control box, the user releases his finger, triggering a page deletion operation;
- the page deleted by the user ie, the third application page
- the page node pointed to by the device pointer corresponding to the sub-control machine or the page node pointed to by the device pointer corresponding to the main control machine it is determined whether the page deleted by the user (ie, the third application page) is the page node pointed to by the device pointer corresponding to the sub-control machine or the page node pointed to by the device pointer corresponding to the main control machine.
- the page deleted by the user is the page node pointed to by the device pointer corresponding to the sub-control machine (named "Page 3").
- the linked list is traversed to the end of the page control linked list, and the device pointer corresponding to each traversed page node is marked as to be changed;
- the memory address pointed to by the marked device pointer is modified to null;
- device 1 sends page clearing instructions to the devices corresponding to the marked device pointers (device 2 and device 3 in this example) through the established Bluetooth connection. After receiving the page clearing instructions, device 2 and device 3 display the desktop (main page) on their respective front ends.
- the linked list is traversed to the end of the page control linked list, the page data stored corresponding to each traversed page node is deleted, and these page nodes are deleted from the page control linked list.
- the third device pointer is the device pointer of the first electronic device, and the page node corresponding to the third device pointer is not the head node in the page control list (that is, the third application page indicated by the third device pointer is not the application first page)
- the third device pointer is pointed to the head node in the page control list
- the application first page corresponding to the head node is displayed on the main control device
- page clearing instructions are sent to all other first electronic devices (that is, other sub-control devices) corresponding to the marked device pointers except the first main control device, and the page node corresponding to the third device pointer, the third application page corresponding to the page node, all page nodes after the page node, and the page data corresponding to each page node after the page node are deleted.
- Example 7 device 1 (host) receives a user's drag input for a page node named "Page 2", see FIG19 , and after dragging the page node outside the control box, the user releases his finger, triggering a page deletion operation;
- the page deleted by the user is the page node (named "Page 2") pointed to by the device pointer corresponding to the master machine (device 1).
- the linked list is traversed to the end of the page control linked list, and the device pointer corresponding to each traversed page node is marked as to be changed;
- the memory address pointed to by the marked device pointer is modified to null;
- device 1 determines whether the page node dragged by the user is the head node of the page control list. If so, the device pointer corresponding to the host control machine points to null; if not, the device pointer corresponding to the host control machine points to the previous node of the page node dragged by the user;
- device 1 determines that the page node dragged by the user is not the head node of the page control list, and points the device pointer corresponding to the host to the previous node of the page node dragged by the user, that is, to the page node named page 1. In other words, device 1 will subsequently display the previous page of page 2, that is, page 1.
- device 1 sends page clearing instructions to the sub-control devices corresponding to the marked device pointers (device 2 and device 3 in this example) through the established Bluetooth connection. After receiving the page clearing instructions, device 2 and device 3 display the desktop (main page) on their respective front ends.
- the linked list is traversed to the end of the page control linked list, the page data stored corresponding to each traversed page node is deleted, and these page nodes are deleted from the page control linked list.
- the page is deleted by the device, and the cascaded devices can adapt to the display after the page is deleted.
- the above step 102 may specifically include:
- Step 1021c in the case where the page touch operation instruction is an operation instruction for the device pointer array, in response to the page touch operation instruction, updating the indication state of the device pointer array according to the operation direction along the page touch operation instruction;
- the operation instruction of the device pointer array is an operation instruction of the user on the first electronic device (the first electronic device serves as a master control device) executing the method for the device pointer array.
- Step 1022c based on the indication status of the updated device pointer array, update the front-end display page of each first electronic device.
- the operation instruction of the user on the main control device for the device pointer array is a page switching instruction.
- the master device obtains an operation instruction of the user on the device pointer array on the master device, and triggers page switching through the operation instruction.
- the page touch operation instruction is a drag input of the user on the device pointer array.
- each device pointer in the device pointer array is moved N page nodes in accordance with its arrangement order along the operation direction of the page touch operation instruction. Then, the application page corresponding to the page node pointed to by the device pointer of the master device after the page node is moved is displayed on the master device, and the page data corresponding to the page node pointed to by the device pointer after the corresponding page node is moved is sent to the other first electronic devices (other sub-control devices) except the master device.
- Example 8 device 1 (host) receives the user's drag input to the device pointer array, and the device pointer data slides left or right along the page control list as the user drags, see FIG. 20 ;
- device 1 senses the extent of the user dragging the device pointer on the screen at the front end, that is, how many page nodes all device pointers move left or right on the page control list after sliding, and the number of moved page nodes can be recorded as n;
- device 1 sends the page data stored corresponding to the page node pointed to by each device pointer after the page node is moved to the sub-control machines (device 1 and device 2), and each sub-control machine displays the page corresponding to the received page data at the front end;
- device 1 displays on the front end the data corresponding to the page data stored in the page node pointed to by the device pointer corresponding to the host computer after the page node is moved.
- the function of controlling the main control machine and the sub-control machine to switch pages is achieved, bringing a new device control experience to the user.
- the embodiment of the present application may also include:
- the exit button is shown in FIG6 .
- Example 9 the main control machine receives the user's click input on the exit button, see Figure 21; the main control machine sends instructions to exit the second application (the previous news application) to the sub-control machine through the Bluetooth control connection. After receiving the instructions, the sub-control machine displays the desktop (main page) on the front end and closes the application process in the background.
- the main control machine sends a command to close the Bluetooth connection to the sub-control machine, and the sub-control machine closes the Bluetooth connection after receiving the command; finally, the main control machine closes the Bluetooth connection and exits the device cascade control state.
- This embodiment enables the user to exit the device cascading state and return to the normal use mode.
- the method of the present application can be applied between mobile phones, between mobile phones and tablets, and between mobile phones and motorcycles.
- the page control method provided in the embodiment of the present application can be executed by a page control device.
- the page control device provided in the embodiment of the present application is described by taking the page control method executed by the page control device as an example.
- a page control device provided in an embodiment of the present application may include:
- the acquisition module 2210 is used to acquire a page touch operation instruction
- the page control module 2220 is used to respond to the page touch operation instruction and control the target page triggered by the page touch operation instruction to be displayed on a target electronic device among N first electronic devices according to the indication state of the device pointer array, wherein the device pointer array includes N device pointers of the first electronic devices, each of the device pointers is used to indicate the display page of the corresponding first electronic device, wherein N is a positive integer greater than 1.
- the page control module 2220 includes:
- a first acquisition unit is used for, when the page touch operation instruction is an application page adding instruction, responding to the application page adding instruction and acquiring a new application page corresponding to the application page adding instruction;
- the first page control unit is used to control the display of the newly added application page on the target electronic device according to the indication state of the first device pointer corresponding to the second electronic device that generates the new application page addition instruction and the arrangement order of the device pointers of N first electronic devices, where the second electronic device is one of the N first electronic devices.
- the first page control unit is specifically configured to:
- the first device pointer indicates that the front-end display page of the second electronic device is a first application page, and there is a second device pointer in the device pointer array that is arranged after the first device pointer, then the first electronic device corresponding to the second device pointer is determined to be the target electronic device, wherein the front-end display page of the target electronic device indicated by the second device pointer is a main page or a second application page, and the second application page and the newly added application page are application pages of the same level;
- the newly added application page is controlled to be displayed on the target electronic device, wherein the newly added application page is a next-level application page of the first application page.
- the first page control unit is specifically configured to:
- the second electronic device is determined to be the target electronic device
- the newly added application page is controlled to be displayed on the target electronic device, wherein the newly added application page is a next-level application page of the first application page.
- the page control device 2200 of the embodiment of the present invention further includes:
- a first updating module used for updating the indication status of the device pointer array
- the second updating module is used to update the front-end display page of the electronic device to be updated based on the indication status of the updated device pointer array.
- the page control module 2220 includes:
- a first processing unit configured to determine, when the page touch operation instruction is an application page deletion instruction, a third application page corresponding to the application page deletion instruction;
- a second processing unit configured to update the indication status of the third device pointer and all device pointers arranged after the third device pointer, obtain the updated indication status of the third device pointer and all device pointers arranged after the third device pointer, and determine the first electronic device corresponding to the device pointer having the updated indication status as the target electronic device, wherein the third device pointer is the device pointer corresponding to the third application page;
- a second page control unit configured to control the main page to be displayed on target electronic devices corresponding to the respective device pointers according to the updated indication states of all device pointers arranged after the third device pointer;
- a third page control unit configured to control the main page to be displayed on a target electronic device corresponding to the third device pointer according to an indication state of the updated third device pointer when the third application page is the application home page;
- the fourth page control unit is used to control the display of the upper-level application page of the third application page on the target electronic device corresponding to the third device pointer according to the indication state of the updated third device pointer when the third application page is not the application home page.
- the page control module 2220 includes:
- a third updating unit is used for updating the indication state of the device pointer array according to the operation direction of the page touch operation instruction in response to the page touch operation instruction when the page touch operation instruction is an operation instruction for the device pointer array;
- the fourth updating unit is used to update the front-end display page of each of the first electronic devices based on the indication status of the updated device pointer array.
- the page control device of the embodiment of the present application obtains a page touch operation instruction through a first electronic device; in response to the page touch operation instruction, controls the target page triggered by the page touch operation instruction to be displayed on a target electronic device among N first electronic devices according to the indication state of a device pointer array, wherein the device pointer array includes N device pointers of the first electronic devices, each of the device pointers is used to indicate a display page of the corresponding first electronic device, wherein N is a positive integer greater than 1, so that application split-screen can be achieved between multiple electronic devices to meet the user's split-screen needs between multiple devices.
- the page control device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip.
- the electronic device can be a terminal or other devices other than a terminal.
- the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
- NAS Network Attached Storage
- PC personal computer
- TV television
- teller machine a self-service machine
- the page control device in the embodiment of the present application may be a device having an operating system.
- the operating system may be Android
- the (Android) operating system may be an Apple mobile operating system (iPhone Operating System, iOS), or other possible operating systems, which are not specifically limited in the embodiments of the present application.
- the page control device provided in the embodiment of the present application can implement each process implemented by the method embodiments of Figures 1 to 21. To avoid repetition, they will not be described here.
- an embodiment of the present application also provides an electronic device 2300, including a processor 2301 and a memory 2302, and the memory 2302 stores a program or instruction that can be executed on the processor 2301.
- the program or instruction is executed by the processor 2301, the various steps of the above-mentioned page control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
- the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
- FIG. 24 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
- the electronic device 2400 includes but is not limited to: a radio frequency unit 2401, a network module 2402, an audio output unit 2403, an input unit 2404, a sensor 2405, a display unit 2406, a user input unit 2407, an interface unit 2408, a memory 2409, and a processor 2410 and other components.
- the electronic device 2400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 2410 through a power management system, so that the power management system can manage charging, discharging, and power consumption management.
- a power source such as a battery
- the electronic device structure shown in FIG24 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange components differently, which will not be described in detail here.
- the processor 2410 is used to obtain a page touch operation instruction
- the target page triggered by the page touch operation instruction is controlled to be displayed on a target electronic device among N first electronic devices, the device pointer array includes N device pointers of the first electronic devices, each of the device pointers is used to indicate the display page of the corresponding first electronic device, wherein N is a positive integer greater than 1.
- the embodiments of the present application can realize application split-screen among multiple electronic devices, meeting the user's split-screen needs among multiple devices.
- the input unit 2404 may include a graphics processing unit (GPU) 24041 and a microphone 24042, and the graphics processor 24041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode.
- the display unit 2406 may include a display panel 24061, and the display panel 24061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc.
- the user input unit 2407 includes a touch panel 24071 and at least one of other input devices 24072.
- the touch panel 24071 is also called a touch screen.
- the touch panel 24071 may include two parts: a touch detection device and a touch controller.
- Other input devices 24072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
- the memory 2409 can be used to store software programs and various data.
- the memory 2409 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, at least one
- the memory 2409 may include an application program or instruction required for a function (such as a sound playback function, an image playback function, etc.).
- the memory 2409 may include a volatile memory or a non-volatile memory, or the memory 2409 may include both a volatile memory and a non-volatile memory.
- the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
- the volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM).
- the memory 2409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
- the processor 2410 may include one or more processing units; optionally, the processor 2410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 2410.
- processor 2410 is further configured to:
- the page touch operation instruction is an application page adding instruction
- the application page adding instruction in response to the application page adding instruction, obtaining a new application page corresponding to the application page adding instruction;
- the new application page is controlled to be displayed on the target electronic device, and the second electronic device is one of the N first electronic devices.
- processor 2410 is further configured to:
- the first device pointer indicates that the front-end display page of the second electronic device is a first application page, and there is a second device pointer in the device pointer array that is arranged after the first device pointer, then the first electronic device corresponding to the second device pointer is determined to be the target electronic device, wherein the front-end display page of the target electronic device indicated by the second device pointer is a main page or a second application page, and the second application page and the newly added application page are application pages of the same level;
- the newly added application page is controlled to be displayed on the target electronic device, wherein the newly added application page is a next-level application page of the first application page.
- processor 2410 is further configured to:
- the second electronic device is determined to be the target electronic device
- processor 2410 is further configured to:
- the front-end display page of the electronic device to be updated is updated.
- processor 2410 is further configured to:
- the page touch operation instruction is an application page deletion instruction, determining a third application page corresponding to the application page deletion instruction;
- the third application page is the application home page
- the upper-level application page of the third application page is controlled to be displayed on the target electronic device corresponding to the third device pointer according to the indication state of the updated third device pointer.
- processor 2410 is further configured to:
- the page touch operation instruction is an operation instruction for the device pointer array
- the page touch operation instruction in response to the page touch operation instruction, updating the indication state of the device pointer array according to the operation direction of the page touch operation instruction
- the front-end display page of each of the first electronic devices is updated.
- An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
- a program or instruction is stored.
- the program or instruction is executed by a processor, each process of the above-mentioned page control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
- the processor is the processor in the electronic device described in the above embodiment.
- the readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
- An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned page control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
- the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
- the present invention provides a computer program product which is stored in a storage medium.
- the product is executed by at least one processor to implement the various processes of the above-mentioned page control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
- the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
- a storage medium such as ROM/RAM, a disk, or an optical disk
- a terminal which can be a mobile phone, a computer, a server, or a network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请公开了一种页面控制方法、装置及电子设备,属于通信技术领域。该方法包括获取页面触控操作指令;响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数。
Description
相关申请的交叉引用
本申请主张在2023年02月17日在中国提交的中国专利申请No.202310127879.5的优先权,其全部内容通过引用包含于此。
本申请属于通信技术领域,具体涉及一种页面控制方法、装置及电子设备。
折叠屏电子设备因其屏幕多,应用可分屏展示,受到了很多消费者青睐。相关技术的分屏技术主要在折叠屏、平板电脑等大屏设备上应用,应用对象是单一设备,但是如果用户持有多个设备,同时希望获得像折叠屏一样的分屏需求时,相关技术无法实现。
发明内容
本申请实施例的目的是提供一种页面控制方法、装置及电子设备,能够解决相关技术无法实现多个电子设备间的应用分屏的问题。
第一方面,本申请实施例提供了一种页面控制方法,该方法包括:
获取页面触控操作指令;
响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数。
第二方面,本申请实施例提供了一种页面控制装置,包括:
获取模块,用于获取页面触控操作指令;
页面控制模块,用于响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数。
第三方面,本申请实施例提供了一种电子设备,所述电子设备为第一电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的页面控制方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的页面控制方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通
信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的页面控制方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的页面控制方法。
在本申请实施例中,通过获取页面触控操作指令;响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数,这样,能够实现多个电子设备间的应用分屏,满足用户多设备间的分屏需求。
图1是本申请实施例的页面控制方法的流程示意图;
图2是本申请实施例的多个设备无线连接的操作示意图之一;
图3是本申请实施例的多个设备无线连接的操作示意图之二;
图4是本申请实施例的多个设备无线连接的操作示意图之三;
图5是建立完成级联后的主控机与分控机蓝牙连接拓扑结构示意图;
图6是本申请实施例的在主控机的前端展示页面的操作示意图;
图7是本申请实施例的在设备上新增页面的操作示意图之一;
图8是本申请实施例的在设备上新增页面的操作示意图之二;
图9是本申请实施例的在设备上新增页面的操作示意图之三;
图10是本申请实施例的在设备上新增页面的操作示意图之四;
图11是本申请实施例的在设备上新增页面的操作示意图之五;
图12是本申请实施例的在设备上新增页面的操作示意图之六;
图13是本申请实施例的主控机向分控机发送页面数据的页面数据类型展示示意图;
图14是本申请实施例的分控机显示页面数据类型为文本内容文件的展示示意图之一;
图15是是本申请实施例的分控机显示页面数据类型为文本内容文件的展示示意图之二;
图16是本申请实施例的分控机显示页面数据类型为多媒体文件的展示示意图;
图17是是本申请实施例的分控机显示页面数据类型为交互控件文件的展示示意图;
图18是本申请实施例的在设备上删除页面的操作示意图之一;
图19是本申请实施例的在设备上删除页面的操作示意图之二;
图20是本申请实施例的在设备上切换页面的操作示意图之一;
图21是本申请实施例的在设备上切换页面的操作示意图之二;
图22是本申请实施例的页面控制装置的模块示意图;
图23是本申请实施例的电子设备的结构示意图;
图24是本申请实施例的电子设备的硬件结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的页面控制方法进行详细地说明。
如图1所示,为本申请实施例提供的页面控制方法的流程示意图。其中该方法可具体包括:
步骤101,获取页面触控操作指令。
这里,页面触控操作指令包括但不限于:新增页面指令、删除页面指令、切换页面指令。
步骤102,响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数。
需要说明的是,N个第一电子设备通信连接,具体的,N个第一电子设备通过有线方式或者无线方式级联。其中,无线方式包括但不限于蜂窝移动网络、Wi-Fi、蓝牙、NFC等。
这里,页面触控操作指令可以来自N个第一电子设备中的任一者。需要说明的是,本申请方法实施例的执行主体是N个第一电子设备中作为主控设备的第一电子设备。
其中,步骤101可具体包括:在确定为主控设备的情况下,通过N个第一电子设备的通信连接,获取页面触控操作指令。
在一可选的实施例中,在确定为主控设备的情况下之前,本申请的方法还可包括:
a1)接收对第一应用图标的第一输入;
可选地,第一应用图标为第一应用的应用图标,第一应用用于实现设备级联控制,比如可以将该第一应用称为“设备级联控制”软件。N个第一电子设备上均安装有第一应用,且第一应用图标显示在各个第一电子设备的桌面上。
可选地,第一输入为预先设置的输入,该第一输入可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第一输入可以为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。
a2)响应于第一输入,显示第一窗口,第一窗口包括第一功能组件;
需要说明的是,第一窗口为第一应用的初始化窗口。可选地,第一功能组件为第一虚拟按钮,是一个用于设置主控机的按钮。
a3)接收对第一功能组件的第二输入;
可选地,第二输入为预先设置的输入,该第二输入可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第二输入可以为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。
a4)响应于第二输入,确定执行该方法的第一电子设备为主控设备。
其中,确定执行该方法的第一电子设备为主控设备,说明执行该方法的第一电子设备为N个第一电子设备间应用分屏的主控端,后续与其建立通信连接的其他N-1个第一电子设备均为分控设备,用户在其他第一电子设备上的页面操作均需要上报给主控设备,也即主控设备可以获知到用户在其他分控设备上的页面操作,以便于通过主控设备实现页面在N个第一电子设备间的级联显示。
在示例一中,多部设备分别接收用户对“设备级联控制”软件的应用图标1的点击输入,参见图2,也就是用户在多部设备上打开“设备级联控制”软件;然后,每个设备分别打开蓝牙连接,扫描附近的蓝牙设备,同时每个设备上分别显示通过点击“设备级联控制”软件弹出的初始化窗口2(即第一窗口),参见图3。初始化窗口2包含:
(1)附近蓝牙设备列表:显示周围扫描到的蓝牙设备名称,每个设备用一个可拖动的设备图标表示;
(2)“设置本机为主控机”的按钮(即第一功能组件);用户可以点击这个按钮,将当前设备设置为主控机;
(3)已级联设备列表:显示已级联设备的名称和顺序;
(4)完成按钮:初始化结束后,用户单击此按钮退出初始化。
接着,设备1接收用户对“设置本机为主控机”的按钮的点击输入,选定设备1为主控机。
也就是,用户选择一部设备,单击“设置本机为主控机”选定该设备作为主控机,其他设备默认作为分控机;该示例中主控机即主控设备,分控机即分控设备。
进一步地,第一窗口还包括:第一区域和第二区域,第一区域用于显示可连接设备的设备图标,第二区域用于显示已连接设备的设备图标;
例如,第一区域为图3中附近蓝牙设备列表所在区域,第二区域为图3中已级联设备列表所在区域。
相应的,在响应于第二输入,确定执行该方法的第一电子设备为主控设备之后,本申
请的方法还包括:
b1)接收对第一区域内设备图标的第三输入;
可选地,第三输入为预先设置的输入,该第三输入可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第三输入可以为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。
b2)响应于第三输入,将设备图标显示于第二区域,并建立与设备图标对应的第一电子设备的通信连接;
这里,通过第三输入将第一区域内的设备图标(即可连接设备的设备图标)移动至第二区域内,从而实现用户选择自己想要级联的设备与之建立无线连接的目的。
b3)确定N个第一电子设备的设备级联顺序,其中,主控设备为设备级联顺序中的第一位,第二区域内的各个第一电子设备的设备图标的排列顺序加1后为各自在设备级联顺序中的排位,其中,设备级联顺序为N个第一电子设备的设备指针的排列顺序。
在示例一中选定设备1为主控机之后,主控机接收用户将“附近蓝牙设备列表”中的设备图标拖动到“已级联设备列表”的拖动输入,参见图4。同时,在主控机内存中初始化一个设备指针数组,每个设备指针代表一个已级联的设备,设备指针数组中设备指针的排列顺序与用户拖动排列图标的顺序一致。最后,主控机接收用户对“完成按钮”的点击输入,主控机分别与“已级联设备列表”中的设备建立蓝牙连接。
需要说明的,建立完成级联后的主控机与分控机蓝牙连接拓扑结构图参见图5。
本申请实施例的页面控制方法,能够实现多个电子设备间的应用分屏,满足用户多设备间的分屏需求。
在一可选的示例中,在N个第一电子设备完成级联后,具体参见图6,在主控设备上显示设备指针数组,进一步地,还在主控设备上显示页面控制链表,其中,页面控制链表初始时为一个空链表,包括用于存储页面数据的内存地址的页面节点,页面节点反映设备指针所指示的对应的第一电子设备的显示页面。应理解,当一个设备指针所指向的页面节点没有存储页面数据的内存地址时,说明该设备指针对应的终端上无页面显示;当一个设备指针所指向的页面节点存储有页面数据的内存地址时,说明该设备指针对应的终端上显示有页面数据对应的页面。
这里,参见图6,主控设备上除了显示设备指针数组和页面控制链表外,还显示有用于后续退出设备级联状态的退出按钮。
通过上述图6对设备指针数组的可视化,便于用户通过查看随即了解存在通信连接的第一电子设备的页面显示情况。
在示例二中,参见图6,主控机接收用户对第二应用A(比如第二应用A为时事新闻类的应用程序(Application,APP))的点击输入,通过该第二应用A,主控机向对应的应用服务器发送页面请求;主控机接收应用服务器基于该页面请求返回的页面数据;并将页面数据对应的页面展示在主控机前端。
之后,主控机在页面控制链表新建一个页面节点,存储首次请求应用服务接收的页面数据,并命名为“页面一”,参见图6。主控机将设备指针1(设备1对应的设备指针)指向的页面节点对应的页面数据的内存地址从初始化后的“空”(null)修改到“页面一”的内存地址。设备指针2(设备2对应的设备指针)、设备指针3(设备3对应的设备指针)仍指向null不变。即分控1(设备2)、分控机2(设备3)前端显示桌面。
在一可选的实施例中,上述步骤102可包括:
步骤1021a,在页面触控操作指令为应用页面新增指令的情况下,响应于应用页面新增指令,获取应用页面新增指令对应的新增应用页面;
这里,应用页面新增指令可以来自于主控设备(执行本申请方法实施例的第一控电子设备),比如,主控设备获得用户对其上第一页面上的目标链接的点击输入,该点击输入对应生成的指令为应用页面新增指令,应理解,是请求显示第一页面的下一级页面的指令。
当然,应用页面新增指令也可以来自于N个级联的第一电子设备中除主控设备外的其他第一电子设备(其他分控设备),此时,主控设备通过设备间的通信连接,获得来自其他第一电子设备(其他分控设备)的应用页面新增指令。
具体的,主控设备响应于该应用页面新增指令,向应用服务器发送应用页面新增指令对应的页面请求消息;之后,主控设备接收应用服务器基于页面请求消息返回的新增应用页面。
步骤1022a,根据生成应用页面新增指令的第二电子设备对应的第一设备指针指示状态和N个所述第一电子设备的设备指针的排列顺序,控制所述新增应用页面在所述目标电子设备上显示,所述第二电子设备为N个所述第一电子设备中的一者。
下面分情况说明步骤1022a的具体实现。在一可选的实施例中,步骤1022a可以具体包括:
若所述第一设备指针指示所述第二电子设备的前端显示页面为第一应用页面,且所述设备指针数组中存在排在所述第一设备指针之后的第二设备指针,则确定所述第二设备指针对应的第一电子设备为目标电子设备,其中,所述第二设备指针指示所述目标电子设备的前端显示页面为主页面或者第二应用页面,所述第二应用页面与所述新增应用页面为同一级应用页面;控制所述新增应用页面在所述目标电子设备上显示,所述新增应用页面为所述第一应用页面的下一级应用页面。
在步骤1022a之后,更新所述设备指针数组的指示状态;基于更新后的所述设备指针数组的指示状态,更新待更新电子设备的前端显示页面。
对应该情况下,更新设备指针数组的指示状态包括:使第二设备指针指示目标电子设备的前端显示页面为新增应用页面;设备指针数组中排在第二设备指针之后的所有设备指针指示其对应的前端显示页面为主页面。
这里,若第二设备指针指示的第一电子设备(目标电子设备)的前端显示页面为主页面,则将主页面替换为新增应用页面;若第二设备指针指示的第一电子设备的前端显示页
面为第二应用页面,则将第二应用页面替换为新增应用页面。
其中,若所述第二设备指针指示所述目标电子设备的前端显示页面为主页面,说明第二电子设备为最后一个前端显示有应用页面的第一电子设备;若所述第二设备指针指示所述目标电子设备的前端显示页面为第二应用页面,说明第二电子设备不是一个最后一个前端显示有应用页面的第一电子设备。
其中,依据图6,一种可选的处理方式是:首先,通过判断第一设备指针所指向的页面节点是否为存储有应用页面数据的内存地址的最后一个页面节点,确定第二电子设备是否是最后一个前端显示有应用页面的第一电子设备;若判断结果为否,则确定第二电子设备不是最后一个前端显示有应用页面的第一电子设备;若判断结果为是,则确定第二电子设备是最后一个前端显示有应用页面的第一电子设备。
情况一,在确定第二电子设备不是最后一个前端显示有应用页面的第一电子设备时,将第一设备指针所指向的页面节点之后的所有页面节点以及该些页面节点对应页面数据均删除后,在第一设备指针所指向的页面节点之后新增页面节点,并将新增应用页面传输至第二设备指针对应的第一电子设备(目标电子设备),同时,第二设备指针指向新增页面节点,新增页面节点存储有新增应用页面的页面数据对应的内存地址。
需要说明的是,第一设备指针所指向的页面节点之后的所有页面节点对应页面数据均删除后,向与该些页面节点对应的第一电子设备发送页面数据删除指令,以使相关的第一电子设备在本地删除当前显示的应用页面,改为显示主页面。
在示例三中,参见图7,设备2(分控机)接收用户对其前端页面(页面二)上目标链接的点击输入;
响应于该点击输入,获得页面请求参数;通过蓝牙连接将页面请求参数传输至设备1(主控机),参见图10,有1台主控机(设备1)、2台分控机已创建好设备级联,且3个设备依次展示了3个页面。现在设备2接收到用户对其前端页面(页面二)上目标链接的点击输入。
设备1接收设备2传输的页面请求参数后,向应用服务器发送页面请求消息,该页面请求消息携带有页面请求参数;并接收应用服务器返回的页面数据;
之后,设备1通过设备指针数组找到用户正在操作的设备指针(设备指针2)执行的页面节点;删除页面控制链表中设备指针2指向的页面节点之后的全部页面节点(即删除命名为页面三的页面节点);对应的设备指针(设备指针3)指向null。此时指向null的设备指针(设备指针3)对应的设备3显示的页面不做变更,让仍显示之前的页面,参见图10;
然后,设备1在页面控制链表的尾结点(即设备2的设备指针2指向的页面节点后新增一个页面节点(参见图11命名为新的页面三)),存储应用服务器返回的页面数据的内存地址,该内存地址对应的内存空间存储有应用服务器返回的页面数据;
之后,设备1在设备指针数组中找到用户操作的设备指针的后面一个指针(设备指针
3),将设备指针3指向新增页面节点,参见图12;
最后,设备1将应用服务器返回的页面数据通过蓝牙连接传输至设备指针3对应的设备3,由设备3在前端将页面数据对应的新的页面三显示出来,替换掉原来的页面三。
情况二,在确定第二电子设备是最后一个前端显示有应用页面的第一电子设备时,在第一设备指针所指向的页面节点之后新增页面节点,并将新增应用页面传输至第二设备指针对应的第一电子设备(目标电子设备),同时,第二设备指针指向新增页面节点,新增页面节点存储有新增应用页面的页面数据对应的内存地址。
在示例四中,设备2(分控机)接收用户对其前端页面(第一页面,图中页面二)上目标链接的点击输入;
响应于该点击输入,获得页面请求参数;通过蓝牙连接将页面请求参数传输至设备1(主控机);设备1接收设备2传输的页面请求参数后,向应用服务器发送页面请求消息,该页面请求消息携带有页面请求参数;并接收应用服务器返回的页面数据;
之后,在设备指针数组中找到第一个指向为null的设备指针,并获得对应的设备(第二终端,参见图7中的设备3);此时,设备1在页面控制链表的尾结点(即设备2的设备指针2指向的页面节点(参见图7命名为页面二))后新增一个页面节点(参见图7命名为页面三),存储应用服务器返回的页面数据的内存地址,该内存地址对应的内存空间存储有应用服务器返回的页面数据;
最后,将应用服务器返回的页面数据通过蓝牙连接传输给设备3,由设备3在前端显示页面数据对应的页面(目标页面),参见图7。
在另一可选的实施例中,步骤1022a可以具体包括:
若所述第一设备指针指示所述第二电子设备的前端显示页面为第一应用页面,且所述第一设备指针为所述设备指针数组中排在最后的设备指针,则确定所述第二电子设备为目标电子设备;控制所述新增应用页面在所述目标电子设备上显示,所述新增应用页面为所述第一应用页面的下一级应用页面。
在步骤1022a之后,更新所述设备指针数组的指示状态;基于更新后的所述设备指针数组的指示状态,更新待更新电子设备的前端显示页面。
对应该情况下,更新设备指针数组的指示状态包括:使第一设备指针指示目标电子设备的前端显示页面为新增应用页面;设备指针数组中排在第一设备指针之前的所有设备指针指示其对应的前端显示页面为各自的原页面的下一级页面。
其中,依据图6,该情况下,即第一设备指针指示第二电子设备的前端显示页面为第一应用页面,且第一设备指针为设备指针数组中排在最后的设备指针的情况下,在第一设备指针所指向的页面节点之后新增页面节点,并将设备指针数组中每个设备指针沿新增页面节点的方向移动至原来所指向的页面节点的下一个页面节点,同时将新增应用页面传输至第二设备指针对应的第一电子设备(目标电子设备),并在本机显示原页面的下一级页面,将除第二电子设备和本机(作为主控设备的第一电子设备)外的其他第一电子设备各
自对应的原页面的下一级页面的页面数据传输至对应的第一电子设备。
在示例五中,参见图8,设备3(分控机)接收用户对其前端页面(页面三)上目标链接的点击输入;
响应于该点击输入,获得页面请求参数;通过蓝牙连接将页面请求参数传输至设备1(主控机);设备1接收设备3传输的页面请求参数后,向应用服务器发送页面请求消息,该页面请求消息携带有页面请求参数;并接收应用服务器返回的页面数据;
之后,在设备指针数组中找不到指向为null的设备指针,即设备指针数组中不存在指向为null的设备指针,且确定设备3为设备指针数组中排在最后一位的设备,此时,设备1在页面控制链表的尾结点(即设备3的设备指针3指向的页面节点(参见图8命名为页面三))后新增一个页面节点(参见图8命名为页面四),存储应用服务器返回的页面数据的内存地址,该内存地址对应的内存空间存储有应用服务器返回的页面数据;
之后,将设备指针数组的每个设备指针指向的内存地址,依次沿页面控制链表向链表尾部平移一个页面节点,参见图8;
最后,设备1根据更新后的设备指针指向的页面节点,向对应的设备传输相对应的页面节点存储的页面数据,各设备收到数据后,在前端将页面展示出来。本示例中,设备指针1对应的设备1展示页面一的下一级页面,即页面二;设备指针2对应的设备2前端展示页面二的下一级页面,即页面三;设备指针3对应的设备3前端展示页面三的下一级页面,即页面四,参见图9。
上述实施例中各种情况均涉及主控设备将页面数据传输至N个第一电子设备除主控设备外的至少一个第一电子设备(分控设备)的情形,也就是,需要在分控机上显示页面,其中页面显示情况由各个分控机的显示参数决定。具体的:
(1)主控机向分控机发送页面数据,数据包含3类文件:文本内容文件,多媒体文件(如图片、视频),交互控件文件(如按钮、图标等),参见图13;
分控机接收到页面数据后,将这3类文件存储在内存中,当分控机屏幕大小不足以显示全部数据时,只显示能显示的部分,不能显示的部分,待用户下滑屏幕后从内存继续读取显示;
(2)首先显示文本内容文件,文本内容文件包含多个文本块,每个文本块包含定位数据、字体数据和文本内容。其中,定位数据是两个坐标,单位是像素。定位数据的第一组坐标是矩形框左上角角点的位置,第二组坐标是矩形框右下角角点的位置。每组坐标的第一个数字是第一坐标轴上的第几个像素,第二个数字是第二坐标轴上的第几个像素,参见图14。
(a)在手机屏幕上用这两组定位坐标框出一个矩形,在该矩形范围内,按字体数据约定的字号、字体、颜色,将文本内容显示出来。如果文本内容较多,超出矩形范围,则自动在右侧增加一个滑块,用于滑动文本内容,参见图15。
(b)如果矩形框的宽度大于手机屏幕宽度,则将右下角点的第二坐标,自适应修改
为手机屏幕宽度具备的像素;
(c)如果矩形框的右下角点第一坐标轴坐标已经超过手机屏幕长度,则只显示手机屏幕长度内的文字内容,多余的部分用户下滑屏幕后从内存读取显示。
(3)然后显示多媒体文件,多媒体文件包含多个媒体块,每个媒体块包含定位数据、媒体类型、大小数据和媒体内容。
(a)首先和第(1)步中一样,圈出显示多媒体的矩形框,参见图16;
(b)然后根据媒体类型新启一个用于播放多媒体的线程,如视频、音乐媒体需要启动一个播放器线程,图片媒体不用新启线程;
(c)调整媒体大小,以适应屏幕范围。调整方法是:设媒体原始长度是L1,宽度是W1;矩形框长度是L2,宽度是W2。这里长度指的是沿第一坐标轴方向的像素点个数,宽度指的是沿第二坐标轴方向的像素点个数;
计算L1/L2、W1/W2的值,如果L1/L2、W1/W2均小于1,说明媒体尺寸小于矩形框,在矩形框中居中显示媒体即可;
如果L1/L2、W1/W2有一个大于1,则比较L1/L2、W1/W2的大小。如果L1/L2>W1/W2,则将媒体的长度调整为L1,将媒体的宽度调整为W1*L2/L1;如果L1/L2<W1/W2,则将媒体的长度调整为L1*W2/W1,将媒体的宽度调整为W2。
(d)在矩形框中居中显示调整好大小的多媒体;
(e)如果矩形框的右下角点第一坐标轴坐标已经超过手机屏幕长度,则只显示手机屏幕长度内的媒体内容,多余的部分用户下滑屏幕后从内存读取显示。
(4)最后显示交互控件文件,每个交互控件文件包含多个控件,每个控件包含定位数据,控件类型、控件大小和控件内容。
(a)控件的定位数据只包含一组坐标,设为(X,Y),这个坐标是控件左上角点的显示坐标;控件大小包含一组尺寸,设为(L,W),分别是控件沿第一、第二坐标轴的像素个数;手机屏幕宽度设为D;
(b)调整控件位置,当控件在第二坐标轴上的宽度超出屏幕宽度显示范围时,即:Y+L>D时,将定位数据的第二个坐标调整为D-L;
(c)按调整后的控件位置坐标,显示控件内容,参见图17;
(d)如果控件的右下角点第一坐标轴坐标已经超过手机屏幕长度,则只显示手机屏幕长度内的控件内容,多余的部分用户下滑屏幕后从内存读取显示。
本实施例中对应N个第一电子设备通信连接的情况下,通过设备新增页面的方式,使得各个第一电子设备能够自由增加页面,并使级联的设备能适应显示新增的页面。
在另一可选的实施例中,上述步骤102可具体包括:
步骤1021b,在页面触控操作指令为应用页面删除指令的情况下,确定与该应用页面删除指令对应的第三应用页面;
具体的,应用页面删除指令是用户在执行该方法的第一电子设备(该第一电子设备作
为主控设备)上的应用页面删除指令。
步骤1022b,更新第三设备指针和排在第三设备指针之后的所有设备指针的指示状态,获得更新后的第三设备指针和排在第三设备指针之后的所有设备指针的指示状态,并将更新过指示状态的设备指针对应的第一电子设备确定为目标电子设备,其中,所述第三设备指针为所述第三应用页面对应的设备指针;
这里,更新第三设备指针和排在第三设备指针之后的所有设备指针的指示状态包括设备指针数组中排在第三设备指针之后的所有设备指针指示其对应的前端显示页面为主页面,第三设备指针的指示状态依据第三应用页面更新,具体的,若第三应用页面为应用首页面,则更新过程为:使第三设备指针指示其对应的前端显示页面为主页面;若第三应用页面不是应用首页面,则使第三设备指针指示其对应的前端显示页面为第三应用页面的上一级应用页面。
步骤1023b,根据更新后的排在第三设备指针之后的所有设备指针的指示状态,控制主页面在各设备指针各自对应的目标电子设备上显示;
步骤1024b,在所述第三应用页面为应用首页面的情况下,根据更新后的第三设备指针的指示状态,控制主页面在第三设备指针对应的目标电子设备上显示;
步骤1025b,在所述第三应用页面不是应用首页面的情况下,根据更新后的第三设备指针的指示状态,控制所述第三应用页面的上一级应用页面在第三设备指针对应的目标电子设备上显示。
本实施例,依据图6说明一种可选地处理方式:①响应于应用页面删除指令,标记第三设备指针以及设备指针数组中排在第三设备指针之后的所有设备指针;②在第三设备指针不是第一电子设备的设备指针的情况下,或者在第三设备指针是第一电子设备的设备指针,且第三设备指针对应的页面节点为页面控制链表中的头节点(也就是说,第三设备指针所对应指示的第三应用页面是应用首页面)的情况下,向已标记的设备指针对应的第一电子设备分别发送应用页面删除指令,并删除第三设备指针对应的页面节点,该页面节点对应的第三应用页面的页面数据、该页面节点之后的所有页面节点以及该些页面节点对应的页面数据。
在示例六中,设备1(主控机)接收用户对命名为“页面三”的页面节点的拖拽输入,参见图18,将页面节点拖拽到控制框外后用户松开手指,触发页面删除操作;
之后,判断用户删除的页面(即第三应用页面)是分控机对应的设备指针指向的页面节点还是主控机对应的设备指针指向的页面节点。
本示例中,用户删除的页面是分控机对应的设备指针指向的页面节点(命名为“页面三”)。
然后,在设备1中,从用户拖拽页面节点开始,向页面控制链表尾部遍历链表,将遍历到的每个页面节点对应的设备指针进行标记,标记为待变更;
之后,将标记的设备指针指向的内存地址修改为null;
再然后,设备1向已标记的设备指针对应的设备(本示例中是设备2和设备3),通过已建立的蓝牙连接,分别发送页面清除指令,设备2和设备3收到页面清除指令后,在各自的前端显示桌面(主页面)。
最后,在设备1中,从用户拖拽页面节点开始,向页面控制链表尾部遍历链表,将遍历到的每个页面节点对应存储的页面数据删除,并从页面控制链表中删除这些页面节点。
或者,③在第三设备指针是第一电子设备的设备指针,且第三设备指针对应的页面节点不是页面控制链表中的头节点(也就是说,第三设备指针所对应指示的第三应用页面不是应用首页面)的情况下,将第三设备指针指向页面控制链表中的头节点,将头节点对应的应用首页面显示在主控设备上,并向除第主控设备外的已标记的设备指针对应的所有其他第一电子设备(即其他分控设备)分别发送页面清除指令,并删除第三设备指针对应的页面节点,该页面节点对应的第三应用页面,该页面节点之后的所有页面节点以及该页面节点之后各页面节点对应的页面数据。
在示例七中,设备1(主控机)接收用户对命名为“页面二”的页面节点的拖拽输入,参见图19,将页面节点拖拽到控制框外后用户松开手指,触发页面删除操作;
之后,判断用户删除的页面是分控机对应的设备指针指向的页面节点还是主控机对应的设备指针指向的页面节点。
本示例中,用户删除的页面是主控机(设备1)对应的设备指针指向的页面节点(命名为“页面二”)。
然后,在设备1中,从用户拖拽页面节点开始,向页面控制链表尾部遍历链表,将遍历到的每个页面节点对应的设备指针进行标记,标记为待变更;
之后,将标记的设备指针指向的内存地址修改为null;
再然后,设备1判断用户拖拽的页面节点是否是页面控制链表的头节点,如果是,则将主控机对应的设备指针指向null;如果不是,将主控机对应的设备指针指向用户拖拽的页面节点的上一个节点;
本示例中,设备1判断用户拖拽的页面节点不是页面控制链表的头节点,将主控机对应的设备指针指向用户拖拽的页面节点的上一个节点,即指向命名为页面一的页面节点。也就是说,后续设备1要显示页面二的上一级页面,即页面一。
再然后,设备1向已标记的设备指针对应的分控机设备(本示例中是设备2和设备3),通过已建立的蓝牙连接,分别发送页面清除指令,设备2和设备3收到页面清除指令后,在各自的前端显示桌面(主页面)。
最后,在设备1中,从用户拖拽页面节点开始,向页面控制链表尾部遍历链表,将遍历到的每个页面节点对应存储的页面数据删除,并从页面控制链表中删除这些页面节点。
本实施例中对应N个第一电子设备通信连接的情况下,通过设备删除页面的方式,并使级联的设备能适应删除页面后的显示。
在又一可选的实施例中,上述步骤102可具体包括:
步骤1021c,在页面触控操作指令为针对设备指针数组的操作指令的情况下,响应于页面触控操作指令,按照沿页面触控操作指令的操作方向更新设备指针数组的指示状态;
具体的,设备指针数组的操作指令为用户在执行该方法的第一电子设备(该第一电子设备作为主控设备)上针对设备指针数组的操作指令。
步骤1022c,基于更新后的设备指针数组的指示状态,更新各个第一电子设备的前端显示页面。
应理解,用户在主控设备上针对设备指针数组的操作指令为页面切换指令。
具体的,主控设备获得用户在该主控设备上对设备指针数组的操作指令,通过该操作指令触发页面切换。可选地,页面触控操作指令为用户对设备指针数组的拖动输入。
依据图6,在页面触控操作指令为针对设备指针数组的操作指令的情况下,响应于页面触控操作指令,将设备指针数组中各设备指针按照其排列顺序,沿页面触控操作指令的操作方向移动N个页面节点。接着,将页面节点移动后主控设备的设备指针指向的页面节点对应的应用页面在主控设备上显示,并向除对主控设备外的其他第一电子设备(其他分控设备)分别发送各自对应的页面节点移动后、设备指针指向的页面节点对应的页面数据。
在示例八中,设备1(主控机)接收用户对设备指针数组的拖动输入,设备指针数据随用户的拖动沿页面控制链表向左或向右滑动,参见图20;
然后,设备1在前端感知用户在屏幕上拖动设备指针滑动的幅度,即滑动后所有设备指针在页面控制链表上向左或者向右移动了多少个页面节点,移动页面节点个数可记为n;
之后,设备1向分控机(设备1和设备2)分别发送页面节点移动后各设备指针指向的页面节点对应存储的页面数据,由各分控机在前端将接收到的页面数据对应的页面展示出来;
最后,设备1在前端展示页面节点移动后主控机对应的设备指针指向的页面节点对应存储的页面数据对应的数据。
本实施例中,通过滑动主控机上的设备指针数组,达到控制主控机、分控机切换页面的功能,给用户带来新的设备操控体验。
当然,当用户没有多个电子设备间的应用分屏的需求时,也可以解除多设备间的级联控制。在一可选的实施例中,本申请实施例还可包括:
接收用户对退出按钮的第四输入;
这里,退出按钮示意参见图6。
响应于第四输入,解除N个第一电子设备间的通信连接。
在示例九中,主控机接收用户对退出按钮的点击输入,参见图21;主控机通过蓝牙控制连接,分别向分控机发送退出第二应用(之前新闻类的应用)指令,分控机接收指令后,在前端显示桌面(主页面),并在后台关闭应用进程。
之后,主控机向分控机发送关闭蓝牙连接指令,分控机接收到指令后关闭蓝牙连接;最后主控机关闭蓝牙连接,退出设备级联控制状态。
本实施例能够使用户退出设备级联状态,回复到常规使用模式下。
需要说明的是,本申请的方法可以应用在手机与手机之间,也可以应用在手机和平板之间,也可应用在手机和机车之间。
本申请实施例提供的页面控制方法,执行主体可以为页面控制装置。本申请实施例中以页面控制装置执行页面控制方法为例,说明本申请实施例提供的页面控制装置。
如图22所示,为本申请实施例提供的页面控制装置,该装置2200可包括:
获取模块2210,用于获取页面触控操作指令;
页面控制模块2220,用于响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数。
可选地,页面控制模块2220包括:
第一获取单元,用于在页面触控操作指令为应用页面新增指令的情况下,响应于所述应用页面新增指令,获取所述应用页面新增指令对应的新增应用页面;
第一页面控制单元,用于根据生成所述应用页面新增指令的第二电子设备对应的第一设备指针的指示状态和N个所述第一电子设备的设备指针的排列顺序,控制所述新增应用页面在所述目标电子设备上显示,所述第二电子设备为N个所述第一电子设备中的一者。
可选地,所述第一页面控制单元具体用于:
若所述第一设备指针指示所述第二电子设备的前端显示页面为第一应用页面,且所述设备指针数组中存在排在所述第一设备指针之后的第二设备指针,则确定所述第二设备指针对应的第一电子设备为目标电子设备,其中,所述第二设备指针指示所述目标电子设备的前端显示页面为主页面或者第二应用页面,所述第二应用页面与所述新增应用页面为同一级应用页面;
控制所述新增应用页面在所述目标电子设备上显示,所述新增应用页面为所述第一应用页面的下一级应用页面。
可选地,所述第一页面控制单元具体用于:
若所述第一设备指针指示所述第二电子设备的前端显示页面为第一应用页面,且所述第一设备指针为所述设备指针数组中排在最后的设备指针,则确定所述第二电子设备为目标电子设备;
控制所述新增应用页面在所述目标电子设备上显示,所述新增应用页面为所述第一应用页面的下一级应用页面。
可选地,本发明实施例的页面控制装置2200还包括:
第一更新模块,用于更新所述设备指针数组的指示状态;
第二更新模块,用于基于更新后的所述设备指针数组的指示状态,更新待更新电子设备的前端显示页面。
可选地,页面控制模块2220包括:
第一处理单元,用于在所述页面触控操作指令为应用页面删除指令的情况下,确定与所述应用页面删除指令对应的第三应用页面;
第二处理单元,用于更新第三设备指针和排在第三设备指针之后的所有设备指针的指示状态,获得更新后的第三设备指针和排在第三设备指针之后的所有设备指针的指示状态,并将更新过指示状态的设备指针对应的第一电子设备确定为目标电子设备,其中,所述第三设备指针为所述第三应用页面对应的设备指针;
第二页面控制单元,用于根据更新后的排在第三设备指针之后的所有设备指针的指示状态,控制主页面在各设备指针各自对应的目标电子设备上显示;
第三页面控制单元,用于在所述第三应用页面为应用首页面的情况下,根据更新后的第三设备指针的指示状态,控制主页面在第三设备指针对应的目标电子设备上显示;
第四页面控制单元,用于在所述第三应用页面不是应用首页面的情况下,根据更新后的第三设备指针的指示状态,控制所述第三应用页面的上一级应用页面在第三设备指针对应的目标电子设备上显示。
可选地,页面控制模块2220包括:
第三更新单元,用于在所述页面触控操作指令为针对所述设备指针数组的操作指令的情况下,响应于所述页面触控操作指令,按照所述页面触控操作指令的操作方向更新所述设备指针数组的指示状态;
第四更新单元,用于基于更新后的所述设备指针数组的指示状态,更新各个所述第一电子设备的前端显示页面。
本申请实施例的页面控制装置,通过第一电子设备获取页面触控操作指令;响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数,这样,能够实现多个电子设备间的应用分屏,满足用户多设备间的分屏需求。
本申请实施例中的页面控制装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的页面控制装置可以为具有操作系统的装置。该操作系统可以为安卓
(Android)操作系统,可以为苹果移动操作系统(iPhone Operating System,iOS),还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的页面控制装置能够实现图1至图21的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图23所示,本申请实施例还提供一种电子设备2300,包括处理器2301和存储器2302,存储器2302上存储有可在所述处理器2301上运行的程序或指令,该程序或指令被处理器2301执行时实现上述页面控制方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图24为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备2400包括但不限于:射频单元2401、网络模块2402、音频输出单元2403、输入单元2404、传感器2405、显示单元2406、用户输入单元2407、接口单元2408、存储器2409、以及处理器2410等部件。
本领域技术人员可以理解,电子设备2400还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器2410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图24中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器2410,用于获取页面触控操作指令;
响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数。
本申请实施例能够实现多个电子设备间的应用分屏,满足用户多设备间的分屏需求。
应理解的是,本申请实施例中,输入单元2404可以包括图形处理器(Graphics Processing Unit,GPU)24041和麦克风24042,图形处理器24041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元2406可包括显示面板24061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板24061。用户输入单元2407包括触控面板24071以及其他输入设备24072中的至少一种。触控面板24071,也称为触摸屏。触控面板24071可包括触摸检测装置和触摸控制器两个部分。其他输入设备24072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器2409可用于存储软件程序以及各种数据。存储器2409可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一
个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器2409可以包括易失性存储器或非易失性存储器,或者,存储器2409可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器2409包括但不限于这些和任意其它适合类型的存储器。
处理器2410可包括一个或多个处理单元;可选地,处理器2410集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器2410中。
可选地,处理器2410,还用于:
在页面触控操作指令为应用页面新增指令的情况下,响应于所述应用页面新增指令,获取所述应用页面新增指令对应的新增应用页面;
根据生成所述应用页面新增指令的第二电子设备对应的第一设备指针的指示状态和N个所述第一电子设备的设备指针的排列顺序,控制所述新增应用页面在所述目标电子设备上显示,所述第二电子设备为N个所述第一电子设备中的一者。
可选地,处理器2410,还用于:
若所述第一设备指针指示所述第二电子设备的前端显示页面为第一应用页面,且所述设备指针数组中存在排在所述第一设备指针之后的第二设备指针,则确定所述第二设备指针对应的第一电子设备为目标电子设备,其中,所述第二设备指针指示所述目标电子设备的前端显示页面为主页面或者第二应用页面,所述第二应用页面与所述新增应用页面为同一级应用页面;
控制所述新增应用页面在所述目标电子设备上显示,所述新增应用页面为所述第一应用页面的下一级应用页面。
可选地,处理器2410,还用于:
若所述第一设备指针指示所述第二电子设备的前端显示页面为第一应用页面,且所述第一设备指针为所述设备指针数组中排在最后的设备指针,则确定所述第二电子设备为目标电子设备;
控制所述新增应用页面在所述目标电子设备上显示,所述新增应用页面为所述第一应
用页面的下一级应用页面。
可选地,处理器2410,还用于:
更新所述设备指针数组的指示状态;
基于更新后的所述设备指针数组的指示状态,更新待更新电子设备的前端显示页面。
可选地,处理器2410,还用于:
在所述页面触控操作指令为应用页面删除指令的情况下,确定与所述应用页面删除指令对应的第三应用页面;
更新第三设备指针和排在第三设备指针之后的所有设备指针的指示状态,获得更新后的第三设备指针和排在第三设备指针之后的所有设备指针的指示状态,并将更新过指示状态的设备指针对应的第一电子设备确定为目标电子设备,其中,所述第三设备指针为所述第三应用页面对应的设备指针;
根据更新后的排在第三设备指针之后的所有设备指针的指示状态,控制主页面在各设备指针各自对应的目标电子设备上显示;
在所述第三应用页面为应用首页面的情况下,根据更新后的第三设备指针的指示状态,控制主页面在第三设备指针对应的目标电子设备上显示;
在所述第三应用页面不是应用首页面的情况下,根据更新后的第三设备指针的指示状态,控制所述第三应用页面的上一级应用页面在第三设备指针对应的目标电子设备上显示。
可选地,处理器2410,还用于:
在所述页面触控操作指令为针对所述设备指针数组的操作指令的情况下,响应于所述页面触控操作指令,按照所述页面触控操作指令的操作方向更新所述设备指针数组的指示状态;
基于更新后的所述设备指针数组的指示状态,更新各个所述第一电子设备的前端显示页面。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述页面控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述页面控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产
品被至少一个处理器执行以实现如上述页面控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。
Claims (13)
- 一种页面控制方法,包括:获取页面触控操作指令;响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数。
- 根据权利要求1所述的方法,其中,所述响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,包括:在页面触控操作指令为应用页面新增指令的情况下,响应于所述应用页面新增指令,获取所述应用页面新增指令对应的新增应用页面;根据生成所述应用页面新增指令的第二电子设备对应的第一设备指针的指示状态和N个所述第一电子设备的设备指针的排列顺序,控制所述新增应用页面在所述目标电子设备上显示,所述第二电子设备为N个所述第一电子设备中的一者。
- 根据权利要求2所述的方法,其中,所述根据生成所述应用页面新增指令的第二电子设备对应的第一设备指针的指示状态和N个所述第一电子设备的设备指针的排列顺序,控制所述新增应用页面在所述目标电子设备上显示,包括:若所述第一设备指针指示所述第二电子设备的前端显示页面为第一应用页面,且所述设备指针数组中存在排在所述第一设备指针之后的第二设备指针,则确定所述第二设备指针对应的第一电子设备为目标电子设备,其中,所述第二设备指针指示所述目标电子设备的前端显示页面为主页面或者第二应用页面,所述第二应用页面与所述新增应用页面为同一级应用页面;控制所述新增应用页面在所述目标电子设备上显示,所述新增应用页面为所述第一应用页面的下一级应用页面。
- 根据权利要求2所述的方法,其中,所述根据生成所述应用页面新增指令的第二电子设备对应的第一设备指针的指示状态和N个所述第一电子设备的设备指针的排列顺序,控制所述新增应用页面在所述目标电子设备上显示,包括:若所述第一设备指针指示所述第二电子设备的前端显示页面为第一应用页面,且所述第一设备指针为所述设备指针数组中排在最后的设备指针,则确定所述第二电子设备为目标电子设备;控制所述新增应用页面在所述目标电子设备上显示,所述新增应用页面为所述第一应用页面的下一级应用页面。
- 根据权利要求2所述的方法,其中,根据生成所述应用页面新增指令的第二电子 设备对应的第一设备指针的指示状态和N个所述第一电子设备的设备指针的排列顺序,控制所述新增应用页面在所述目标电子设备上显示之后,所述方法还包括:更新所述设备指针数组的指示状态;基于更新后的所述设备指针数组的指示状态,更新待更新电子设备的前端显示页面。
- 根据权利要求1所述的方法,其中,所述响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,包括:在所述页面触控操作指令为应用页面删除指令的情况下,确定与所述应用页面删除指令对应的第三应用页面;更新第三设备指针和排在第三设备指针之后的所有设备指针的指示状态,获得更新后的第三设备指针和排在第三设备指针之后的所有设备指针的指示状态,并将更新过指示状态的设备指针对应的第一电子设备确定为目标电子设备,其中,所述第三设备指针为所述第三应用页面对应的设备指针;根据更新后的排在第三设备指针之后的所有设备指针的指示状态,控制主页面在各设备指针各自对应的目标电子设备上显示;在所述第三应用页面为应用首页面的情况下,根据更新后的第三设备指针的指示状态,控制主页面在第三设备指针对应的目标电子设备上显示;在所述第三应用页面不是应用首页面的情况下,根据更新后的第三设备指针的指示状态,控制所述第三应用页面的上一级应用页面在第三设备指针对应的目标电子设备上显示。
- 根据权利要求1所述的方法,其中,所述响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,包括:在所述页面触控操作指令为针对所述设备指针数组的操作指令的情况下,响应于所述页面触控操作指令,按照所述页面触控操作指令的操作方向更新所述设备指针数组的指示状态;基于更新后的所述设备指针数组的指示状态,更新各个所述第一电子设备的前端显示页面。
- 一种页面控制装置,包括:获取模块,用于获取页面触控操作指令;页面控制模块,用于响应于所述页面触控操作指令,根据设备指针数组的指示状态,控制所述页面触控操作指令所触发显示的目标页面在N个第一电子设备中的目标电子设备上显示,所述设备指针数组包括N个所述第一电子设备的设备指针,每个所述设备指针用于指示对应的第一电子设备的显示页面,其中,N为大于1的正整数。
- 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至7任一项所述的页 面控制方法的步骤。
- 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至7任一项所述的页面控制方法的步骤。
- 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至7任一项所述的方法。
- 一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1至7任一项所述的方法。
- 一种电子设备,被配置成用于执行如权利要求1至7任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310127879.5A CN115981531A (zh) | 2023-02-17 | 2023-02-17 | 页面控制方法、装置及电子设备 |
CN202310127879.5 | 2023-02-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024169824A1 true WO2024169824A1 (zh) | 2024-08-22 |
Family
ID=85970438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2024/076516 WO2024169824A1 (zh) | 2023-02-17 | 2024-02-07 | 页面控制方法、装置及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115981531A (zh) |
WO (1) | WO2024169824A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115981531A (zh) * | 2023-02-17 | 2023-04-18 | 维沃移动通信有限公司 | 页面控制方法、装置及电子设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210263642A1 (en) * | 2020-02-25 | 2021-08-26 | Beijing Xiaomi Mobile Software Co., Ltd. | Multi-screen interaction method and apparatus, and storage medium |
CN114679708A (zh) * | 2020-12-25 | 2022-06-28 | 华为技术有限公司 | 通信方法、系统及电子设备 |
CN114756785A (zh) * | 2020-12-25 | 2022-07-15 | 华为技术有限公司 | 页面显示的方法、装置、电子设备以及可读存储介质 |
CN115981531A (zh) * | 2023-02-17 | 2023-04-18 | 维沃移动通信有限公司 | 页面控制方法、装置及电子设备 |
-
2023
- 2023-02-17 CN CN202310127879.5A patent/CN115981531A/zh active Pending
-
2024
- 2024-02-07 WO PCT/CN2024/076516 patent/WO2024169824A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210263642A1 (en) * | 2020-02-25 | 2021-08-26 | Beijing Xiaomi Mobile Software Co., Ltd. | Multi-screen interaction method and apparatus, and storage medium |
CN114679708A (zh) * | 2020-12-25 | 2022-06-28 | 华为技术有限公司 | 通信方法、系统及电子设备 |
CN114756785A (zh) * | 2020-12-25 | 2022-07-15 | 华为技术有限公司 | 页面显示的方法、装置、电子设备以及可读存储介质 |
CN115981531A (zh) * | 2023-02-17 | 2023-04-18 | 维沃移动通信有限公司 | 页面控制方法、装置及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN115981531A (zh) | 2023-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111913628B (zh) | 分享方法、装置和电子设备 | |
WO2023010903A1 (zh) | 终端设备的桌面管理方法和终端设备 | |
WO2022089330A1 (zh) | 截图方法和装置、电子设备和可读存储介质 | |
US20230394223A1 (en) | Page jumping method, apparatus, and device, and storage medium and program product | |
WO2023061280A1 (zh) | 应用程序显示方法、装置及电子设备 | |
WO2024114606A1 (zh) | 一种视窗的显示方法以及相关设备 | |
WO2024164931A1 (zh) | 界面显示方法和装置 | |
WO2023030115A1 (zh) | 界面显示方法和装置 | |
WO2023061414A1 (zh) | 一种文件生成方法、装置及电子设备 | |
WO2024169824A1 (zh) | 页面控制方法、装置及电子设备 | |
CN115357158A (zh) | 消息处理方法、装置、电子设备及存储介质 | |
CN115373555A (zh) | 文件夹图标的显示方法、装置、电子设备及介质 | |
WO2023155877A1 (zh) | 应用图标管理方法、装置和电子设备 | |
WO2023046068A1 (zh) | 文件处理方法及装置 | |
CN113032068A (zh) | 显示方法和电子设备 | |
CN112148167A (zh) | 控件设置方法、装置和电子设备 | |
CN114116098B (zh) | 应用图标管理方法、装置、电子设备及存储介质 | |
WO2024109635A1 (zh) | 界面显示方法及其装置 | |
WO2024217467A1 (zh) | 图标显示控制方法、装置、电子设备及介质 | |
CN114416269A (zh) | 界面显示方法和显示设备 | |
WO2024088318A1 (zh) | 图标管理方法及装置 | |
WO2023155874A1 (zh) | 应用图标管理方法、装置和电子设备 | |
WO2024109731A1 (zh) | 内容分享方法、装置、电子设备和可读存储介质 | |
WO2024104157A1 (zh) | 应用界面管理方法、装置、电子设备及可读存储介质 | |
WO2024099102A1 (zh) | 控件显示方法及装置、电子设备和可读存储介质 |
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: 24756197 Country of ref document: EP Kind code of ref document: A1 |