WO2023083205A1 - 显示控制方法、装置、电子设备和存储介质 - Google Patents

显示控制方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2023083205A1
WO2023083205A1 PCT/CN2022/130811 CN2022130811W WO2023083205A1 WO 2023083205 A1 WO2023083205 A1 WO 2023083205A1 CN 2022130811 W CN2022130811 W CN 2022130811W WO 2023083205 A1 WO2023083205 A1 WO 2023083205A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
target
input box
controls
displayed
Prior art date
Application number
PCT/CN2022/130811
Other languages
English (en)
French (fr)
Inventor
余洁
王重
赵晨
张超
Original Assignee
北京字跳网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2023083205A1 publication Critical patent/WO2023083205A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a display control method, device, electronic equipment and storage medium.
  • the present disclosure provides a display control method, device, electronic equipment and storage medium.
  • the present disclosure adopts the following technical solutions.
  • the present disclosure provides a display control method, including:
  • the target control is used to execute the corresponding function after being triggered.
  • the present disclosure provides a display control device, including:
  • a control unit configured to determine a target control associated with a target trigger rule in response to at least one trigger rule being hit, wherein the target trigger rule is a hit trigger rule;
  • a display unit configured to display the target control in the input box of the conversation interface or in the associated area of the input box
  • the target control is used to execute the corresponding function after being triggered.
  • the present disclosure provides an electronic device comprising: at least one memory and at least one processor;
  • the memory is used to store program codes
  • the processor is used to call the program codes stored in the memory to execute the above method.
  • the present disclosure provides a computer-readable storage medium, the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to execute the above-mentioned method.
  • the present disclosure provides a display control method, including: in response to at least one trigger rule being hit, determining a target control associated with a target trigger rule, wherein the target trigger rule is a hit trigger rule;
  • the target control is displayed in an associated area of the input box or in an input box; wherein, the target control is used to execute a corresponding function after being triggered.
  • the displayed controls can be dynamically changed to meet the real-time needs of the user.
  • FIG. 1 is a flowchart of a display control method according to an embodiment of the present disclosure.
  • Fig. 2 is a schematic display diagram of a conversation interface according to an embodiment of the present disclosure.
  • Fig. 3 is a schematic display diagram of a conversation interface according to an embodiment of the present disclosure.
  • Fig. 4 is a schematic display diagram of a conversation interface according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the term “comprise” and its variations are open-ended, ie “including but not limited to”.
  • the term “based on” is “based at least in part on”.
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
  • the communication software When users communicate with other users on the conversation interface, the communication software sometimes provides a quick reply function to facilitate the user to quickly reply.
  • this method can only provide the quick reply function and cannot provide other functions such as page jumping and application opening.
  • the quick replies that can be triggered by the user are fixed, resulting in poor flexibility and poor user experience.
  • FIG. 1 is a flowchart of a display control method according to an embodiment of the present disclosure, including the following steps.
  • S11 In response to at least one trigger rule being hit, determine a target control associated with the target trigger rule.
  • the display control method proposed in the present disclosure is applied to communication software, such as instant messaging software, but is not limited thereto.
  • the trigger rule is the trigger rule of the control, that is, the trigger rule is associated with the control, and the target trigger rule is the hit trigger A rule, being hit means that the trigger rule is satisfied.
  • the trigger rule sets when the associated control can be displayed.
  • S12 Display the target control in the input box of the conversational interface or in the associated area of the input box.
  • the conversation interface can be a single chat or group chat interface with other users
  • the input box is an area for inputting information
  • the associated area of the input box can be the area above the input box.
  • the target control is used to execute the corresponding function after being triggered.
  • the target control can be displayed in the input box, or can be displayed in the associated area of the input box.
  • the controls displayed in the input box or the associated area of the input box are not completely fixed, and the trigger rules are set in advance for the controls that can be displayed in the input box or the associated area of the input box , when the trigger rule is satisfied, the target control is displayed in the input box or the associated area, so that the controls displayed in the input box or the associated area can change with the satisfied trigger conditions, so that the user's needs can be met in real time .
  • the trigger rules by setting the trigger rules, the controls displayed in the input box or the associated area are automatically and dynamically changed, rather than completely fixed, so that users can automatically experience the immediate need to use in the current scene in different scenarios. The entrance of the function, so that the displayed controls meet the needs of the user, and improve the user experience.
  • responding to at least one trigger rule being hit includes: hitting at least one trigger rule in response to received information; or hitting at least one trigger rule in response to a detected operation, or responding to The historical information of the associated user on the session interface hits at least one trigger rule.
  • the trigger rule may specify the received information, the user's operation, and the associated user's historical information.
  • the received information may be the information sent by the user who is having a conversation with the current user on the conversation interface
  • the detected operation may be the operation of the current user
  • the associated user of the interface may be the current user
  • the historical information may include Historical messages sent or received by the current user in the past and historical operations performed by the current user in the past.
  • Historical operations can be, for example, opened applications, visited pages, used documents, etc. Recommendations based on the user's historical operations
  • the displayed target control so that the displayed target control can match the user's action.
  • the target control includes at least one of the following: time zone information control, information reply control, page jump control, information forwarding control, target type information display control, and application control.
  • the target control in the present disclosure may also include other controls, and is not limited to these types of controls.
  • the time zone information control is used to display time zone information. For example, it can display the time zone where the user with the current user session is located. For example, the current user is having a session with the first user.
  • the triggering condition of the time zone information control is that two The parties are located in different countries and have different time zones. If the first user is located abroad, the trigger condition is met. At this time, the time zone information space can be displayed, and the time zone of the first user's location is displayed in the time zone information control.
  • the time of the current user and other users in the session can be displayed in the sent information at the same time.
  • the page jump control is pre-bound with a link, which points to a target page.
  • the target page can be an internal page or an external page. page, the target page can be opened by triggering the page jump space.
  • the trigger condition of the page jump control can be that the user has recently visited the target page or the chat content involves the target page.
  • the information forwarding control may be used to send information to a target object.
  • the target object may be a contact or a group. After the information forwarding control is triggered, the message in the conversation interface may be sent to the target object.
  • the target type information display control is used to display or send the target type information after being triggered.
  • the target type information can be local documents, online documents, folders, etc.
  • the trigger condition can be set to have a certain number of documents in the user's chat history
  • the target type information display control is associated with documents, and after the target type information display control is triggered, all documents are displayed.
  • the application control is used to open a specific application after being triggered.
  • the application can be an external application or an internal applet.
  • the trigger condition can be that a specific application is mentioned in the chat history. At this time, the application control of the specific application is displayed. Opens that specific app after the app control is triggered.
  • the triggering rule includes: at least one of the priority of the associated control, the appearance rule of the associated control, and the hiding rule of the associated control.
  • the priority is used to determine the display priority of the target control, because in some cases, more than one trigger condition of the target control may be met. At this time, multiple target controls need to be displayed, and the number of target controls may be too large. It cannot be fully displayed, so it is necessary to determine which target controls need to be displayed and the order of display.
  • it also includes: determining the display position of the target control in the input box or in the associated area according to the priority of the target control . For example, target controls are displayed from left to right in order of priority from high to low.
  • the appearance rule is used to determine when to display the control, and when the appearance rule of the target control is hit, the target control is displayed.
  • Hidden rules are used to determine when to hide the corresponding controls, because as the number of trigger rules hit by the user increases, the target controls that need to be displayed will inevitably gradually increase, but it is impossible to display all target controls, so the hidden rules are set, for example in A target control is hidden after a certain period of time after it is displayed, or a target control is hidden if it has not been used for a certain period of time. In this way, the problem of inconvenient use for users caused by too many target controls can be prevented.
  • a recommendation control is displayed in the input box or an associated area of the input box on the conversation interface, and the recommendation control is determined according to the behavior of the current user. In some embodiments, when no penalty rule is hit, a recommendation control will be displayed for the user. The recommendation control is determined according to the user's behavior. If a certain document is frequently consulted, the recommended control may be a control for opening the document.
  • target controls when at least two of the target controls are mutually exclusive, determine the controls that need to be displayed among the mutually exclusive target controls according to the controls currently displayed in the input box or in the associated area of the input box .
  • target controls may have a mutually exclusive relationship, that is, one target control cannot be displayed together with another target control.
  • the trigger rules of the mutually exclusive target controls are all hit, it can be determined according to the currently displayed control Which controls are displayed, for example, according to the type and function of the currently displayed control, controls that are similar in type or function to the currently displayed control can be displayed. For example, the reading control and the entertainment control can be set to be mutually exclusive.
  • trigger rules and controls associated with trigger rules can be customized.
  • the user with the target authority may be able to customize the trigger rules, as well as the controls and functions of the controls, or the user with the target authority may be able to grant other users the authority to customize the trigger rules and controls.
  • At least one general control is set in the input box of the conversation interface or in the associated area of the input box, and a registration interface of the general control is provided, and the registration interface is used to set at least one of the following items for the general control : life cycle, display content, trigger rules, content used to judge whether the trigger rule is hit, and the function executed after the trigger rule is hit; the target control is a general control.
  • a general control is set in the input box or associated area, and the target control is also one or more of the general controls.
  • the target control is specifically a general control for which trigger rules and execution functions have been set.
  • the general control is an open general control, and has a registration interface, and the general control can be customized through the registration interface, and its life cycle, display content, trigger rules and functions can be set, where the life cycle refers to the general control
  • the time period that can be displayed for example, it can be displayed during the opening of the session, or it can be displayed at some predetermined time.
  • the displayed content refers to one or a combination of text or symbols displayed in the general control, and is used to determine whether the trigger rule is hit.
  • Content refers to the content that the general control focuses on.
  • the trigger rule is that the chat record contains certain words, the content of concern is the chat record; if the trigger rule is that the user performs certain actions, the content of focus is the user's action.
  • the general controls can be customized as required. Since the general controls are pre-set and a unified interface is provided, there is no need to consider each Compatibility between controls avoids incompatibility problems caused by user-defined controls caused by different display or architecture.
  • the common controls are displayed in the display container of the input box of the conversation interface or the display container of the associated area of the input box, and the display container manages the priorities of the displayed common controls.
  • the common controls are displayed in the display container.
  • the display container can be, for example, an object of the view class or its subclasses.
  • the common controls in the display container have corresponding priorities, and the priority is used to determine the priority display.
  • the priority of the common controls is uniformly managed through the display container, so that it is not necessary to design the priority when customizing the common controls, but uniformly controls the common controls in the display container, reducing the code The coupling between them improves code reusability.
  • the user types include the first type of users and the second type of users belonging to the first type of users; among the first type of users, users with the first authority can set whether the second type of users can Customize trigger rules and controls associated with trigger rules.
  • the first type of users may be group users
  • the second type of users may be individual users in the group users
  • the first authority may be, for example, management authority.
  • the first type of users can control whether the target controls displayed by the second type of users are the same or different by setting whether the second type of users can customize the trigger rules and controls, so as to realize the rational management of permissions.
  • the fixed control in response to customizing at least one control as a fixed control; the fixed control is fixedly displayed in the input box of the conversation interface or in the associated area of the input box. In some embodiments, there may be a fixed control displayed in the input box or the associated area, and the fixed control is always displayed in the input box or the associated area.
  • the user can define the general control and define it as a fixed control, so that the user can be fixedly displayed. The most frequently used controls allow users to quickly jump or open files, and the display content and functions of fixed controls can also be customized.
  • n controls can be displayed in the input box or in the associated area. When the number of target controls exceeds n, n-1 target controls and extended controls are displayed in the input box or in the associated area. The extended controls are used in the After being triggered, the target control that is not displayed in the input box or associated area is displayed. In some embodiments, a maximum of 7 controls can be set to be displayed. If more than 7 controls need to be displayed, only 6 will be displayed, and the position of the 7th control will display an extended control. For example, the extended control can be "more" or "...
  • n is not less than 2, taking n as 5 as an example, you can refer to Figure 4, when the number of target controls to be displayed exceeds 5, the position of the fifth control displays an extended control" ## to show the rest of the undisplayed target controls after the extended control is triggered.
  • the target control has display content, and the display content includes at least one of text and icons.
  • triggering rules can be written into controls. If the user hits some triggering rules, the associated area above the input box will automatically and dynamically display the corresponding target controls, and uniformly stipulate the logical priority and priority of different controls. Appearance, exit rules. In some embodiments, when the user does not hit the trigger rule, the user will be given intelligently recommended controls. The administrator can configure whether the controls displayed in the input box or the associated area can be customized. If user customization is allowed, the user can also define controls by himself to jump to the user-defined path.
  • An embodiment of the present disclosure also proposes a display control device, including:
  • a control unit configured to determine a target control associated with a target trigger rule in response to at least one trigger rule being hit, wherein the target trigger rule is a hit trigger rule;
  • the display unit is used to display the target control in the input box of the conversation interface or in the associated area of the input box; wherein, the target control is used to execute the corresponding function after being triggered.
  • responding to at least one trigger rule being hit includes: hitting at least one trigger rule in response to received information; or hitting at least one trigger rule in response to a detected operation, or responding to a session interface
  • the historical information of the associated user hits at least one trigger rule.
  • the target control includes at least one of the following: time zone information control, information reply control, page jump control, information forwarding control, target type information display control, and application control.
  • the triggering rule includes: at least one of the priority of the associated control, the appearance rule of the associated control, and the hiding rule of the associated control.
  • control unit is further configured to determine the display position of the target control in the input box or in the associated area according to the priority of the target control.
  • the display unit is further configured to display a recommendation control in the input box or an associated area of the input box of the conversation interface if none of the trigger rules is hit, and the recommendation control is determined according to the behavior of the current user.
  • control unit is further configured to determine which of the mutually exclusive target controls needs to be displayed according to the controls displayed in the current input box or in the associated area of the input box when at least two of the target controls are mutually exclusive. controls.
  • trigger rules and controls associated with trigger rules can be customized.
  • At least one general control is set in the input box of the conversation interface or in the associated area of the input box, and a registration interface of the general control is provided, and the registration interface is used to set at least one of the following for the general control: life cycle, Display content, trigger rules, content for judging whether the trigger rule is hit, and the function to be executed after the trigger rule is hit; the target control is a general control.
  • the common controls are displayed in the display container of the input box of the conversation interface or the display container of the associated area of the input box, and the display container manages the priorities of the displayed common controls.
  • the user types include the first type of users and the second type of users belonging to the first type of users; users with the first authority in the first type of users can set whether the second type of users can customize trigger rules and controls associated with trigger rules.
  • the display unit is further configured to, in response to customizing at least one control as a fixed control; fixedly display the fixed control in the input box of the conversation interface or in the associated area of the input box.
  • n controls can be displayed in the input box or in the associated area.
  • n-1 target controls and extended controls are displayed in the input box or in the associated area.
  • the extended controls are used in After being triggered, the target control that is not displayed in the input box or associated area is displayed.
  • the target control has display content, and the display content includes at least one of text and icons.
  • the device since it basically corresponds to the embodiment of the method, for relevant parts, please refer to part of the description of the embodiment of the method.
  • the device embodiments described above are merely illustrative, and the modules described as separate modules may or may not be separate. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.
  • the present disclosure also provides an electronic device and a computer-readable storage medium, which will be described below.
  • FIG. 5 it shows a schematic structural diagram of an electronic device (such as a terminal device or a server) 800 suitable for implementing the embodiments of the present disclosure.
  • the terminal equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers and the like.
  • the electronic device shown in the figure is just an example, and should not limit the functions and application scope of the embodiments of the present disclosure.
  • the electronic device 800 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 801, which may be loaded into a random access memory (RAM) 803 according to a program stored in a read-only memory (ROM) 802 or loaded from a storage device 808 Various appropriate actions and processing are performed by the program. In the RAM 803, various programs and data necessary for the operation of the electronic device 800 are also stored.
  • the processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804.
  • An input/output (I/O) interface 805 is also connected to the bus 804 .
  • the following devices can be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 807 such as a computer; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809.
  • the communication means 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. While the electronic device 800 is shown with various means, it is to be understood that implementing or having all the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts.
  • the computer program may be downloaded and installed from a network via communication means 809, or from storage means 808, or from ROM 802.
  • the processing device 801 the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal in baseband or propagated as part of a carrier wave carrying computer-readable program code thereon. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and the server can communicate using any currently known or future network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium
  • HTTP HyperText Transfer Protocol
  • the communication eg, communication network
  • Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device is made to execute the above-mentioned method of the present disclosure.
  • Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs System on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • a display control method including:
  • the target control is used to execute the corresponding function after being triggered.
  • a display control method in response to at least one trigger rule being hit, including:
  • a display control method is provided, and the target control includes at least one of the following:
  • Time zone information control information reply control, page jump control, information forwarding control, target type information display control, application control.
  • a display control method includes: the priority of the associated control, the appearance rule of the associated control, and the hiding rule of the associated control at least one.
  • a display control method further comprising:
  • a display position of the target control in the input box or in the associated area is determined according to the priority of the target control.
  • a display control method is provided, if none of the trigger rules is hit, then display a recommendation control in the input box of the conversation interface or the associated area of the input box , the recommendation control is determined according to the behavior of the current user.
  • a display control method when at least two of the target controls are mutually exclusive, according to the currently displayed in the input box or in the associated area of the input box Controls, determine the controls that need to be displayed in the mutually exclusive target controls.
  • a display control method is provided, and the trigger rule and controls associated with the trigger rule can be customized.
  • a display control method wherein at least one common control is set in the input box of the conversation interface or in an associated area of the input box, and a registration interface of the common control is provided,
  • the registration interface is used to set at least one of the following items for the general control: life cycle, display content, trigger rules, content for judging whether a trigger rule is hit, and a function to be executed after the trigger rule is hit; the Target controls belong to the generic controls.
  • a display control method is provided, the general control is displayed in the display container of the input box of the conversation interface or the display container of the associated area of the input box, the display container Manages the priority of displayed common controls.
  • a display control method the user types include a first type of user and a second type of user belonging to the first type of user; the first type of user has the first authority The user can set whether the second type of user can customize the trigger rule and the controls associated with the trigger rule.
  • a display control method is provided, and the method further includes: responding to customizing at least one control as a fixed control; The fixed control is fixedly displayed in the associated area.
  • a display control method where n controls can be displayed in the input box or the associated area, and when the number of the target controls exceeds n, the n-1 target controls and extended controls are displayed in the input box or the associated area, and the extended controls are used to display target controls that are not displayed in the input box or the associated area after being triggered.
  • a display control method wherein the target control has display content, and the display content includes at least one of text and icons.
  • a display control device including:
  • a control unit configured to determine a target control associated with a target trigger rule in response to at least one trigger rule being hit, wherein the target trigger rule is a hit trigger rule;
  • a display unit configured to display the target control in the input box of the conversation interface or in the associated area of the input box
  • the target control is used to execute the corresponding function after being triggered.
  • an electronic device including: at least one memory and at least one processor;
  • the at least one memory is used for storing program codes
  • the at least one processor is used for invoking the program codes stored in the at least one memory to execute any one of the methods described above.
  • a computer-readable storage medium the computer-readable storage medium is used for storing program code, and when the program code is executed by a processor, the processor Execute the method above.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开提供本公开提供一种显示控制方法、装置、电子设备和存储介质。本公开提供一种显示控制方法,包括:响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件,其中,所述目标触发规则为被命中的触发规则;在会话界面的输入框中或输入框的关联区域中显示所述目标控件;其中,所述目标控件用于被触发后执行所对应的功能。本公开中可以使得所显示的控件动态变化,以适应用户实时的需求。

Description

显示控制方法、装置、电子设备和存储介质
相关申请的交叉引用
本申请基于申请号为202111333504.1、申请日为2021年11月11日,名称为“显示控制方法、装置、电子设备和存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,上述中国专利申请的公开内容全文以引入方式并入本文。
技术领域
本公开涉及计算机技术领域,尤其涉及一种显示控制方法、装置、电子设备和存储介质。
背景技术
用户在会话界面中进行会话,通过会话界面与其他用户发送消息、文件或链接等。
发明内容
本公开提供一种显示控制方法、装置、电子设备和存储介质。
本公开采用以下的技术方案。
在一些实施例中,本公开提供一种显示控制方法,包括:
响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件,其中,所述目标触发规则为被命中的触发规则;
在会话界面的输入框中或输入框的关联区域中显示所述目标控件;
其中,所述目标控件用于被触发后执行所对应的功能。
在一些实施例中,本公开提供一种显示控制装置,包括:
控制单元,用于响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件,其中,所述目标触发规则为被命中的触发规则;
显示单元,用于在会话界面的输入框中或输入框的关联区域中显示所述目标控件;
其中,所述目标控件用于被触发后执行所对应的功能。
在一些实施例中,本公开提供一种电子设备,包括:至少一个存储器和至少一个处理器;
其中,存储器用于存储程序代码,处理器用于调用所述存储器所存储的程序代码执行上述的方法。
在一些实施例中,本公开提供一种计算机可读存储介质,所述计算机可读存储介质用于存储程序代码,所述程序代码在被处理器运行时,促使所述处理器执行上述方法。
本公开提供一种显示控制方法,包括:响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件,其中,所述目标触发规则为被命中的触发规则;在会话界面的输入框中或输入框的关 联区域中显示所述目标控件;其中,所述目标控件用于被触发后执行所对应的功能。本公开中可以使得所显示的控件动态变化,以适应用户实时的需求。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,元件和元素不一定按照比例绘制。
图1是本公开实施例的显示控制方法的流程图。
图2是本公开实施例的一种会话界面的显示示意图。
图3是本公开实施例的一种会话界面的显示示意图。
图4是本公开实施例的一种会话界面的显示示意图。
图5是本公开实施例的电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
以下将结合附图,对本公开实施例提供的方案进行详细描述。
用户在会话界面与其他用户进行会话,通信软件有时会提供快捷回复功能,以方便用户快捷回复,然而,这种方式只能提供快捷回复功能,无法提供其他例如页面跳转、应用打开等功能。并且,用户所能够触发的快捷回复是固定的,灵活性差,用户体验差。
如图1所示,图1是本公开实施例的显示控制方法的流程图,包括如下步骤。
S11:响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件。
一些实施例中,本公开提出的显示控制方法应用于通信软件,例如即时通信软件,但不限于此,触发规则是控件的触发规则,即触发规则关联有控件,目标触发规则为被命中的触发规则,被命中也就是触发规则被满足,一些实施例中,触发规则中设定了其关联的控件何时能够进行显示。
S12:在会话界面的输入框中或输入框的关联区域中显示目标控件。
一些实施例中,请参考图2和图3,会话界面可以是与其他用户的单聊或群聊界面,输入框是用于输入信息的区域,输入框的关联区域可以是输入框上方区域。目标控件用于被触发后执行所对应的功能。可以在输入框中显示目标控件,也可以在输入框的关联区域中显示目标控件。
在本公开的一些实施例中,输入框或输入框的关联区域中所显示的控件并不是完全固定不变的,预先为能够显示在输入框或输入框的关联区域中的控件设置了触发规则,在满足触发规则的情况下,则在输入框或关联区域显示目标控件,这样输入框或关联区域所显示的控件是可以随满足的触发条件的变化而变化的,从而可以实时满足用户的需求。本公开实施例中,通过设置触发规则,使得输入框或关联区域所显示的控件自动动态变化,而不是完全固定不变的,从而使得用户在不同场景下可以自动体验到当前场景下立即需要使用的功能的入口,从而使得所显示的控件满足用户的需求,提高了用户的使用体验。
在本公开的一些实施例中,响应于至少一个触发规则被命中,包括:响应于接收到的信息命中至少一个触发规则;或者,响应于所检测到的操作命中至少一个触发规则,或者,响应于会话界面的关联用户的历史信息命中至少一个触发规则。
一些实施例中,触发规则可以规定接收到的信息、可以规定用户的操作,可以规定关联用户的历史信息。其中接收到的信息可以是与当前用户在会话界面进行会话的用户发来的信息,所检测到的操作可以是当前用户的操作,会将界面的关联用户可以是当前用户,历史信息可以是包括当前用户以往所发送或接收到的历史消息以及当前用户以往所进行过的历史操作,历史操作例如可以是打开过的应用,访问过的页面,使用过的文档等,根据用户的历史操作推荐需要显示的目标控件,从而使得所显示的目标控件能够与用户的操作相匹配。
在本公开一些实施例中,目标控件包括如下的至少一种:时区信息控件、信息回复控件、页面跳转控件、信息转发控件、目标类型信息展示控件、应用控件。当然,本公开中目标控件还可以包括其他控件,并不局限于这几种类型的控件。
一些实施例中,时区信息控件用于显示时区信息,例如可以显示与当前用户会话的用户所在位置的时区,例如当前用户与第一用户在进行会话,时区信息控件的触发条件为进行会话的两方位于不同的国家且时区不同,第一用户位于国外,则满足触发条件,此时可以显示时区信息空间,在时区信息控件中显示第一用户所在位置的时区,一些实施例中,在触发了时区信息控件后,可以在发送的信息中同时显示当前用户以及进行会话的其他用户的时间,页面跳转控件预先绑定有链接,其指向一个目标页面,目标页面可以是内部页面也可以是外部页面,可以通过触发页面跳转空间打开目标页面,一些实施例中,页面跳转控件的触发条件可以是用户近期访问了目标页面或者聊天内容中涉及到了目标页面。信息转发控件可以是用于将信息发送到目标对象,目标对象可以是联系人或群组,在信息转发控件被触发后,可以将会话界面中的消息发送到目标对象。目标类型信息展示控件,用于被触发后展 示或发送目标类型信息,目标类型信息可以是本地文档、在线文档、文件夹等,例如可以设置触发条件为用户的聊天记录中具有一定数量的文档,目标类型信息展示控件与文档关联,在该目标类型信息展示控件被触发后,展示所有文档。应用控件用于被触发后打开特定的应用,该应用可以是外部应用也可以是内部的小程序,例如触发条件可以是聊天记录中谈论到特定应用,此时显示该特定应用的应用控件,在应用控件被触发后打开该特定应用。
在本公开的一些实施例中,触发规则包括:所关联的控件的优先级、所关联的控件的出现规则和所关联的控件的隐藏规则中的至少一项。一些实施例中,优先级用于确定目标控件的显示优先程度,因为一些情况下可能不止满足一个目标控件的触发条件,此时需要显示多个目标控件,而且目标控件的个数可能过多,无法完全显示,因此需要确定哪一些目标控件需要进行显示,以及显示的先后顺序,一些实施例中,还包括:根据目标控件的优先级,确定目标控件在输入框中或关联区域中的显示位置。例如按照优先级从高到低的顺序,从左到右显示目标控件。出现规则用于确定何时显示控件,在目标控件的出现规则被命中时,显示目标控件。隐藏规则用于确定何时隐藏对应的控件,因为随着用户命中的触发规则的增加,必然会逐步增加需要显示的目标控件,但不可能显示所有的目标控件,因此设置了隐藏规则,例如在一个目标控件显示后达到一定时间就进行隐藏,或者一个目标控件连续一定时长没有被使用就隐藏。这样能够防止目标控件过多导致的用户使用不便的问题。
在本公开的一些实施例中,若触发规则均未被命中,则在会话界面的输入框或输入框的关联区域中显示推荐控件,推荐控件根据当前用户的行为确定。一些实施例中,在没有处罚规则被命中的情况下,会为用户显示推荐控件,推荐控件根据用户的行为确定,例如用户经常浏览某一个网页,则推荐控件可以是打开该网页的控件,用户经常查阅某一个文档,则推荐控件可以是打开该文档的控件。
一些实施例中,当所述目标控件中的至少两个互斥时,根据当前所述输入框中或输入框的关联区域中所显示的控件,确定互斥的目标控件中需要进行显示的控件。一些实施例中,目标控件可能存在互斥关系,即一个目标控件不能与另一个目标控件显示在一起,此时如果互斥的目标控件的触发规则均被命中,可以根据当前所显示的控件确定显示哪些控件,例如可以根据当前所显示的控件类型、作用,显示与当前所显示的控件类型相近或作用相似的控件。例如,可以设置阅读控件和娱乐控件互斥,如果当前命中了这两个控件的触发规则,而当前所显示的是笔记控件,则确定需要显示的是阅读控件,而不显示娱乐控件。在本公开的一些实施例中,触发规则以及触发规则关联的控件能够被自定义。一些实施例中,可以是具有目标权限的用户能够自定义触发规则,以及自定义控件和控件的功能,也可以是具有目标权限的用户能够为其他用户赋予自定义触发规则以及控件的权限。
在本公开的一些实施例中,会话界面的输入框中或输入框的关联区域中设置至少一个通用控件,并提供通用控件的注册接口,注册接口用于为通用控件设定如下的至少一项:生命周期、显示内容、触发规则、用于判断是否命中触发规则的内容、触发规则被命中后所执行的功能;目标控件属于通用控件。
在一些实施例中,输入框或关联区域中设置通用控件,目标控件也是通用控件中的一个或多个,一些实施例中,目标控件具体是已经设定了触发规则和执行的功能的通用控件,一些实施例中,通用控件为开放的通用控件,并具有注册接口,可以通过注册接口对通用控件进行自定义,设置其生命周 期、显示内容、触发规则以及功能,其中生命周期是指通用控件所能够进行显示的时间段,例如在会话打开期间能够显示,或者某些预定时间可以进行显示,显示内容是指通用控件中显示的文字或者符号的一个或组合,用于判断是否命中触发规则的内容是指通用控件所关注的内容,例如如果触发规则为聊天记录中包括某些词语,则所关注的内容为聊天记录,如果触发规则为用户执行了某些动作,则关注的内容为用户的动作。本公开一些实施例中通过在输入框或关联区域设置通用控件,并提供注册接口,这样可以根据需要对通用控件进行自定义,由于预先设置了通用控件,并提供统一的接口,因此无需考虑各个控件之间的兼容性,避免了用户自定义控件导致的显示或架构不同导致的不兼容问题。
在本公开的一些实施例中,通用控件显示在会话界面的输入框的显示容器或输入框的关联区域的显示容器中,显示容器对所显示的通用控件的优先级进行管理。在一些实施例中,通用控件显示在显示容器中,显示容器例如可以是view类或其子类的对象,对于显示容器中的通用控件,其具有对应的优先级,优先级用于确定优先展示的通用控件,一些实施例中,通过显示容器对通用控件的优先级进行统一管理,这样无需在对通用控件进行自定义时进行优先级设计,而是统一在显示容器中进行控制,减少了代码之间的耦合,提高了代码复用性。
在本公开的一些实施例中,用户类型包括第一类用户和归属于第一类用户的第二类用户;第一类用户中具有第一权限的用户,能够设定第二类用户能否自定义触发规则以及触发规则关联的控件。
一些实施例中,第一类用户可以是集团用户,第二类用户可以是集团用户中的个人用户,第一权限例如可以是管理权限。这样第一类用户可以通过设置第二类用户能否对触发规则和控件进行自定义的方式,控制第二类用户所显示的目标控件是否相同或不同,实现权限的合理化管理。
一些实施例中,响应于将至少一个控件自定义为固定控件;在会话界面的输入框中或输入框的关联区域中固定显示固定控件。一些实施例中,输入框或关联区域中可以具有固定显示的固定控件,固定控件始终显示在输入框或关联区域,用户可以对通用控件进行定义,将其定义为固定控件,这样可以固定显示用户使用频率最高的几个控件,从而方便用户快速跳转或打开文件,固定控件的显示内容、功能也可以进行自定义。
一些实施例中农,输入框中或关联区域能够显示n个控件,当目标控件的个数超过n时,在输入框中或关联区域显示n-1个目标控件以及扩展控件,扩展控件用于在被触发后显示未显示在输入框或关联区域的目标控件。一些实施例中,可以设置最多展示7个控件,如果需要显示的控件超过7个,则只显示6个,第7个控件的位置显示扩展控件,扩展控件例如可以为“更多”或者“…”,当触发,一些实施例中,n不小于2,以n为5为例,可以参考图4,当需要显示的目标控件的个数超过5,则第5个控件的位置显示扩展控件“...”,在扩展控件被触发后显示其余未显示的目标控件。
在本公开的一些实施例中,可以参考图4,目标控件中具有显示内容,显示内容包括文字和图标中的至少一个。
本公开的一些实施例中可以将触发规则写入控件,用户如果命中一些触发规则,输入框上方的关联区域则会自动动态变化地展示相应的目标控件,统一规定不同控件出现的逻辑优先级和出现、退出规则。一些实施例中,在用户没有命中触发规则的时候,会给到用户智能推荐的控件。管理员可以配 置输入框或关联区域的所显示的控件是否可以自定义,允许用户自定义的情况下,用户也可以自己定义控件,用于跳转到用户自定义的路径。
本公开实施例中还提出一种显示控制装置,包括:
控制单元,用于响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件,其中,目标触发规则为被命中的触发规则;
显示单元,用于在会话界面的输入框中或输入框的关联区域中显示目标控件;其中,目标控件用于被触发后执行所对应的功能。
一些实施例中,响应于至少一个触发规则被命中,包括:响应于接收到的信息命中至少一个触发规则;或者,响应于所检测到的操作命中至少一个触发规则的,或者,响应于会话界面的关联用户的历史信息命中至少一个触发规则。
一些实施例中,目标控件包括如下的至少一种:时区信息控件、信息回复控件、页面跳转控件、信息转发控件、目标类型信息展示控件、应用控件。
一些实施例中,触发规则包括:所关联的控件的优先级、所关联的控件的出现规则和所关联的控件的隐藏规则中的至少一项。
一些实施例中,控制单元还用于根据目标控件的优先级,确定目标控件在输入框中或关联区域中的显示位置。
一些实施例中,显示单元还用于若触发规则均未被命中,则在会话界面的输入框或输入框的关联区域中显示推荐控件,推荐控件根据当前用户的行为确定。
一些实施例中,控制单元还用于当目标控件中的至少两个互斥时,根据当前输入框中或输入框的关联区域中所显示的控件,确定互斥的目标控件中需要进行显示的控件。
一些实施例中,触发规则以及触发规则关联的控件能够被自定义。
一些实施例中,会话界面的输入框中或输入框的关联区域中设置至少一个通用控件,并提供通用控件的注册接口,注册接口用于为通用控件设定如下的至少一项:生命周期、显示内容、触发规则、用于判断是否命中触发规则的内容、触发规则被命中后所执行的功能;目标控件属于通用控件。
一些实施例中,通用控件显示在会话界面的输入框的显示容器或输入框的关联区域的显示容器中,显示容器对所显示的通用控件的优先级进行管理。
一些实施例中,用户类型包括第一类用户和归属于第一类用户的第二类用户;第一类用户中具有第一权限的用户,能够设定第二类用户能否自定义触发规则以及触发规则关联的控件。
一些实施例中,显示单元还用于响应于将至少一个控件自定义为固定控件;在会话界面的输入框中或输入框的关联区域中固定显示固定控件。
一些实施例中,输入框中或关联区域能够显示n个控件,当目标控件的个数超过n时,在输入框中或关联区域显示n-1个目标控件以及扩展控件,扩展控件用于在被触发后显示未显示在输入框或关联区域的目标控件。
一些实施例中,目标控件中具有显示内容,显示内容包括文字和图标中的至少一个。
对于装置的实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离模块说明的模块可以是或者也可以不是分开的。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上,基于实施例和应用例说明了本公开的方法及装置。此外,本公开还提供一种电子设备及计算机克顿存储介质,以下说明这些电子设备和计算机可读存储介质。
下面参考图5,其示出了适于用来实现本公开实施例的电子设备(例如终端设备或服务器)800的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图中示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图中示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质 可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述的本公开的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,提供了一种显示控制方法,包括:
响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件,其中,所述目标触发规则为被命中的触发规则;
在会话界面的输入框中或输入框的关联区域中显示所述目标控件;
其中,所述目标控件用于被触发后执行所对应的功能。
根据本公开的一个或多个实施例,提供了一种显示控制方法,响应于至少一个触发规则被命中,包括:
响应于接收到的信息命中至少一个所述触发规则;或者,
响应于所检测到的操作命中至少一个所述触发规则;或者,
响应于所述会话界面的关联用户的历史信息命中至少一个所述触发规则。
根据本公开的一个或多个实施例,提供了一种显示控制方法,所述目标控件包括如下的至少一种:
时区信息控件、信息回复控件、页面跳转控件、信息转发控件、目标类型信息展示控件、应用控件。
根据本公开的一个或多个实施例,提供了一种显示控制方法,所述触发规则包括:所关联的控件的优先级、所关联的控件的出现规则和所关联的控件的隐藏规则中的至少一项。
根据本公开的一个或多个实施例,提供了一种显示控制方法,还包括:
根据所述目标控件的优先级,确定所述目标控件在所述输入框中或所述关联区域中的显示位置。
根据本公开的一个或多个实施例,提供了一种显示控制方法,若所述触发规则均未被命中,则在所述会话界面的输入框或所述输入框的关联区域中显示推荐控件,所述推荐控件根据当前用户的行为确定。
根据本公开的一个或多个实施例,提供了一种显示控制方法,当所述目标控件中的至少两个互斥时,根据当前所述输入框中或输入框的关联区域中所显示的控件,确定互斥的目标控件中需要进行显示的控件。
根据本公开的一个或多个实施例,提供了一种显示控制方法,所述触发规则以及所述触发规则关联的控件能够被自定义。
根据本公开的一个或多个实施例,提供了一种显示控制方法,所述会话界面的输入框中或输入框的关联区域中设置至少一个通用控件,并提供所述通用控件的注册接口,所述注册接口用于为所述 通用控件设定如下的至少一项:生命周期、显示内容、触发规则、用于判断是否命中触发规则的内容、触发规则被命中后所执行的功能;所述目标控件属于所述通用控件。
根据本公开的一个或多个实施例,提供了一种显示控制方法,所述通用控件显示在所述会话界面的输入框的显示容器或输入框的关联区域的显示容器中,所述显示容器对所显示的通用控件的优先级进行管理。
根据本公开的一个或多个实施例,提供了一种显示控制方法,用户类型包括第一类用户和归属于第一类用户的第二类用户;所述第一类用户中具有第一权限的用户,能够设定第二类用户能否自定义所述触发规则以及所述触发规则关联的控件。
根据本公开的一个或多个实施例,提供了一种显示控制方法,所述方法还包括:响应于将至少一个控件自定义为固定控件;在所述会话界面的输入框中或输入框的关联区域中固定显示所述固定控件。
根据本公开的一个或多个实施例,提供了一种显示控制方法,所述输入框中或所述关联区域能够显示n个控件,当所述目标控件的个数超过n时,在所述输入框中或所述关联区域显示n-1个目标控件以及扩展控件,所述扩展控件用于在被触发后显示未显示在所述输入框或所述关联区域的目标控件。
根据本公开的一个或多个实施例,提供了一种显示控制方法,所述目标控件中具有显示内容,所述显示内容包括文字和图标中的至少一个。
根据本公开的一个或多个实施例,提供了一种显示控制装置,包括:
控制单元,用于响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件,其中,所述目标触发规则为被命中的触发规则;
显示单元,用于在会话界面的输入框中或输入框的关联区域中显示所述目标控件;
其中,所述目标控件用于被触发后执行所对应的功能。
根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个存储器和至少一个处理器;
其中,所述至少一个存储器用于存储程序代码,所述至少一个处理器用于调用所述至少一个存储器所存储的程序代码执行上述中任一项所述的方法。
根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储程序代码,所述程序代码在被处理器运行时,促使所述处理器执行上述方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的 上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (17)

  1. 一种显示控制方法,其特征在于,包括:
    响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件,其中,所述目标触发规则为被命中的触发规则;
    在会话界面的输入框中或输入框的关联区域中显示所述目标控件;
    其中,所述目标控件用于被触发后执行所对应的功能。
  2. 根据权利要求1所述的方法,其特征在于,所述响应于至少一个触发规则被命中,包括:
    响应于接收到的信息命中至少一个所述触发规则;或者,
    响应于所检测到的操作命中至少一个所述触发规则;或者,
    响应于所述会话界面的关联用户的历史信息命中至少一个所述触发规则。
  3. 根据权利要求1所述的方法,其特征在于,所述目标控件包括如下的至少一种:
    时区信息控件、信息回复控件、页面跳转控件、信息转发控件、目标类型信息展示控件、应用控件。
  4. 根据权利要求1所述的方法,其特征在于,
    所述触发规则包括:所关联的控件的优先级、所关联的控件的出现规则和所关联的控件的隐藏规则中的至少一项。
  5. 根据权利要求4所述的方法,其特征在于,还包括:
    根据所述目标控件的优先级,确定所述目标控件在所述输入框中或所述关联区域中的显示位置。
  6. 根据权利要求1所述的方法,其特征在于,若所述触发规则均未被命中,则在所述会话界面的输入框或所述输入框的关联区域中显示推荐控件,所述推荐控件根据当前用户的行为确定。
  7. 根据权利要求1所述的方法,其特征在于,
    当所述目标控件中的至少两个互斥时,根据当前所述输入框中或输入框的关联区域中所显示的控件,确定互斥的目标控件中需要进行显示的控件。
  8. 根据权利要求1所述的方法,其特征在于,
    所述触发规则以及所述触发规则关联的控件能够被自定义。
  9. 根据权利要求8所述的方法,其特征在于,
    所述会话界面的输入框中或输入框的关联区域中设置至少一个通用控件,并提供所述通用控件的注册接口,所述注册接口用于为所述通用控件设定如下的至少一项:生命周期、显示内容、触发规则、用于判断是否命中触发规则的内容、触发规则被命中后所执行的功能;
    所述目标控件属于所述通用控件。
  10. 根据权利要求9所述的方法,其特征在于,
    所述通用控件显示在所述会话界面的输入框的显示容器或输入框的关联区域的显示容器中,所述显示容器对所显示的通用控件的优先级进行管理。
  11. 根据权利要求8所述的方法,其特征在于,
    用户类型包括第一类用户和归属于第一类用户的第二类用户;
    所述第一类用户中具有第一权限的用户,能够设定所述第二类用户能否自定义所述触发规则以及所述触发规则关联的控件。
  12. 根据权利要求1所述的方法,其特征在于,所述方法还包括:响应于将至少一个控件自定义为固定控件;
    在所述会话界面的输入框中或输入框的关联区域中固定显示所述固定控件。
  13. 根据权利要求1所述的方法,其特征在于,
    所述输入框中或所述关联区域能够显示n个控件,当所述目标控件的个数超过n时,在所述输入框中或所述关联区域显示n-1个目标控件以及扩展控件,所述扩展控件用于在被触发后显示未显示在所述输入框或所述关联区域的目标控件。
  14. 根据权利要求1所述的方法,其特征在于,
    所述目标控件中具有显示内容,所述显示内容包括文字和图标中的至少一个。
  15. 一种显示控制装置,其特征在于,包括:
    控制单元,用于响应于至少一个触发规则被命中,确定目标触发规则所关联的目标控件,其中,所述目标触发规则为被命中的触发规则;
    显示单元,用于在会话界面的输入框中或输入框的关联区域中显示所述目标控件;
    其中,所述目标控件用于被触发后执行所对应的功能。
  16. 一种电子设备,包括:
    至少一个存储器和至少一个处理器;
    其中,所述至少一个存储器用于存储程序代码,所述至少一个处理器用于调用所述至少一个存储器所存储的程序代码执行权利要求1至14中任一项所述的方法。
  17. 一种计算机可读存储介质,所述计算机可读存储介质用于存储程序代码,所述程序代码在被处理器运行时,促使所述处理器执行权利要求1至14中任一项所述的方法。
