CN116069208A - Terminal control method, device, equipment and medium - Google Patents
Terminal control method, device, equipment and medium Download PDFInfo
- Publication number
- CN116069208A CN116069208A CN202111300869.4A CN202111300869A CN116069208A CN 116069208 A CN116069208 A CN 116069208A CN 202111300869 A CN202111300869 A CN 202111300869A CN 116069208 A CN116069208 A CN 116069208A
- Authority
- CN
- China
- Prior art keywords
- desktop
- target
- user information
- target application
- information
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开实施例涉及一种终端控制方法、装置、设备及介质,其中该方法包括:监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件;若是满足桌面切换条件,则获取目标应用的运行位置信息,并判断运行位置信息判是否处于系统前台;若处于系统前台,则生成与当前用户信息对应的目标桌面;将目标应用的原始桌面切换为目标桌面。由此,跟随用户信息的变化自动更新应用的桌面,提高了目标应用的桌面功能与用户的需求匹配度,且无需用户手动操作更新,提升了用户体验。
Embodiments of the present disclosure relate to a terminal control method, device, device, and medium, wherein the method includes: monitoring whether the current user information of the registered user of the target application satisfies the preset desktop switching condition; if the desktop switching condition is satisfied, obtaining the target The running location information of the application, and determine whether the running location information is in the foreground of the system; if it is in the foreground of the system, generate a target desktop corresponding to the current user information; switch the original desktop of the target application to the target desktop. As a result, the desktop of the application is automatically updated following changes in user information, which improves the matching degree between the desktop function of the target application and the user's needs, and does not require the user to manually update, thereby improving user experience.
Description
技术领域technical field
本公开涉及计算机应用技术领域,尤其涉及一种终端控制方法、装置、设备及介质。The present disclosure relates to the technical field of computer applications, and in particular to a terminal control method, device, equipment and medium.
背景技术Background technique
随着计算机技术的发展,满足用户各种需求的应用应运而生,为了适应用户的多种需求,应用中的功能也越发多样化。With the development of computer technology, applications that meet the various needs of users emerge as the times require. In order to meet the various needs of users, the functions in the applications are becoming more and more diverse.
相关技术中,当用户的需求变化时,用户在应用中搜索或者触发满足对应需求的功能,并在应用的桌面上新增对应功能入口,由此来实现应用对用户需求的跟随。In related technologies, when a user's demand changes, the user searches or triggers a function that meets the corresponding demand in the application, and adds a corresponding function entry on the desktop of the application, thereby implementing the application to follow the user's demand.
然而,上述应用桌面功能的变化,依赖于用户的手动触发,并且用户需要学习应用中包含的功能具体包括什么等,操作限制性较高。However, the above-mentioned change of the desktop function of the application depends on the manual triggering by the user, and the user needs to learn what the functions contained in the application specifically include, etc., and the operation is highly restrictive.
发明内容Contents of the invention
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种终端控制方法,所述方法包括:监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件;若是满足所述桌面切换条件,则获取所述目标应用的运行位置信息,并判断所述运行位置信息是否处于系统前台;若处于所述系统前台,则生成与所述当前用户信息对应的目标桌面;将所述目标应用的原始桌面切换为所述目标桌面。In order to solve the above technical problem or at least partly solve the above technical problem, the present disclosure provides a terminal control method, the method includes: monitoring whether the current user information of the registered user of the target application satisfies the preset desktop switching condition; The desktop switching condition is to obtain the running location information of the target application, and judge whether the running location information is in the foreground of the system; if it is in the foreground of the system, generate a target desktop corresponding to the current user information; The original desktop of the target application is switched to the target desktop.
本公开实施例还提供了一种终端控制装置,所述装置包括:监测模块,用于监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件;判断模块,用于在满足所述桌面切换条件时,获取所述目标应用的运行位置信息,并判断所述运行位置信息是否处于系统前台;生成模块,用于在处于所述系统前台时,则生成与所述当前用户信息对应的目标桌面;切换模块,用于将所述目标应用的原始桌面切换为所述目标桌面。An embodiment of the present disclosure also provides a terminal control device, the device includes: a monitoring module, configured to monitor whether the current user information of a registered user of a target application satisfies a preset desktop switching condition; When the desktop switching condition is described above, the running location information of the target application is obtained, and it is judged whether the running location information is in the system foreground; the target desktop; a switching module, configured to switch the original desktop of the target application to the target desktop.
本公开实施例还提供了一种电子设备,所述电子设备包括:处理器;用于存储所述处理器可执行指令的存储器;所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现如本公开实施例提供的终端控制方法。An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing instructions executable by the processor; and the processor, for reading the instruction from the memory. The instructions can be executed, and the instructions are executed to implement the terminal control method provided by the embodiments of the present disclosure.
本公开实施例还提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序用于执行如本公开实施例提供的终端控制方法。The embodiment of the present disclosure also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to execute the terminal control method provided in the embodiment of the present disclosure.
本公开实施例提供的技术方案与现有技术相比具有如下优点:Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have the following advantages:
本公开实施例提供的桌面切换方案,监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件,若是满足桌面切换条件,则获取目标应用的运行位置信息,并判断运行位置信息是否处于系统前台,进而,若处于系统前台,则生成与当前用户信息对应的目标桌面,将目标应用的原始桌面切换为目标桌面。由此,跟随用户信息的变化自动更新应用的桌面,提高了目标应用的桌面功能与用户的需求匹配度,且无需用户手动操作更新,提升了用户体验。The desktop switching solution provided by the embodiments of the present disclosure monitors whether the current user information of the registered user of the target application satisfies the preset desktop switching condition, and if the desktop switching condition is satisfied, obtains the running location information of the target application and judges whether the running location information is It is in the foreground of the system, and further, if it is in the foreground of the system, a target desktop corresponding to the current user information is generated, and the original desktop of the target application is switched to the target desktop. As a result, the desktop of the application is automatically updated following changes in user information, which improves the matching degree between the desktop function of the target application and the user's needs, and does not require the user to manually update, thereby improving user experience.
附图说明Description of drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
图1为本公开实施例提供的一种终端控制方法的流程示意图;FIG. 1 is a schematic flowchart of a terminal control method provided by an embodiment of the present disclosure;
图2为本公开实施例提供的一种目标应用的桌面示意图;FIG. 2 is a schematic diagram of a desktop of a target application provided by an embodiment of the present disclosure;
图3为本公开实施例提供的另一种目标应用的示意图;FIG. 3 is a schematic diagram of another target application provided by an embodiment of the present disclosure;
图4为本公开实施例提供的另一种终端控制方法的流程示意图;FIG. 4 is a schematic flowchart of another terminal control method provided by an embodiment of the present disclosure;
图5为本公开实施例提供的另一种终端控制方法的流程示意图;FIG. 5 is a schematic flowchart of another terminal control method provided by an embodiment of the present disclosure;
图6为本公开实施例提供的一种桌面切换场景示意图;FIG. 6 is a schematic diagram of a desktop switching scenario provided by an embodiment of the present disclosure;
图7为本公开实施例提供的另一种桌面切换场景示意图;FIG. 7 is a schematic diagram of another desktop switching scenario provided by an embodiment of the present disclosure;
图8为本公开实施例提供的一种终端控制装置的结构示意图;FIG. 8 is a schematic structural diagram of a terminal control device provided by an embodiment of the present disclosure;
图9为本公开实施例提供的一种电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein; A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method implementations of the present disclosure may be executed in different orders, and/or executed in parallel. Additionally, method embodiments may include additional steps and/or omit performing illustrated steps. The scope of the present disclosure is not limited in this respect.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "comprise" and its variations are open-ended, ie "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one further embodiment"; the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the sequence of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more" multiple".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are used for illustrative purposes only, and are not used to limit the scope of these messages or information.
为了解决上述问题,本公开实施例提供了一种终端控制方法,在该方法中,跟随用户需求的变化主动自动更新应用桌面功能,无需用户手动操作,也无需用户学习应用的功能包括什么,通过自动化更新桌面来跟随用户需求的变化,为提高用户和产品的粘性提供技术支撑。In order to solve the above problems, an embodiment of the present disclosure provides a terminal control method. In this method, the desktop function of the application is actively and automatically updated following the change of the user's demand, without manual operation by the user, and without the need for the user to learn what the function of the application includes. Automatically update the desktop to follow changes in user needs, providing technical support for improving user and product stickiness.
下面结合具体的实施例对该方法进行介绍。图1为本公开实施例提供的一种终端控制方法的流程示意图,该方法可以由终端控制装置执行,其中该装置可以采用软件和/或硬件实现,一般可集成在电子设备中。如图1所示,该方法包括:The method will be introduced below in combination with specific embodiments. FIG. 1 is a schematic flowchart of a terminal control method provided by an embodiment of the present disclosure. The method can be executed by a terminal control device, where the device can be implemented by software and/or hardware, and generally can be integrated into an electronic device. As shown in Figure 1, the method includes:
步骤101,监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件。
在本实施例中,目标应用包括但不限于任意在桌面上提供多种功能入口的教育类应用、游戏类应用、社交类应用等。In this embodiment, the target application includes, but is not limited to, any educational application, game application, social application, etc. that provide multiple function entries on the desktop.
举例而言,当目标应用为教育类应用A时,如图2所示,在教育类应用A上提供与用户信息对应的教育功能列表,和列表中每个功能对应的子功能等,比如,教育功能列表中的“推荐”功能,包括的子功能为“入园准备、习惯养成”、“晚安妈妈睡前故事”、“宝宝巴士儿歌”等。For example, when the target application is an educational application A, as shown in Figure 2, a list of educational functions corresponding to user information and sub-functions corresponding to each function in the list are provided on the educational application A, for example, The "recommendation" function in the educational function list includes sub-functions such as "preparation for kindergarten, habit formation", "good night mother's bedtime story", "babybus nursery rhymes" and so on.
由于应用中包含的功能数量较多,相关技术中,通过翻页查找等方式供用户选择其所需要的功能,并将其所需要的功能的快捷方式创建在桌面上。Due to the large number of functions included in the application, in related technologies, the user is allowed to select the desired function by means of turning pages to search, and a shortcut of the desired function is created on the desktop.
为了实现桌面的个性化“自动定制”,使得桌面上的功能与用户的需求吻合,无需用户主动查找等,在本公开的实施例中,主动去发现桌面切换的时机。In order to realize the personalized "automatic customization" of the desktop, so that the functions on the desktop match the needs of the user, without the need for the user to actively search, etc., in the embodiments of the present disclosure, the opportunity to switch the desktop is actively found.
具体来说,在本实施例中,检测目标应用注册用户的当前用户信息是否满足预设的桌面切换条件,其中,注册用户为目标应用对应的服务对象,用户信息是与目标应用提供功能有关联的信息,包括但不限于当前用户年龄信息、当前用户生理特征信息、当前任务完成积分信息中的一种或多种,比如,当目标应用为教育类应用,则对应的用户信息包括用户年龄信息,比如,当目标应用为游戏类应用,用户信息为当前任务完成积分信息等。Specifically, in this embodiment, it is detected whether the current user information of the registered user of the target application satisfies the preset desktop switching condition, wherein the registered user is the service object corresponding to the target application, and the user information is associated with the function provided by the target application information, including but not limited to one or more of current user age information, current user physiological feature information, and current task completion score information. For example, when the target application is an educational application, the corresponding user information includes user age information , for example, when the target application is a game application, the user information is the current task completion point information, etc.
在本实施例中,可以查询当前使用目标用户的用户个人信息获知用户信息,也可由用户通过语音等方式输入等。In this embodiment, the user information of the currently used target user can be queried to obtain the user information, or can be input by the user through voice or other means.
正因为用户信息是与目标应用提供功能有关联的信息,比如,对于教育类应用,不同年龄的用户需要的教育服务功能显然是不同的,因此,在本实施例中,通过检测目标应用的当前用户信息是否满足预设的桌面切换条件来主动去发现桌面切换的时机。其中,上述预设的桌面切换条件可以是任意指示当前用户信息,达到需要桌面上的功能切换的时机对应的条件。Because user information is information related to the functions provided by the target application, for example, for educational applications, users of different ages need different educational service functions. Therefore, in this embodiment, by detecting the current Whether the user information satisfies the preset desktop switching conditions to actively discover the timing of desktop switching. Wherein, the above-mentioned preset desktop switching condition may be arbitrarily indicating the current user information to meet the corresponding condition corresponding to the timing when the function switching on the desktop is required.
步骤102,若是满足桌面切换条件,则获取目标应用的运行位置信息,并判断运行位置信息是否处于系统前台。
在一些可能的实施例中,即使目标应用当前运行在系统前台,也并不意味着即时进行桌面的切换,为了在用户需要时候才进行桌面切换,还需要进一步获取目标应用的运行位置信息,该运行位置信息包括但不限于目标应用的使用或者其他应用的运行位置信息,并且根据运行位置信息判断目标应用是否处于系统前台,其中,若处于系统前台,则意味着用户此前可能需要目标用于提供服务,因此进一步进行桌面内容的适配。In some possible embodiments, even if the target application is currently running in the foreground of the system, it does not mean that the desktop is switched immediately. In order to switch the desktop when the user needs it, it is necessary to further obtain the running location information of the target application. The running location information includes but not limited to the use of the target application or the running location information of other applications, and judges whether the target application is in the foreground of the system based on the running location information. If it is in the foreground of the system, it means that the user may need the target to provide service, so the adaptation of the desktop content is further carried out.
步骤103,若处于系统前台,则生成与当前用户信息对应的目标桌面。
步骤104,将目标应用的原始桌面切换为目标桌面。
在本实施例中,若是处于系统前台,则生成与当前用户信息对应的目标桌面,即目标桌面上包括的功能是跟随用户信息的功能,将目标应用的原始桌面切换为目标桌面,此时原始桌面被替换掉,不会显示给用户。其中,目标桌面和原始桌面上的功能入口可以部分相同,但是相同部分的功能入口的显示方式可以不同等。功能入口可以显示为具体的功能图标,或者文字等任意形式。In this embodiment, if it is in the foreground of the system, a target desktop corresponding to the current user information is generated, that is, the function included on the target desktop is a function of following the user information, and the original desktop of the target application is switched to the target desktop. The desktop is replaced and is not displayed to the user. Wherein, the function entries on the target desktop and the original desktop may be partly the same, but the display modes of the function entries on the same part may be different. The function entry can be displayed as a specific function icon, or in any form such as text.
在本公开的一个实施例中,可以获取与当前用户信息对应的桌面渲染元素和桌面功能入口,比如查询预设数据库,获取与当前用户信息对应的桌面渲染元素和桌面功能入口,其中,桌面渲染元素包括但不限于桌面颜色、动画、布局等,进而,根据桌面渲染元素和桌面功能入口生成对应的目标桌面。In an embodiment of the present disclosure, the desktop rendering element and desktop function entry corresponding to the current user information can be obtained, such as querying a preset database to obtain the desktop rendering element and desktop function entry corresponding to the current user information, wherein the desktop rendering Elements include but not limited to desktop color, animation, layout, etc., and then, a corresponding target desktop is generated according to desktop rendering elements and desktop function entries.
举例而言,如图3所示,继续以图2的场景为例,当目标应用为教育类应用A且原始桌面为图2的桌面时,用户信息为用户年龄时,当用户的当前用户年龄符合桌面切换条件时,获取与当前用户年龄对应的功能入口包括教育功能列表,教育功能列表中包括“推荐”、“网课”、“歌单”等,教育功能列表中的“推荐”功能,包括的子功能为“幼小衔接,用于启蒙”、“晚安妈妈睡前故事”、“如何与小朋友们一起玩”、“宝宝要上学”等。根据该新的功能入口和对应的桌面渲染元素生成如图3所示的目标桌面。For example, as shown in Figure 3, continuing to take the scenario in Figure 2 as an example, when the target application is educational application A and the original desktop is the desktop in Figure 2, and the user information is the user's age, when the user's current user age When the desktop switching conditions are met, the function entry corresponding to the current user's age is obtained, including the educational function list, which includes "recommendation", "online class", "song list", etc., and the "recommendation" function in the educational function list, The sub-functions included are "Baby Connection for Enlightenment", "Goodnight Mother's Bedtime Story", "How to Play with Children", "Baby Going to School", etc. A target desktop as shown in FIG. 3 is generated according to the new function entry and the corresponding desktop rendering elements.
在本公开的另一个实施例中,目标应用在开发时配置设置了对应的功能描述,预先根据大量样本数据训练学习得到深度学习模型,该深度学习模型的输入为用户信息和功能描述,输出为匹配度,因此,可以根据深度学习模型输出的匹配度由高到低的顺序,筛选出匹配度较高的功能,并根据对应的功能入口生成功能入口。In another embodiment of the present disclosure, the target application is configured with a corresponding function description during development, and a deep learning model is obtained through training and learning based on a large amount of sample data in advance. The input of the deep learning model is user information and function description, and the output is Matching degree, therefore, according to the order of the matching degree output by the deep learning model from high to low, the functions with higher matching degree can be screened out, and the function entry can be generated according to the corresponding function entry.
综上,本公开实施例的终端控制方法,监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件,若是满足桌面切换条件,则获取目标应用的运行位置信息,并判断运行位置信息是否处于系统前台,进而,若处于系统前台,则生成与当前用户信息对应的目标桌面,将目标应用的原始桌面切换为目标桌面。由此,跟随用户信息的变化自动更新应用的桌面,提高了目标应用的桌面功能与用户的需求匹配度,且无需用户手动操作更新,提升了用户体验。To sum up, the terminal control method of the embodiment of the present disclosure monitors whether the current user information of the registered user of the target application satisfies the preset desktop switching condition, and if it meets the desktop switching condition, obtains the running location information of the target application and judges the running location. Whether the information is in the foreground of the system, and further, if it is in the foreground of the system, a target desktop corresponding to the current user information is generated, and the original desktop of the target application is switched to the target desktop. As a result, the desktop of the application is automatically updated following changes in user information, which improves the matching degree between the desktop function of the target application and the user's needs, and does not require the user to manually update, thereby improving user experience.
需要说明的是,在不同的应用场景中,检测目标应用的当前用户信息是否满足预设的桌面切换条件的方式不同,下面示例说明如下:It should be noted that, in different application scenarios, there are different ways to detect whether the current user information of the target application satisfies the preset desktop switching conditions. The following examples are as follows:
在本公开的一个实施例中,如图4所示,检测目标应用的当前用户信息是否满足预设的桌面切换条件,包括:In one embodiment of the present disclosure, as shown in FIG. 4 , detecting whether the current user information of the target application satisfies a preset desktop switching condition includes:
步骤401,获取目标应用的原始桌面对应的原始注册用户信息。
在本实施例中,原始桌面可以理解为目标应用在当前用户信息获取之前的桌面,原始桌面也是根据对应的原始注册用户信息确定的,确定方式和目标桌面的确定方式一致,在此不再赘述。In this embodiment, the original desktop can be understood as the desktop of the target application before the current user information is obtained. The original desktop is also determined according to the corresponding original registered user information. The determination method is consistent with the determination method of the target desktop, and will not be repeated here. .
步骤402,判断原始注册用户信息与当前应用信息是否一致。
由目标应用的桌面跟随用户信息,因此,可以通过判断原始注册用户信息与当前应用信息是否一致,判断是否满足预设的桌面切换条件,其中,若与当前应用信息不一致,则满足预设的桌面切换条件,反之,若是与当前应用信息一致,则不满足预设的桌面切换条件。The desktop of the target application follows the user information. Therefore, by judging whether the original registered user information is consistent with the current application information, it can be judged whether the preset desktop switching condition is met. If it is inconsistent with the current application information, the preset desktop is satisfied. switching condition, on the contrary, if it is consistent with the current application information, the preset desktop switching condition is not met.
在一些可能的实施例中,在预设数据库中构建不同的用户信息和为不同的应用服务标签的对应关系,比如,对于教育类应用,构建用户年龄为0-3岁和“学龄前幼儿教育服务”的对应关系、构建用户年龄为4-6岁和“幼儿园教育服务”的对应关系、构建7-13岁和“小学儿童教育服务”的对应关系等。从而,查询预设数据库分别获取与原始注册用户信息和当前应用信息对应的第一应用服务标签和第二应用服务标签,判断第一应用服务标签和第二应用服务标签是否一致,若是一致则认为不满足预设的桌面切换条件,若是不一致,则认为满足预设的桌面切换条件。In some possible embodiments, the corresponding relationship between different user information and service tags for different applications is constructed in the preset database. service", construct the corresponding relationship between users aged 4-6 and "kindergarten education service", construct the corresponding relationship between 7-13 years old and "primary school children's education service", etc. Therefore, query the preset database to obtain the first application service label and the second application service label corresponding to the original registered user information and the current application information respectively, and judge whether the first application service label and the second application service label are consistent, and if they are consistent, consider The preset desktop switching conditions are not met, and if they are inconsistent, the preset desktop switching conditions are considered to be satisfied.
在另一些可能的实施例中,可以预先划分用户信息的信息值的多信息值范围,比如,上述的0-3岁为一个信息值范围,4-6岁为另一个信息值范围等,在本实施例中,确定原始注册用户信息的信息值所属的第一信息值范围,以及当前用户信息的信息值所属的第二信息值范围,判断第一信息值范围和第二信息值范围是否一致,若是一致则认为不满足预设的桌面切换条件,若是不一致,则认为满足预设的桌面切换条件。In other possible embodiments, multiple information value ranges of the information value of user information can be pre-divided, for example, the above-mentioned 0-3 years old is one information value range, 4-6 years old is another information value range, etc., in In this embodiment, determine the first information value range to which the information value of the original registered user information belongs, and the second information value range to which the information value of the current user information belongs, and determine whether the first information value range and the second information value range are consistent , if they are consistent, it is considered that the preset desktop switching condition is not satisfied, and if they are not consistent, it is considered that the preset desktop switching condition is satisfied.
在本公开的另一个实施例中,预先设置某些特定的时用户信息触发桌面切换条件的成立,在本实施例中,判断当前用户信息是否属于预设切换用户信息,其中,若属于预设切换用户信息,则满足预设的桌面切换条件。In another embodiment of the present disclosure, some specific user information is preset to trigger the establishment of the desktop switching condition. In this embodiment, it is judged whether the current user information belongs to the preset switching user information, and if it belongs to the preset If the user information is switched, the preset desktop switching condition is satisfied.
继续以教育类目标应用为例,假设用户年龄到3岁时,即需要切换桌面,用户年龄到7岁时,需要进行桌面切换等。Continuing to take the educational target application as an example, assume that when the user reaches the age of 3, the desktop needs to be switched, and when the user reaches the age of 7, the desktop needs to be switched, etc.
综上,本公开实施例的终端控制方法,可以根据场景需要灵活确定目标应用是否处于桌面可切换状态,以便于及时发现用户需求的变化,便于跟随用户需求的变化切换目标应用的桌面。To sum up, the terminal control method of the embodiment of the present disclosure can flexibly determine whether the target application is in the desktop switchable state according to the needs of the scene, so as to detect changes in user needs in time and switch the desktop of the target application following the changes in user needs.
基于上述实施例,在实际执行过程中,在获知目标应用处于系统前台时,也不立即切换桌面,而是获取预先设置桌面更新时间点,在当前时间属于预设的桌面更新时间点,才认为目标应用处于桌面可切换状态,进而进行桌面的切换。Based on the above-mentioned embodiment, in the actual execution process, when it is known that the target application is in the foreground of the system, the desktop is not switched immediately, but the preset desktop update time point is obtained, and the current time belongs to the preset desktop update time point. The target application is in a state where the desktop can be switched, and then the desktop is switched.
在本公开的另一个实施例中,如图5所示,获取目标应用的运行位置信息,并根据运行位置信息判断所述目标应用是否处于系统前台,包括:In another embodiment of the present disclosure, as shown in FIG. 5 , acquiring the running location information of the target application, and judging whether the target application is in the foreground of the system according to the running location information includes:
步骤501,判断目标应用是否处于运行状态。
在本公开的实施例中,可以根据目标应用的进程标识是否属于当前终端设备运行的进程标识等方式,判断目标应用是否处于运行状态。In the embodiments of the present disclosure, it may be determined whether the target application is in the running state according to whether the process identifier of the target application belongs to the process identifier currently running on the terminal device.
步骤502,若处于运行状态,则获取目标应用的运行位置信息。
步骤503,判断运行位置信息是否处于系统前台;其中,若运行位置信息处于系统前台,则确定目标应用处于桌面可切换状态。
在本实施例中,若是处于运行状态,则获取目标应用的运行位置信息,其中,运行位置包括系统前台和系统后台等,进而,判断运行位置是否处于系统前台,其中,若运行位置处于系统前台,则确定目标应用处于桌面可切换状态,即为了提升用户使用目标应用的沉浸感,只有目标应用在前台运行时,才进行桌面切换。In this embodiment, if it is in the running state, obtain the running location information of the target application, wherein the running location includes the system foreground and the system background, etc., and then judge whether the running location is in the system foreground, wherein, if the running location is in the system foreground , it is determined that the target application is in the desktop switchable state, that is, in order to improve the user's immersion in using the target application, desktop switching is performed only when the target application is running in the foreground.
在一些可能的实施例中,目标应用在前台运行可能意味着目标应用正在被用户使用,因此,为了进一步提升用户体验,在确定目标应用在系统前台运行后,也可以不直接进行桌面的切换,而是进一步获取目标应用的当前运行功能,确定当前运行功能属于预设白名单功能时,才进行桌面切换,其中,预设白名单功能中包含了一个或多个即使中断也不会对用户的使用体验带来负面感受的功能,白名单中的功能可以根据大数据标定,也可以由用户根据个人需求设置。In some possible embodiments, the fact that the target application is running in the foreground may mean that the target application is being used by the user. Therefore, in order to further improve the user experience, after it is determined that the target application is running in the foreground of the system, the desktop may not be switched directly. Instead, it further obtains the current running function of the target application, and only performs desktop switching when it is determined that the current running function belongs to the preset whitelist function. For functions that bring negative feelings to the user experience, the functions in the whitelist can be calibrated based on big data, or set by the user according to personal needs.
在本实施例中,若是当前运行功能不属于预设白名单功能,则为了不会对用户的使用体验带来负面感受,等到当前运行功能服务完毕后,提醒用户是否进行桌面切换,当用户执行预设的确定切换操作后,才进行对应的桌面切换操作。In this embodiment, if the current running function does not belong to the preset whitelist function, in order not to bring negative feelings to the user experience, after the current running function service is completed, the user is reminded whether to perform desktop switching. When the user executes The corresponding desktop switching operation is performed only after the preset switching operation is confirmed.
或者,在本公开的一个实施例中,目标应用在前台运行可能意味着目标应用正在被用户使用,因此,为了进一步提升用户体验,避免打断用户的当前操作,在确定目标应用在系统前台运行后,也可以不直接进行桌面的切换,而是进一步显示桌面切换的提示消息,比如,弹窗显示“是否进行桌面切换”等,进而,若是获取到用户针对该提示消息的确认操作,则才进行对应的桌面切换操作。为了进一步提升用户的沉浸感,还可以在目标应用前台运行时,在原始桌面上显示弹窗,在弹窗中显示预设的切换动画,其中,预设的切换动画可以为任意预设的动画,比如,如图6所示,以图2和图3所示的场景为例,当切换动画是动画人物时,可以在弹窗中显示对应的动画任务和切换提醒消息,避免突然切换桌面影响用户的使用平滑感,其中,切换提醒消息可以为“正在为您切换桌面哦”。其中,为了进一步提升用户的沉浸感,在桌面切换完成后,还可以显示切换结束的提示消息等。Or, in an embodiment of the present disclosure, the fact that the target application is running in the foreground may mean that the target application is being used by the user. Therefore, in order to further improve the user experience and avoid interrupting the user's current operation, the target application is determined to be running in the system foreground. Finally, it is also possible not to directly switch between desktops, but to further display a prompt message for desktop switching, for example, a pop-up window displays "whether to perform desktop switching", etc., and then, if the user's confirmation operation for the prompt message is obtained, then only Perform the corresponding desktop switching operation. In order to further enhance the user's sense of immersion, when the target application is running in the foreground, a pop-up window can be displayed on the original desktop, and a preset switching animation can be displayed in the pop-up window, wherein the preset switching animation can be any preset animation For example, as shown in Figure 6, taking the scenes shown in Figure 2 and Figure 3 as an example, when the switching animation is an animated character, the corresponding animation task and switching reminder message can be displayed in a pop-up window to avoid the impact of sudden desktop switching The smoothness of the user's use, wherein the switching reminder message can be "Switching the desktop for you". Wherein, in order to further enhance the user's sense of immersion, after the desktop switching is completed, a prompt message of the switching end may also be displayed.
在本实施例中,为了进一步提升趣味性,还可以根据当前用户信息定制生成对应的切换动画,比如,预先构建用户信息和切换动画的对应关系,基于该对应关系,获取和当前用户信息对应的切换动画,比如,当用户年龄为7岁,则切换动画为小学生动画等。In this embodiment, in order to further improve the fun, the corresponding switching animation can also be customized and generated according to the current user information, for example, the corresponding relationship between the user information and the switching animation is constructed in advance, and based on the corresponding relationship, the corresponding user information corresponding to the current user information is obtained. Switch the animation, for example, when the user is 7 years old, switch the animation to an animation for elementary school students, etc.
进一步的,在一些可能的实施例中,继续参照图5,该方法还包括:Further, in some possible embodiments, continuing to refer to FIG. 5, the method further includes:
步骤504,若不处于运行状态,则获取目标应用的历史运行内存。
在本实施例中,若是不处于运行状态,则获取目标应用的历史运行内存,该历史运行内存可以理解为目标应用在运行时,占用的终端设备的内存量。In this embodiment, if it is not in the running state, the historical running memory of the target application is obtained. The historical running memory can be understood as the memory amount of the terminal device occupied by the target application when running.
步骤505,获取目标应用所在终端设备的当前空闲内存。
步骤506,计算当前空闲内存与历史运行内存的内存差值。
步骤507,判断内存差值是否大于预设内存阈值,其中,若大于预设内存阈值,则确定目标应用处于桌面可切换状态。
在本实施例中,考虑到切换桌面需要运行目标应用(可能是前台也有可能是后台),为了避免目标应用的运行打断用户当前在终端设备上的操作,需要确保目标应用被启动时,不会导致内存溢出或者导致当前操作响应速度较慢等,因此,获取目标应用所在终端设备的当前空闲内存,计算当前空闲内存与历史运行内存的内存差值,进而,判断内存差值是否大于预设内存阈值,其中,若大于预设内存阈值,则确定目标应用处于桌面可切换状态,其中,预设内存阈值可根据实验数据标定。In this embodiment, considering that switching the desktop needs to run the target application (which may be the foreground or the background), in order to prevent the operation of the target application from interrupting the user's current operation on the terminal device, it is necessary to ensure that when the target application is started, no It will cause memory overflow or cause the current operation response speed to be slow, etc. Therefore, obtain the current free memory of the terminal device where the target application is located, calculate the memory difference between the current free memory and the historical running memory, and then determine whether the memory difference is greater than the preset The memory threshold, wherein, if it is greater than the preset memory threshold, it is determined that the target application is in a desktop switchable state, wherein the preset memory threshold can be calibrated according to experimental data.
当然,在一些可能的实施例中,若是不处于运行状态,也可以暂停桌面切换,等到监测到目标应用切换到前台时才继续进行桌面的切换。Of course, in some possible embodiments, if it is not in the running state, the desktop switching can also be suspended, and the desktop switching will not be continued until it is detected that the target application is switched to the foreground.
为了使得本领域的技术人员更清楚的了解本公开实施例的终端控制方法,下面结合具体的场景说明整个桌面切换过程。在该场景中,目标应用为直播类应用B,桌面切换条件是用户的任务积分信息达到一定值进行切换,桌面可切换状态为前台运行。In order to make those skilled in the art understand the terminal control method of the embodiment of the present disclosure more clearly, the entire desktop switching process will be described below in combination with specific scenarios. In this scenario, the target application is live broadcast application B, the desktop switching condition is that the user's task score information reaches a certain value to switch, and the desktop can be switched to run in the foreground.
参照图7,目标应用B的原始桌面对应的任务积分信息为100,对应的原始桌面为初级用户对应的特效道具功能,包括初级特效道具1-3等功能入口,当检测到当前任务积分信息为1000,则满足桌面切换条件,检测到应用B前台运行时,开始切换原始桌面到当前任务积分信息为1000对应的目标桌面。Referring to Figure 7, the original desktop of the target application B corresponds to 100 task points information, and the corresponding original desktop is the special effect props function corresponding to the primary user, including the function entry of the primary special effect props 1-3, etc., when the current task point information is detected as 1000, the desktop switching condition is met, and when it is detected that application B is running in the foreground, start switching the original desktop to the target desktop corresponding to the current task score information of 1000.
在进行目标桌面的切换时,继续参照图7,弹窗显示对应的切换动画,在切换完毕后,关闭弹窗,可以看到应用B的目标桌面上除了包括初级特效道具1-3等功能入口之外,还包括了高级特效道具4-5等。When switching the target desktop, continue to refer to Figure 7, and the pop-up window displays the corresponding switching animation. After the switching is completed, close the pop-up window, and you can see that the target desktop of application B includes function entries such as primary special effect props 1-3 In addition, it also includes advanced special effects props 4-5 and so on.
综上,本公开实施例的终端控制方法,可以根据场景需要灵活判断目标应用是否处于桌面可切换状态,只有在目标应用处于桌面可切换状态时,才进行桌面切换,进一步提升了用户的使用体验。To sum up, the terminal control method of the embodiment of the present disclosure can flexibly determine whether the target application is in the desktop switchable state according to the needs of the scene, and only when the target application is in the desktop switchable state, the desktop is switched, which further improves the user experience. .
为了实现上述实施例,本公开还提出了一种终端控制装置。In order to realize the above embodiments, the present disclosure also proposes a terminal control device.
图8为本公开实施例提供的一种终端控制装置的结构示意图,该装置可由软件和/或硬件实现,一般可集成在电子设备中。如图8所示,该装置包括:监测模块810、判断模块820、生成模块830和切换模块840,其中,FIG. 8 is a schematic structural diagram of a terminal control device provided by an embodiment of the present disclosure. The device can be implemented by software and/or hardware, and generally can be integrated into an electronic device. As shown in Figure 8, the device includes: a
监测模块810,用于监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件;A
判断模块820,用于在满足桌面切换条件时,获取所述目标应用的运行位置信息,并判断所述运行位置信息是否处于系统前台;A judging
生成模块830,用于在处于系统前台时,则生成与当前用户信息对应的目标桌面;The
切换模块840,用于将目标应用的原始桌面切换为目标桌面。A
本公开实施例所提供的终端控制装置可执行本公开任意实施例所提供的终端控制方法,具备执行方法相应的功能模块和有益效果。The terminal control device provided in the embodiments of the present disclosure can execute the terminal control method provided in any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
为了实现上述实施例,本公开还提出一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述实施例中的终端控制方法In order to implement the above embodiments, the present disclosure also proposes a computer program product, including computer programs/instructions, which implement the terminal control method in the above embodiments when the computer program/instructions are executed by a processor
图9为本公开实施例提供的一种电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
下面具体参考图9,其示出了适于用来实现本公开实施例中的电子设备900的结构示意图。本公开实施例中的电子设备900可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图9示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring to FIG. 9 in detail below, it shows a schematic structural diagram of an electronic device 900 suitable for implementing an embodiment of the present disclosure. The electronic device 900 in the embodiment of the present disclosure may include, but not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), vehicle-mounted terminals ( Mobile terminals such as car navigation terminals) and stationary terminals such as digital TVs, desktop computers and the like. The electronic device shown in FIG. 9 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.
如图9所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(ROM)902中的程序或者从存储装置908加载到随机访问存储器(RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有电子设备900操作所需的各种程序和数据。处理装置901、ROM 902以及RAM903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in FIG. 9, an electronic device 900 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 901, which may be randomly accessed according to a program stored in a read-only memory (ROM) 902 or loaded from a
通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置907;包括例如磁带、硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图9示出了具有各种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 905:
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908被安装,或者从ROM 902被安装。在该计算机程序被处理装置901执行时,执行本公开实施例的终端控制方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 909, or from storage means 908, or from
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server can communicate using any currently known or future-developed network protocols such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium (eg, communication network) interconnections. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device:
监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件,若是满足桌面切换条件,则获取目标应用的运行位置信息,并判断运行位置信息是否处于系统前台,进而,若处于系统前台,则生成与当前用户信息对应的目标桌面,将目标应用的原始桌面切换为目标桌面。由此,跟随用户信息的变化自动更新应用的桌面,提高了目标应用的桌面功能与用户的需求匹配度,且无需用户手动操作更新,提升了用户体验。Monitor whether the current user information of the registered user of the target application satisfies the preset desktop switching conditions. If the desktop switching conditions are met, obtain the running location information of the target application, and determine whether the running location information is in the foreground of the system, and then, if it is in the foreground of the system , the target desktop corresponding to the current user information is generated, and the original desktop of the target application is switched to the target desktop. As a result, the desktop of the application is automatically updated following changes in user information, which improves the matching degree between the desktop function of the target application and the user's needs, and does not require the user to manually update, thereby improving user experience.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
根据本公开的一个或多个实施例,本公开提供了一种终端控制方法,包括:监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件;According to one or more embodiments of the present disclosure, the present disclosure provides a terminal control method, including: monitoring whether current user information of a registered user of a target application satisfies a preset desktop switching condition;
若是满足所述桌面切换条件,则获取所述目标应用的运行位置信息,并判断所述运行位置信息是否处于系统前台;If the desktop switching condition is satisfied, then obtain the running location information of the target application, and judge whether the running location information is in the foreground of the system;
若处于所述系统前台,则生成与所述当前用户信息对应的目标桌面;If it is in the foreground of the system, generating a target desktop corresponding to the current user information;
将所述目标应用的原始桌面切换为所述目标桌面。Switching the original desktop of the target application to the target desktop.
根据本公开的一个或多个实施例,本公开提供的终端控制方法中,所述监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件,包括:According to one or more embodiments of the present disclosure, in the terminal control method provided by the present disclosure, the monitoring whether the current user information of the registered user of the target application satisfies the preset desktop switching condition includes:
监测目标应用的注册用户的当前用户信息是否与原始注册用户信息一致,其中,若与所述原始注册用户信息不一致,则满足所述预设的桌面切换条件。Monitoring whether the current user information of the registered user of the target application is consistent with the original registered user information, wherein if it is inconsistent with the original registered user information, the preset desktop switching condition is met.
根据本公开的一个或多个实施例,本公开提供的终端控制方法中,所述判断所述原始注册用户信息与所述当前应用信息是否一致,包括:According to one or more embodiments of the present disclosure, in the terminal control method provided in the present disclosure, the judging whether the original registered user information is consistent with the current application information includes:
查询预设数据库分别获取与所述原始注册用户信息和所述当前应用信息对应的第一应用服务标签和第二应用服务标签;Querying a preset database to obtain a first application service tag and a second application service tag corresponding to the original registered user information and the current application information, respectively;
判断所述第一应用服务标签和所述第二应用服务标签是否一致。Judging whether the first application service tag is consistent with the second application service tag.
根据本公开的一个或多个实施例,本公开提供的终端控制方法中,所述检测目标应用的当前用户信息是否满足预设的桌面切换条件,包括:According to one or more embodiments of the present disclosure, in the terminal control method provided in the present disclosure, the detecting whether the current user information of the target application satisfies a preset desktop switching condition includes:
判断所述当前用户信息是否属于预设切换用户信息,其中,若属于所述预设切换用户信息,则满足所述预设的桌面切换条件。Judging whether the current user information belongs to the preset switching user information, wherein if it belongs to the preset switching user information, the preset desktop switching condition is satisfied.
根据本公开的一个或多个实施例,本公开提供的终端控制方法中,在所述将所述目标应用的原始桌面切换为所述目标桌面之前,包括:According to one or more embodiments of the present disclosure, the terminal control method provided in the present disclosure, before switching the original desktop of the target application to the target desktop, includes:
获取所述目标应用的当前运行功能;Obtaining the current running function of the target application;
确定所述当前运行功能属于预设白名单功能;或者,determining that the currently running function belongs to a preset whitelist function; or,
显示桌面切换的提示消息,获取到用户针对所述提示消息的确认操作。A prompt message of desktop switching is displayed, and a user's confirmation operation on the prompt message is obtained.
根据本公开的一个或多个实施例,本公开提供的终端控制方法中,According to one or more embodiments of the present disclosure, in the terminal control method provided in the present disclosure,
在所述判断所述运行位置信息是否处于系统前台之后,还包括:After the judging whether the running position information is in the foreground of the system, it also includes:
若不处于所述系统前台,则监测所述目标应用是否返回系统前台运行根据本公开的一个或多个实施例,本公开提供的终端控制方法中,所述生成与所述当前用户信息对应的目标桌面,包括:If it is not in the foreground of the system, monitor whether the target application returns to the foreground of the system to run. According to one or more embodiments of the present disclosure, in the terminal control method provided by the present disclosure, the generating Target desktops, including:
获取与所述当前用户信息对应的桌面渲染元素和桌面功能入口;Acquiring desktop rendering elements and desktop function entries corresponding to the current user information;
根据所述桌面渲染元素和桌面功能入口生成所述对应的目标桌面。The corresponding target desktop is generated according to the desktop rendering element and the desktop function entry.
根据本公开的一个或多个实施例,本公开提供的终端控制方法中,在所述将所述目标应用的原始桌面切换为所述目标桌面时,所述方法还包括:According to one or more embodiments of the present disclosure, in the terminal control method provided in the present disclosure, when switching the original desktop of the target application to the target desktop, the method further includes:
在所述原始桌面上显示弹窗,并在所述弹窗中显示预设的切换动画。A pop-up window is displayed on the original desktop, and a preset switching animation is displayed in the pop-up window.
根据本公开的一个或多个实施例,本公开提供的终端控制方法中,所述当前用户信息包括但不限于:According to one or more embodiments of the present disclosure, in the terminal control method provided by the present disclosure, the current user information includes but is not limited to:
当前用户年龄信息、当前用户生理特征信息、当前任务完成积分信息中的一种或多种。One or more of current user age information, current user physiological feature information, and current task completion score information.
根据本公开的一个或多个实施例,本公开提供了一种终端控制装置,包括:According to one or more embodiments of the present disclosure, the present disclosure provides a terminal control device, including:
监测模块,用于监测目标应用的注册用户的当前用户信息是否满足预设的桌面切换条件;A monitoring module, configured to monitor whether the current user information of the registered user of the target application satisfies a preset desktop switching condition;
判断模块,用于在满足所述桌面切换条件时,获取所述目标应用的运行位置信息,并判断所述运行位置信息是否处于系统前台;A judging module, configured to acquire the running location information of the target application when the desktop switching condition is met, and judge whether the running location information is in the foreground of the system;
生成模块,用于在处于所述系统前台时,则生成与所述当前用户信息对应的目标桌面;A generating module, configured to generate a target desktop corresponding to the current user information when in the foreground of the system;
切换模块,用于将所述目标应用的原始桌面切换为所述目标桌面。A switching module, configured to switch the original desktop of the target application to the target desktop.
根据本公开的一个或多个实施例,本公开提供的终端控制装置中,所述监测模块,具体用于:According to one or more embodiments of the present disclosure, in the terminal control device provided by the present disclosure, the monitoring module is specifically used for:
监测目标应用的注册用户的当前用户信息是否与原始注册用户信息一致,其中,若与所述原始注册用户信息不一致,则满足所述预设的桌面切换条件。Monitoring whether the current user information of the registered user of the target application is consistent with the original registered user information, wherein if it is inconsistent with the original registered user information, the preset desktop switching condition is satisfied.
根据本公开的一个或多个实施例,本公开提供的终端控制装置中,所述监测模块,具体用于:According to one or more embodiments of the present disclosure, in the terminal control device provided by the present disclosure, the monitoring module is specifically used for:
查询预设数据库分别获取与所述原始注册用户信息和所述当前应用信息对应的第一应用服务标签和第二应用服务标签;Querying a preset database to obtain a first application service tag and a second application service tag corresponding to the original registered user information and the current application information, respectively;
判断所述第一应用服务标签和所述第二应用服务标签是否一致。Judging whether the first application service tag is consistent with the second application service tag.
根据本公开的一个或多个实施例,本公开提供的终端控制装置中,所述监测模块,具体用于:According to one or more embodiments of the present disclosure, in the terminal control device provided by the present disclosure, the monitoring module is specifically used for:
判断所述当前用户信息是否属于预设切换用户信息,其中,若属于所述预设切换用户信息,则满足所述预设的桌面切换条件。Judging whether the current user information belongs to the preset switching user information, wherein if it belongs to the preset switching user information, the preset desktop switching condition is satisfied.
根据本公开的一个或多个实施例,本公开提供的终端控制装置中,还包括:确定模块,用于:According to one or more embodiments of the present disclosure, the terminal control device provided in the present disclosure further includes: a determining module, configured to:
获取所述目标应用的当前运行功能;Acquiring the current running function of the target application;
确定所述当前运行功能属于预设白名单功能;或者,determining that the currently running function belongs to a preset whitelist function; or,
显示桌面切换的提示消息,获取到用户针对所述提示消息的确认操作。A prompt message of desktop switching is displayed, and a user's confirmation operation on the prompt message is acquired.
根据本公开的一个或多个实施例,本公开提供的终端控制装置中,所述判断模块,具体用于:According to one or more embodiments of the present disclosure, in the terminal control device provided by the present disclosure, the judging module is specifically used for:
若不处于所述系统前台,则监测所述目标应用是否返回系统前台运行。If not in the foreground of the system, monitor whether the target application returns to the foreground of the system to run.
根据本公开的一个或多个实施例,本公开提供的终端控制装置中,所述生成模块,具体用于:According to one or more embodiments of the present disclosure, in the terminal control device provided in the present disclosure, the generating module is specifically configured to:
获取与所述当前用户信息对应的桌面渲染元素和桌面功能入口;Acquiring desktop rendering elements and desktop function entries corresponding to the current user information;
根据所述桌面渲染元素和桌面功能入口生成所述对应的目标桌面。The corresponding target desktop is generated according to the desktop rendering element and the desktop function entry.
根据本公开的一个或多个实施例,本公开提供的终端控制装置中,还包括:According to one or more embodiments of the present disclosure, the terminal control device provided in the present disclosure further includes:
显示模块,用于在所述原始桌面上显示弹窗,并在所述弹窗中显示预设的切换动画。The display module is configured to display a pop-up window on the original desktop, and display a preset switching animation in the pop-up window.
根据本公开的一个或多个实施例,本公开提供的终端控制装置中,According to one or more embodiments of the present disclosure, in the terminal control device provided in the present disclosure,
所述当前用户信息包括但不限于:The current user information includes but is not limited to:
当前用户年龄信息、当前用户生理特征信息、当前任务完成积分信息中的一种或多种。One or more of current user age information, current user physiological feature information, and current task completion score information.
根据本公开的一个或多个实施例,本公开提供了一种电子设备,包括:According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:
处理器;processor;
用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions;
所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现如本公开提供的任一所述的终端控制方法。The processor is configured to read the executable instruction from the memory, and execute the instruction to implement any one of the terminal control methods provided in the present disclosure.
根据本公开的一个或多个实施例,本公开提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序用于执行如本公开提供的任一所述的终端控制方法。According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to execute any terminal described in the present disclosure. Control Method.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an illustration of the applied technical principle. Those skilled in the art should understand that the disclosure scope involved in this disclosure is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features disclosed in this disclosure (but not limited to) having similar functions.
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, while operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or to be performed in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while the above discussion contains several specific implementation details, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111300869.4A CN116069208A (en) | 2021-11-04 | 2021-11-04 | Terminal control method, device, equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111300869.4A CN116069208A (en) | 2021-11-04 | 2021-11-04 | Terminal control method, device, equipment and medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116069208A true CN116069208A (en) | 2023-05-05 |
Family
ID=86179192
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111300869.4A Pending CN116069208A (en) | 2021-11-04 | 2021-11-04 | Terminal control method, device, equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116069208A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117131300A (en) * | 2023-09-04 | 2023-11-28 | 阳光慧碳科技有限公司 | A content display method, device, equipment and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030074496A1 (en) * | 2001-09-18 | 2003-04-17 | Kazuaki Takahashi | Information processing apparatus having simplified user switching function and program for use therewith |
| CN108170336A (en) * | 2017-12-27 | 2018-06-15 | 广东小天才科技有限公司 | Terminal desktop application display control method and system |
| CN108491244A (en) * | 2018-03-20 | 2018-09-04 | 深圳市万普拉斯科技有限公司 | A kind of Desktop-scene switching method, device and user terminal |
-
2021
- 2021-11-04 CN CN202111300869.4A patent/CN116069208A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030074496A1 (en) * | 2001-09-18 | 2003-04-17 | Kazuaki Takahashi | Information processing apparatus having simplified user switching function and program for use therewith |
| CN108170336A (en) * | 2017-12-27 | 2018-06-15 | 广东小天才科技有限公司 | Terminal desktop application display control method and system |
| CN108491244A (en) * | 2018-03-20 | 2018-09-04 | 深圳市万普拉斯科技有限公司 | A kind of Desktop-scene switching method, device and user terminal |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117131300A (en) * | 2023-09-04 | 2023-11-28 | 阳光慧碳科技有限公司 | A content display method, device, equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111580921B (en) | Content creation method and device | |
| CN110969012B (en) | Text error correction method and device, storage medium and electronic equipment | |
| CN114564269B (en) | Page display method, device, equipment, readable storage medium and product | |
| CN114707065A (en) | Page display method, apparatus, device, computer-readable storage medium and product | |
| WO2021135319A1 (en) | Deep learning based text generation method and apparatus and electronic device | |
| CN110516159B (en) | Information recommendation method and device, electronic equipment and storage medium | |
| WO2023279843A1 (en) | Content search method, apparatus and device, and storage medium | |
| CN110825481A (en) | Method and device for displaying page information corresponding to page tag and electronic equipment | |
| CN113254136B (en) | Information recommendation pop-up window display method, device, equipment and computer-readable medium | |
| WO2023142913A1 (en) | Video processing method and apparatus, readable medium and electronic device | |
| CN114760515A (en) | Method, device, equipment, storage medium and program product for displaying media content | |
| CN110276006A (en) | Display method, device, electronic device and computer-readable storage medium for Easter eggs | |
| CN115964553A (en) | Page display method, device, equipment and storage medium | |
| WO2022257797A1 (en) | Target content display method and apparatus, device, readable storage medium, and product | |
| CN114422482A (en) | Message sending method, apparatus, electronic device, storage medium and program product | |
| WO2024104336A1 (en) | Information acquisition method and apparatus, storage medium and electronic device | |
| CN116319932A (en) | Training method, device, equipment and storage medium of content push model | |
| CN116069208A (en) | Terminal control method, device, equipment and medium | |
| CN110286776A (en) | Input method, device, electronic equipment and the storage medium of character combination information | |
| CN116017061A (en) | Media content generation method, device, device, readable storage medium and product | |
| CN116628366A (en) | Floor page processing method and device | |
| CN115967822A (en) | Information display method, device, electronic device and storage medium | |
| CN114398135B (en) | Interaction method, device, electronic equipment, storage medium and program product | |
| CN115171695B (en) | Speech recognition method, apparatus, electronic device, and computer-readable medium | |
| WO2023222003A1 (en) | Image semantic alignment method and apparatus, and electronic device and storage medium |
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 |