Content display method and electronic device

By automatically obtaining and displaying the application categories and summary information of the links in response to interface events in chat and reading scenarios, the problem of cumbersome display of link content in the prior art is solved, and fast and convenient content display and security improvement are achieved.

WO2025148359A1PCT designated stage expired Publication Date: 2025-07-17HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/116203
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-10
Filing Date
2024-09-02
Publication Date
2025-07-17

AI Technical Summary

Technical Problem

In chat and reading scenarios, the process of displaying links in the prior art is cumbersome, inefficient, and the user waits for a long time.

Method used

By automatically obtaining the linked application category and displaying summary information in response to interface events, using the big model to obtain summary information of the specific content displayed after the link is opened, displaying the content in combination with the application category and function category, conducting security checks and displaying unsafe prompts in unsafe situations.

Benefits of technology

It realizes the convenience of quickly displaying link content in chat and reading scenarios, reduces user waiting time, improves operation efficiency, and improves the security of accessing links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024116203_17072025_PF_FP_ABST
    Figure CN2024116203_17072025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present invention disclose a content display method and an electronic device. The method comprises: an electronic device displaying a first interface of a first application; in response to a first event that has occurred on the first interface, acquiring an application category corresponding to a first link of a target content block in the first interface, the application category being used for the category of a second application that opens the first link; on the basis of the first link and the application category, acquiring third information, the third information comprising summary information representing specific content displayed after the first link is opened; and displaying the summary information. The present invention achieves operational convenience during the entire process of displaying the content of a link on an electronic device, and reduces waiting time for users.
Need to check novelty before this filing date? Find Prior Art

Description

Content display method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on January 10, 2024, with application number 202410043792.4 and application name “A content display method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the field of computer technology, and in particular to a content display method and electronic device. Background Art

[0003] When using an electronic device in a chat or reading scenario, the display interface of the current application often contains a link, such as a password, a Universal Resource Locator (URL) link, or a QR code. The user needs to manually obtain the link text, then manually operate the electronic device to open another application and then open the link through the other application before 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 has to wait for a long time.

[0004] Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a content display method and an electronic device, wherein the entire process of the electronic device displaying linked content is convenient to operate and the user's waiting time is short.

[0006] In a first aspect, an embodiment of the present invention provides a content display method, the method comprising:

[0007] Displaying a first interface of a first application;

[0008] In response to a first event occurring on the first interface, obtaining an application category corresponding to a first link of a target content block in the first interface, the application category being used to indicate a category of a second application that opens the first link;

[0009] Acquire third information according to the first link and the application category, wherein the third information includes summary information indicating specific content displayed after the first link is opened;

[0010] Display the summary information. The embodiment of the present application can directly display the summary information of the link on the first interface in response to only the first event occurring on the first interface, so that the content of the link in the first interface can be quickly viewed without worrying about which application to use to open it or finding the location of the application. This improves convenience, and the entire process of displaying the linked content on the electronic device is easy to operate, and the user's waiting time is short.

[0011] In conjunction with the first aspect, in certain implementations of the first aspect, obtaining third information according to the first link and the application category includes:

[0012] obtaining second information according to the first link, wherein the second information includes specific content displayed after the first link is opened;

[0013] The third information is obtained based on the second information and the application category. In this embodiment of the present application, summary information of specific content displayed after the first link is opened is obtained based on the first link, so as to quickly display the content of the first link later.

[0014] In conjunction with the first aspect, in certain implementations of the first aspect, before obtaining the third information according to the second information and the application category, the method further includes:

[0015] obtaining a function category according to the second information, where the function category is used to indicate a function category of a page corresponding to the first link in the second application;

[0016] The obtaining the third information according to the second information includes:

[0017] The third information is obtained based on the second information, the application category, and the function category. In an embodiment of the present application, the function category of the first link can be obtained based on the specific content displayed after the first link is opened. The function category is a subcategory of the application category. If the application category only contains one function category, determining the application category also determines the function category. There is no need to determine the function category of the first link. The second information and 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, application category, and function category into the large model to output the third information.

[0018] In combination with the first aspect, in certain implementations of the first aspect, the target content block includes the domain name of the first link;

[0019] Before obtaining the application category corresponding to the first link of the target content block in the first interface, the method further includes:

[0020] Determining whether the whitelist includes the domain name of the first link;

[0021] If the whitelist includes the domain name of the first link, performing the step of obtaining the application category corresponding to the first link of the target content block in the first interface; or

[0022] If the whitelist does not include the domain name of the first link, a warning indicating that the first link is unsafe is displayed. This embodiment of the present application performs a security check on the domain name of the link and only continues to obtain information such as the application category of the link if it is safe, thereby improving the security of accessing the link. In unsafe situations, a warning indicating that the link is unsafe is displayed to prevent users from opening the link, thereby improving the security of accessing the link.

[0023] In conjunction with the first aspect, in certain implementations of the first aspect, in response to a first event occurring on the first interface, obtaining an application category corresponding to a first link of a target content block on the first interface includes:

[0024] In response to the first event occurring on the first interface,

[0025] Acquire a first content block corresponding to the position of the first event in the content blocks of the first interface;

[0026] determining the first content block as the target content block when the first content block includes a link;

[0027] Obtain the application category corresponding to the first link in the target content block. In this embodiment of the present application, the content block corresponding to the location of the first event is the first content block; then, based on the fact that the content information of the first content block contains a link, the first content block is determined to be 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.

[0028] In combination with the first aspect, in certain implementations of the first aspect, the first event is a first user operation event. In an embodiment 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 an embodiment 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 a refresh of the first interface.

[0029] In conjunction 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 can be automatically triggered by the system or triggered by a user operation. In the embodiment 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 user sliding operation (such as an up or down operation) or a send operation on the first interface.

[0030] For example, 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 deem that a content change event of the chat interface has occurred.

[0031] For example, when a user edits text on a chat interface and then sends it, the electronic device will automatically deem that a content change event has occurred on the chat interface.

[0032] For example, the first interface is a reading interface. When the user slides the first interface, the page content of the first interface changes. The electronic device triggers a content change event of the reading interface in response to the user's sliding operation.

[0033] In conjunction with the first aspect, in certain implementations of the first aspect, in response to a first event occurring on the first interface, obtaining an application category corresponding to a first link of a target content block on the first interface includes:

[0034] Refreshing the first interface in response to the first event occurring on the first interface;

[0035] Acquire a target content block that is newly added and contains a link in the refreshed first interface;

