CN109739415B - Session switching method and device - Google Patents

Session switching method and device Download PDF

Info

Publication number
CN109739415B
CN109739415B CN201910092238.4A CN201910092238A CN109739415B CN 109739415 B CN109739415 B CN 109739415B CN 201910092238 A CN201910092238 A CN 201910092238A CN 109739415 B CN109739415 B CN 109739415B
Authority
CN
China
Prior art keywords
session
unread
read
target
sessions
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910092238.4A
Other languages
Chinese (zh)
Other versions
CN109739415A (en
Inventor
刘硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910092238.4A priority Critical patent/CN109739415B/en
Publication of CN109739415A publication Critical patent/CN109739415A/en
Application granted granted Critical
Publication of CN109739415B publication Critical patent/CN109739415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a session switching method and a session switching device, wherein the method comprises the following steps: when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not; if the preset switching action occurs, selecting a target session from unread sessions to be read; and switching to the target session from the currently displayed session, and displaying the target session. According to the technical scheme, the currently displayed conversation can be switched to the unread conversation only through one preset switching action, compared with the related art, the operation steps are simplified, and the time required by the operation process is saved.

Description

Session switching method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a session switching method and apparatus.
Background
With the development of science and technology, people communicate more and more, and besides daily telephone calls and short messages, the communication system also has various instant messaging tools. At present, both short messages and sessions in instant messaging tools are arranged in a list and according to the received time sequence. Generally, when the list of sessions is displayed on the terminal device, the sessions are arranged in time order from the top to the bottom of the terminal device. That is, the top session of the terminal device display interface is the newest, the second session in the sequence is the next newest, and so on. When the terminal device receives a new session, the received new session is inserted into the list and displayed as the first session at the top of the list, and the other sessions are moved down in sequence.
When the terminal device receives a plurality of sessions and is not reading, the unread sessions are marked so as to make the user know that the unread sessions exist in the session list. When the user clicks into an unread session, the tag for the session disappears, indicating that the session is in a read state. When the user wants to read other unread sessions, the user needs to quit from the current session, fall back to the interface of the session list, select other unread sessions from the session list, and click to enter the selected unread sessions. That is, when entering another unread session from the current session, the current session needs to be exited, returned to the session list, and then selected from the session list to enter the unread session. Thus, at least two operations are required each time to enter another unread session from the current session, which is cumbersome and time-consuming for the user. Especially, when there are many unread sessions in the session list, more operation steps are required and more time is spent to completely read all the unread sessions.
Disclosure of Invention
In order to overcome the problems in the related art, the present application provides a session switching method and device, which are used for solving the problems of complicated operation steps and long time consumption when switching from a session to an unread session.
According to a first aspect of an embodiment of the present application, a session handover method is provided, including:
when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not;
if the preset switching action occurs, selecting a target session from the unread sessions to be read;
and switching to the target session from the currently displayed session, and displaying the target session.
Optionally, the step of selecting a target session from the unread sessions to be read includes:
determining a session which occurs at the time nearest to the current time from the unread sessions to be read, and taking the determined session as a target session; alternatively, the first and second electrodes may be,
and determining the occurrence time of the currently displayed session, determining the session occurring at the time before and closest to the time from the unread sessions to be read, and taking the determined session as a target session.
Optionally, the method further comprises:
when a new session occurs, determining the new session and the unread session to be read as a new unread session to be read;
the selecting a target session from the unread sessions to be read includes:
and selecting a target session from the determined new unread sessions to be read.
Optionally, the method further comprises:
when a conversation is displayed, detecting whether an unread conversation exists in the conversation list;
and if the unread session exists, displaying a prompt identifier, wherein the prompt identifier is used for prompting that the unread session exists in the session list.
Optionally, the method further comprises:
and deleting the prompt identification when the unread session does not exist in the session list.
According to a second aspect of the embodiments of the present application, there is provided a session switching apparatus, including:
the monitoring module is configured to execute monitoring whether a preset switching action occurs or not when the unread session to be read exists in the session list and the session is displayed currently;
the selecting module is configured to select a target session from the unread sessions to be read when the preset switching action occurs;
and the switching module is configured to execute switching from the currently displayed session to the target session and display the target session.
Optionally, the selecting module is specifically configured to:
determining a session which occurs at the time nearest to the current time from the unread sessions to be read, and taking the determined session as a target session; alternatively, the first and second electrodes may be,
and determining the occurrence time of the currently displayed session, determining the session occurring at the time before and closest to the time from the unread sessions to be read, and taking the determined session as a target session.
Optionally, the apparatus further comprises:
the determining module is configured to determine a new session and the unread session to be read as a new unread session to be read when the new session occurs;
the selection module is specifically configured to:
and selecting a target session from the determined new unread sessions to be read.
Optionally, the apparatus further comprises:
the detection module is configured to detect whether an unread session exists in the session list when the session is displayed;
and the display module is configured to execute display prompt identification when the unread session exists, wherein the prompt identification is used for prompting that the unread session exists in the session list.
Optionally, the apparatus further comprises:
a deleting module configured to delete the prompt identifier when no unread session exists in the session list.
According to a third aspect of embodiments of the present application, there is provided an electronic apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not;
if the preset switching action occurs, selecting a target session from the unread sessions to be read;
and switching to the target session from the currently displayed session, and displaying the target session.
According to a fourth aspect of embodiments herein, there is provided a non-transitory computer-readable storage medium having instructions thereon, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a session handover method, the method comprising:
when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not;
if the preset switching action occurs, selecting a target session from the unread sessions to be read;
and switching to the target session from the currently displayed session, and displaying the target session.
According to a fifth aspect of embodiments herein, there is provided a computer program product for being executed to perform the steps of the above-mentioned session switching method.
The technical scheme provided by the embodiment of the application can have the following beneficial effects: according to the technical scheme provided by the embodiment of the application, when the conversation is displayed, the user needs to switch from the currently displayed conversation to other unread conversations to be read, and switching is carried out through the preset switching action. And when the preset switching action is detected, selecting a target session from the unread sessions to be read, and switching from the currently displayed session to the target session. According to the technical scheme, the currently displayed conversation can be switched to the unread conversation only through one preset switching action, compared with the related art, the operation steps are simplified, and the time required by the operation process is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flow chart illustrating a method of session handoff in accordance with an exemplary embodiment.
FIG. 2 is an interface diagram illustrating a session list according to an exemplary embodiment.
FIG. 3 is an interface diagram illustrating a session, according to an example embodiment.
FIG. 4 is another interface diagram illustrating a session in accordance with an exemplary embodiment.
Fig. 5 is a block diagram illustrating a session handoff apparatus according to an example embodiment.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In order to solve the problems of complicated operation steps and long time consumption when switching from one session to an unread session, embodiments of the present application provide a session switching method and an apparatus, where the session switching method includes:
when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not;
if the preset switching action occurs, selecting a target session from unread sessions to be read;
and switching to the target session from the currently displayed session, and displaying the target session.
According to the technical scheme provided by the embodiment of the application, when the conversation is displayed, the user needs to switch from the currently displayed conversation to other unread conversations to be read, and switching is carried out through the preset switching action. And when the preset switching action is detected, selecting a target session from the unread sessions to be read, and switching from the currently displayed session to the target session. According to the technical scheme, the currently displayed conversation can be switched to the unread conversation only through one preset switching action, compared with the related art, the operation steps are simplified, and the time required by the operation process is saved.
First, a session handover method provided in the embodiment of the present application is described below. The session switching method provided by the embodiment of the application can be applied to electronic equipment, and the electronic equipment is equipment capable of performing communication interaction, such as a mobile phone, a tablet, wearable equipment and the like. The operating system of the electronic device may be an android system, an IOS system, a BlackBerry OS system, a Windows Phone system, etc., and is not limited herein.
The session switching method provided by the embodiment of the application can be applied to instant messaging software such as WeChat, QQ, nailing, Skype, Line, Micang, Whatsapp and the like, and can also be applied to short message information aiming at electronic equipment. When the session switching method is applied to an instant messaging software, the session in the instant messaging software is switched. For example, when the session switching method is applied to wechat, the sessions in the session list are wechat sessions, and both the sessions performing switching are wechat sessions, that is, sessions for wechat are switched.
Fig. 1 is a flowchart illustrating a session handover method according to an exemplary embodiment, and as shown in fig. 1, the session handover method provided in the embodiment of the present application includes the following steps.
S101, when the unread session to be read exists in the session list and the session is displayed currently, whether a preset switching action occurs is monitored. If so, step S102 is performed.
The conversation list is a set in which a plurality of conversations are displayed in a list manner, and the conversation list comprises one or more conversations. Each conversation aims at one object, and the content included in each conversation is information interacted with the aimed object, wherein the interacted information comprises characters, voice, pictures, videos and the like.
Taking fig. 2 as an example, as shown in fig. 2, an interface diagram of the WeChat is shown in fig. 2, which is a session list shown in fig. 2, where the session list includes 5 sessions, and from top to bottom, an object targeted by a first session is a user A, that is, the first session includes information interacted with the user A. The second session is for user B, the third session is for subscription number messages, and the fourth session is for user C. The object targeted by the fifth session is a group a, which may include a plurality of users, and information interacted by the plurality of users in the group a all belong to the content included in the fifth session.
Each session may include one or more pieces of information or may be empty, i.e., does not include any information. When information is included in a session and the included information is read, the state of the session is a read state, and the session may be referred to as a read session. When there is unread information in a session, the state of the session is an unread state, and the session may be referred to as an unread session.
In an implementation manner of changing a session from an unread state to a read state, after entering a session in the unread state, information included in the session may be displayed, that is, a currently displayed interface is an interface of the session, for example, as shown in fig. 3. At this time, it can be considered that the unread information in the session has been read, and the state of the session is changed to the read state.
The manner of entering a session in an unread state may be to click the session from an interface of the session list and then enter the session, or to enter the session from another interface, which is not limited herein.
When information is newly received, the newly received information belongs to a session of an object, and if the state of the session of the object before the information is received is a read state, the state of the session is changed to an unread state after the information is received. If the state of the session before receiving the information is an unread state, the state of the session is kept unchanged.
For example, in the interaction process of the user a, a piece of information sent by the user a is received, and the information belongs to the session of the user a, i.e. the first session in fig. 2. If the first session is in a read state before the information is received, the state of the first session is changed to an unread state after the information is received.
For another example, user a is a user in group a, and after receiving the information of user a in group a, the information belongs to the session of group a, i.e. the last session in fig. 2. If the last session was in a read state before the information was received, the state of the last session is changed to an unread state after the information is received.
The unread sessions to be read are the unread sessions contained in the current session list. Taking fig. 2 as an example, if there are 2 unread sessions in the session list shown in fig. 2: and if the session of the user A and the session of the user B are the same, the unread session to be read comprises the session of the user A and the session of the user B. If there are 4 unread sessions in the session list shown in fig. 2: the session of the user a, the session of the user B, the session of the user C, and the session of the group a, and the unread session to be read at this time includes the session of the user a, the session of the user B, the session of the user C, and the session of the group a.
The currently displayed session may be any session, that is, the currently displayed session may be an unread session in a session list, that is, a click-to unread session is entered, so that the unread session is displayed, or a read session in a session list, that is, a click-to read session is entered, so that the read session is displayed, which is not limited herein.
When a session is displayed, the session is entered, and information included in the session is displayed, as shown in fig. 3, that is, the session of the user a is displayed, and the displayed content is the information included in the session of the user a.
When an incoming session does not contain information, i.e. the session is empty, the content of the session displayed after entering the session is empty. For example, as shown in fig. 4, if the content of the session of the user B is empty, the content of the session displayed after entering the session is empty.
When there is an unread session to be read in the session list and a session is currently displayed, the currently displayed interface is an interface of a session, for example, an interface of a session of the user a as shown in fig. 3. In this case, it is possible to monitor whether a preset switching action occurs.
The preset switching action can be set by a user. The preset switching action may be a simple gesture action or an action combining a gesture action and an object.
When the preset switching motion is a simple gesture motion, the gesture motion may be set by a user, for example, the gesture motion may be a leftward sliding motion, a rightward sliding motion, a sliding distance greater than a preset value, and the like. Of course, the preset switching motion is not limited to the three gesture motions illustrated above, and may also be other gesture motions, which is not limited herein.
When the preset switching action is an action combining a gesture action and an object, the object combined by the gesture action may be set by a user, for example, the object may be a button, a hover button, a dialog box, or the like. The gesture action and the action of the object combination can also be set by a user, for example, the preset switching action can be that the duration of pressing the button for a long time reaches a preset duration, the floating button slides left or right, and the dialog box slides left or right. Of course, the gesture and the object combined action are not limited to the above three actions, and may also include other actions, which are not limited herein.
And when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not. If not, the monitoring state is continuously maintained, and if the preset switching action is monitored to occur, the step S102 is executed.
S102, selecting a target conversation from the unread conversations to be read.
The number of the selected target sessions may be one or more. When the electronic device can simultaneously display a plurality of conversations, the same number of target conversations can be selected according to the number of conversations that the electronic device can simultaneously display.
For example, the electronic device may simultaneously display 3 sessions, and when the number of unread sessions included in the unread sessions to be read is greater than 3, may select 3 unread sessions from the unread sessions to be read as target sessions, and display the selected 3 target sessions.
The following description will take the example of selecting a target session.
If only one unread session is included in the unread sessions to be read, the unread session can be directly determined as the target session. If the unread sessions to be read include at least two unread sessions, one session can be selected from the unread sessions to be read as a target session according to a preset selection method.
The preset selection method can be set by self-definition. In one embodiment, a session occurring at the time closest to the current time is determined from the unread sessions to be read, and the determined session is taken as a target session.
It can be considered that the session occurring at the time closest to the current time is the latest session, i.e. the latest session is determined as the target session. Taking fig. 2 as an example, the unread sessions to be read include a session of a user a, a session of a user B, and a session of a group a, where a latest time of occurrence of the session of the user a is 13:00, a latest time of occurrence of the session of the user B is 12:20, a latest time of occurrence of the session of the group a is 11:00, and if a current time is 13:15 and a time closest to the current time in the three time points is 13:00, it may be determined that the session of the user a is the latest session, and then the session of the user a may be determined as the target session.
In an implementation manner, after determining the unread sessions to be read in the session list, the determined unread sessions to be read may be sorted according to a time sequence, which may be a sequence from near to far in time, or a sequence from far to near in time, which is not limited herein. The time according to the sorting is the latest occurrence time of each session, for example, the time of the session of the user a in fig. 2 is 13:00, which indicates that the time of the occurrence of the latest piece of information in the session of the user a is 13: 00.
After the unread sessions to be read are sequenced, and after a preset switching action is detected to occur, the first unread session to be read in the sequence can be determined as a target session. For example, the unread sessions to be read include a session of a user a, a session of a user B, and a session of a group a, where the latest time of occurrence of the session of the user B is 12:20, the latest time of occurrence of the session of the user C is 11:30, and the latest time of occurrence of the session of the group a is 11:00, and when the sessions are sorted in the order of time from near to far, the sequence is obtained: the session of the user B, the session of the user C, and the session of the group a may determine, after the preset switching action occurs, the first unread session to be read, that is, the session of the user B, as the target session.
In another embodiment, the occurrence time of the currently displayed session is determined, a session occurring at a time before and closest to the time is determined from the unread sessions to be read, and the determined session is taken as a target session.
And determining the time when the currently displayed session occurs, wherein the determined time when the currently displayed session occurs is the time when the latest piece of information in the session occurs. Taking fig. 3 as an example, if the currently displayed session shown in fig. 3 is the session of the user a, and the time of occurrence of the latest piece of information in the session of the user a is 13:00, it may be determined that the time of occurrence of the currently displayed session is 13: 00.
After determining the time when the currently displayed session occurs, the session occurring at the time before and closest to the time can be determined from the unread sessions to be read. Taking fig. 2 as an example, the currently displayed session is the session of the user a, the determined time of occurrence of the session of the user a is 13:00, the unread session to be read includes the session of the user B and the session of the user C, and then from the unread session to be read, the session occurring before 13:00 and at the closest time to 13:00 can be determined as the session of the user B, and then the session of the user B can be determined as the target session.
In one implementation, after determining the time when the currently displayed session occurs, the unread sessions to be read may be sorted in the order of time near and far, with the determined time as a starting point. And if the unread sessions to be read exist after the determined time, sorting the unread sessions to be read before the determined time by taking the determined time as a starting point and sequencing the unread sessions to be read after the determined time by taking the current time as the starting point and sequencing the unread sessions to be read after the determined time. In this way, the ordering of the unread sessions to be read can be obtained. When the occurrence of the preset switching action is detected, the first unread session to be read in the sequence of the unread sessions to be read can be determined as the target session.
Taking fig. 2 as an example, the currently displayed session is a session of a subscription number message, and the unread session to be read includes: if the time of the session of the subscription number message is 12:00, the read unread sessions are sorted according to the above manner, and the obtained sort is: a session of user C, a session of group a, a session of user B. When the preset switching action is detected to occur, the session of the user C can be determined as the target session.
The method for selecting the target session from the unread sessions to be read may be, in addition to the above two methods, selecting the target session in other manners, which is not limited herein.
And S103, switching from the currently displayed session to the target session, and displaying the target session.
And after the target session is determined, switching the currently displayed session to the target session and displaying the target session, wherein the determined target session is the next session to be displayed.
For example, the currently displayed session is the session of the user C, the to-be-read unread session includes the session of the user a and the session of the user B, and it is determined that the session of the user a is the target session, the session of the user C is switched to the session of the user a, and the session of the user a is displayed, and the displayed session of the user a is as shown in fig. 3.
In an embodiment, when a new session occurs, the new session may be added to the session list, and the new session and the unread session to be read before the new session occurs are determined as the new unread session to be read, that is, the new unread session to be read includes the new session and the unread session to be read before.
Selecting a target session from the unread sessions to be read (step S102), which may include the following steps:
and selecting a target session from the determined new unread sessions to be read. That is, when the target session is selected subsequently, the new session may become a candidate as one of the new unread sessions to be read.
For example, the unread session to be read includes a session of a user a and a session of a user B, and when a new session occurs as a session of a user C, the session of the user a, the session of the user B, and the session of the user C may be determined as a new unread session to be read. When the target session is selected, selecting the target session from new unread sessions to be read, namely selecting the target session from the session of the user A, the session of the user B and the session of the user C.
In an implementation manner, in the process of sending the preset switching action, if a new session occurs, the new session and the unread session to be read before the new session occurs may be determined as a new unread session to be read. In this way, when selecting a target session, a selection may be performed from the determined new unread sessions to be read, where the determined new unread sessions to be read includes: unread sessions to be read before the new session occurs and the new session.
In one embodiment, when a session is displayed, whether an unread session exists in a session list can be detected, and if the unread session exists, a prompt identifier can be displayed.
The displayed session may be an unread session displayed after entering an unread session in the session list, and after the unread session is displayed, the state of the unread session is changed to a read state. The displayed session may also be a read session that is displayed after the read session entered into the session list.
The prompt identifier is used for prompting that an unread session exists in the session list, namely when the prompt identifier is displayed, the unread session still exists in the current session list. And switching to the unread session through a preset switching action, and displaying the unread session.
The form of the prompt identifier may be customized, for example, the prompt identifier may be a hover button, banner, dot, etc. And is not limited herein.
On the basis of the foregoing embodiment, in an embodiment, the preset switching action may be an action combining a gesture action and a prompt identifier, for example, the preset switching action may be pressing the prompt identifier for a long time, pressing the prompt identifier to slide left or right, or continuously clicking the prompt identifier.
Taking fig. 3 as an example, the currently displayed session is the session of user a, and it is detected that there is an unread session in the session list: and displaying a floating button on the display screen of the session of the user B and the session of the user C, wherein the floating button represents that an unread session exists in the session list, and then pressing the floating button by the user and dragging the floating button to slide rightwards, so that the currently displayed session of the user A is switched to the session of the user B.
On the basis of the above embodiment, in an embodiment, the display prompt identifier is used to indicate that an unread session exists in the current session list, and when the prompt identifier is not displayed, it indicates that the unread session does not exist in the current session list, that is, the sessions in the session list are all in a read state. After the prompt identifier is displayed, whether an unread session exists in the session list is monitored, if the unread session exists, the display state of the prompt identifier is kept, and if the unread session does not exist, the prompt identifier is deleted, namely, the prompt identifier is not displayed.
By the implementation mode, the prompt mark is not displayed when the unread session does not exist in the session list, the state of the session in the session list can be prompted to a user, and the prompt mark is not displayed in the display picture when the prompt mark does not work, so that the display picture is simpler, and the user experience is improved.
According to the technical scheme provided by the embodiment of the application, when the conversation is displayed, the user needs to switch from the currently displayed conversation to other unread conversations to be read, and switching is carried out through the preset switching action. And when the preset switching action is detected, selecting a target session from the unread sessions to be read, and switching from the currently displayed session to the target session. According to the technical scheme, the currently displayed conversation can be switched to the unread conversation only through one preset switching action, compared with the related art, the operation steps are simplified, and the time required by the operation process is saved.
Corresponding to the above-mentioned embodiment of the session switching method, an embodiment of the present application further provides a session switching apparatus, and fig. 5 is a block diagram of a session switching apparatus according to an exemplary embodiment. Referring to fig. 5, the apparatus includes a monitoring module 510, a selecting module 520, and a switching module 530.
The monitoring module 510 is configured to perform monitoring whether a preset switching action occurs when the unread session to be read exists in the session list and the session is currently displayed.
The selecting module 520 is configured to select a target session from the unread sessions to be read when a preset switching action occurs.
The switching module 530 is configured to perform switching from a currently displayed session to a target session and display the target session.
In one embodiment, the selecting module 520 is specifically configured to:
determining a session which occurs at the time nearest to the current time from the unread sessions to be read, and taking the determined session as a target session; alternatively, the first and second electrodes may be,
determining the occurrence time of the currently displayed session, determining the session occurring at the time before and closest to the time from the unread sessions to be read, and taking the determined session as the target session.
In one embodiment, the session switching device may further include:
the determining module is configured to determine a new session and the unread session to be read as a new unread session to be read when the new session occurs;
the selecting module 520 is specifically configured to:
and selecting a target session from the determined new unread sessions to be read.
In one embodiment, the session switching device may further include:
the detection module is configured to detect whether an unread session exists in the session list when the session is displayed;
and the display module is configured to execute display of a prompt identifier when the unread session exists, wherein the prompt identifier is used for prompting that the unread session exists in the session list.
In one embodiment, the session switching device may further include:
and the deleting module is configured to delete the prompt identifier when the unread session does not exist in the session list.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the technical scheme provided by the embodiment of the application, when the conversation is displayed, the user needs to switch from the currently displayed conversation to other unread conversations to be read, and switching is carried out through the preset switching action. And when the preset switching action is detected, selecting a target session from the unread sessions to be read, and switching from the currently displayed session to the target session. According to the technical scheme, the currently displayed conversation can be switched to the unread conversation only through one preset switching action, compared with the related art, the operation steps are simplified, and the time required by the operation process is saved.
Corresponding to the above-mentioned session switching method embodiment, an embodiment of the present application further provides an electronic device, and fig. 6 is a block diagram of an electronic device shown according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 600 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor component 614 may detect an open/closed state of the electronic device 600, the relative positioning of components, such as a display and keypad of the electronic device 600, the sensor component 614 may also detect a change in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, orientation or acceleration/deceleration of the electronic device 600, and a change in the temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the electronic device 600 and other devices in a wired or wireless manner. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the electronic device 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Corresponding to the above-mentioned session handover method embodiment, an embodiment of the present application further provides a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a session handover method, where the method includes:
when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not; if the preset switching action occurs, selecting a target session from unread sessions to be read; and switching to the target session from the currently displayed session, and displaying the target session.
Corresponding to the above embodiment of the session switching method, an embodiment of the present application further provides a computer program product for executing the steps of the session switching method.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A session switching method is applied to an electronic device and comprises the following steps:
when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not;
if the preset switching action occurs, selecting a target session from the unread sessions to be read; the number of the selected target conversations is the number of conversations which can be simultaneously displayed by the electronic equipment;
switching from the currently displayed session to the target session, and displaying the target session;
the step of selecting a target session from the unread sessions to be read includes:
determining a session which occurs at the time nearest to the current time from the unread sessions to be read, and taking the determined session as a target session; alternatively, the first and second electrodes may be,
and determining the occurrence time of the currently displayed session, determining the session occurring at the time before and closest to the time from the unread sessions to be read, and taking the determined session as a target session.
2. The session handoff method of claim 1, wherein the method further comprises:
when a new session occurs, determining the new session and the unread session to be read as a new unread session to be read;
the selecting a target session from the unread sessions to be read includes:
and selecting a target session from the determined new unread sessions to be read.
3. The session handoff method of claim 1, wherein the method further comprises:
when a conversation is displayed, detecting whether an unread conversation exists in the conversation list;
and if the unread session exists, displaying a prompt identifier, wherein the prompt identifier is used for prompting that the unread session exists in the session list.
4. The session handoff method of claim 3, wherein the method further comprises:
and deleting the prompt identification when the unread session does not exist in the session list.
5. A conversation switching device applied to an electronic device includes:
the monitoring module is configured to execute monitoring whether a preset switching action occurs or not when the unread session to be read exists in the session list and the session is displayed currently;
the selecting module is configured to select a target session from the unread sessions to be read when the preset switching action occurs; the number of the selected target conversations is the number of conversations which can be simultaneously displayed by the electronic equipment;
a switching module configured to perform switching from a currently displayed session to the target session and display the target session;
the selection module is specifically configured to:
determining a session which occurs at the time nearest to the current time from the unread sessions to be read, and taking the determined session as a target session; alternatively, the first and second electrodes may be,
and determining the occurrence time of the currently displayed session, determining the session occurring at the time before and closest to the time from the unread sessions to be read, and taking the determined session as a target session.
6. The session switching apparatus according to claim 5, wherein the apparatus further comprises:
the determining module is configured to determine a new session and the unread session to be read as a new unread session to be read when the new session occurs;
the selection module is specifically configured to:
and selecting a target session from the determined new unread sessions to be read.
7. The session switching apparatus according to claim 5, wherein the apparatus further comprises:
the detection module is configured to detect whether an unread session exists in the session list when the session is displayed;
and the display module is configured to execute display prompt identification when the unread session exists, wherein the prompt identification is used for prompting that the unread session exists in the session list.
8. The session switching apparatus according to claim 7, wherein the apparatus further comprises:
a deleting module configured to delete the prompt identifier when no unread session exists in the session list.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not;
if the preset switching action occurs, selecting a target session from the unread sessions to be read; the number of the selected target conversations is the number of conversations which can be simultaneously displayed by the electronic equipment;
switching from the currently displayed session to the target session, and displaying the target session;
the step of selecting a target session from the unread sessions to be read includes:
determining a session which occurs at the time nearest to the current time from the unread sessions to be read, and taking the determined session as a target session; alternatively, the first and second electrodes may be,
and determining the occurrence time of the currently displayed session, determining the session occurring at the time before and closest to the time from the unread sessions to be read, and taking the determined session as a target session.
10. A non-transitory computer-readable storage medium having instructions stored thereon that, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a session handoff method, the method comprising:
when the unread session to be read exists in the session list and the session is displayed currently, monitoring whether a preset switching action occurs or not;
if the preset switching action occurs, selecting a target session from the unread sessions to be read; the number of the selected target conversations is the number of conversations which can be simultaneously displayed by the mobile terminal;
switching from the currently displayed session to the target session, and displaying the target session;
the step of selecting a target session from the unread sessions to be read includes:
determining a session which occurs at the time nearest to the current time from the unread sessions to be read, and taking the determined session as a target session; alternatively, the first and second electrodes may be,
and determining the occurrence time of the currently displayed session, determining the session occurring at the time before and closest to the time from the unread sessions to be read, and taking the determined session as a target session.
CN201910092238.4A 2019-01-30 2019-01-30 Session switching method and device Active CN109739415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910092238.4A CN109739415B (en) 2019-01-30 2019-01-30 Session switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910092238.4A CN109739415B (en) 2019-01-30 2019-01-30 Session switching method and device

Publications (2)

Publication Number Publication Date
CN109739415A CN109739415A (en) 2019-05-10
CN109739415B true CN109739415B (en) 2021-02-23

Family

ID=66366715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910092238.4A Active CN109739415B (en) 2019-01-30 2019-01-30 Session switching method and device

Country Status (1)

Country Link
CN (1) CN109739415B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427484A (en) * 2020-03-09 2020-07-17 北京达佳互联信息技术有限公司 Unread session processing method and device
CN114518829B (en) * 2020-11-20 2024-04-19 腾讯科技(深圳)有限公司 Unread message reminding method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511777A (en) * 2015-11-25 2016-04-20 小米科技有限责任公司 Session display method and device of touch display screen
CN107678544A (en) * 2017-09-25 2018-02-09 北京小米移动软件有限公司 Message treatment method and device
CN107872377A (en) * 2016-09-23 2018-04-03 阿里巴巴集团控股有限公司 Message prompt method and device
CN108021316A (en) * 2017-11-30 2018-05-11 腾讯科技(深圳)有限公司 A kind of method and device of message display

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428073B (en) * 2012-05-24 2015-06-17 腾讯科技(深圳)有限公司 User interface-based instant messaging method and apparatus
US20140258919A1 (en) * 2013-03-07 2014-09-11 Tencent Technology (Shenzhen) Company Limited View mode switch of graphical user interface
CN105786304A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Information display method and device in instant messaging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511777A (en) * 2015-11-25 2016-04-20 小米科技有限责任公司 Session display method and device of touch display screen
CN107872377A (en) * 2016-09-23 2018-04-03 阿里巴巴集团控股有限公司 Message prompt method and device
CN107678544A (en) * 2017-09-25 2018-02-09 北京小米移动软件有限公司 Message treatment method and device
CN108021316A (en) * 2017-11-30 2018-05-11 腾讯科技(深圳)有限公司 A kind of method and device of message display

Also Published As

Publication number Publication date
CN109739415A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
EP3454192B1 (en) Method and device for displaying page
EP3316105B1 (en) Instant message processing method and device
CN107908351B (en) Application interface display method and device and storage medium
EP3316527A1 (en) Method and device for managing notification messages
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
CN107229411B (en) Method and device for controlling split screen state
US11243660B2 (en) Method and device for displaying application, and storage medium
CN105912450B (en) Application state information display method and device
CN106354504B (en) Message display method and device
CN105511777B (en) Session display method and device on touch display screen
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN108011990B (en) Contact management method and device
CN107272896B (en) Method and device for switching between VR mode and non-VR mode
CN104850643B (en) Picture comparison method and device
CN112051949A (en) Content sharing method and device and electronic equipment
CN109739415B (en) Session switching method and device
CN111343481A (en) Data sharing method and device, electronic equipment and storage medium
CN109358788B (en) Interface display method and device and terminal
CN105227426B (en) Application interface switching method and device and terminal equipment
CN106447747B (en) Image processing method and device
EP3301888A1 (en) Call processing method and device for call notes
EP3128722A1 (en) File transmission method and apparatus, computer program and recording medium
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN113031837A (en) Content sharing method and device, storage medium, terminal and server
EP3239856A1 (en) Information acquisition method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant