Display methods, device, terminal and the storage medium of nearest contentTechnical field
The invention relates to field of human-computer interaction, in particular to a kind of display methods, device, the terminal of nearest contentAnd storage medium.
Background technique
During routine use terminal, user is frequently necessary to handle nearest content.For example, to nearest duplicationText edited, shot or the picture of downloading share etc. to nearest.
When handling nearest content, user is firstly the need of corresponding application program is opened, then by applying journeyNearest content to be processed is imported application program by the import feature that sequence provides, and then in the application to the nearest of importingContent is handled.
Summary of the invention
The embodiment of the present application provides display methods, device, terminal and the storage medium of a kind of nearest content.
The technical solution is as follows:
On the one hand, a kind of display methods of nearest content is provided, which comprises
Show multitask interface, the multitask interface is for showing the corresponding task identification of application program;
When receiving the object run to the multitask interface, the display position of nearest content in nearest content bar is determinedIt sets, the nearest content bar is located at the target area of the multitask interface, and the nearest content includes nearest text, recently textPart, nearest picture and at least one of collection recently;
According to the display position, the corresponding content identification of the nearest content is shown in the nearest content bar.
On the other hand, a kind of display device of nearest content is provided, described device includes:
First display module, for showing multitask interface, the multitask interface is for showing that application program is correspondingTask identification;
Position determination module, for determining nearest content bar when receiving the object run to the multitask interfaceIn content recently display position, the nearest content bar is located at the target area of the multitask interface, the nearest contentIncluding nearest text, recent file, nearest picture and at least one of collection recently;
Second display module, for showing the nearest content in the nearest content bar according to the display positionCorresponding content identification.
On the other hand, a kind of terminal is provided, the terminal includes processor and memory;The memory be stored with toThe nearest content as described in terms of above-mentioned is realized in a few instruction, at least one instruction for being executed by the processorDisplay methods.
On the other hand, a kind of computer readable storage medium is provided, the storage medium is stored at least one instruction,At least one instruction is for being executed by processor the display methods to realize the nearest content as described in terms of above-mentioned.
On the other hand, a kind of computer program product is additionally provided, which is stored at least one fingerIt enables, at least one instruction is loaded as the processor and executes the display side to realize nearest content described in above-mentioned aspectMethod.
In the embodiment of the present application, terminal is after multitask interface shows the corresponding task identification of application program, when receivingWhen to the object run of multitask interface, nearest content bar is shown in the target area of multitask interface, and according to determiningItems recently content display position, the corresponding content identification of nearest content is shown in nearest content bar;Terminal is moreTask interface carries out centralized displayings to various types of nearest contents, facilitate user directly multitask interface to nearest content intoRow processing opens specific application program without user to check or handle nearest content, and then improves the place of nearest contentManage efficiency.
Detailed description of the invention
Figures 1 and 2 show that the structural block diagram for the terminal that one exemplary embodiment of the application provides;
Fig. 3 shows the flow chart of the display methods of the nearest content shown in one exemplary embodiment of the application;
Fig. 4 is the interface schematic diagram that nearest content is shown in multitask interface;
Fig. 5 shows the flow chart of the display methods of the nearest content shown in another exemplary embodiment of the application;
Fig. 6 is the flow chart that nearest content display position process is determined according to content type;
Fig. 7 is the implementation diagram for showing content icon in nearest content bar according to content type;
Fig. 8 is the flow chart that nearest content display position process is determined according to content analysis result;
Fig. 9 is the implementation diagram for showing content icon in nearest content bar according to content analysis result;
Figure 10 shows the structural block diagram of the display device of the nearest content of the application one embodiment offer.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present inventionFormula is described in further detail.
Referenced herein " multiple " refer to two or more."and/or", the association for describing affiliated partner are closedSystem indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, individualismThese three situations of B.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Referring to fig. 1 and fig. 2, the structure side of the terminal 100 provided it illustrates one exemplary embodiment of the applicationBlock diagram.The terminal 100 can be mobile phone, tablet computer, laptop and e-book etc..Terminal 100 in the application can be withIncluding one or more such as lower component: processor 110, memory 120 and touch display screen 130.
Processor 110 may include one or more processing core.Processor 110 utilizes various interfaces and connectionVarious pieces in entire terminal 100, by running or executing the instruction being stored in memory 120, program, code set or refer toCollection is enabled, and calls the data being stored in memory 120, executes the various functions and processing data of terminal 100.Optionally,Processor 110 can use Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array(Field-Programmable Gate Array, FPGA), programmable logic array (Programmable LogicArray, PLA) at least one of example, in hardware realize.Processor 110 can integrating central processor (CentralProcessing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc.One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible forThe rendering and drafting of content to be shown needed for touch display screen 130;Modem is for handling wireless communication.It is understood that, above-mentioned modem can not also be integrated into processor 110, be realized separately through chip piece.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-onlyMemory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non-transitory computer-readable storage medium).Memory 120 can be used for store instruction, program, generationCode, code set or instruction set.Memory 120 may include storing program area and storage data area, wherein storing program area can storeInstruction for realizing operating system, the instruction at least one function (such as touch function, sound-playing function, imagePlaying function etc.), for realizing instruction of following each embodiments of the method etc.;Storage data area can be stored according to terminal 100Use created data (such as audio data, phone directory) etc..
By taking operating system is Android (Android) system as an example, program and data such as Fig. 1 institute for being stored in memory 120Show, Linux inner core 220, system Runtime Library layer 240, application framework layer 260 and application layer 280 are stored in memory 120.Linux inner core 220 provides the driving of bottom for the various hardware of terminal 100, such as shows driving, audio driven, cameraDriving, bluetooth driving, Wi-Fi driving, power management etc..System Runtime Library layer 240 is by some libraries C/C++ come for AndroidSystem provides main characteristic and supports.If the library SQLite provides the support of database, the library OpenGL/ES provides 3D drawingSupport, the library Webkit provides the support etc. of browser kernel.Android fortune is also provided in system Runtime Library layer 240Library 242 (Android Runtime) when row, it mainly provides some core libraries, and developer can allow for use Java languageTo write Android application.Application framework layer 260 provides the various API that may be used when building application program, developerThe application program of oneself, such as activity management, window management, view management, notice pipe can be constructed by using these APIReason, assures reason, call management, resource management, orientation management at content provider.Operation has at least one application in application layer 280Program, these application programs can be the included contact person's program of operating system, short message program, timing routine, camera applications etc.;It is also possible to application program that third party developer is developed, such as instant messaging program, photograph pretty program etc..
By taking operating system is IOS system as an example, the program and data stored in memory 120 is as shown in Fig. 2, IOS systemIt include: kernel operating system layer 320 (Core OS layer), kernel service layer 340 (Core Services layer), mediaLayer 360 (Media layer), tangible layer 380 (Cocoa Touch Layer).Kernel operating system layer 320 includes operationSystem kernel, driver and underlying programs frame, these underlying programs frames provide the function closer to hardware, for positionIt is used in the program frame of kernel service layer 340.Kernel service layer 340 is supplied to system service required for application programAnd/or program frame, such as basic (Foundation) frame, account frame, advertising framework, data frame memory frame, network companyConnect frame, geographical location frame, moving frame etc..Media layer 360 provide for application program in relation to audiovisual in terms of interface, such asThe relevant interface of graph image, the relevant interface of Audiotechnica, the relevant interface of video technique, audio video transmission technology it is wirelessPlay (AirPlay) interface etc..Tangible layer 380 provides the relevant frame in various common interfaces for application development,Tangible layer 380 is responsible for the touch interactive operation of user on the terminal 100.Such as local notice service, long-range Push Service, extensivelyAccuse frame, game tool frame, message user interface interface (User Interface, UI) frame, user interface UIKit frameFrame, map frame etc..
In frame out shown in Fig. 2, frame related with major applications program includes but is not limited to: kernel service layerThe UIKit frame in basic framework and tangible layer 380 in 340.Basic framework provides many basic object class and dataIt is unrelated to provide most basic system service and UI for all application programs for type.And the class that UIKit frame provides is basicUI class libraries, for creating the user interface based on touch, iOS application program can provide UI based on UIKit frame, so itThe architecture of application program is provided, for constructing user interface, drawing, processing and user's alternative events, response gesture etc.Deng.
Touch display screen 130 for receive user using any suitable object such as finger, felt pen on it or nearTouch operation, and the user interface of each application program of display.Before touch display screen 130 is generally arranged at terminal 130Panel.Touch display screen 130 is designed to shield comprehensively, Curved screen or abnormal shape shield.Touch display screen 130 is also designed toTo shield and the combination of Curved screen comprehensively, the combination of abnormal shape screen and Curved screen, the present embodiment is not limited this.
In addition to this, it will be understood by those skilled in the art that the structure of terminal 100 shown by above-mentioned attached drawing is not constitutedRestriction to terminal 100, terminal may include perhaps combining certain components or difference than illustrating more or fewer componentsComponent layout.For example, further including radio circuit, input unit, sensor, voicefrequency circuit, Wireless Fidelity in terminal 100The components such as (Wireless Fidelity, WiFi) module, power supply, bluetooth module, details are not described herein.
In the related technology, when needing to check nearest content, then user makes firstly the need of specific application program is openedNearest content is checked with the application program.For example, user needs to open photograph album application program when needing to check nearest photo,Then nearest photo is checked in selection in photograph album application program;When needing to check nearest document, user then needs to open documentApplication program is edited, nearest document is then selected to be checked.
Obviously, when checking different types of nearest content, user needs to open different application programs, causes in recentlyChecking for holding is lower with treatment effeciency;Also, it for the nearest content for replicating text one kind recently, is looked into due to notThe application program for seeing such nearest content causes user that can not check such nearest content.
In the display methods of nearest content provided by the embodiments of the present application, by providing the nearest of unification in multitask interfaceContent checks entrance (i.e. nearest content bar), so that user can view various types of nearest contents in multitask interface;Meanwhile terminal is dynamically determined display position of the nearest content in nearest content bar, improves according to the attribute of every content recentlyUser searches the efficiency of nearest content.It is illustrated below using schematical embodiment.
Referring to FIG. 3, it illustrates the streams of the display methods of the nearest content shown in one exemplary embodiment of the applicationCheng Tu.The present embodiment is applied to terminal 100 shown in Fig. 1 or 2 in this way to illustrate.This method comprises:
Step 301, multitask interface is shown, multitask interface is for showing the corresponding task identification of application program.
Wherein, multitask interface is that terminal receives the interface shown after multitask interface exhalation operation, multitask interfaceExhalation operation can be the pressing operation to specified physical button, be also possible to specified gesture operation, and the present embodiment does not do thisIt limits.
Optionally, the corresponding task identification of at least one application program is shown in multitask interface, and is limited to terminalScreen size, when all task identifications can not Display on the same screen in multitask interface, terminal is according to receiving to multitask circleTask identification in the slide switching interface in face.
Optionally, at least one application program includes background application and/or predetermined application, and task identification canIn the form of using card and/or icon.In the present embodiment, example is carried out so that task identification is task cards as an example.
It optionally, include the application interface and application program of application program when switching to running background in task cardsApply Names.
In a kind of possible embodiment, the corresponding task identification of at least one application program battle array in multitask interfaceColumn display, and the display order of task identification is related to the sequencing at nearest front stage operation moment of background application.ThanSuch as, the nearest front stage operation moment of application program is more early, which corresponds to display of the task identification in multitask interfaceSequence is more rearward.
Schematically, as shown in figure 4, array shows several task cards 42 in multitask interface 41, and user is logicalIt crosses to slide up and down to operate and can switch the task cards shown in multitask interface 41.
Optionally, when receiving the predetermined slide to task identification, the terminal deletion task identification, and terminating shouldTask identification corresponds to the application process of application program, alternatively, when receiving the triggering for terminating control to process in multitask interfaceWhen operation, all task identifications of terminal deletion, and terminate the application process of all application programs.
Schematically, as shown in figure 4, the task cards 41 that user slides left side to the left can delete the task cards, toTask cards 42 on the right side of right sliding can delete the task cards, and user's click process, which terminates control 43, can delete allBusiness card 41.
Step 302, when receiving the object run to multitask interface, the aobvious of nearest content in nearest content bar is determinedShow position, nearest content bar is located at the target area of multitask interface, and nearest content includes nearest text, recent file, recentlyPicture and recently at least one of collection.
Optionally, nearest content bar be the top area that may be displayed on multitask interface for showing nearest content,Bottom section, left area or right area.The embodiment of the present application does not limit this.
Nearest content refers to the content generated in terminal use process, is divided according to content type, nearest content canTo include nearest text, recent file, nearest picture and collection etc. recently, the present embodiment is not limited this.
Wherein, nearest text is the content of text in copying to Clipboard, for example, replicate telephone number, duplication it is shortLetter, the network address of duplication, article of duplication etc.;The file that recent file is downloaded recently, receives or generated for terminal, and this documentType may include text, audio, video, executable file etc.;Nearest picture be terminal download recently picture, shootingPhoto or screenshot;Collection recently may include webpage or contact person of collection of collection etc..
Optionally, breathed out in multitask interface nearest content bar object run can be slide, clicking operation,Long press operation, pressing operation, physical button touch control operation, the embodiment of the present application do not limit this.
In other possible embodiments, it can also be directly displayed at multitask interface in nearest content bar, that is, be not necessarily toUser breathes out and shows manually, and the present embodiment does not limit this.
It optionally, include text prompt information in multitask interface, the text prompt information is for prompting the user on how to exhaleNearest content bar out.For example, as shown in figure 4, the top of multitask interface 41 shows text prompt information.
It is limited to the size of terminal screen, the nearest content quantity that can be accommodated in nearest content bar in multitask interface hasLimit, when needing to check other nearest contents, user needs to carry out slide in nearest content bar, thus in switching recentlyHold the nearest content shown in column.
In order to improve the efficiency that user chooses nearest content, in a kind of possible embodiment, terminal according to it is every mostAt least one in the corresponding content type of nearly content, the content analysis result of nearest content and the content production time of nearest contentKind, determine every display area of the content in nearest content bar recently.
Step 303, according to display position, the corresponding content identification of nearest content is shown in nearest content bar.
Further, the corresponding content identification of each nearest content is shown the corresponding display in nearest content bar by terminalAt position
Optionally, the corresponding content identification of nearest content can use the forms such as content icon or content screenshot, the applicationEmbodiment is illustrated so that content is identified as content icon as an example.
Schematically, as shown in figure 4, terminal is in multitask circle when receiving the operation of the downslide to multitask interface 41The top in face 41 shows nearest content bar 44, and according to the display position determined, is shown in several in nearest content bar 44Hold icon 45.
Optionally, when receiving to the trigger action of object content mark in nearest content bar, terminal is grasped according to triggeringMake corresponding to content identification nearest content to handle, wherein processing mode include in checking, edit, replicating, sending extremelyFew one kind
In conclusion in the embodiment of the present application, terminal after multitask interface shows the corresponding task identification of application program,When receiving the object run to multitask interface, nearest content bar, and root are shown in the target area of multitask interfaceAccording to the display position of the nearest content of the items determined, the corresponding content identification of nearest content is shown in nearest content bar;Terminal carries out centralized displaying to various types of nearest contents in multitask interface, facilitates user directly in multitask interface to mostNearly content is handled, and opens specific application program without user to check or handle nearest content, and then improve recentlyThe treatment effeciency of content.
In order to show user's selection higher nearest content of efficiency in the significant position of nearest content bar, to improve useThe efficiency of nearest content is chosen at family, avoids user from travelling frequently over slide to switch nearest content, in a kind of possible implementationIn mode, on the basis of Fig. 3, as described in Figure 5, above-mentioned steps 302 include the following steps.
Step 302A obtains the content type of every content recently.
If determining it in nearest content bar according only to the sequencing that content corresponding content generates the time every recentlyDisplay position, the nearest content of same content type scattered may arrange in nearest content bar, and user is caused to choose in identicalWhen holding the nearest content of type, need constantly to slide nearest content bar.
In order to improve the efficiency that user chooses nearest content, in a kind of possible embodiment, terminal is according to interior recentlyThe content type of appearance determines under current application scene that the nearest content of various content types is selected probability, thus by highestIt is selected the marking area that nearest content bar is shown in the nearest content set of probability.
In a kind of possible embodiment, for the nearest content of items generated in use process, terminal storage has respectivelyThe corresponding content type of the nearest content of item, when needing to show nearest content, terminal is to obtain every nearest content pair of storageThe content type answered.
Step 302B determines the display position of nearest content in nearest content bar according to content type.
Due to the selection factors phase such as probability and the use habit of user and most recently used application program of nearest contentIt closes, therefore, in a kind of possible embodiment, terminal uses note on the basis of content type, according to nearest content utilizationRecord and/or nearest application program, determine display position of the nearest content of various content types in nearest content bar.
Optionally, when terminal shows nearest content (content identification) according to the display position determined, belong in sameThe nearest content for holding type carries out centralized displaying, and when the display order of the nearest content of same content type and the generation of its contentBetween it is related.
Step 302C obtains the content analysis result of every content recently.
Other than determining the display position of nearest content as unit of content type, terminal can also be single with nearest contentPosition determines the display position of nearest content.Wherein, before determining every display position of content recently, terminal obtains items recentlyThe content analysis result of content.
For different types of nearest content, terminal determines that the mode of content analysis result is different, in a kind of possible realityIt applies in mode, this step may include following several possible embodiments.
One, when nearest content is nearest text, semantic analysis is carried out to nearest text, obtains the first semantic analysis result
Optionally, terminal first passes through semantic analysis algorithm in advance and carries out semantic analysis, and first will obtained to nearest textSemantic analysis result and nearest text are associated storage.When needing to show nearest text, terminal can be directly acquired recentlyCorresponding first semantic analysis result of text.
Two, when nearest content is recent file, semantic analysis is carried out to the file name of recent file, obtains the second languageJustice analysis result.
The file type of recent file may include document, video, audio etc., directly to the file content of recent fileThe difficulty analyzed is higher.And the file name of recent file usually can indicate file content, therefore, terminal can be preparatorySemantic analysis carried out to the file name of recent file by semantic analysis algorithm, and by the second obtained semantic analysis result withRecent file is associated storage.When needing to show recent file, terminal can directly acquire recent file corresponding secondSemantic analysis result.
Three, when nearest content is collection recently, semantic analysis is carried out to the collection title collected recently, obtains third languageJustice analysis result.
Collection recently is usually Web content, and the difficulty for carrying out crawl analysis to Web content is higher.And collect recentlyCollection title usually can indicate collection content, and therefore, terminal can first pass through semantic analysis algorithm to the receipts collected recently in advanceIt hides title and carries out semantic analysis, and obtained third semantic analysis result and recently collection are associated storage.It is aobvious when needingWhen showing nearest collection, terminal can directly acquire collects corresponding third semantic analysis result recently.
Wherein, in above embodiment, mature semantic analysis algorithm, this reality can be used when terminal carries out semantic analysisExample is applied not limit this.
Four, when nearest content is nearest picture, image recognition is carried out to nearest picture, obtains image recognition result.
When nearest content is nearest picture, terminal can first pass through image recognition algorithm in the image of nearest picture in advanceHold and carry out image recognition, and obtained image recognition result and nearest picture are associated storage.Scheme recently when needing to showWhen piece, terminal can directly acquire the corresponding image recognition result of nearest picture.
Wherein, this can not be limited using mature image recognition algorithm, the present embodiment when terminal carries out image recognitionIt is fixed.
Step 302D determines the display position of nearest content in nearest content bar according to content analysis result.
Since the selection probability of nearest content is related to the factors such as current environment and most recently used application program,Therefore, in a kind of possible embodiment, terminal on the basis of content analysis result, according to current geographic position and/orNearest application program determines every display position of the content in nearest content bar recently.
It should be noted that above-mentioned steps 302A to 302B and step 302C can be individually performed between 302D, it can alsoTo continue to execute step 302C to 302D after step 302A to 302B.
In a kind of possible embodiment, when continuing to execute step 302C to 302D after step 302A to 302BWhen, terminal according to content type determine at similar nearest content display position after, further according in similar nearest contentHold analysis as a result, determining the display position of every content recently in similar nearest content, details are not described herein for the present embodiment.
In a kind of possible embodiment, as shown in fig. 6, above-mentioned steps 302B can further include following stepSuddenly.
Step 302Ba determines that first content type, first content type are to make according to the first nearest content usage recordWith the corresponding content type of the highest nearest content of the frequency.
It optionally, include that every content recently is selected the record used in the first nearest content usage record, whereinMode using nearest content includes checking and handling.
In a kind of possible embodiment, after terminal gets the first nearest content usage record, according to every nearestContent type belonging to the access times of content and nearest content, determine the nearest content of various content types uses frequencyIt is secondary, so that the highest content type of frequency of usage is determined as first content type.
In a schematical example, terminal determines making for nearest picture according to the first nearest content usage recordIt is 15 times with the frequency, the frequency of usage of nearest text is 4 times, and the frequency of usage of recent file is 2 times, and that collects recently uses frequencySecondary is 3 times, so that nearest picture is determined as first content type.
Step 302Bb obtains the nearest content of target for belonging to first content type in nearest content.
Further, terminal will belong to the nearest content of first content type according to the content type of every content recentlyIt is determined as the nearest content of target.
Optionally, for the other content type in addition to first content type, terminal is according to the descending pair of frequency of usageOther content type is ranked up, so that the subsequent nearest content according to the sequence other content type is in nearest content barDisplay position.
After above-mentioned steps after 302Ba and 302Bb, terminal executes step 302Bi.
Step 302Bc, obtains the corresponding target application type of destination application, when the front stage operation of destination applicationThe time interval carved between current time is less than duration threshold value.
Since the nearest content that user uses is usually related to most recently used application program, and make under different applicationNearest content has respective content characteristic, for example, user uses nearest picture usually in instant communication application program,Nearest text is used usually in copy editor's class application program, therefore terminal can be according to the application for using application program recentlyType determines the display position of nearest content.
In a kind of possible embodiment, terminal obtains the front stage operation moment of each application program, and calculates foregroundTime interval between the time of running and current time, to determine most recently used target application journey according to the time intervalSequence.
In other possible embodiments, terminal can also be true according to the display order of task identification in multitask interfaceSet the goal application program, and the present embodiment does not limit this.
For the destination application determined, terminal further obtains the corresponding target application class of destination applicationType.
Step 302Bd determines that target application type is corresponding according to the corresponding relationship between application type and content typeThird content type.
In a kind of possible embodiment, terminal according under various types application program, the nearest content of various typesUsage record establishes the corresponding relationship between application type and content type.Schematically, the corresponding relationship is as shown in Table 1.
Table one
| Application type | Content type |
| Instant messaging class | Nearest picture |
| Text editing class | Recent file |
| Game class | Collection recently |
Further, terminal is based on the corresponding relationship, determines the corresponding third content type of target application type, thisThree content types are content type belonging to the highest nearest content of frequency of usage under the application program of target application type.
Step 302Be obtains the nearest content of target for belonging to third content type in nearest content.
Further, terminal will belong to the nearest content of third content type according to the content type of every content recentlyIt is determined as the nearest content of target.
In other possible embodiments, terminal establishes application type, content class according to the usage record of nearest contentCorresponding relationship between type and display priority three, terminal are to be determined under target application type based on the corresponding relationship, respectivelyThe display priority of the nearest content of kind content type, so that the corresponding content type of highest display priority is determined as thirdContent type.
Correspondingly, terminal can be according to other content type for the other content type in addition to third content typeCorresponding display priority determines that other content type corresponds to the display position of nearest content.
After above-mentioned steps after 302Bc to 302Be, terminal executes step 302Bi.
Step 302Bf determines destination application, the front stage operation moment of destination application according to the front stage operation momentTime interval between current time is less than duration threshold value.
Usually with most recently used application program strong correlation, terminal can determine the nearest content used due to userMost recently used application program, so that the content type according to belonging to the nearest content being commonly used under the application program chooses meshMark nearest content.
In a kind of possible embodiment, terminal obtains the front stage operation moment of each application program, and calculates foregroundTime interval between the time of running and current time, to determine most recently used target application journey according to the time intervalSequence.
In other possible embodiments, terminal can also be true according to the display order of task identification in multitask interfaceSet the goal application program, and the present embodiment does not limit this.
Schematically, as shown in fig. 7, task cards 71 corresponding " xx chat " is determined as destination application by terminal.
Step 302Bg determines the second content class according to the corresponding second nearest content usage record of destination applicationType, the second content type are the corresponding content types of the highest nearest content of frequency of use in destination application.
In a kind of possible embodiment, terminal is according under each application program, the use of the nearest content of various typesIt records (the i.e. second nearest content usage record), establishes the corresponding relationship between application program and content type.Schematically, shouldCorresponding relationship is as shown in Table 2.
Table two
| Application program | Content type |
| Xx chat | Nearest picture |
| Xx document | Nearest text |
| Xx game | Collection recently |
Further, terminal is based on the corresponding relationship, determines corresponding second content type of target, the second content classType is content type belonging to the highest nearest content of frequency of usage under destination application.
Step 302Bh obtains the nearest content of target for belonging to the second content type in nearest content.
Further, terminal will belong to the nearest content of the second content type according to the content type of every content recentlyIt is determined as the nearest content of target.
In other possible embodiments, terminal establishes application program, content class according to the usage record of nearest contentCorresponding relationship between type and display priority three, terminal are to be determined under destination application based on the corresponding relationship, respectivelyThe display priority of the nearest content of kind content type, so that the corresponding content type of highest display priority is determined as secondContent type.
Correspondingly, terminal can be according to other content type for the other content type in addition to the second content typeCorresponding display priority determines that other content type corresponds to the display position of nearest content.
After above-mentioned steps after 302Bf to 302Bh, terminal executes step 302Bi.
The display position of the nearest content of target is determined as the first display position by step 302Bi, and by the nearest content of targetThe display position of other outer nearest contents is determined as the second display position, and it is aobvious that the display priority of the first display position is higher than secondShow the display priority of position.
Content nearest for the target determined is selected probability higher than other nearest contents due to the nearest content of targetBe selected probability, therefore highest first display position of display priority is determined as the display position of the nearest content of target by terminalIt sets, and the second display position of display priority lower (being lower than the first display position) is determined as to the display of other nearest contentsPosition.
Optionally, display order of first display position in nearest content bar is prior to the second display position in nearest contentDisplay order in column.
In conjunction with the example in above-mentioned steps, as shown in fig. 7, terminal is based on corresponding relationship shown in table two, by nearest pictureIt is determined as the nearest content of target, and then by the corresponding display of first content icon 72 of nearest picture in the first display position, it will mostNearly corresponding second content icon 73 of text is shown in the second display position.
It optionally, include that at least one shows sub- position, and each display in the first display position and the second display positionSub- position is for showing a content identification.Correspondingly, this step may include steps of.
One, it when the nearest content of target is at least two, according to the content production time of the nearest content of the objectives, determinesDisplay sub- position of the nearest content of the objectives in the first display position.
Due to that may include multiple nearest contents under same content type, in a kind of possible embodiment, whenWhen the nearest content of target is at least two, terminal can generate descending (the i.e. content at moment according to the content of every content recentlyThe moment is generated by evening to early), determine display sub- position of the nearest content of the objectives in the first display position.
Optionally, the content generation moment of nearest content is more late, shows that sub- position is more forward in the first display position,Otherwise more rearward.
Two, it when other nearest contents are at least two, according to the content production time of other every nearest contents, determinesThe sub- position of every display of other nearest contents in the second display position.
Similar with above-mentioned steps one, when other nearest contents are at least two, terminal can be interior recently according to otherThe content of appearance generates the descending (i.e. content generates the moment by evening to early) at moment, determines other nearest contents of items in the second displayThe sub- position of display in position.
In the present embodiment, terminal is dynamically determined nearest content in nearest content bar according to the content type of nearest contentDisplay position facilitate user fast so that being selected the significant position that the higher nearest content of probability is shown in nearest content barSpeed is chosen, and the selection efficiency of nearest content is improved.
In a kind of possible embodiment, as shown in figure 8, above-mentioned steps 302D can further include following stepSuddenly.
Step 302Da, obtain destination application in application content, the front stage operation moment of destination application with work asTime interval between the preceding moment is less than duration threshold value, and application content includes at least one of picture material and word content.
Due to user to the usage behavior of nearest content usually with the application content strong correlation that uses application program recently, becauseThis, in order to realize more accurate commending contents recently (improving the use probability of nearest content at significant position), terminal is logicalIt crosses and obtains recently using the application content in application program, to determine the target for being shown in significant position according to the application contentApplication content.
Similar with above-mentioned steps 302Bf, terminal determines most recently used destination application first, then further obtainsTake the application content of destination application.
For different types of application program, the mode for obtaining application content in application program is different, a kind of possibleIn embodiment, when destination application is instant messaging application program, terminal is by instant messaging application program in the predetermined timeThe instant communication message inside received is determined as application content.
In other possible embodiments, terminal can also (intercept destination application applies picture by screenshotFace), data cached reading manner obtain the application content in destination application, the present embodiment do not limit this.
Schematically, as shown in figure 9, task cards 91 corresponding " xx chat " is determined as destination application by terminal,And message that destination application is most recently received " recommend dining room~" is determined as application content.
Step 302Db, if the degree of association of content analysis result and application content is greater than degree of association threshold value, by content analysisAs a result corresponding nearest content is determined as the nearest content of target.
Further, terminal calculates the degree of association between every content analysis result and application content, and big in the degree of associationWhen degree of association threshold value (such as 80%), the corresponding nearest content of the content analysis result is determined as the nearest content of target.
In a kind of possible embodiment, content analysis result is converted the first term vector by terminal, and will be using interiorHold (if it is image, needing to obtain image recognition result) and be converted into the second term vector, thus according to the first term vector and secondVector distance (such as Euclidean distance, COS distance or mahalanobis distance etc.) between term vector determines content analysis result and answersWith the degree of association of content.The embodiment of the present application is not defined the mode of calculating correlation.
Schematically, as shown in figure 9, " recommending dining room " and collection " most fiery chafing dish restaurant " recently is calculated in terminalThe degree of association is 90%, so that nearest collection is determined as the nearest content of target, and then will collect corresponding first content figure recentlyBefore corresponding second content icon 92 of the 92 nearest picture of display of mark.
After above-mentioned steps after 302Da to 302Db, terminal executes step 302Dg.
Step 302Dc obtains the corresponding point of interest (Point Of Interest, POI) of current geographic position.
Since the nearest content that user uses is also related to locating place, in addition to using application program based on nearestApplication content determine outside the nearest content of target that terminal can also determine nearest content according to current geographic position.
In a kind of possible embodiment, terminal obtains current geographic position by positioning component, thus according to currentGeographical location determines locating POI.
Step 302Dd, if content analysis result and the degree of association of POI are greater than degree of association threshold value, by content analysis resultCorresponding nearest content is determined as the nearest content of target.
Further, terminal calculates the degree of association between every content analysis result and POI, and is greater than association in the degree of associationWhen spending threshold value (such as 80%), the corresponding nearest content of the content analysis result is determined as the nearest content of target.
Wherein, the step of calculating correlation can refer to above-mentioned steps 302Db, and details are not described herein for the present embodiment.
Under a kind of possible application scenarios, for having collected the strategy of playing of xx recreation ground in advance, travel when reaching xxAnd want to check this play strategy when, terminal is determined according to current geographic position is in xx recreation ground, and will be in nearest contentCollection (strategy of playing) is determined as the nearest content of target recently, so as to the subsequent significant position for being shown in nearest content bar.
After above-mentioned steps after 302Dc to 302Dd, terminal executes step 302Dg.
Step 302De, obtains the corresponding target application type of destination application, when the front stage operation of destination applicationThe time interval carved between current time is less than duration threshold value.
The embodiment of this step can refer to above-mentioned steps 302Bc, and details are not described herein for the present embodiment.
Step 302Df, if the degree of association of content analysis result and target application type is greater than degree of association threshold value, by contentThe corresponding nearest content of analysis result is determined as the nearest content of target.
Further, terminal obtains the degree of association between every content analysis result and target application type, and is being associated withWhen degree is greater than degree of association threshold value (such as 80%), it is interior recently that the corresponding nearest content of the content analysis result is determined as targetHold.
In a kind of possible embodiment, terminal analyzes result and the training of sample application type previously according to sample contentDegree of association prediction model, in service stage, content analysis result and target application type are inputted degree of association prediction by terminalModel, to obtain the degree of association of model output.Wherein, which can be obtained based on deep learning network trainingIt arrives.
After above-mentioned steps after 302De to 302Df, terminal executes step 302Dg.
The display position of the nearest content of target is determined as the first display position by step 302Dg, and by the nearest content of targetThe display position of other outer nearest contents is determined as the second display position, and it is aobvious that the display priority of the first display position is higher than secondShow the display priority of position.
The embodiment of this step can refer to above-mentioned steps 302Bi, and details are not described herein for the present embodiment.
In the present embodiment, by analysis items, content obtains content analysis as a result, to be based on interior analysis to terminal recentlyAs a result every display position of the content in nearest content bar recently is determined, so that the nearest content for meeting user's use habit is aobviousShow and further improves the service efficiency of nearest content in marking area.
Referring to FIG. 10, it illustrates the structural frames of the display device of the nearest content of the application one embodiment offerFigure.The device can by software, hardware or both be implemented in combination with as terminal 100 all or part of.The deviceInclude:
First display module 1001, for showing multitask interface, the multitask interface is for showing application program pairThe task identification answered;
Position determination module 1002, for when receiving the object run to the multitask interface, determining in recentlyHold the display position of nearest content in column, the nearest content bar is located at the target area of the multitask interface, described nearestContent includes nearest text, recent file, nearest picture and at least one of collection recently;
Second display module 1003, for being shown in the nearest content bar described nearest according to the display positionThe corresponding content identification of content.
Optionally, the position determination module 1002, comprising:
First determination unit, for obtaining the content type of every nearest content;It is determined according to the content typeThe display position of nearest content described in the nearest content bar;
And/or
Second determination unit, for obtaining the content analysis result of every nearest content;According to the content analysisAs a result the display position of nearest content described in the nearest content bar is determined.
Optionally, the first determination unit is used for:
According to the first nearest content usage record, first content type is determined, the first content type is frequency of usageThe corresponding content type of highest nearest content;
Obtain the nearest content of target for belonging to the first content type in the nearest content;
The display position of the nearest content of the target is determined as the first display position, and will be outside the nearest content of the targetThe display position of other nearest contents is determined as the second display position, and the display priority of first display position is higher than describedThe display priority of second display position.
Optionally, the first determination unit is used for:
Determine destination application according to the front stage operation moment, the front stage operation moment of the destination application withTime interval between current time is less than duration threshold value;
According to the corresponding second nearest content usage record of the destination application, the second content type is determined, it is describedSecond content type is the corresponding content type of the highest nearest content of frequency of use in the destination application;
Obtain the nearest content of target for belonging to second content type in the nearest content;
The display position of the nearest content of the target is determined as the first display position, and will be outside the nearest content of the targetThe display position of other nearest contents is determined as the second display position, and the display priority of first display position is higher than describedThe display priority of second display position.
Optionally, the first determination unit is used for: obtaining the corresponding target application type of destination application, the targetTime interval between the front stage operation moment of application program and current time is less than duration threshold value;
According to the corresponding relationship between application type and the content type, the target application type corresponding is determinedThree content types;
Obtain the nearest content of target for belonging to the third content type in the nearest content;
The display position of the nearest content of the target is determined as the first display position, and will be outside the nearest content of the targetThe display position of other nearest contents is determined as the second display position, and the display priority of first display position is higher than describedThe display priority of second display position.
Optionally, the second determination unit is used for:
Obtain the application content in destination application, the front stage operation moment of the destination application and current timeBetween time interval be less than duration threshold value, the application content includes at least one of picture material and word content;
If the degree of association of the content analysis result and the application content is greater than degree of association threshold value, by the content pointThe corresponding nearest content of analysis result is determined as the nearest content of the target;
The display position of the nearest content of the target is determined as the first display position, and will be outside the nearest content of the targetThe display position of other nearest contents is determined as the second display position, and the display priority of first display position is higher than describedThe display priority of second display position.
Optionally, the second determination unit is used for:
Obtain the corresponding point of interest POI of current geographic position;
If the content analysis result and the degree of association of the POI are greater than degree of association threshold value, by the content analysis knotThe corresponding nearest content of fruit is determined as the nearest content of the target;
The display position of the nearest content of the target is determined as the first display position, and will be outside the nearest content of the targetThe display position of other nearest contents is determined as the second display position, and the display priority of first display position is higher than describedThe display priority of second display position.
Optionally, the second determination unit is used for:
Obtain the corresponding target application type of destination application, the front stage operation moment of the destination application with work asTime interval between the preceding moment is less than duration threshold value;
It, will be described interior if the degree of association of the content analysis result and the target application type is greater than degree of association threshold valueHold the corresponding nearest content of analysis result and is determined as the nearest content of the target;
The display position of the nearest content of the target is determined as the first display position, and will be outside the nearest content of the targetThe display position of other nearest contents is determined as the second display position, and the display priority of first display position is higher than describedThe display priority of second display position.
Optionally, second determination unit, is also used to:
When the nearest content is nearest text, semantic analysis is carried out to the nearest text, obtains first semantic pointAnalyse result;
Or,
When the nearest content is recent file, semantic analysis is carried out to the file name of the recent file, is obtainedSecond semantic analysis result;
Or,
When the nearest content is collection recently, semantic analysis is carried out to the collection title collected recently, is obtainedThird semantic analysis result;
Or,
When the nearest content is nearest picture, image recognition is carried out to the nearest picture, obtains image recognition knotFruit.
Optionally, the first determination unit and the second determination unit, are also used to:
When the nearest content of the target is at least two, when being generated according to the content of every nearest content of targetBetween, determine display sub- position of every nearest content of target in first display position;
When other described nearest contents are at least two, when the content of other nearest contents according to items generatesBetween, determine the every display sub- position of other nearest contents in second display position.
In conclusion in the embodiment of the present application, terminal after multitask interface shows the corresponding task identification of application program,When receiving the object run to multitask interface, nearest content bar, and root are shown in the target area of multitask interfaceAccording to the display position of the nearest content of the items determined, the corresponding content identification of nearest content is shown in nearest content bar;Terminal carries out centralized displaying to various types of nearest contents in multitask interface, facilitates user directly in multitask interface to mostNearly content is handled, and opens specific application program without user to check or handle nearest content, and then improve recentlyThe treatment effeciency of content.
The embodiment of the present application also provides a kind of computer-readable medium, which has at least oneInstruction, at least one instruction are loaded as the processor and are executed to realize nearest content described in as above each embodimentDisplay methods.
The embodiment of the present application also provides a kind of computer program product, which is stored at least oneInstruction, at least one instruction are loaded as the processor and are executed to realize nearest content described in as above each embodimentDisplay methods.
Those skilled in the art it will be appreciated that in said one or multiple examples, retouched by the embodiment of the present applicationThe function of stating can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by thisA little functions storages in computer-readable medium or as on computer-readable medium one or more instructions or code intoRow transmission.Computer-readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from oneAny medium of the place to another place transmission computer program.Storage medium can be general or specialized computer and can depositAny usable medium taken.
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein andWithin principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.