[0036] Obtaining the application category corresponding to the first link in the target content block. In an embodiment of the present application, a content change event on the first interface can trigger a refresh of the first interface, obtaining a target content block newly added to the refreshed first interface and containing a link, and obtaining the application category corresponding to the first link in the target content block.

[0037] In conjunction with the first aspect, in certain implementations of the first aspect, before displaying the summary information, the method further includes:

[0038] displaying a first viewing prompt corresponding to the first link according to the first position information of the target content block;

[0039] In response to the user's operation on the first viewing prompt, the summary information is displayed. In this embodiment of the present application, the first viewing prompt for the first link is first displayed, and then the summary information 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 based on whether the electronic device displays the first viewing prompt for the first link, and the summary information of the first link is only displayed when the user needs to quickly view the content of the first link.

[0040] In conjunction with the first aspect, in certain implementations of the first aspect, before displaying the summary information, the method further includes:

[0041] In response to a user's operation on the first viewing prompt within a preset time, performing the displaying of the summary information; or

[0042] In response to the user not operating on the first viewing prompt within the preset time, the first viewing prompt is stopped from being displayed. In this embodiment of the application, the first viewing prompt for the first link is first displayed. Only when the user operates on the first viewing prompt within the preset time is the summary information of the first link displayed; if the user does not operate on the first viewing prompt within the preset time, the first viewing prompt is stopped from being displayed.

[0043] In conjunction with the first aspect, in certain implementations of the first aspect, displaying the summary information includes:

[0044] The second interface that is not displayed in full screen is superimposed on the first interface, and the second interface includes the summary information. In the embodiment of the present application, the content of the first link is displayed by superimposing the second interface that is not displayed in full screen on the first interface.

[0045] In conjunction with the first aspect, in certain implementations of the first aspect, displaying an unsafe prompt for the first link includes:

[0046] A third interface that is not displayed in full screen is superimposed on the first interface, and the third interface includes an unsafe prompt of the first link. In this embodiment of the present application, an unsafe prompt of the first link is displayed by superimposing a third interface that is not displayed in full screen on the first interface.

[0047] In combination with the first aspect, in some implementations of the first aspect, the first interface includes a chat interface or a reading interface.

[0048] In combination with the first aspect, in certain 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.

[0049] In conjunction with the first aspect, in certain implementations of the first aspect, obtaining the second information according to the first link includes:

[0050] Creating a first virtual screen;

[0051] In the first virtual screen, opening the first link through the second application;

[0052] The second information is obtained from the page obtained after the first link is opened. In the embodiment of the present application, by creating a first virtual screen in the background, a summary of the specific content displayed after the first link is opened is quickly obtained. The content summary of the first link can be quickly viewed in the current application interface without worrying about which application to use to open it or finding the location of the application, thereby improving convenience.

[0053] 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.

[0054] In combination with the first aspect, in some implementations of the first aspect, the application category is social, and the function category includes a chat window page, a personal business card, or a mini-program page; or

[0055] The application category is short video, and the function category includes a short video playback page or a product details page; or

[0056] The application category is shopping, and the function category includes product details page or store details page; or

[0057] The application category is travel, and the function category includes a place details page or a route details page; or

[0058] The application category is video, and the function category includes a video playback page; or

[0059] The application category is music, and the function category includes a music playback page or an album details page; or

[0060] The application category is a radio station category, and the function category includes a radio station playback page; or

[0061] The application category is community, and the function category includes post details page, personal homepage or product details page; or

[0062] The application category is news, and the function category includes a news details page or a video playback page; or

[0063] The application category is convenient life, and the function category includes store details page or group purchase details page; or

[0064] The application category is a browser category, and the function category includes an actual content page.

[0065] In conjunction with the first aspect, in certain implementations of the first aspect, the first application and the second application are different. In this embodiment 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 and the user wait time is short.

[0066] In a second aspect, an embodiment of the present invention provides an electronic device comprising a processor and a memory, wherein the memory is used to store a computer program, and the computer program comprises program instructions. When the processor runs the program instructions, the electronic device executes the steps of the method described above.

[0067] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program request is run by a computer, the computer is caused to execute the method as described above.

[0068] In a fourth aspect, an embodiment of the present invention provides a computer program product, which includes instructions. When the computer program product is run on a computer or any at least one processor, the computer performs the functions / steps in the above method.

[0069] In the technical solution of the content display method and 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, the application category being used to open the category of a second application of the first link; obtaining third information based on the first link and the application category, the third information including summary information indicating specific content displayed after the first link is opened; displaying the summary information, the entire process of the electronic device displaying the linked content is convenient to operate, and the user waiting time is short. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1a is a schematic diagram of receiving a password in a chat scenario;

[0071] Figure 1b is a schematic diagram of receiving a picture and a QR code in a chat scenario;

[0072] Figure 1c is a schematic diagram of receiving a URL link in a chat scenario;

[0073] Figure 2a is a schematic diagram of links presented in the form of pictures in the context of reading an article;

[0074] Figure 2b is a schematic diagram of a QR code in an article reading scenario;

[0075] Figure 2c is a schematic diagram of text hyperlinks in the article reading scenario;

[0076] FIG3 is a schematic diagram showing the content of a link in a chat scene;

[0077] FIG4 is another schematic diagram showing the content of a link in a chat scene;

[0078] FIG5 is a flow chart of a content display method provided by an embodiment of the present invention;

[0079] FIG6a is a diagram showing the chat page in an embodiment of the present invention. A schematic diagram of the contents of the password;

[0080] FIG6 b is a schematic diagram of displaying a QR code and image content on a chat page according to an embodiment of the present invention;

[0081] FIG. 7a shows an example of an embodiment of the present invention displayed on a chat page A schematic diagram of the contents of the password;

[0082] FIG7b is a schematic diagram of the enlarged playback of the small video window in FIG7a;

[0083] FIG7c is a diagram showing a direct display after the electronic device jumps to the application from FIG7a or FIG7b A schematic diagram of the contents of the password;

[0084] FIG8 a is a schematic diagram showing the content of a text link in a reading article page according to an embodiment of the present invention;

[0085] FIG8 b is a schematic diagram showing the content of a link presented in the form of an image on a reading article page according to an embodiment of the present invention;

[0086] FIG8c is a schematic diagram showing the content of a QR code on an article reading page according to an embodiment of the present invention;

[0087] FIG9a is a schematic diagram showing the content of a URL link in a chat page according to an embodiment of the present invention;

[0088] FIG9 b is a schematic diagram showing an unsafe prompt of a URL link in a chat page according to an embodiment of the present invention;

[0089] FIG10 is a flowchart of another content display method provided by an embodiment of the present invention;

[0090] FIG. 11a shows an example of an embodiment of the present invention displayed on a chat page Another schematic diagram of the content of the password;

[0091] FIG11b is another schematic diagram of displaying QR codes and images on a chat page according to an embodiment of the present invention;

[0092] FIG12a is another schematic diagram showing the content of a text link in a reading article page according to an embodiment of the present invention;

[0093] FIG12 b is another schematic diagram showing the content of a link presented in the form of an image on a reading article page according to an embodiment of the present invention;

[0094] FIG12c is another schematic diagram showing the content of a QR code on an article reading page according to an embodiment of the present invention;

[0095] FIG13a is another schematic diagram of displaying the content of a URL link in a chat page according to an embodiment of the present invention;

[0096] FIG13b is another schematic diagram of displaying an unsafe prompt of a URL link in a chat page according to an embodiment of the present invention;

[0097] FIG14 is a flowchart of another content display method provided by an embodiment of the present invention;

[0098] FIG15 is a flowchart of obtaining third information according to the first link and the application category in FIG14 , where the third information includes summary information indicating specific content displayed after the first link is opened;

[0099] FIG16 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0100] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0101] It should be understood that the embodiments described are only a portion of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative work are within the scope of protection of the present invention.

[0102] 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 "a", "an", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.

[0103] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the associated objects.

[0104] The present invention mainly solves the following two problems: the process of displaying the content of the link is cumbersome, inefficient, and requires long waiting time for users.

[0105] Scenario 1: Receiving a link (such as a password, URL link, link presented in the form of an image, 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 an image and QR code in a chat scenario, and Figure 1c is a schematic diagram of receiving a URL link in a chat scenario.

[0106] If the content of the link needs to be displayed, the process includes: (1) the electronic device copies the text of the link in response to the user's operation; (2) the user thinks about the application that can display the specific content of the link; (3) the electronic device exits the current chat application in response to the user's operation; (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 the application, or displays the content of the link through the application in response to the user's operation of pasting the link; (5) after the user has viewed the content of the link, the electronic device returns to the interface of the chat application in response to the user's operation, and the user continues chatting. Therefore, the process of displaying the content of the link is cumbersome and inefficient, and the user has to wait for a long time.

[0107] Scenario 2: In the article reading scenario, links (such as links presented in the form of images, QR codes, text hyperlinks, etc.) are inserted before, after, or in the middle of the article. For example, Figure 2a is a schematic diagram of a link presented in the form of an image in the article reading scenario, Figure 2b is a schematic diagram of a QR code in the article reading scenario, and Figure 2c is a schematic diagram of a text hyperlink in the article reading scenario.

[0108] If the content of a link needs to be displayed, the process includes: (1) the user clicks the link in the article; (2) the electronic device jumps to another application or other page of the application. After the jump, at least 1-3 levels of pages are required to display the content of the link. These pages include: pop-up advertising pages, permission pop-ups such as allowing jumps, and other application diversion pages; (3) after the user reads the content of the link, they need to click the back button 1-3 times to return to the page where they read the article and continue reading. Therefore, the process of displaying the content of the link is cumbersome and inefficient, and users have to wait for a long time.

[0109] For the first scenario described above, only in chat scenarios, after the electronic device copies the linked text, it can monitor the copied content of the clipboard. After recognizing the command from the copied content, it can display the icon of the recommended application on the current page. The user can jump to the application to view the actual detailed content by clicking the icon. However, the user still needs to assist in obtaining the linked text and must jump to the interface of the other application before displaying the linked content. The linked content cannot be displayed directly. The entire process is long and requires multiple user operations, which is cumbersome and requires long user waiting times.

[0110] For example, Figure 3 is a schematic diagram of displaying linked content in a chat scenario. As shown in Figure 3(a), the mobile phone receives a password on the chat page. The mobile phone then copies the password in response to the user's copy operation. As shown in Figure 3(b), after copying the password, the mobile phone displays "Copied" on the chat page. As shown in Figure 3(c), after copying the password, the mobile phone recognizes that the application corresponding to the password is a shopping application and displays the shopping application icon on the chat page. In response to the user clicking the shopping application icon, the mobile phone jumps to the shopping application, and a window pops up on the shopping application interface, as shown in Figure 3(d). In response to the user clicking the "View Details" button in the pop-up window, the product details page corresponding to the password is displayed on the shopping application interface, as shown in Figure 3(e).

[0111] For example, Figure 4 is another schematic diagram of displaying linked content in a chat scenario. As shown in Figure 4(a), the mobile phone receives a password on the chat page. The mobile phone then copies the password in response to the user's operation. As shown in Figure 4(b), after copying the password, the mobile phone displays "Copied" on the chat page. As shown in Figure 4(c), after copying the password, the mobile phone recognizes that the application corresponding to the password is a short video application, displays the short video application icon on the chat page, and in response to the user clicking on the short video application icon, jumps to the short video application, and a window pops up on the short video interface as shown in Figure 4(d). In response to the user clicking the button to view details in the pop-up window, the short video details page corresponding to the password is displayed on the short video application interface as shown in Figure 4(e).

[0112] Based on the above technical problems, an embodiment of the present invention provides a content display method and an electronic device. For chat scenarios and reading scenarios, it proposes an interactive method for automatically triggering the viewing of the content of the link in response to the first event occurring on 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's waiting time is short.

[0113] FIG5 is a flow chart of a content display method provided by an embodiment of the present invention. As shown in FIG5 , the method includes:

[0114] Step 102: Display a first interface of a first application.

[0115] Exemplarily, the first interface includes a chat interface or an article reading interface.

[0116] Step 104 : In response to a first user operation event occurring on the first interface, obtain second position information corresponding to the first user operation event and content information and first position information of the content block of the first interface.

[0117] Exemplarily, the first interface includes a first link.

[0118] Exemplarily, the first user operation event includes a user long-pressing operation on the first link or a user clicking an item in the menu of the first link. The first user operation event does not cause a content change event on the first interface. In an embodiment of the present application, a content change event on the first interface refers to an event in which the content to be displayed on the first interface changes, and the content change event on the first interface can trigger a refresh of the first interface.

[0119] 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.

[0120] Exemplarily, the first interface includes at least one content block.

[0121] Illustratively, the content information includes text and / or images displayed on the content block.

[0122] Exemplarily, the first position information includes position information of the content block on the screen of the electronic device.

[0123] In this step, the electronic device responds to the first user operation event occurring on the first interface, monitors the first user operation event in the system, obtains the screen coordinates of the first user operation event, that is, the second position information; and calls the page parsing capability to obtain the content information and the first position information of the content block in the first interface through auxiliary services, optical character recognition (OCR) and other capabilities.

[0124] Step 106: Determine first position information matching the second position information based on the second position information and at least one first position information, and determine a first content block based on the first position information matching the second position information.

[0125] In this step, the content block corresponding to the first location information that matches the second location information is the first content block. Therefore, this step can determine in which content block of the first interface the first link corresponding to the first user operation event is located based on the location information, that is, the first content block.

[0126] Step 108: According to the content information of the first content block including the link, the first content block is determined to be the target content block, and the target content block includes the domain name of the first link.

[0127] In this step, the content information of the first content block is identified. 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.

[0128] Exemplarily, the target content block is a content block including the link content of the first link and its associated information, and the target content block includes the domain name of the first link.

[0129] Step 110 , determine whether the whitelist includes the domain name of the first link. If so, execute step 112 ; if not, execute step 122 .

[0130] 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 failed.

[0131] Step 112: Determine the application category based on the content information of the target content block.

[0132] In this step, if the security check passes, a second application for opening the first link is determined based on the content information of the target content block, and an application category is determined based on the second application. The application category is used to indicate the category of the second application for opening the first link.

[0133] For example, the target content block includes: source application, original content page node set (nodes include: node text, description, screen position, node class), accessible links (such as URL links, passwords), application categories, etc.

[0134] Exemplarily, application categories include social, short video, shopping, travel, video, music, radio, community, news, convenient life or browser, etc.

[0135] For example, social applications include and wait.

[0136] For example, short video applications include wait.

[0137] For example, shopping apps include wait.

[0138] For example, travel apps include wait.

[0139] For example, video applications include wait.

[0140] For example, music apps include wait.

[0141] For example, radio apps include wait.

[0142] For example, community applications include wait.

[0143] For example, news apps include wait.

[0144] For example, convenient life applications include wait.

[0145] For example, browser applications include browsers and the like.

[0146] Illustratively, the first application and the second application are the same or different.

[0147] Step 114: Obtain second information according to the first link, where the second information includes specific content displayed after the first link is opened.

[0148] In some possible embodiments, step 114 specifically includes: creating a first virtual screen; opening the first link in the first virtual screen through the second application; and obtaining the second information from a page obtained after the first link is opened.

[0149] If the electronic device does not have the second application installed, the first link can also be opened through other applications corresponding to the application category.

[0150] Optionally, the electronic device may also create a second virtual screen; in the second virtual screen, a second link related to the first link is opened through an application corresponding to the application category; and the fourth information is obtained from the page obtained after the second link is opened. For example, the first link is a link to the details page of product A in a first shopping application, the second link is a link to the details page of product B similar to product A in a second shopping application, and the fourth information is the price of product B. The first shopping application and the second shopping application are the same or different. Thus, the embodiment of the present application can quickly display the content of the first link while also displaying the price comparison information of the product.

[0151] Step 116: Obtain third information based on the second information and the application category, where the third information includes summary information indicating specific content displayed after the first link is opened.

[0152] In this step, the electronic device outputs the third information by inputting the second information and the application category into a large model. The large model is a pre-trained model that can output the third information based on the second information and the application category.

[0153] Exemplarily, the application category includes at least one function category, and the function category is a subcategory of the application category.

[0154] For example, the application category is social, and the functional categories of the social category include chat window page, personal business card or mini program page, etc.

[0155] For example, the application category is short video, and the functional categories of the short video category include a short video playback page or a product details page.

[0156] For example, the application category is shopping, and the functional categories of the shopping category include product details page or store details page, etc.

[0157] For example, the application category is travel, and the functional categories of the travel category include a place details page or a route details page.

[0158] For example, the application category is video, and the functional categories of the video category include video playback pages and the like.

[0159] For example, if the application category is music, the functional categories of music include music playback page or album details page.

[0160] For example, the application category is radio, and the functional categories of the radio include radio playback pages and the like.

[0161] For example, the application category is community, and the functional categories of the community category include post details page, personal homepage or product details page, etc.

[0162] For example, if the application category is news, the functional categories of the news category include news detail page or video playback page.

[0163] For example, the application category is convenient life, and the functional categories of the convenient life category include store details page or group purchase details page, etc.

[0164] For example, the application category is a browser category, and the functional categories of the browser category include actual content pages (text, video) and the like.

[0165] Optionally, when the application category of the first link includes a function category, determining the application category also determines the function category. 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.

[0166] Optionally, when the application category includes multiple function categories, step 116 may also include obtaining the function category based on the second information. Step 116 specifically includes obtaining third information based on the second information, the application category, and the function category. In this step, the electronic device outputs the third information by inputting the second information, the application category, and the function category into a large model. The large model is a pre-trained model that can output the third information based on the second information, the application category, and the function category. Optionally, the third information also includes keywords and / or tags indicating the specific content displayed after the first link is opened.

[0167] Step 118: Display summary information. The process ends.

[0168] Here, step 118 may be executed by the first application of the electronic device, or may be executed by a system service or system application of the operating system of the electronic device.

[0169] In some possible embodiments, step 118 is performed by a first application of the electronic device. Step 118 specifically includes: displaying summary information in the first interface.

[0170] In some possible embodiments, step 118 is performed by a first application, a system service, or a system application of the electronic device. Step 118 specifically includes: displaying a second interface that is not displayed in full screen on the first interface, the second interface including summary information.

[0171] Exemplarily, the second interface includes a semi-modal page (also called a "semi-modal window") or a floating window, etc.

[0172] In some possible embodiments, the application category of the first link includes a function category, and step 118 specifically includes: displaying summary information according to the application category.

[0173] 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.

[0174] 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 is more in line with user demands.

[0175] 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.

[0176] Optionally, when the electronic device displays the summary information, it may also display keywords and / or tags in the third information indicating specific content displayed after the first link is opened.

[0177] For example, FIG6a is a diagram showing a chat page in an embodiment of the present invention. A schematic diagram of the content of the password, as shown in Figure 6a, is received on the chat page. 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, positive / negative review rate, monthly sales), a close window button, a swiping collection of product images, a "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.

[0178] For example, FIG6b is a schematic diagram of displaying the content of a QR code and a picture in a chat page according to an embodiment of the present invention. As shown in FIG6b , 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 below 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.

[0179] For example, FIG7a is a diagram showing a chat page in an embodiment of the present invention. A schematic diagram of the content of the password, FIG7b is a schematic diagram of the video window in FIG7a is enlarged and played, FIG7c is a schematic diagram of the electronic device directly displaying the application after jumping from FIG7a or FIG7b Schematic diagram of the password content. As shown in Figure 7a, the chat page receives Password, user long press After the command is given, a semi-modal window will be displayed at the bottom of the chat page, which will display the content of the Douyin command. Specifically, the display content of the semi-modal window includes: source, video summary, video window, close window button, "click to jump" button, etc. As shown in Figure 7a, the video window can directly play the video. The short video A corresponding to the command; As shown in Figure 7b, the video window can also occupy the right area to enlarge and play the video after the user clicks it. As shown in Figure 7a and Figure 7b, the user can click the close window button to close the semi-modal window. As shown in Figure 7a, the user can click the "click to jump" button to directly jump to the corresponding application to continue viewing. As shown in Figure 7b, the user can click on the enlarged video window to directly jump to the corresponding application to continue viewing. As shown in Figure 7c, since it is Password, so that the electronic device jumps to the application from Figure 7a or Figure 7b, through APP directly displays The display interface of the short video A corresponding to the command. In the process of going from Figure 7a or Figure 7b to Figure 7c, there is no need to go through at least 1-3 levels of pages. After viewing the interface shown in Figure 7c, the user does not need to click the back button 1-3 times to return to the chat page and continue the next chat. Therefore, the process of displaying the linked content in this application is simple and efficient, and the user wait time is shortened.

[0180] For example, Figure 8a is a schematic diagram of displaying the content of a text link on an article reading page according to an embodiment of the present invention. As shown in Figure 8a, the article reading page contains a text link. After the user long presses the text link, a semi-modal window is displayed below the article reading 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 / tags, a close window button, a "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 8b is a schematic diagram of displaying the content of a link presented in the form of a picture on a reading article page in an embodiment of the present invention. As shown in Figure 8b, 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 semi-modal window displays the content of the advertisement. Specifically, the display content of the semi-modal window includes: product source, name, price, monthly sales, event information, praise 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.

[0182] For example, Figure 8c is a schematic diagram of displaying the content of a QR code in a reading article page in an embodiment of the present invention. As shown in Figure 8c, 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 semi-modal window displays the content of the QR code. Specifically, the display content of the semi-modal window includes: source, travel 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.

[0183] For example, Figure 9a is a schematic diagram of displaying the content of a URL link in a chat page according to an embodiment of the present invention. As shown in Figure 9a, after a URL link is received in the chat page and the user long-presses the URL link, a semi-modal window appears below the chat page, displaying the content of the URL link. Specifically, the semi-modal window displays the source, content summary, keywords / tags, a close window button, and a "click to jump" button. 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.

[0184] Step 120: Display an unsafe prompt for the first link. The process ends.

[0185] In this step, if the security check fails, an unsafe prompt of the first link is displayed. Step 120 can be executed by a first application of the electronic device, or by a system service or system application of the operating system of the electronic device.

[0186] In some possible embodiments, step 120 is performed by a first application of the electronic device. Step 120 specifically includes: displaying an unsafe prompt of the first link in the first interface.

[0187] In some possible embodiments, step 120 is performed by a first application, a system service, or a system application of the electronic device. Step 120 specifically includes: displaying a third interface that is not displayed in full screen on the first interface, the third interface including an unsafe prompt of the first link.

[0188] Exemplarily, the third interface includes a semi-modal page or a floating window, etc.

[0189] For example, Figure 9b illustrates an example of an embodiment of the present invention, wherein a URL link is displayed on a chat page as an unsafe reminder. As shown in Figure 9b, after a URL link is received on a chat page and a user long-presses the URL link, a semi-modal window appears below the chat page. Because the URL link's domain name is not on the whitelist and has failed the security check, the semi-modal window displays an unsafe reminder. For example, the unsafe reminder may be a warning message, such as the one shown in Figure 9b, which reads, "Warning!!! This is an unsafe link. It may contain content that involves theft of personal information, fraud, etc. Please do not click."

[0190] In the technical solution of the content display method provided by the embodiment of the present invention, the electronic device responds to the first user operation event occurring on the first interface, and quickly obtains the content information and location information of the content block where the link is located, without the need for copying and other operations; by creating a virtual screen in the background, the summary information of the specific content displayed after the link is opened is quickly obtained and displayed, so that the user can quickly see the content summary of the link without having to worry about which application to use to open it, or finding where the application is located, thereby improving convenience; based on the application category and function category of the link, different forms of content are displayed to meet personalized requirements; a security check is performed on the domain name of the link, and only when it is safe, the application category and other information of the link are determined, thereby improving the security of accessing the link. In an unsafe situation, an unsafe prompt of the first link is displayed to prevent the user from opening the link, thereby 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 and the user waiting time is short.

[0191] FIG10 is a flow chart of another content display method provided by an embodiment of the present invention. As shown in FIG10 , the method includes:

[0192] Step 202: Display a first interface of a first application.

[0193] Exemplarily, the first interface includes a chat interface or an article reading interface.

[0194] Step 204: In response to the content change event occurring on the first interface, refresh the first interface and obtain content information and first position information of a newly added content block in the refreshed first interface.

[0195] Exemplarily, the newly added content block in the refreshed first interface includes a first link.

[0196] In the embodiment 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.

[0197] For example, the content change event can be triggered automatically by the system or by a user operation. In the embodiment 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 user sliding operation (such as an up or down operation) or a send operation on the first interface.

[0198] For example, 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 deem that a content change event of the chat interface has occurred.

[0199] For example, when a user edits text on a chat interface and then sends it, the electronic device will automatically deem that a content change event has occurred on the chat interface.

[0200] For example, the first interface is a reading interface. When the user slides on the first interface, the page content of the first interface changes. The electronic device triggers a content change event of the reading interface in response to the user's sliding operation on the first interface.

[0201] 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.

[0202] Illustratively, the content information includes text and / or images displayed on the content block.

[0203] Exemplarily, the first position information includes position information of the content block on the screen of the electronic device.

[0204] 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 capability, and obtains the content information and first location information of the newly added content block in the refreshed first interface through auxiliary services, OCR and other capabilities.

[0205] Step 206: Determine, based on the content information, a content block containing a link as a target content block, wherein the target content block contains the domain name of the first link.

[0206] In this step, the content information of the content block is identified. 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.

[0207] Exemplarily, the target content block is a content block containing the link content of the first link and contains the domain name of the first link.

[0208] Step 208 : Determine whether the whitelist includes the domain name of the first link. If so, execute step 210 ; if not, execute step 222 .

[0209] 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 failed.

[0210] Step 210: Determine the application category based on the content information of the target content block.

[0211] In this step, if the security check passes, a second application for opening the first link is determined based on the content information of the target content block, and an application category is determined based on the second application. The application category is used to indicate the category of the second application for opening the first link.

[0212] For example, the target content block includes: source application, original content page node set (nodes include: node text, description, screen position, node class), accessible links (such as URL links, passwords), application categories, etc.

[0213] Exemplarily, application categories include social, short video, shopping, travel, video, music, radio, community, news, convenient life or browser, etc.

[0214] Step 212: Obtain second information according to the first link, where the second information includes specific content displayed after the first link is opened.

[0215] In some possible embodiments, step 212 specifically includes: creating a first virtual screen; opening the first link in the first virtual screen through the second application; and obtaining the second information from a page obtained after the first link is opened.

[0216] If the electronic device does not have the second application installed, the first link may also be opened through other applications corresponding to the application category of the second application.

[0217] Optionally, the electronic device may also create a second virtual screen; in the second virtual screen, a second link related to the first link is opened through an application corresponding to the application category; and the fourth information is obtained from the page obtained after the second link is opened. For example, the first link is a link to the details page of product A in a first shopping application, the second link is a link to the details page of product B similar to product A in a second shopping application, and the fourth information is the price of product B. The first shopping application and the second shopping application are the same or different. Thus, the embodiment of the present application can quickly display the content of the first link while also displaying the price comparison information of the product.

[0218] Step 214: Obtain third information based on the second information and the application category, where the third information includes summary information indicating specific content displayed after the first link is opened.

[0219] In this step, the electronic device outputs the third information by inputting the second information and the application category into a large model. The large model is a pre-trained model that can output the third information based on the second information and the application category.

[0220] Exemplarily, the application category includes at least one function category, and the function category is a subcategory of the application category.

[0221] For example, the application category is social, and the functional categories of the social category include chat window page, personal business card or mini program page, etc.

[0222] For example, the application category is short video, and the functional categories of the short video category include a short video playback page or a product details page.

[0223] For example, the application category is shopping, and the functional categories of the shopping category include product details page or store details page, etc.

[0224] For example, the application category is travel, and the functional categories of the travel category include a place details page or a route details page.

[0225] For example, the application category is video, and the functional categories of the video category include video playback pages and the like.

[0226] For example, if the application category is music, the functional categories of music include music playback page or album details page.

[0227] For example, the application category is radio, and the functional categories of the radio include radio playback pages and the like.

[0228] For example, the application category is community, and the functional categories of the community category include post details page, personal homepage or product details page, etc.

[0229] For example, if the application category is news, the functional categories of the news category include news detail page or video playback page.

[0230] For example, the application category is convenient life, and the functional categories of the convenient life category include store details page or group purchase details page, etc.

[0231] For example, the application category is a browser category, and the functional categories of the browser category include actual content pages (text, video) and the like.

[0232] Optionally, when the application category of the first link includes a function category, determining the application category also determines the function category. 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.

[0233] Optionally, when the application category includes multiple function categories, step 116 may include obtaining the function category based on the second information. Step 116 specifically includes obtaining third information based on 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 a large model to output the third information. The large model is a pre-trained model that can output the third information based on the second information, the application category, and the function category.

[0234] Optionally, the third information further includes keywords and / or tags indicating specific content displayed after the first link is opened.

[0235] Step 216: Display a first viewing prompt corresponding to the first link in the first interface according to the first location information of the target content block.

[0236] In this step, the first position information of the target content block is used as a reference for the electronic device to display a 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.

[0237] Step 218: In response to the user's operation on the first viewing prompt, display summary information.

[0238] In the embodiment of the present application, a first viewing prompt for a first link is first displayed, and after the user operates on the first viewing prompt, the content 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 for 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.

[0239] In some possible embodiments, the electronic device displays the content of the first link in response to a user's operation on the first viewing prompt within a preset time. In response to the user's failure to operate on the first viewing prompt within the preset time, the electronic device stops displaying the first viewing prompt corresponding to the first link. In this embodiment of the present application, the first viewing prompt for the first link is first displayed. Only when the user operates on the first viewing prompt within the preset time will the content of the first link be displayed. If the user does not operate on the first viewing prompt within the preset time, the first viewing prompt stops being displayed.

[0240] Step 218 may be executed by the first application of the electronic device, or may be executed by a system service or system application of the operating system of the electronic device.

[0241] In some possible embodiments, step 218 is performed by a first application of the electronic device. Step 218 specifically includes: displaying summary information in the first interface in response to the user's operation on the first viewing prompt.

[0242] In some possible embodiments, step 218 is performed by a first application, a system service, or a system application of the electronic device. Step 118 specifically includes: in response to the user's operation on the first viewing prompt, superimposing a second interface that is not displayed in full screen on the first interface, the second interface including summary information.

[0243] Exemplarily, the second interface includes a semi-modal page (also referred to as a "semi-modal window") or a floating window. In some possible embodiments, the application category of the first link includes a functional category, and step 218 specifically includes: in response to the user's operation on the first viewing prompt, displaying summary information based on the application category.

[0244] In some possible embodiments, the application category of the first link includes multiple function categories. Step 218 specifically includes: in response to the user's operation on the first viewing prompt, displaying summary information according to the application category and the function category.

[0245] In the embodiment of the present application, when displaying summary information, application categories and function categories are mainly used for typesetting to present a display format that is more in line with user demands.

[0246] 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.

[0247] Optionally, when the electronic device displays the summary information, it may also display keywords and / or tags in the third information indicating specific content displayed after the first link is opened.

[0248] For example, FIG11a is a diagram showing a chat page in an embodiment of the present invention. Another schematic diagram of the content of the password is shown in Figure 11a. Password, the phone recognizes that the chat page has been refreshed, The corresponding first viewing prompt is displayed on the right side of the password, such as the quick view button. After the user clicks the quick view button, a semi-modal window is displayed below the chat page. The semi-modal window displays The content of the command. Specifically, the display content of the semi-modal window includes: source, product summary (name, price, price trend, material, positive / negative review rate, monthly sales), a close window button, a swiping collection of product images, a "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.

[0249] For example, Figure 11b is another schematic diagram of displaying the content of a QR code and a picture in a chat page in an embodiment of the present invention. As shown in Figure 11b, a QR code and a picture are received in the chat page, and the mobile phone recognizes that the chat page has been refreshed, and displays a corresponding first viewing prompt, such as a quick view button, on the right side of the QR code and the picture. 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 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.

[0250] For example, Figure 12a is another schematic diagram of displaying the content of a text link in a reading article page in an embodiment of the present invention. As shown in Figure 12a, when the user is reading an article, the page slides up and down, and the mobile phone recognizes that the page is refreshed. The refreshed reading article page contains a text link, and the 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 / 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 12b is another schematic diagram of displaying the content of a link presented in the form of a picture on a reading article page in an embodiment of the present invention. As shown in Figure 12b, when the user is reading an article, the page slides up and down, and the mobile phone recognizes that the page has been refreshed. The refreshed reading article page contains a link presented in the form of a picture, and the 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 semi-modal window displays the content of the advertisement. Specifically, the display content of the semi-modal window includes: product source, name, price, monthly sales, event information, praise 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.

[0252] For example, Figure 12c is another schematic diagram of displaying the content of a QR code in a reading article page in an embodiment of the present invention. As shown in Figure 12c, when the user is reading an article, the page slides up and down, and the mobile phone recognizes that the page is refreshed. The refreshed reading article page contains a QR code, and the 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 semi-modal window displays the content of the QR code. Specifically, the display content of the semi-modal window includes: source, travel 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.

[0253] For example, Figure 13a is another schematic diagram of displaying the content of a URL link in a chat page in an embodiment of the present invention. As shown in Figure 13a, a URL link is received in a chat page, and the mobile phone recognizes that the chat page has been refreshed, and displays a corresponding first viewing prompt, such as a quick view button, 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 semi-modal window displays the content of the URL link. 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.

[0254] Step 220: Display an unsafe prompt for the first link. The process ends.

[0255] In this step, if the security check fails, an unsafe prompt of the first link is displayed. Step 220 can be executed by the first application of the electronic device, or by a system service or system application of the operating system of the electronic device.

[0256] In some possible embodiments, step 220 is performed by a first application of the electronic device. Step 220 specifically includes: displaying an unsafe prompt of the first link in the first interface.

[0257] In some possible embodiments, step 220 is performed by a first application, system service, or system application of the electronic device. Step 120 specifically includes: displaying a third interface that is not displayed in full screen on the first interface, the third interface including an unsafe prompt of the first link.

[0258] Exemplarily, the third interface includes a semi-modal page or a floating window, etc.

[0259] In some possible embodiments, step 220 specifically includes: displaying a second viewing prompt corresponding to the first link based on the first location information of the target content block; and displaying a third interface in response to the user's operation on the second viewing prompt, wherein the third interface includes an unsafe prompt of the first link.

[0260] In some possible embodiments, the electronic device displays an unsafe prompt for the first link in response to a user's operation on the second viewing prompt within a preset time. In response to the user's failure to operate on the second viewing prompt within the preset time, the electronic device stops displaying the second viewing prompt corresponding to the first link.

[0261] 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.

[0262] For example, FIG13b is another schematic diagram of an unsafe prompt for a URL link displayed on a chat page in an embodiment of the present invention. As shown in FIG13b , a URL link is received on a chat page, and the mobile phone recognizes that the chat page has been refreshed. Since the domain name of the URL link is not in the whitelist and has not passed the security check, a corresponding second viewing prompt, such as an unsafe link button, is displayed on the right side of the URL link. After the user clicks the unsafe link button, a semi-modal window is displayed at the bottom of the chat page. The display content of the semi-modal window includes: an unsafe prompt. For example, the unsafe prompt is a warning message, as shown in FIG13b , and the warning message is "Warning!!! This is an unsafe link. It is suspected of stealing personal information, fraud, etc. Please do not click it."

[0263] In the technical solution of the content display method provided by the embodiment of the present invention, only a content change event of the first interface is required to know which links in the first interface can be quickly viewed without the need for copying or other operations; 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 having to worry about which application to use to open it or find where the application is located, thereby improving convenience; based on the application category and function category of the link, different forms of content are displayed to meet personalized requirements; the embodiment of the present application performs a security check on the domain name of the link, and only continues to determine the application category and other information of the link when it is safe, thereby improving the security of accessing the link. In an unsafe situation, an unsafe prompt of the link is displayed to prevent the user from opening the link, thereby 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 and the user waiting time is short.

[0264] Based on the methods shown in Figures 5 and 10, an embodiment of the present invention provides another content display method. Figure 14 is a flow chart of another content display method provided by an embodiment of the present invention. As shown in Figure 14, the method includes:

[0265] Step 302: Display a first interface of a first application.

[0266] Exemplarily, the first interface includes a chat interface or an article reading interface.

[0267] Step 304: In response to the first event occurring on the first interface, obtain an application category corresponding to the first link of the target content block in the first interface, where the application category is used to indicate the category of a second application that opens the first link.

[0268] In some possible embodiments, the first event is a first user operation event; step 304 specifically includes: in response to the first event occurring on the first interface, obtaining a first content block in the content block of the first interface corresponding to the position of the first event; when the first content block contains a link, determining the first content block as a target content block; and obtaining an application category corresponding to the first link in the target content block.

[0269] Exemplarily, the first user operation event includes a user long-pressing operation on the first link or a user clicking an item in the menu of the first link. The first user operation event does not cause a content change event on the first interface. In an embodiment of the present application, a content change event on the first interface refers to an event in which the content to be displayed on the first interface changes, and the content change event on the first interface can trigger a refresh of the first interface.

[0270] In some possible embodiments, the first event is a content change event of the first interface; step 304 specifically includes: refreshing the first interface in response to the first event occurring on the first interface; obtaining a target content block that is newly added and contains a link in the refreshed first interface; and obtaining an application category corresponding to the first link in the target content block.

[0271] For example, the content change event can be triggered automatically by the system or by a user operation. In the embodiment 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 user sliding operation (such as an up or down operation) or a send operation on the first interface.

[0272] For example, 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 deem that a content change event of the chat interface has occurred.

[0273] For example, when a user edits text on a chat interface and then sends it, the electronic device will automatically deem that a content change event has occurred on the chat interface.

[0274] For example, the first interface is a reading interface. When the user slides the first interface, the page content of the first interface changes. The electronic device triggers a content change event of the reading interface in response to the user's sliding operation.

[0275] Exemplarily, the first interface includes at least one content block, wherein the content block containing a link in the first interface is a target content block.

[0276] 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.

[0277] Exemplarily, application categories include: social, short video, shopping, travel, video, music, radio, community, news, convenient life or browser.

[0278] Illustratively, the first application and the second application are different.

[0279] Exemplarily, the target content block includes the domain name of the first link.

[0280] Optionally, before step 304 , the process also includes: step 303 .

[0281] Step 303: Determine whether the whitelist includes the domain name of the first link. If so, execute step 3004; if not, execute step 310.

[0282] Step 306: Obtain third information based on the first link and the application category, where the third information includes summary information indicating specific content displayed after the first link is opened.

[0283] 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.

[0284] In some possible embodiments, as shown in FIG15 , step 306 specifically includes: step 3062 - step 3064 .

[0285] Step 3062: Obtain second information according to the first link, where the second information includes specific content displayed after the first link is opened.

[0286] In some possible embodiments, step 3062 specifically includes: creating a first virtual screen; opening the first link in the first virtual screen using the second application; and obtaining the second information from a page obtained after opening the first link. If the electronic device does not have the second application installed, the first link may also be opened using another application corresponding to the application category of the second application.

[0287] Step 3064: Obtain third information based on the second information and the application category.

[0288] Optionally, before step 3064, the following also includes: step 3063.

[0289] Step 3063: Obtain a function category according to the second information, where the function category is used to indicate the category of the function of the page corresponding to the first link in the second application.

[0290] For example, the application category is social, and the function category includes a chat window page, a personal business card, or a mini-program page; or

[0291] The app category is short video, and the functional category includes short video playback page or product details page; or

[0292] The app category is shopping, and the functional category includes product details page or store details page; or

[0293] The app category is Travel, and the function category includes Place Details Page or Route Details Page; or

[0294] The application category is video, and the function category includes video playback page; or

[0295] The app category is music, and the functional categories include music playback page or album details page; or

[0296] The application category is radio, and the function category includes radio playback page; or

[0297] The app category is community, and the functional categories include post details page, personal homepage, or product details page; or

[0298] The app category is News, and the functional category includes News Details Page or Video Playback Page; or

[0299] The app category is convenient life, and the functional category includes store details page or group purchase details page; or

[0300] The application category is the browser category, and the functional category includes the actual content page.

[0301] In some possible embodiments, step 3064 specifically includes: obtaining third information according to the second information, the application category, and the function category.

[0302] Step 308: Display summary information. The process ends.

[0303] In some possible embodiments, the first event is a content change event of the first interface. Before step 308, the method further includes: displaying a first viewing prompt corresponding to the first link according to the first location information of the target content block; and executing step 308 in response to the user's operation on the first viewing prompt.

[0304] In some possible embodiments, the first event is a content change event on the first interface. Prior to step 308, the process further includes: displaying a first viewing prompt corresponding to the first link based on the first location information of the target content block; executing step 308 in response to a user operating the first viewing prompt within a preset time; and ceasing to display the first viewing prompt corresponding to the first link in response to the user failing to operate the first viewing prompt within the preset time.

[0305] Step 308 may be executed by the first application of the electronic device, or may be executed by a system service or system application of the operating system of the electronic device.

[0306] In some possible embodiments, step 308 is performed by a first application of the electronic device. Step 308 specifically includes: displaying summary information in the first interface.

[0307] In some possible embodiments, step 308 is performed by a first application, a system service, or a system application of the electronic device. Step 308 includes: displaying a second interface that is not displayed in full screen on the first interface, where the second interface includes summary information. In this embodiment of the present application, summary information is displayed by displaying the second interface that is not displayed in full screen on the first interface.

[0308] Exemplarily, the second interface includes a semi-modal page or a floating window, etc.

[0309] Step 310: Display an unsafe prompt of the first link.

[0310] In this step, if the security check fails, an unsafe prompt of the first link is displayed. Step 310 can be executed by a first application of the electronic device, or by a system service or system application of the operating system of the electronic device.

[0311] In some possible embodiments, step 310 is performed by a first application of the electronic device. Step 310 specifically includes: displaying an unsafe prompt of the first link in the first interface.

[0312] In some possible embodiments, step 310 is performed by a first application, a system service, or a system application of the electronic device. Step 310 specifically includes: displaying a third interface that is not displayed in full screen on the first interface, the third interface including an unsafe prompt of the first link.

[0313] 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 an embodiment of the present invention, the method includes: displaying the first interface of the first application; in response to a first event occurring in the first interface, obtaining the application category corresponding to the first link of the target content block in the first interface, the application category being used to open the category of the second application of the first link; obtaining third information based on the first link and the application category, the third information including summary information indicating the specific content displayed after the first link is opened; displaying the summary information, the entire process of the electronic device displaying the linked content is convenient to operate, and the user's waiting time is short.

[0314] FIG16 is a schematic diagram of the structure 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, the steps are not described in detail here. The electronic device 400 includes: at least one processor 401 and at least one memory 402.

[0315] An embodiment of the present application provides an electronic device, which may be a terminal device or a circuit device built into the terminal device. The electronic device may be used to perform the functions / steps of the above method embodiment.

[0316] An embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal device, the terminal device executes the functions / steps in the above-mentioned method embodiment.

[0317] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer or at least one processor, enables the computer to execute the functions / steps in the above-mentioned method embodiment.

[0318] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects 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 can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0319] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0320] In the several embodiments provided in this 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 this application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of this application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.

[0321] The above description is merely a specific embodiment of the present application. Any person skilled in the art may easily conceive of variations or substitutions within the technical scope disclosed in this application, and such variations or substitutions shall be within the scope of protection of this application. The scope of protection of this application shall be subject to the scope of protection 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, wherein 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, wherein 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-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: Determining 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-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 a 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, wherein 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 a 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 new 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-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, wherein 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 purchase 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

Patent Citations

  • Content display method and electronic equipment

    CN120295698A

  • Method and device for providing target content based on hyperlink in instant communication message

    CN102098234A

  • Webpage content display method and apparatus

    CN108664303A

  • Display method and device, equipment and storage medium

    CN115729495A

  • Data updating method, apparatus, search server, terminal and storage medium

    US20210342406A1