PCT/CN2022/130811 2021-11-11 2022-11-09 显示控制方法、装置、电子设备和存储介质 WO2023083205A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111333504.1A CN114035716A (zh) 2021-11-11 2021-11-11 显示控制方法、装置、电子设备和存储介质
CN202111333504.1 2021-11-11

Publications (1)

Publication Number Publication Date
WO2023083205A1 true WO2023083205A1 (zh) 2023-05-19

Family

ID=80137401

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/130811 WO2023083205A1 (zh) 2021-11-11 2022-11-09 显示控制方法、装置、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN114035716A (zh)
WO (1) WO2023083205A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860371B (zh) * 2022-05-25 2024-04-23 北京字跳网络技术有限公司 时区信息处理方法、装置、电子设备及存储介质
CN116679856B (zh) * 2023-05-18 2023-11-28 珠海银弹谷网络有限公司 可视化的应用界面构建方法、装置、设备、存储介质
CN117608446A (zh) * 2023-12-06 2024-02-27 小红书科技有限公司 信息输入方法、装置、计算机设备及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634688A (zh) * 2018-12-19 2019-04-16 北京达佳互联信息技术有限公司 会话界面的显示方法、装置、终端及存储介质
CN113542902A (zh) * 2021-07-13 2021-10-22 北京字跳网络技术有限公司 一种视频处理方法、装置、电子设备和存储介质

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610856B (zh) * 2016-12-22 2020-05-15 金蝶软件(中国)有限公司 一种页面控件设置方法及装置
CN108958805A (zh) * 2017-05-26 2018-12-07 腾讯科技(深圳)有限公司 菜单显示方法及装置
CN107132975A (zh) * 2017-05-26 2017-09-05 努比亚技术有限公司 一种控件编辑处理方法、移动终端以及计算机可读存储介质
CN109753326B (zh) * 2017-11-06 2023-04-07 斑马智行网络(香港)有限公司 处理方法、装置、设备和机器可读介质
CN110134452B (zh) * 2018-02-09 2022-10-25 阿里巴巴集团控股有限公司 对象处理方法及装置
CN112817684B (zh) * 2018-06-08 2023-05-02 Oppo广东移动通信有限公司 用户界面显示方法、装置、终端及存储介质
CN111158547B (zh) * 2019-12-30 2021-04-20 Oppo广东移动通信有限公司 信息处理方法及相关设备
CN113127116A (zh) * 2020-01-15 2021-07-16 腾讯科技(深圳)有限公司 会话消息显示方法及相关设备

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634688A (zh) * 2018-12-19 2019-04-16 北京达佳互联信息技术有限公司 会话界面的显示方法、装置、终端及存储介质
CN113542902A (zh) * 2021-07-13 2021-10-22 北京字跳网络技术有限公司 一种视频处理方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN114035716A (zh) 2022-02-11

