Content display method and electronic equipment
By automatically obtaining and displaying link summary information in response to interface events in electronic devices, the problem of cumbersome display of link content in chat and reading scenarios is solved, and convenient and efficient content display is achieved.
Patent Information
- Application Number
- CN202410043792.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2025-07-11
AI Technical Summary
In chat and reading scenarios, the process of displaying link content is cumbersome, inefficient, and the user waits for a long time.
In response to interface events, the electronic device automatically obtains the linked application category and displays summary information. It creates a virtual screen in the background to quickly obtain the link content, displays the content based on the application category and function category, conducts security checks and displays prompts in unsafe situations.
It realizes convenient display of link content, reduces user waiting time, and improves operational efficiency and security.
Smart Images

Figure CN120295698A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a content display method and an electronic device. Background Art
[0002] In a chat scenario or a reading scenario of an electronic device, the currently applied display interface often includes links, such as a password, a Universal Resource Locator (URL) link, or a QR code. A user needs to manually obtain the link text of the link and then manually operate the electronic device to make the electronic device open another application and open the link through the other application, so that the user can view the content of the link. Therefore, the entire process of displaying the content of the link on the electronic device is cumbersome, and the user waiting time is relatively long. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a content display method and an electronic device, and the entire process of displaying the content of the link on the electronic device is convenient to operate, and the user waiting time is relatively short.
[0004] In a first aspect, an embodiment of the present invention provides a content display method, and the method includes:
[0005] Display a first interface of a first application;
[0006] In response to a first event occurring on the first interface, obtain an application category corresponding to a first link of a target content block in the first interface, where the application category is used to represent the category of a second application for opening the first link;
[0007] According to the first link and the application category, obtain third information, where the third information includes summary information representing specific content displayed after the first link is opened;
[0008] Display the summary information. In an embodiment of the present application, only in response to a first event occurring on the first interface, the summary information of the link on the first interface can be directly displayed, so that the content of the link in the first interface can be quickly seen, without caring about which application to use to open it, nor searching for the location of the application, improving convenience. The entire process of displaying the content of the link on the electronic device is convenient to operate, and the user waiting time is relatively short.
[0009] In combination with the first aspect, in some implementation manners of the first aspect, the obtaining third information according to the first link and the application category includes:
[0010] Obtain second information according to the first link, where the second information includes specific content displayed after the first link is opened;
[0011] The third information is obtained based on the second information and the application category. In the embodiments of the present application, the summary information of the specific content displayed after the first link is opened is obtained according to the first link, so as to quickly display the content of the first link subsequently.
[0012] In combination with the first aspect, in some implementation manners of the first aspect, before obtaining the third information according to the second information and the application category, it further includes:
[0013] Obtain a function category according to the second information, where the function category is used to represent the category of the function of the page corresponding to the first link in the second application;
[0014] The obtaining the third information according to the second information includes:
[0015] Obtain the third information according to the second information, the application category, and the function category. In the embodiments of the present application, the function category of the first link can be obtained according to the specific content displayed after the first link is opened, and the function category is a sub-category of the application category. If the application category only includes one function category, determining the application category also determines the function category, and there is no need to determine the function category of the first link again. The second information and the application category are directly input into the large model to output the third information. If the application category includes multiple function categories, it is necessary to first determine the function category, and then input the second information, the application category, and the function category into the large model to output the third information.
[0016] In combination with the first aspect, in some implementation manners of the first aspect, the target content block includes the domain name of the first link;
[0017] Before obtaining the application category corresponding to the first link of the target content block in the first interface, it further includes:
[0018] Judge whether the whitelist includes the domain name of the first link;
[0019] If the whitelist includes the domain name of the first link, execute obtaining the application category corresponding to the first link of the target content block in the first interface; or
[0020] If the whitelist does not include the domain name of the first link, display an insecure prompt for the first link. In the embodiments of the present application, the domain name of the link is checked for security, and only when it is secure, the application category and other information of the link are continuously obtained, improving the security of accessing the link. In the case of insecurity, an insecure prompt for the link is displayed to prevent the user from performing an open operation on the link, improving the security of accessing the link.
[0021] In combination with the first aspect, in certain implementations of the first aspect, obtaining the application category corresponding to the first link of the target content block in the first interface in response to the first event that occurs in the first interface includes:
[0022] In response to the first event that occurs in the first interface,
[0023] obtaining a first content block corresponding to the position of the first event in the content blocks of the first interface;
[0024] when the first content block contains a link, determining the first content block as the target content block;
[0025] obtaining the application category corresponding to the first link in the target content block. In the embodiments of the present application, the content block corresponding to the position of the first event is the first content block; then, according to the content information of the first content block containing a link, the first content block is determined as the target content block. Specifically, by identifying the content information of the first content block, if a link is identified, the first content block is the target content block, and the application category corresponding to the first link in the target content block is obtained. If no link is identified, the first content block is not the target content block.
[0026] In combination with the first aspect, in certain implementations of the first aspect, the first event is a first user operation event. In the embodiments of the present application, the first user operation event includes a long-press operation of the user on the first link or a click operation of the user on the menu option of the first link. The first user operation event does not cause a content change event of the first interface. In the embodiments of the present application, the content change event of the first interface refers to an event in which the content to be displayed on the first interface changes, and the content change event of the first interface can trigger the refresh of the first interface.
[0027] In combination with the first aspect, in certain implementations of the first aspect, the first event is a content change event of the first interface. Exemplarily, the content change event may be triggered automatically by the system or triggered by a user operation. In the embodiments of the present application, the operation of the content change event triggered by a user operation is referred to as a second user operation event. For example, the second user operation event is a sliding operation (such as an upward sliding operation or a downward sliding operation) or a sending operation of the user on the first interface.
[0028] For example, if the first interface is a chat interface between the user and Xiaohong, when a new message sent by Xiaohong is received, the electronic device will automatically consider that a content change event of the chat interface has occurred.
[0029] For example, when the user edits text on the chat interface and then performs a sending operation, the electronic device will automatically consider that a content change event of the chat interface has occurred.
[0030] For example, the first interface is a reading interface. When the user performs a sliding operation on the first interface, it causes a change in the page content of the first interface. The electronic device responds to the user's sliding operation and triggers a content change event for the reading interface.
[0031] In combination with the first aspect, in some implementation manners of the first aspect, obtaining the application category corresponding to the first link of the target content block in the first interface in response to the first event occurring in the first interface includes:
[0032] In response to the first event occurring in the first interface, refresh the first interface;
[0033] Obtain the new target content blocks that contain links in the refreshed first interface;
[0034] Obtain the application category corresponding to the first link in the target content block. In the embodiments of the present application, the content change event of the first interface can trigger the refresh of the first interface, obtain the new target content blocks that contain links in the refreshed first interface, and obtain the application category corresponding to the first link in the target content block.
[0035] In combination with the first aspect, in some implementation manners of the first aspect, before displaying the summary information, it further includes:
[0036] According to the first position information of the target content block, display a first viewing prompt corresponding to the first link;
[0037] In response to the user's operation on the first viewing prompt, perform the display of the summary information. In the embodiments of the present application, the first viewing prompt of the first link is displayed first, and after the user operates on the first viewing prompt, the summary information of the first link is displayed. Therefore, the user can determine whether the first link supports quick viewing based on whether the electronic device displays the first viewing prompt of the first link, and the summary information of the first link is displayed only when the user needs to quickly view the content of the first link.
[0038] In combination with the first aspect, in some implementation manners of the first aspect, before displaying the summary information, it further includes:
[0039] In response to the user's operation on the first viewing prompt within a preset time, perform the display of the summary information; or
[0040] In response to the user not operating on the first viewing prompt within the preset time, stop displaying the first viewing prompt. In the embodiments of the present application, the first viewing prompt of the first link is displayed first. The summary information of the first link is displayed only when the user operates on the first viewing prompt within the preset time; if the user does not operate on the first viewing prompt within the preset time, the display of the first viewing prompt is stopped.
[0041] In combination with the first aspect, in some implementations of the first aspect, the displaying of the summary information includes:
[0042] Overlaying and displaying a non-full-screen second interface on the first interface, where the second interface includes the summary information. In the embodiments of the present application, the content of the first link is displayed by overlaying and displaying a non-full-screen second interface on the first interface.
[0043] In combination with the first aspect, in some implementations of the first aspect, the displaying of the security warning of the first link includes:
[0044] Overlaying and displaying a non-full-screen third interface on the first interface, where the third interface includes the security warning of the first link. In the embodiments of the present application, the security warning of the first link is displayed by overlaying and displaying a non-full-screen third interface on the first interface.
[0045] In combination with the first aspect, in some implementations of the first aspect, the first interface includes a chat interface or a reading interface.
[0046] In combination with the first aspect, in some implementations of the first aspect, the first link includes one or more of a password, a Uniform Resource Locator (URL) link, a link presented in the form of a picture, a QR code, and a text link.
[0047] In combination with the first aspect, in some implementations of the first aspect, the obtaining of the second information according to the first link includes:
[0048] Creating a first virtual screen;
[0049] In the first virtual screen, opening the first link through the second application;
[0050] Obtaining the second information from the page obtained after opening the first link. In the embodiments of the present application, by creating a first virtual screen in the background, the summary information of the specific content displayed after opening the first link can be quickly obtained, and the content summary of the first link can be quickly seen in the current application interface without caring about which application can be used to open it, nor having to search for the location of the application, thus improving convenience.
[0051] In combination with the first aspect, in some implementations of the first aspect, the application categories include: social, short video, shopping, travel, video, music, radio, community, news, convenient life, or browser.
[0052] In combination with the first aspect, in some implementations of the first aspect, the application category is social, and the function categories include a chat window page, a personal business card, or a mini-program page; or
[0053] the application category is short video, and the function categories include a short video playback page or a product details page; or
[0054] the application category is shopping, and the function categories include a product details page or a store details page; or
[0055] the application category is travel, and the function categories include a location details page or a route details page; or
[0056] the application category is video, and the function category includes a video playback page; or
[0057] the application category is music, and the function categories include a music playback page or an album details page; or
[0058] the application category is radio, and the function category includes a radio playback page; or
[0059] the application category is community, and the function categories include a post details page, a personal homepage, or a product details page; or
[0060] the application category is news, and the function categories include a news details page or a video playback page; or
[0061] the application category is convenient life, and the function categories include a store details page or a group purchase details page; or
[0062] the application category is browser, and the function category includes an actual content page.
[0063] In combination with the first aspect, in some implementations of the first aspect, the first application and the second application are different. In the embodiments of the present application, the content of the first link is directly displayed on the first interface of the first application, so that the content of the first link can be quickly viewed on the current application interface without switching to the second application to view the link content and then returning to the original application. The entire process of the electronic device displaying the content of the first link is convenient to operate, and the user waiting time is short.
[0064] In a second aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory. Among them, the memory is used to store a computer program, and the computer program includes program instructions. When the processor runs the program instructions, the electronic device is caused to execute the steps of the method as described above.
[0065] Thirdly, an embodiment of the present invention provides a computer-readable storage medium storing a computer program including program instructions, which cause the computer to execute the method as described above when the program is run by the computer.
[0066] Fourthly, an embodiment of the present invention provides a computer program product containing instructions, which cause the computer to execute the functions / steps in the above method when the computer program product is run on a computer or any at least one processor.
[0067] In the technical solutions of the content display method and the electronic device provided by the embodiments of the present invention, the method includes: displaying a first interface of a first application; in response to a first event occurring in the first interface, obtaining an application category corresponding to a first link of a target content block in the first interface, where the application category is a category of a second application for opening the first link; obtaining third information according to the first link and the application category, where the third information includes summary information representing specific content to be displayed after the first link is opened; and displaying the summary information. The entire process of the electronic device displaying the content of the link is convenient to operate and the user waiting time is short. Description of the Drawings
[0068] Figure 1a Schematic diagram of receiving a password in a chat scenario;
[0069] Figure 1b Schematic diagram of receiving a picture and a QR code in a chat scenario;
[0070] Figure 1c Schematic diagram of receiving a URL link in a chat scenario;
[0071] Figure 2a Schematic diagram of a link presented in a picture form in a reading article scenario;
[0072] Figure 2b Schematic diagram of a QR code in a reading article scenario;
[0073] Figure 2c Schematic diagram of a text hyperlink in a reading article scenario;
[0074] Figure 3 Schematic diagram of a chat scenario for displaying the content of a link;
[0075] Figure 4 Another schematic diagram of a chat scenario for displaying the content of a link;
[0076] Figure 5 Flowchart of a content display method provided by an embodiment of the present invention;
[0077] Figure 6a A schematic diagram showing the content of the password in the chat page in an embodiment of the present invention; the content of the password;
[0078] Figure 6b A schematic diagram showing the content of the QR code and the picture in the chat page in an embodiment of the present invention;
[0079] Figure 7a A schematic diagram showing the content of the password in the chat page in an embodiment of the present invention; the content of the password;
[0080] Figure 7b A schematic diagram showing the enlarged playback of the video small window in 7a;
[0081] Figure 7c For the electronic device to jump from Figure 7a or Figure 7b After jumping to the application, directly display a schematic diagram of the content of the password;
[0082] Figure 8a A schematic diagram showing the content of the text link in the reading article page in an embodiment of the present invention;
[0083] Figure 8b A schematic diagram showing the content of the link presented in the form of a picture in the reading article page in an embodiment of the present invention;
[0084] Figure 8c A schematic diagram showing the content of the QR code in the reading article page in an embodiment of the present invention;
[0085] Figure 9a A schematic diagram showing the content of the URL link in the chat page in an embodiment of the present invention;
[0086] Figure 9b A schematic diagram showing the insecure prompt of the URL link in the chat page in an embodiment of the present invention;
[0087] Figure 10 A flowchart of another content display method provided by the embodiment of the present invention;
[0088] Figure 11a A schematic diagram showing the content of the password in the chat page in an embodiment of the present invention; the content of the password;
[0089] Figure 11b A schematic diagram showing the content of the QR code and the picture in the chat page in an embodiment of the present invention;
[0090] Figure 12aAnother schematic diagram of the content of the text link displayed on the article reading page in the embodiment of the present invention;
[0091] Figure 12b Another schematic diagram of the content of the link presented in the form of a picture displayed on the article reading page in the embodiment of the present invention;
[0092] Figure 12c Another schematic diagram of the content of the QR code displayed on the article reading page in the embodiment of the present invention;
[0093] Figure 13a Another schematic diagram of the content of the URL link displayed on the chat page in the embodiment of the present invention;
[0094] Figure 13b Another schematic diagram of the insecure prompt of the URL link displayed on the chat page in the embodiment of the present invention;
[0095] Figure 14 Another flowchart of the content display method provided by the embodiment of the present invention;
[0096] Figure 15 For Figure 14 The flowchart of obtaining the third information according to the first link and the application category, where the third information includes the summary information representing the specific content displayed after the first link is opened;
[0097] Figure 16 A schematic diagram of the structure of an electronic device provided by the embodiment of the present invention. Detailed implementation manners
[0098] For a better understanding of the technical solution of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0099] It should be clear that the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts belong to the scope of protection of the present invention.
[0100] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms of "a", "the" and "said" used in the embodiments of the present invention and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise.
[0101] It should be understood that the term "and / or" used in this text is merely a description of the associated relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. Additionally, in this text, the character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0102] The present invention mainly solves the problems that the process of displaying the content of a link is cumbersome, inefficient, and the user waiting time is relatively long in the following two scenarios.
[0103] Scenario 1: Receiving a link (such as a password, URL link, link presented in the form of a picture, QR code, etc.) in a chat scenario. For example, Figure 1a is a schematic diagram of receiving a password in a chat scenario, Figure 1b is a schematic diagram of receiving a picture and a QR code in a chat scenario, Figure 1c is a schematic diagram of receiving a URL link in a chat scenario.
[0104] If the content of the link needs to be displayed, the process includes: (1) The electronic device responds to the user's operation and copies the text of the link; (2) The user thinks about the application that can display the specific content of the link; (3) The electronic device responds to the user's operation and exits the current chat application; (4) The electronic device opens the application that can display the specific content of the link and directly displays the content of the link through this application, or displays the content of the link through this application after responding to the user's operation of pasting the link; (5) After the user views the content of the link, the electronic device responds to the user's operation and returns to the interface of the chat application, and the user continues chatting. Therefore, there are problems that the process of displaying the content of the link is cumbersome, inefficient, and the user waiting time is relatively long.
[0105] Scenario 2: In the scenario of reading an article, links (such as links presented in the form of pictures, QR codes, text hyperlinks, etc.) interspersed in front of the article, behind the text, or in the middle of the article. For example, Figure 2a is a schematic diagram of a link presented in the form of a picture in the scenario of reading an article, Figure 2b is a schematic diagram of a QR code in the scenario of reading an article, Figure 2c is a schematic diagram of a text hyperlink in the scenario of reading an article.
[0106] If it is necessary to display the content of a link, the process includes: (1) the user clicks on the link in the article; (2) the electronic device jumps to another application or another page of this application, and at least 1 - 3 levels of pages are required to display the content of the link after the jump. These pages include: pop-up advertisement pages, permission pop-ups for allowing jumps, other application drainage pages, etc.; (3) after the user finishes viewing the content of the link, they need to click the back button 1 - 3 times to return to the page where the article is being read and continue the following reading. Therefore, the process of displaying the content of the link is cumbersome, inefficient, and the user's waiting time is relatively long.
[0107] For the above Scenario 1, only in the chat scenario, after the electronic device copies the text of the link, it can monitor the copied content in the clipboard. After identifying the password from the copied content, it displays the icon of the recommended application on the current page; the user clicks on the icon to jump to the application to view the actual detailed content. However, the user still needs to assist in obtaining the text of the link, and it is necessary to jump to the interface of other applications to display the content of the link. The content of the link cannot be directly displayed. The entire process is relatively long, requires multiple operations by the user, is cumbersome, and the user's waiting time is relatively long.
[0108] For example, Figure 3 is a schematic diagram for displaying the content of a link in the chat scenario, as Figure 3 (a) shows that the mobile phone receives the password in the chat page. Subsequently, the mobile phone responds to the user's copy operation and copies the password. As Figure 3 (b) shows, the mobile phone displays "Copied" in the chat page after copying the password. As Figure 3 (c) shows that after the mobile phone copies the password, it identifies that the application corresponding to the password is a shopping application, and displays the icon of the shopping application in the chat page. In response to the user's click operation on the icon of the shopping application, it jumps to the shopping application, and a window as shown in Figure 3 (d) is popped up on the interface of the shopping application; in response to the user's click on the "View Details" button in the popped-up window, as Figure 3 (e) shows, the product details page corresponding to the password is displayed on the interface of the shopping application.
[0109] For example, Figure 4 is another schematic diagram for displaying the content of a link in the chat scenario, as Figure 4 (a) shows that the mobile phone receives the password in the chat page. Subsequently, the mobile phone responds to the user's operation and copies the password. As Figure 4 (b) shows, the mobile phone displays "Copied" in the chat page after copying the password. As Figure 4 (c) shows that after the mobile phone copies the password, it identifies that the application corresponding to the password is a short video application, and displays the icon of the short video application in the chat page. In response to the user's click operation on the icon of the short video application, it jumps to the short video application, and a window as shown in Figure 4the window shown in (d); in response to the user clicking the button to view details in the pop-up window, as Figure 4 shown in (e), display the short video details page corresponding to the password in the interface of the short video application.
[0110] Based on the above technical problems, embodiments of the present invention provide a content display method and an electronic device. For chat scenarios and reading scenarios, an interaction method for automatically triggering the viewing of the content of a link is proposed in response to a first event occurring in the interface where the link is located. The entire process of the electronic device displaying the content of the link is convenient to operate, and the user waiting time is short.
[0111] Figure 5 It is a flowchart of a content display method provided by an embodiment of the present invention. As Figure 5 shown, the method includes:
[0112] Step 102, display the first interface of the first application.
[0113] Exemplarily, the first interface includes a chat interface or a reading article interface.
[0114] Step 104, in response to a first user operation event occurring in the first interface, obtain the second position information corresponding to the first user operation event, the content information of the content block of the first interface, and the first position information.
[0115] Exemplarily, the first interface includes a first link.
[0116] Exemplarily, the first user operation event includes a long press operation of the user on the first link or a click operation of the user on the menu option of the first link. The first user operation event does not cause a content change event of the first interface. In the embodiments of the present application, the content change event of the first interface refers to an event in which the content to be displayed on the first interface changes, and the content change event of the first interface can trigger the refresh of the first interface.
[0117] Exemplarily, the first link includes one or more of a password, a URL link, a link presented in the form of a picture, a QR code, and a text link.
[0118] Exemplarily, the first interface includes at least one content block.
[0119] Exemplarily, the content information includes the text and / or picture displayed on the content block.
[0120] Exemplarily, the first position information includes the position information of the content block on the screen of the electronic device.
[0121] In this step, the electronic device monitors the first user operation event in the system in response to the first user operation event that occurs on the first interface, and obtains the screen coordinates of the first user operation event, that is, the second position information; and calls the page parsing ability, and obtains the content information and the first position information of the content block in the first interface through capabilities such as auxiliary services and optical character recognition (OCR).
[0122] Step 106: Determine the first position information that matches the second position information according to the second position information and at least one first position information, and determine the first content block according to the first position information that matches the second position information.
[0123] In this step, the content block corresponding to the first position information that matches the second position information is the first content block. Therefore, in this step, it can be determined which content block in the first interface the first link corresponding to the first user operation event is located in according to the position information, that is, the first content block.
[0124] Step 108: Determine that the first content block is the target content block according to the content information of the first content block including a link, and the target content block includes the domain name of the first link.
[0125] In this step, by identifying the content information of the first content block, if a link is identified, the first content block is the target content block; if no link is identified, the first content block is not the target content block.
[0126] Exemplarily, the target content block is a content block including the link content of the first link and its associated information. The target content block includes the domain name of the first link.
[0127] Step 110: Determine whether the whitelist includes the domain name of the first link. If so, execute step 112; if not, execute step 122.
[0128] In this step, a security check is performed by determining whether the whitelist includes the domain name of the first link. If the whitelist includes the domain name of the first link, the security check is passed; if the whitelist does not include the domain name of the first link, the security check is not passed.
[0129] Step 112: Determine the application category according to the content information of the target content block.
[0130] In this step, in the case of passing the security check, according to the content information of the target content block, determine the second application for opening the first link, and determine the application category according to the second application. The application category is used to represent the category of the second application for opening the first link.
[0131] For example, the target content block includes: source application, set of original content page nodes (nodes include: node text, description, screen position, node class), accessible links (such as URL links, passwords), application category, etc.
[0132] Exemplarily, the application category includes social, short video, shopping, travel, video, music, radio, community, news, convenient life, or browser, etc.
[0133] For example, social applications include and etc.
[0134] For example, short video applications include etc.
[0135] For example, shopping applications include etc.
[0136] For example, travel applications include etc.
[0137] For example, video applications include etc.
[0138] For example, music applications include etc.
[0139] For example, radio applications include etc.
[0140] For example, community applications include etc.
[0141] For example, news applications include etc.
[0142] For example, convenient life applications include etc.
[0143] For example, browser applications include browsers, etc.
[0144] Exemplarily, the first application and the second application are the same or different.
[0145] Step 114: Obtain second information according to the first link, and the second information includes the specific content displayed after the first link is opened.
[0146] In some possible embodiments, step 114 specifically includes: creating a first virtual screen; in the first virtual screen, opening the first link through the second application; and obtaining the second information from the page obtained after the first link is opened.
[0147] Among them, if the second application is not installed on the electronic device, the first link can also be opened through other applications corresponding to the application category.
[0148] Optionally, the electronic device can also create a second virtual screen; in the second virtual screen, open a second link related to the first link through an application corresponding to the application category; obtain fourth information from the page obtained after opening the second link. For example, the first link is a link to the details page of product A in the first shopping application, the second link is a link to the details page of product B similar to product A in the second shopping application, and the fourth information is the price of product B. Among them, the first shopping application and the second shopping application are the same or different. Thus, the embodiments of the present application can display the price comparison information of the product while quickly displaying the content of the first link.
[0149] Step 116, obtain third information according to the second information and the application category, where the third information includes summary information representing the specific content displayed after the first link is opened.
[0150] In this step, the electronic device inputs the second information and the application category into the large model and outputs the third information. The large model is a pre-trained model that can output the third information according to the second information and the application category.
[0151] Exemplarily, the application category includes at least one functional category, and the functional category is a sub-category of the application category.
[0152] For example, the application category is social, and the functional categories of social include chat window page, personal business card, or mini-program page, etc.
[0153] For example, the application category is short video, and the functional categories of short video include short video playing page or product details page, etc.
[0154] For example, the application category is shopping, and the functional categories of shopping include product details page or store details page, etc.
[0155] For example, the application category is travel, and the functional categories of travel include location details page or route details page, etc.
[0156] For example, the application category is video, and the functional category of video includes video playing page, etc.
[0157] For example, the application category is music, and the functional categories of music include music playing page or album details page, etc.
[0158] For example, the application category is radio, and the functional category of radio includes radio playing page, etc.
[0159] For example, the application category is community, and the functional categories of community include post details page, personal homepage, or product details page, etc.
[0160] For example, the application category is news, and the function categories of news include news detail pages, video play pages, etc.
[0161] For example, the application category is convenient life, and the function categories of convenient life include store detail pages, group buying detail pages, etc.
[0162] For example, the application category is browser, and the function categories of browser include actual content pages (text, video), etc.
[0163] Optionally, when the application category of the first link includes one function category, determining the application category also determines the function category. There is no need to further determine the function category of the first link. Directly input the second information and the application category into the large model to output the third information.
[0164] Optionally, when the application category includes multiple function categories, before step 116, it further includes: obtaining the function category according to the second information. Step 116 specifically includes: obtaining the third information according to the second information, the application category, and the function category. In this step, the electronic device inputs the second information, the application category, and the function category into the large model to output the third information. The large model is a pre-trained model that can output the third information according to the second information, the application category, and the function category. Optionally, the third information further includes keywords and / or tags representing the specific content displayed after the first link is opened.
[0165] Step 118: Display the summary information. The process ends.
[0166] Among them, step 118 can be executed by the first application of the electronic device, or by the system service or system application of the operating system of the electronic device.
[0167] In some possible embodiments, step 118 is executed by the first application of the electronic device. Step 118 specifically includes: displaying the summary information within the first interface.
[0168] In some possible embodiments, step 118 is executed by the first application, system service, or system application of the electronic device. Step 118 specifically includes: superimposing and displaying a non-full-screen second interface on the first interface, and the second interface includes the summary information.
[0169] Exemplarily, the second interface includes a semi-modal page (also called a "semi-modal window") or a floating window, etc.
[0170] In some possible embodiments, the application category of the first link includes one function category, and step 118 specifically includes: displaying the summary information according to the application category.
[0171] In some possible embodiments, the application category of the first link includes multiple function categories, and step 118 specifically includes: displaying summary information according to the application category and the function category.
[0172] In the embodiment of the present application, when displaying the content of the first link, the application category and the function category are mainly used for typesetting to present a display format that better meets the user's demands.
[0173] Optionally, the electronic device may display functional controls while displaying the summary information, for example, controls with functions such as jumping to an application and / or quickly watching a video.
[0174] Optionally, the electronic device may display keywords and / or tags in the third information indicating specific content displayed after the first link is opened, while displaying the summary information.
[0175] For example, Figure 6a In the embodiment of the present invention, the chat page is displayed A schematic diagram of the contents of the password, such as Figure 6a As shown, the chat page receives Password, user long press After the password is given, a semi-modal window will be displayed at the bottom of the chat page. The content of the command. Specifically, the display content of the semi-modal window includes: source, product summary (name, price, price trend, material, good review rate / bad review rate, monthly sales), close window button, slidable product image collection, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing; the user can slide the image in the product image collection to display the next image.
[0176] For example, Figure 6b FIG. 1 is a schematic diagram of displaying the contents of a QR code and a picture in a chat page in an embodiment of the present invention. Figure 6b As shown, a QR code and a picture are received in the chat page. After the user long presses the QR code and the picture, a semi-modal window is displayed at the bottom of the chat page, and the semi-modal window displays the content of the QR code and the picture. Specifically, the display content of the semi-modal window includes: source, content summary, label, close window button, slidable picture collection, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing; the user can slide the picture in the picture collection to display the next picture.
[0177] For example, Figure 7a In the embodiment of the present invention, the chat page is displayed A schematic diagram of the contents of the password,Figure 7b Schematic diagram of magnified playback of the video small window in 7a Figure 7c For the electronic device to Figure 7a or Figure 7b After jumping to the application, directly display Schematic diagram of the content of the password. As Figure 7a shown, the password is received in the chat page and when the user long-presses the password, a semi-modal window is displayed below the chat page, and the content of the Douyin password is displayed in this semi-modal window. Specifically, the display content of the semi-modal window includes: source, video abstract, video small window, close window button, "click to jump" button, etc. As Figure 7a shown, the video small window can directly play the short video A corresponding to the password; as Figure 7b shown, the video small window can also occupy the right area and magnify to play the video after the user clicks. As Figure 7a and Figure 7b shown, the user can click the close window button to close this semi-modal window. As Figure 7a shown, the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing. As Figure 7b shown, the user can click on the magnified video small window to directly jump to the corresponding application to continue viewing. As Figure 7c shown, because it is the password, so after the electronic device jumps from Figure 7a or Figure 7b to the application, through the APP, the display interface of the short video A corresponding to the password is directly displayed. From Figure 7a or Figures 7b to 7c during the process, it is not necessary to go through at least 1 - 3 levels of pages, and after the user finishes viewing the Figure 7c interface shown, it is not necessary to click the back button 1 - 3 times to return to the chat page to continue the following chat. Therefore, the process of displaying the content of the link in this application is simple in operation, has high efficiency, and the user waiting time is short.
[0178] For example, Figure 8a This is a schematic diagram of displaying the content of a text link in the article reading page in an embodiment of the present invention. As Figure 8a shown, the article reading page contains a text link. When the user long-presses the text link, a semi-modal window is displayed below the article reading page, and the content of the text link is displayed in this semi-modal window. Specifically, the display content of the semi-modal window includes: article abstract, keywords / tags, close window button, "click to jump" button, etc. The user can click the close window button to close this semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing.
[0179] For example, Figure 8b This is a schematic diagram showing the content of a link presented in the form of a picture on the reading article page in an embodiment of the present invention. As Figure 8b shown, the reading article page contains a link presented in the form of a picture. After the user long-presses the link presented in the form of a picture, a semi-modal window is displayed below the reading article page, and the content of the advertisement is displayed in the semi-modal window. Specifically, the displayed content of the semi-modal window includes: product source, name, price, monthly sales volume, activity information, positive review rate, close window button, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing.
[0180] For example, Figure 8c This is a schematic diagram showing the content of a QR code displayed on the reading article page in an embodiment of the present invention. As Figure 8c shown, the reading article page contains a QR code. After the user long-presses the QR code, a semi-modal window is displayed below the reading article page, and the content of the QR code is displayed in the semi-modal window. Specifically, the displayed content of the semi-modal window includes: source, travel note summary, keywords / tags, close window button, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing.
[0181] For example, Figure 9a This is a schematic diagram showing the content of a URL link displayed on the chat page in an embodiment of the present invention. As Figure 9a shown, a URL link is received on the chat page. After the user long-presses the URL link, a semi-modal window is displayed below the chat page, and the content of the URL link is displayed in the semi-modal window. Specifically, the displayed content of the semi-modal window includes: source, content summary, keywords / tags, close window button, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing.
[0182] Step 120: Display an insecurity prompt for the first link. The process ends.
[0183] In this step, when the security check fails, an insecurity prompt for the first link is displayed. Step 120 can be executed by the first application of the electronic device or by the system service or system application of the operating system of the electronic device.
[0184] In some possible embodiments, step 120 is executed by a first application of the electronic device. Step 120 specifically includes: displaying an insecure prompt for the first link within the first interface.
[0185] In some possible embodiments, step 120 is executed by a first application, a system service, or a system application of the electronic device. Step 120 specifically includes: superimposing and displaying a third interface that is not full-screen on the first interface, and the third interface includes an insecure prompt for the first link.
[0186] Exemplarily, the third interface includes a semi-modal page, a floating window, or the like.
[0187] For example, Figure 9b is a schematic diagram of displaying an insecure prompt for a URL link in a chat page in an embodiment of the present invention. As Figure 9b shown, when a URL link is received in the chat page and the user long-presses the URL link, a semi-modal window is displayed below the chat page. Since the domain name of the URL link is not in the whitelist and fails the security check, the display content of the semi-modal window includes: an insecure prompt. For example, the insecure prompt is a warning message. As Figure 9b shown, the warning message is "Warning!!! This is an insecure link, suspected of stealing personal information, fraud, etc. Please do not click."
[0188] In the technical solution of the content display method provided by the embodiment of the present invention, the electronic device quickly obtains the content information and position information of the content block where the link is located in response to a first user operation event occurring on the first interface, without operations such as copying; by creating a virtual screen in the background, quickly obtains the summary information of the specific content displayed after the link is opened and displays the summary information, so that the user can quickly view the content summary of the link, without caring about which application to use to open it, nor looking for the location of the application, improving convenience; according to the application category and function category of the link, displays different forms of content to meet personalized requirements; performs a security check on the domain name of the link, and only continues to determine information such as the application category of the link when it is safe, improving the security of accessing the link. In an insecure situation, an insecure prompt for the first link is displayed to prevent the user from performing an open operation on the link, improving the security of accessing the link. When the first application and the second application are different, there is no need to switch applications to view the content and then return to the original application. The entire process of the electronic device displaying the content of the link is convenient to operate, and the user waiting time is short.
[0189] Figure 10 is a flowchart of another content display method provided by an embodiment of the present invention. As Figure 10 shown, the method includes:
[0190] Step 202: Display a first interface of a first application.
[0191] Exemplarily, the first interface includes a chat interface or a reading article interface.
[0192] Step 204: In response to a content change event occurring on the first interface, refresh the first interface and obtain the content information and the first position information of the newly added content block in the refreshed first interface.
[0193] Exemplarily, the newly added content block in the refreshed first interface includes a first link.
[0194] In the embodiments of the present application, the content change event of the first interface refers to an event in which the content to be displayed on the first interface changes, and the content change event of the first interface can trigger the refresh of the first interface.
[0195] Exemplarily, the content change event may be triggered automatically by the system or by a user operation. In the embodiments of the present application, the operation of the content change event triggered by a user operation is referred to as a second user operation event. For example, the second user operation event is a sliding operation (such as a swiping up operation or a swiping down operation) or a sending operation of the user on the first interface.
[0196] For example, when the first interface is a chat interface between the user and Xiaohong, when a new message sent by Xiaohong is received, the electronic device will automatically consider that a content change event of the chat interface has occurred.
[0197] For example, when the user edits text on the chat interface and then performs a sending operation, the electronic device will automatically consider that a content change event of the chat interface has occurred.
[0198] For example, when the first interface is a reading interface, when the user performs a sliding operation on the first interface, which causes a change in the page content of the first interface, the electronic device responds to the sliding operation of the user occurring on the first interface and triggers a content change event of the reading interface.
[0199] Exemplarily, the first link includes one or more of a password, a URL link, a link presented in the form of a picture, a QR code, and a text link.
[0200] Exemplarily, the content information includes the text and / or picture displayed on the content block.
[0201] Exemplarily, the first position information includes the position information of the content block on the screen of the electronic device.
[0202] In this step, the electronic device responds to the content change event occurring on the first interface, monitors the content change event of the first interface in the system, calls the page parsing ability, and through capabilities such as auxiliary services and OCR, obtains the content information and the first position information of the newly added content block in the refreshed first interface.
[0203] Step 206: Determine, based on the content information, that the content block containing the link in the content information is the target content block, and the target content block contains the domain name of the first link.
[0204] In this step, by identifying the content information of the content block, if a link is identified, the content block is the target content block; if no link is identified, the content block is not the target content block.
[0205] Exemplarily, the target content block is the content block containing the link content of the first link. The target content block contains the domain name of the first link.
[0206] Step 208: Determine whether the whitelist includes the domain name of the first link. If so, execute Step 210; if not, execute Step 222.
[0207] In this step, security inspection is performed by determining whether the whitelist includes the domain name of the first link. If the whitelist includes the domain name of the first link, the security inspection is passed; if the whitelist does not include the domain name of the first link, the security inspection fails.
[0208] Step 210: Determine the application category based on the content information of the target content block.
[0209] In this step, in the case of passing the security inspection, based on the content information of the target content block, determine the second application for opening the first link, and determine the application category according to the second application. The application category is used to represent the category of the second application for opening the first link.
[0210] For example, the target content block includes: source application, set of original content page nodes (nodes include: node text, description, screen position, node class), accessible links (such as URL links, passwords), application category, etc.
[0211] Exemplarily, the application category includes social, short video, shopping, travel, video, music, radio, community, news, convenient life, or browser, etc.
[0212] Step 212: Obtain second information according to the first link, and the second information includes the specific content displayed after the first link is opened.
[0213] In some possible embodiments, Step 212 specifically includes: creating a first virtual screen; in the first virtual screen, opening the first link through the second application; obtaining the second information from the page obtained after the first link is opened.
[0214] Among them, if the second application is not installed on the electronic device, the first link can also be opened through other applications corresponding to the application category of the second application.
[0215] Optionally, the electronic device can also create a second virtual screen; in the second virtual screen, open a second link related to the first link through an application corresponding to the application category; obtain fourth information from the page obtained after opening the second link. For example, the first link is the link to the detail page of product A in the first shopping application, the second link is the link to the detail page of product B similar to product A in the second shopping application, and the fourth information is the price of product B. Among them, the first shopping application and the second shopping application can be the same or different. Thus, the embodiments of the present application can display the price comparison information of the product while quickly displaying the content of the first link.
[0216] Step 214, obtain third information according to the second information and the application category, and the third information includes summary information indicating the specific content displayed after the first link is opened.
[0217] In this step, the electronic device inputs the second information and the application category into the large model, and outputs the third information. The large model is a pre-trained model that can output the third information according to the second information and the application category.
[0218] Exemplarily, the application category includes at least one functional category, and the functional category is a sub-category of the application category.
[0219] For example, the application category is social, and the functional categories of social include chat window page, personal business card, or mini-program page, etc.
[0220] For example, the application category is short video, and the functional categories of short video include short video playback page or product detail page, etc.
[0221] For example, the application category is shopping, and the functional categories of shopping include product detail page or store detail page, etc.
[0222] For example, the application category is travel, and the functional categories of travel include location detail page or route detail page, etc.
[0223] For example, the application category is video, and the functional category of video includes video playback page, etc.
[0224] For example, the application category is music, and the functional categories of music include music playback page or album detail page, etc.
[0225] For example, the application category is radio, and the functional category of radio includes radio playback page, etc.
[0226] For example, the application category is community, and the functional categories of community include post detail page, personal homepage, or product detail page, etc.
[0227] For example, the application category is news, and the functional categories of news include news detail page or video playback page, etc.
[0228] For example, the application category is the convenient life category, and the function categories of the convenient life category include the store detail page, the group purchase detail page, etc.
[0229] For example, the application category is the browser category, and the function categories of the browser category include the actual content page (text, video), etc.
[0230] Optionally, when the application category of the first link includes one function category, determining the application category also determines the function category. There is no need to further determine the function category of the first link. Instead, directly input the second information and the application category into the large model to output the third information.
[0231] Optionally, when the application category includes multiple function categories, before step 116, it further includes: obtaining the function category according to the second information. Step 116 specifically includes: obtaining the third information according to the second information, the application category, and the function category. In this step, the electronic device inputs the second information, the application category, and the function category into the large model to output the third information. The large model is a pre-trained model that can output the third information according to the second information, the application category, and the function category.
[0232] Optionally, the third information further includes keywords and / or tags representing the specific content displayed after the first link is opened.
[0233] Step 216: According to the first position information of the target content block, display a first viewing prompt corresponding to the first link in the first interface.
[0234] In this step, the first position information of the target content block is used as a reference for the electronic device to display the first viewing prompt. The first viewing prompt can be displayed at the screen position corresponding to the first position information or near the screen position corresponding to the first position information.
[0235] Step 218: In response to the user's operation on the first viewing prompt, display the summary information.
[0236] In the embodiment of the present application, the first viewing prompt of the first link is first displayed, and then the content of the first link is displayed after the user operates on the first viewing prompt. Therefore, the user can determine whether the first link supports quick viewing according to whether the electronic device displays the first viewing prompt of the first link, and the content of the first link is only displayed when the user needs to quickly view the content of the first link.
[0237] In some possible embodiments, the electronic device displays the content of the first link in response to the user's operation on the first viewing prompt within a preset time. The electronic device stops displaying the first viewing prompt corresponding to the first link in response to the user not operating on the first viewing prompt within the preset time. In the embodiments of the present application, the first viewing prompt of the first link is first displayed, and the content of the first link will only be displayed when the user operates on the first viewing prompt within the preset time; if the user does not operate on the first viewing prompt within the preset time, the first viewing prompt will stop being displayed.
[0238] Among them, step 218 can be executed by the first application of the electronic device, or by the system service or system application of the operating system of the electronic device.
[0239] In some possible embodiments, step 218 is executed by the first application of the electronic device. Step 218 specifically includes: displaying summary information within the first interface in response to the user's operation on the first viewing prompt.
[0240] In some possible embodiments, step 218 is executed by the first application, system service or system application of the electronic device. Step 118 specifically includes: superimposing and displaying a non-full-screen second interface on the first interface in response to the user's operation on the first viewing prompt, and the second interface includes summary information.
[0241] Exemplarily, the second interface includes a semi-modal page (also referred to as a "semi-modal window") or a floating window, etc. In some possible embodiments, the application category of the first link includes one functional category, and step 218 specifically includes: displaying summary information according to the application category in response to the user's operation on the first viewing prompt.
[0242] In some possible embodiments, the application category of the first link includes multiple functional categories, and step 218 specifically includes: displaying summary information according to the application category and the functional category in response to the user's operation on the first viewing prompt.
[0243] In the embodiments of the present application, when displaying the summary information, the application category and the functional category are mainly used for typesetting to present a display form that better meets the user's demands.
[0244] Optionally, when the electronic device displays the summary information, it can also display function controls, etc. For example, controls with functions such as jumping to an application and / or quickly watching a video.
[0245] Optionally, when the electronic device displays the summary information, it can also display keywords and / or labels in the third information indicating the specific content displayed after the first link is opened.
[0246] For example, Figure 11a displayed in the chat page in the embodiments of the present invention Another schematic diagram of the content of the password, as Figure 11a shown, when receiving the password in the chat page, the mobile phone recognizes that the chat page is refreshed, and a corresponding first viewing prompt, such as a quick view button, is displayed on the right side of the password. After the user clicks the quick view button, a semi-modal window is displayed below the chat page, and the semi-modal window displays the content of the password. Specifically, the display content of the semi-modal window includes: source, product summary (name, price, price trend, material, positive / negative review rate, monthly sales), close window button, scrollable product image set, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing; the user can slide the images in the product image set to display the next image.
[0247] For example, Figure 11b This is another schematic diagram of the content of displaying a QR code and pictures in the chat page in the embodiment of the present invention, as Figure 11b shown, when receiving the QR code and pictures in the chat page, the mobile phone recognizes that the chat page is refreshed, and a corresponding first viewing prompt, such as a quick view button, is displayed on the right side of the QR code and pictures. After the user clicks the quick view button, a semi-modal window is displayed below the chat page, and the semi-modal window displays the content of the QR code and pictures. Specifically, the display content of the semi-modal window includes: source, content summary, label, close window button, scrollable picture set, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing; the user can slide the pictures in the picture set to display the next picture.
[0248] For example, Figure 12a This is another schematic diagram of the content of displaying a text link in the reading article page in the embodiment of the present invention, as Figure 12a shown, when the user reads the article and scrolls the page up and down, the mobile phone recognizes that the page is refreshed, and the refreshed reading article page contains a text link, and a corresponding first viewing prompt, such as a quick view button, is displayed on the right side of the text link. After the user clicks the quick view button, a semi-modal window is displayed below the reading article page, and the semi-modal window displays the content of the text link. Specifically, the display content of the semi-modal window includes: article summary, keywords / labels, close window button, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing.
[0249] For example, Figure 12bThis is another schematic diagram showing the content of a link presented in the form of a picture on the reading article page in the embodiment of the present invention. As Figure 12b shown, when the user reads an article and slides the page up and down, the mobile phone recognizes that the page is refreshed. The refreshed reading article page contains a link presented in the form of a picture, and a corresponding first viewing prompt, such as a quick view button, is displayed on the link presented in the form of a picture. After the user clicks the quick view button, a semi-modal window is displayed below the reading article page, and the content of the advertisement is displayed in the semi-modal window. Specifically, the display content of the semi-modal window includes: source of the product, name, price, monthly sales volume, activity information, favorable comment rate, close window button, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing.
[0250] For example, Figure 12c This is another schematic diagram showing the content of a QR code displayed on the reading article page in the embodiment of the present invention. As Figure 12c shown, when the user reads an article and slides the page up and down, the mobile phone recognizes that the page is refreshed. The refreshed reading article page contains a QR code, and a corresponding first viewing prompt, such as a quick view button, is displayed on the QR code. After the user clicks the quick view button, a semi-modal window is displayed below the reading article page, and the content of the QR code is displayed in the semi-modal window. Specifically, the display content of the semi-modal window includes: source, travel notes summary, keywords / tags, close window button, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing.
[0251] For example, Figure 13a This is another schematic diagram showing the content of a URL link displayed on the chat page in the embodiment of the present invention. As Figure 13a shown, when a URL link is received in the chat page and the mobile phone recognizes that the chat page is refreshed, a corresponding first viewing prompt, such as a quick view button, is displayed on the right side of the URL link. After the user clicks the quick view button, a semi-modal window is displayed below the chat page, and the content of the URL link is displayed in the semi-modal window. Specifically, the display content of the semi-modal window includes: source, content summary, keywords / tags, close window button, "click to jump" button, etc. The user can click the close window button to close the semi-modal window; the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing.
[0252] Step 220: Display an insecure prompt for the first link. The process ends.
[0253] In this step, when the security check fails, an insecure prompt for the first link is displayed. Step 220 can be executed by the first application of the electronic device, or by the system service or system application of the operating system of the electronic device.
[0254] In some possible embodiments, step 220 is executed by the first application of the electronic device. Step 220 specifically includes: displaying an insecure prompt for the first link within the first interface.
[0255] In some possible embodiments, step 220 is executed by the first application, system service or system application of the electronic device. Step 120 specifically includes: superimposing and displaying a third interface that is not full-screen on the first interface, and the third interface includes an insecure prompt for the first link.
[0256] Exemplarily, the third interface includes a semi-modal page or a floating window, etc.
[0257] In some possible embodiments, step 220 specifically includes: displaying a second viewing prompt corresponding to the first link according to the first position information of the target content block; in response to a user's operation on the second viewing prompt, displaying a third interface, and the third interface includes an insecure prompt for the first link.
[0258] In some possible embodiments, the electronic device displays an insecure prompt for the first link in response to a user's operation on the second viewing prompt within a preset time. The electronic device stops displaying the second viewing prompt corresponding to the first link in response to the user not operating on the second viewing prompt within the preset time.
[0259] In this step, the first position information of the target content block is used as a reference for the electronic device to display the second viewing prompt. The second viewing prompt can be displayed at the screen position corresponding to the first position information, or near the screen position corresponding to the first position information.
[0260] For example, Figure 13b is another schematic diagram showing the insecure prompt for the URL link in the chat page in the embodiment of the present invention. As Figure 13b shown, when a URL link is received in the chat page and the mobile phone recognizes that the chat page has been refreshed, since the domain name of this URL link is not in the white list and fails the security check, a corresponding second viewing prompt is displayed on the right side of the URL link, such as an insecure link button. After the user clicks the insecure link button, a semi-modal window is displayed below the chat page, and the display content of this semi-modal window includes: an insecure prompt. For example, the insecure prompt is a warning message. As Figure 13b shown, the warning message is "Warning!!! This is an insecure link, suspected of stealing personal information, fraud, etc. Please do not click."
[0261] In the technical solution of the content display method provided by the embodiments of the present invention, as long as a content change event of the first interface occurs, it is possible to know which links in the first interface can be quickly viewed, without operations such as copying; by creating a virtual screen in the background, the summary information of the specific content displayed after the link is opened can be quickly obtained, and the user can quickly see the content summary of the link, without caring about which application to use to open it, nor looking for the location of the application, improving the convenience; according to the application category and function category of the link, different forms of content are displayed to meet personalized requirements; in the embodiments of the present application, the domain name of the link is subject to security checks, and only when it is safe, the application category and other information of the link are determined, improving the security of accessing the link. In the case of insecurity, an insecure prompt for the link is displayed to prevent the user from performing an open operation on the link, improving the security of accessing the link. When the first application and the second application are different, there is no need to switch applications to view the content and then return to the original application. The entire process of the electronic device displaying the content of the link is convenient to operate, and the user waiting time is short.
[0262] Based on Figure 5 and Figure 10 the method shown, the embodiments of the present invention provide another content display method. Figure 14 is a flowchart of another content display method provided by the embodiments of the present invention. As Figure 14 shown, the method includes:
[0263] Step 302, display the first interface of the first application.
[0264] Exemplarily, the first interface includes a chat interface or a reading article interface.
[0265] Step 304, in response to a first event occurring in the first interface, obtain the application category corresponding to the first link of the target content block in the first interface, where the application category is used to represent the category of the second application for opening the first link.
[0266] In some possible embodiments, the first event is a first user operation event; step 304 specifically includes: in response to the first event occurring in the first interface, obtain the first content block corresponding to the position of the first event in the content block of the first interface; when the first content block contains a link, determine the first content block as the target content block; obtain the application category corresponding to the first link in the target content block.
[0267] Exemplarily, the first user operation event includes a long press operation of the user on the first link or a click operation of the user on the menu option of the first link. The first user operation event does not cause a content change event of the first interface. In the embodiments of the present application, the content change event of the first interface refers to an event in which the content to be displayed on the first interface changes, and the content change event of the first interface can trigger the refresh of the first interface.
[0268] In some possible embodiments, the first event is a content change event of the first interface; step 304 specifically includes: in response to the first event occurring on the first interface, refreshing the first interface; obtaining a target content block that is newly added and contains a link in the refreshed first interface; and obtaining the application category corresponding to the first link in the target content block.
[0269] Exemplarily, the content change event may be triggered automatically by the system or by a user operation. In the embodiments of the present application, the operation of the content change event triggered by a user operation is referred to as a second user operation event. For example, the second user operation event is a sliding operation (such as a swiping up operation or a swiping down operation) or a sending operation by the user on the first interface.
[0270] For example, if the first interface is a chat interface between the user and Xiaohong, when a new message sent by Xiaohong is received, the electronic device will automatically consider that a content change event of the chat interface has occurred.
[0271] For example, when the user finishes editing text on the chat interface and performs a sending operation, the electronic device will automatically consider that a content change event of the chat interface has occurred.
[0272] For example, if the first interface is a reading interface, when the user performs a sliding operation on the first interface, causing a change in the page content of the first interface, the electronic device responds to the user's sliding operation and triggers a content change event of the reading interface.
[0273] Exemplarily, the first interface includes at least one content block. Among them, the content block in the first interface that contains a link is the target content block.
[0274] Exemplarily, the first link includes one or more of a password, a URL link, a link presented in the form of a picture, a QR code, and a text link.
[0275] Exemplarily, the application category includes: social, short video, shopping, travel, video, music, radio, community, news, convenient life, or browser.
[0276] Exemplarily, the first application and the second application are different.
[0277] Exemplarily, the target content block contains the domain name of the first link.
[0278] Optionally, before step 304, there is also included: step 303.
[0279] Step 303: Determine whether the whitelist includes the domain name of the first link. If so, execute step 3004; if not, execute step 310.
[0280] Step 306: Obtain third information according to the first link and the application category, where the third information includes summary information indicating the specific content to be displayed after the first link is opened.
[0281] Exemplarily, the first link includes one or more of a password, a URL link, a link presented in the form of a picture, a QR code, and a text link.
[0282] In some possible embodiments, as Figure 15 shown, step 306 specifically includes: step 3062 - step 3064.
[0283] Step 3062: Obtain second information according to the first link, where the second information includes the specific content to be displayed after the first link is opened.
[0284] In some possible embodiments, step 3062 specifically includes: creating a first virtual screen; in the first virtual screen, opening the first link through a second application; obtaining the second information from the page obtained after the first link is opened. Among them, if the second application is not installed on the electronic device, the first link can also be opened through other applications corresponding to the application category of the second application.
[0285] Step 3064: Obtain the third information according to the second information and the application category.
[0286] Optionally, before step 3064, there is also included: step 3063.
[0287] Step 3063: Obtain a function category according to the second information, where the function category is used to represent the category of the function of the page corresponding to the first link in the second application.
[0288] Exemplarily, when the application category is a social category, the function category includes a chat window page, a personal business card, or a mini-program page; or
[0289] when the application category is a short video category, the function category includes a short video playback page or a product details page; or
[0290] when the application category is a shopping category, the function category includes a product details page or a store details page; or
[0291] when the application category is a travel category, the function category includes a location details page or a route details page; or
[0292] when the application category is a video category, the function category includes a video playback page; or
[0293] when the application category is a music category, the function category includes a music playback page or an album details page; or
[0294] when the application category is a radio category, the function category includes a radio playback page; or
[0295] The application category is community - based, and the function categories include post detail pages, personal home pages, or product detail pages; or
[0296] The application category is news - based, and the function categories include news detail pages or video playback pages; or
[0297] The application category is convenient life - based, and the function categories include store detail pages or group - buying detail pages; or
[0298] The application category is browser - based, and the function category includes the actual content page.
[0299] In some possible embodiments, step 3064 specifically includes: obtaining third information according to the second information, application category, and function category.
[0300] Step 308: Display the summary information. The process ends.
[0301] In some possible embodiments, the first event is a content change event of the first interface. Before step 308, it further includes: displaying a first viewing prompt corresponding to the first link according to the first position information of the target content block; and executing step 308 in response to the user's operation on the first viewing prompt.
[0302] In some possible embodiments, the first event is a content change event of the first interface. Before step 308, it further includes: displaying a first viewing prompt corresponding to the first link according to the first position information of the target content block; executing step 308 in response to the user's operation on the first viewing prompt within a preset time; and stopping displaying the first viewing prompt corresponding to the first link in response to the user's failure to operate on the first viewing prompt within the preset time.
[0303] Step 308 can be executed by the first application of the electronic device, or by the system service or system application of the operating system of the electronic device.
[0304] In some possible embodiments, step 308 is executed by the first application of the electronic device. Step 308 specifically includes: displaying the summary information within the first interface.
[0305] In some possible embodiments, step 308 is executed by the first application, system service, or system application of the electronic device. Step 308 includes: superimposing and displaying a non - full - screen second interface on the first interface, and the second interface includes summary information. In the embodiments of the present application, the summary information is displayed by superimposing and displaying a non - full - screen second interface on the first interface.
[0306] Exemplarily, the second interface includes a semi - modal page, a floating window, etc.
[0307] Step 310: Display an insecure prompt for the first link.
[0308] In this step, when the security check fails, an insecure prompt for the first link is displayed. Step 310 can be executed by the first application of the electronic device, or by the system service or system application of the operating system of the electronic device.
[0309] In some possible embodiments, step 310 is executed by the first application of the electronic device. Step 310 specifically includes: displaying an insecure prompt for the first link within the first interface.
[0310] In some possible embodiments, step 310 is executed by the first application, system service or system application of the electronic device. Step 310 specifically includes: superimposing and displaying a non-full-screen third interface on the first interface, and the third interface includes an insecure prompt for the first link.
[0311] Exemplarily, the third interface includes a semi-modal page or a floating window, etc. In the technical solution of the content display method provided by the embodiments of the present invention, the method includes: displaying a first interface of a first application; in response to a first event occurring in the first interface, obtaining an application category corresponding to a first link of a target content block in the first interface, where the application category is used for the category of a second application that opens the first link; obtaining third information according to the first link and the application category, where the third information includes summary information representing the specific content displayed after the first link is opened; displaying the summary information, and the entire process of the electronic device displaying the content of the link is convenient to operate and the user waiting time is short.
[0312] Figure 16 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. It should be understood that the electronic device 400 can execute each step in the above content display method. To avoid repetition, it will not be described in detail here. The electronic device 400 includes: at least one processor 401 and at least one memory 402.
[0313] An embodiment of the present application provides an electronic device, which can be a terminal device or a circuit device built in the terminal device. The electronic device can be used to execute the functions / steps in the above method embodiments.
[0314] An embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions run on a terminal device, the terminal device is enabled to execute the functions / steps in the above method embodiments.
[0315] An embodiment of the present application further provides a computer program product including instructions. When the computer program product runs on a computer or any at least one processor, the computer is enabled to execute the functions / steps in the above method embodiments.
[0316] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent the case where A exists alone, A and B exist simultaneously, or B exists alone. Here, A and B may be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c may represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c may be single or multiple.
[0317] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0318] In several embodiments provided by the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks, or optical discs that can store program codes.
[0319] The above is only the specific implementation manner of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application and should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A content display method, characterized in that, The method includes: Displaying a first interface of a first application; In response to a first event occurring in the first interface, obtaining an application category corresponding to a first link of a target content block in the first interface, where the application category is used to represent the category of a second application for opening the first link; Obtaining third information according to the first link and the application category, where the third information includes summary information representing the specific content displayed after the first link is opened; Displaying the summary information.
2. The method according to claim 1, characterized in that The obtaining third information according to the first link and the application category includes: Obtaining second information according to the first link, where the second information includes the specific content displayed after the first link is opened; Obtaining the third information according to the second information and the application category.
3. The method according to claim 2, characterized in that, Before obtaining the third information according to the second information and the application category, it further includes: Obtaining a function category according to the second information, where the function category is used to represent the category of the function of the page corresponding to the first link in the second application; The obtaining the third information according to the second information includes: Obtaining the third information according to the second information, the application category, and the function category.
4. The method according to any one of claims 1 to 3, characterized in that The target content block includes the domain name of the first link; Before obtaining the application category corresponding to the first link of the target content block in the first interface, it further includes: Judging whether the white list includes the domain name of the first link; If the white list includes the domain name of the first link, performing obtaining the application category corresponding to the first link of the target content block in the first interface.
5. The method according to any one of claims 1 to 4, characterized in that, The obtaining the application category corresponding to the first link of the target content block in the first interface in response to the first event occurring in the first interface includes: In response to the first event occurring in the first interface, obtaining a first content block corresponding to the position of the first event in the content blocks of the first interface; Determining the first content block as the target content block when the first content block includes a link; Obtaining the application category corresponding to the first link in the target content block.
6. The method according to claim 5, characterized in that, The first event is a first user operation event.
7. The method according to any one of claims 1 to 4, characterized in that, The first event is a content change event of the first interface.
8. The method according to claim 7, wherein The obtaining the application category corresponding to the first link of the target content block in the first interface in response to the first event occurring in the first interface includes: In response to the first event occurring in the first interface, refreshing the first interface; Obtaining a newly added target content block that includes a link in the refreshed first interface; Obtaining the application category corresponding to the first link in the target content block.
9. The method according to claim 7 or 8, characterized in that Before displaying the summary information, it further includes: Displaying a first viewing prompt corresponding to the first link according to the first position information of the target content block; in response to an operation of the user on the first viewing prompt, performing displaying the summary information.
10. The method according to any one of claims 1-9, characterized in that The displaying the summary information includes: Overlaying and displaying a non-full-screen second interface on the first interface, where the second interface includes the summary information.
11. The method according to any one of claims 1 to 10, characterized in that, The first interface includes a chat interface or a reading interface.
12. The method according to any one of claims 1-11, characterized in that, The first link includes one or more of a password, a Uniform Resource Locator (URL) link, a link presented in the form of a picture, a QR code, and a text link.
13. The method according to any one of claims 2-12, characterized in that, Obtaining second information according to the first link and the application category includes: Creating a first virtual screen; In the first virtual screen, opening the first link through the second application; Obtaining the second information from the page obtained after opening the first link.
14. The method according to claim 1, characterized in that, The application category includes: social, short video, shopping, travel, video, music, radio, community, news, convenient life, or browser.
15. The method according to claim 3 or 10, characterized in that, The application category is social, and the function category includes a chat window page, a personal business card, or a mini-program page; or The application category is short video, and the function category includes a short video playback page or a product details page; or The application category is shopping, and the function category includes a product details page or a store details page; or The application category is travel, and the function category includes a location details page or a route details page; or The application category is video, and the function category includes a video playback page; or The application category is music, and the function category includes a music playback page or an album details page; or The application category is radio, and the function category includes a radio playback page; or The application category is community, and the function category includes a post details page, a personal homepage, or a product details page; or The application category is news, and the function category includes a news details page or a video playback page; or The application category is convenient life, and the function category includes a store details page or a group buying details page; or The application category is web page, and the function category includes an actual content page.
16. The method according to any one of claims 1-15, characterized in that, The first application and the second application are different.
17. An electronic device, characterized in that, It includes a processor and a memory. The memory is used to store a computer program, and the computer program includes program instructions. When the processor runs the program instructions, the electronic device executes the steps of the method according to any one of claims 1-16.
18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program request is run by a computer, the computer executes the method according to any one of claims 1-16.
Citation Information
Cited By
Information display method and electronic equipment
CN121918915A
Content display method and electronic device
WO2025148359A1