Similar Documents

Publication Publication Date Title
WO2020238698A1 (zh) 一种未读消息提醒方法、装置、终端设备及存储介质
WO2023083205A1 (zh) 显示控制方法、装置、电子设备和存储介质
CN109725975B (zh) 消息被读状态的提示方法、装置和电子设备
WO2021057595A1 (zh) 信息推送方法、装置、电子设备和计算机可读介质
WO2022268177A1 (zh) 信息显示方法、装置和电子设备
CN113760145B (zh) 一种互动方法、装置、电子设备及存储介质
CN110851863B (zh) 应用程序的权限控制方法、装置以及电子设备
CN109873757A (zh) 用于多人会话的消息显示方法、电子设备和可读介质
WO2020211745A1 (zh) 在线文档的通知方法、装置、终端、服务器及存储介质
JP7480344B2 (ja) 情報表示方法、装置及び電子機器
US11303596B2 (en) Method and a device for processing information
CN110658961B (zh) 信息显示方法、装置和电子设备
WO2022268159A1 (zh) 信息显示方法、装置和电子设备
WO2020135188A1 (zh) 消息读取状态的提示方法、装置和电子设备
EP4439287A1 (en) Prompt method and apparatus based on document sharing, device, and medium
CN110658960A (zh) 消息处理方法、装置和电子设备
WO2020135431A1 (zh) 消息加急提醒方法、装置和电子设备
CN111580922A (zh) 应用程序的互动消息展示方法、装置及可读存储介质
US20240291683A1 (en) Information interaction method and apparatus, and electronic device
CN111290819A (zh) 显示操作提示的方法、装置和电子设备
WO2020244564A1 (zh) 一种提及人组合显示方法、装置、终端设备及存储介质
CN115987934A (zh) 信息处理方法、装置和电子设备
WO2024199286A1 (zh) 信息处理方法及装置
CN110190975B (zh) 一种提及人推荐方法、装置、终端设备及存储介质
CN114422482B (zh) 消息的发送方法、装置、电子设备和存储介质

Legal Events

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

Ref document number: 22891999

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18705456

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE