[go: up one dir, main page]

CN107861759A - Window control method and device, terminal equipment and storage medium - Google Patents

Window control method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN107861759A
CN107861759A CN201711167126.8A CN201711167126A CN107861759A CN 107861759 A CN107861759 A CN 107861759A CN 201711167126 A CN201711167126 A CN 201711167126A CN 107861759 A CN107861759 A CN 107861759A
Authority
CN
China
Prior art keywords
window
pop
display parameters
event
interface
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
Application number
CN201711167126.8A
Other languages
Chinese (zh)
Inventor
林志泳
杜冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711167126.8A priority Critical patent/CN107861759A/en
Publication of CN107861759A publication Critical patent/CN107861759A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

本申请实施例公开了一种窗口控制方法、装置、终端设备及存储介质,该方法包括依据接收到的用户操作指令开启防弹窗模式;检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数;依据预设显示参数对所述弹窗的显示参数进行设置。本方案合理有效的避免了弹窗对用户的影响,简化了用户操作,提高了终端设备的运行效率,降低了终端设备的功耗。

The embodiment of the present application discloses a window control method, device, terminal device and storage medium, the method comprising: opening a bullet-proof window mode according to a received user operation instruction; when an interface window pop-up event is detected, obtaining display parameters of the pop-up window corresponding to the interface window pop-up event; and setting the display parameters of the pop-up window according to preset display parameters. This solution reasonably and effectively avoids the impact of pop-up windows on users, simplifies user operations, improves the operating efficiency of terminal devices, and reduces the power consumption of terminal devices.

Description

窗口控制方法、装置、终端设备及存储介质Window control method, device, terminal equipment and storage medium

技术领域technical field

本申请实施例涉及计算机技术,尤其涉及一种窗口控制方法、装置、终端设备及存储介质。The embodiments of the present application relate to computer technology, and in particular to a window control method, device, terminal equipment, and storage medium.

背景技术Background technique

随着终端设备普及程度的提高,越来越多的用户使用终端设备执行各种各样的功能以满足自身需求,如使用终端设备阅读文字、观看视频、听音乐、玩游戏等,随着终端设备功能的不断强大,其中安装的各类系统应用以及第三方应用程序也逐渐增多。With the increasing popularity of terminal devices, more and more users use terminal devices to perform various functions to meet their own needs, such as using terminal devices to read text, watch videos, listen to music, play games, etc. As the functions of devices become more and more powerful, various system applications and third-party applications installed in them are gradually increasing.

现有技术中,终端设备安装的应用程序会在用户不知情的情况下弹出窗口,影响用户使用,现有的终端界面的窗口控制方式存在缺陷,增加了用户操作复杂度,降低了终端设备的处理效率,提升了功耗。In the prior art, the application program installed on the terminal device will pop up a window without the user's knowledge, which affects the user's use. The existing window control method of the terminal interface has defects, which increases the complexity of user operation and reduces the operating cost of the terminal device. Processing efficiency, improved power consumption.

发明内容Contents of the invention

本发明提供了一种窗口控制方法、装置、终端设备及存储介质,合理有效的避免了弹窗对用户的影响,简化了用户操作,提高了终端设备的运行效率,降低了终端设备的功耗。The present invention provides a window control method, device, terminal equipment and storage medium, which reasonably and effectively avoids the impact of pop-up windows on users, simplifies user operations, improves the operating efficiency of terminal equipment, and reduces the power consumption of terminal equipment .

第一方面,本申请实施例提供了一种窗口控制方法,包括:In the first aspect, the embodiment of the present application provides a window control method, including:

依据接收到的用户操作指令开启防弹窗模式;Open the bulletproof window mode according to the received user operation instruction;

检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数;When the pop-up event of the interface window is detected, the display parameters of the pop-up window corresponding to the pop-up event of the interface window are acquired;

依据预设显示参数对所述弹窗的显示参数进行设置。The display parameters of the pop-up window are set according to the preset display parameters.

第二方面,本申请实施例还提供了一种窗口控制装置,包括:In the second aspect, the embodiment of the present application also provides a window control device, including:

防护开启模块,用于依据接收到的用户操作指令开启防弹窗模式;The protection opening module is used to open the bulletproof window mode according to the received user operation instruction;

数据信息确定模块,用于检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数;The data information determining module is used to obtain the display parameters of the pop-up window corresponding to the pop-up event of the interface window when the pop-up event of the interface window is detected;

响应处理模块,用于依据预设显示参数对所述弹窗的显示参数进行设置。The response processing module is used to set the display parameters of the pop-up window according to the preset display parameters.

第三方面,本申请实施例还提供了一种终端设备,包括:处理器、存储器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的窗口控制方法。In the third aspect, the embodiment of the present application also provides a terminal device, including: a processor, a memory, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program, the following is implemented: The window control method described in the embodiment of this application.

第四方面,本申请实施例还提供了一种包含终端设备可执行指令的存储介质,所述终端设备可执行指令在由终端设备处理器执行时用于执行本申请实施例所述的窗口控制方法。In the fourth aspect, the embodiment of the present application further provides a storage medium containing executable instructions of the terminal device, and the executable instruction of the terminal device is used to perform the window control described in the embodiment of the present application when executed by the processor of the terminal device method.

本方案中,依据接收到的用户操作指令开启防弹窗模式,检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数,依据预设显示参数对所述弹窗的显示参数进行设置,合理有效的避免了弹窗对用户的影响,简化了用户操作,提高了终端设备的运行效率,降低了终端设备的功耗。In this solution, the bullet-proof window mode is turned on according to the received user operation instruction, and when an interface window pop-up event is detected, the display parameters of the pop-up window corresponding to the interface window pop-up event are obtained, and the pop-up window is displayed according to the preset display parameters. Setting display parameters reasonably and effectively avoids the impact of pop-up windows on users, simplifies user operations, improves the operating efficiency of terminal equipment, and reduces the power consumption of terminal equipment.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请实施例提供的一种窗口控制方法的流程图;FIG. 1 is a flow chart of a window control method provided in an embodiment of the present application;

图2是本发明实施例提供的另一种窗口控制方法的流程图;FIG. 2 is a flow chart of another window control method provided by an embodiment of the present invention;

图3是本申请实施例提供的另一种窗口控制方法的流程图;Fig. 3 is a flow chart of another window control method provided by the embodiment of the present application;

图4是本申请实施例提供的一种窗口控制装置的结构框图;Fig. 4 is a structural block diagram of a window control device provided by an embodiment of the present application;

图5是本申请实施例提供的一种终端设备的结构示意图。FIG. 5 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are used to explain the present invention rather than limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.

图1是本申请实施例提供的一种窗口控制方法的流程图,可适用于对终端设备的界面显示窗口进行控制,该方法可以由本申请实施例提供的终端设备来执行,该终端设备的窗口控制装置可采用软件和/或硬件的方式实现,如图1所示,本实施例提供的具体方案如下:Fig. 1 is a flow chart of a window control method provided in the embodiment of the application, which is applicable to control the interface display window of the terminal device, and the method can be executed by the terminal device provided in the embodiment of the application, the window of the terminal device The control device can be implemented in the form of software and/or hardware, as shown in Figure 1, the specific solution provided by this embodiment is as follows:

步骤S101、依据接收到的用户操作指令开启防弹窗模式。Step S101. Turn on the bulletproof window mode according to the received user operation instruction.

当前,智能系统己经是用户群最大的智能终端操作系统平台,智能终端是目前许多用户最常用最重要的电子设备,用户经常会安装各种第三方应用,这些第三方应用的使用很多都不太规范,有一些应用经常会在后台弹出各种界面,广告窗口之类来影响用户的正常使用,而现有的android系统本身并没有一种有效的防止这些三方应用在后台弹出窗口或界面的办法,大多数的拦截方法都需要用户设置各种策略,或通过用户各种操作来拦截弹出窗口,而且还会误拦截,缺少一种更加具备有效性,操作简便的智能限制应用后台弹出窗口或界面的方法,不利于操作用户的体验。At present, the smart system is already the operating system platform for smart terminals with the largest user base. Smart terminals are currently the most commonly used and most important electronic devices for many users. Users often install various third-party applications. Many of these third-party applications are not used. Too standard, some applications often pop up various interfaces, advertisement windows and the like in the background to affect the normal use of users, and the existing android system itself does not have an effective way to prevent these third-party applications from popping up windows or interfaces in the background Most of the interception methods require the user to set various policies, or intercept pop-up windows through various user operations, and they will also intercept them by mistake. There is a lack of a more effective and easy-to-operate intelligent limit application background pop-up window or The interface method is not conducive to operating the user's experience.

在Android系统中,系统通过窗口管理服务WindowManagerService,简称WMS负责管理系统与所有应用的窗口,包括各种窗口信息、窗口层次、窗口绘制、窗口动画、窗口是否可见、窗口透明度和窗口的显示等等。In the Android system, the system uses the window management service WindowManagerService, referred to as WMS, to manage the windows of the system and all applications, including various window information, window hierarchy, window drawing, window animation, whether the window is visible, window transparency and window display, etc. .

在一个实施例中,依据接收到的用户操作指令开启防弹窗模式。其中,该防弹窗模式为设置的一种防止意外、非法弹窗影响的弹窗控制方式,当终端设备进入防弹窗模式后,即运行本申请的防弹窗机制。具体的,该用户操作指令可以是定义的一种预设操作指令,如用户在某个界面a进行双击(或从底部往上滑,从顶部往下滑等)时,界面a所属的应用b的所有界面即进入防弹窗模式。In one embodiment, the bulletproof window mode is enabled according to the received user operation instruction. Wherein, the bullet-proof window mode is a pop-up window control method set to prevent accidental and illegal pop-up windows. When the terminal device enters the bullet-proof window mode, it will run the bullet-proof window mechanism of the present application. Specifically, the user operation instruction may be a defined preset operation instruction. For example, when the user double-clicks (or slides up from the bottom, slides down from the top, etc.) All interfaces enter the bullet-proof window mode.

骤S102、检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数。Step S102, when an interface window pop-up event is detected, acquire display parameters of a pop-up window corresponding to the interface window pop-up event.

当界面窗口弹出事件被触发后即执行相应的程序以实现对应的弹窗。在一个实施例中,通过在窗口管理服务中增加管控机制以实现、运行本申请方案,首先在窗口管理服务中设置一监听器,用于监听窗口弹出事件,示例性的,以android操作系统为例,可对Dialog和PopUpWindow的方法调用事件进行监听,确定Dialog或PopUpWindow方法被调用后即认定检测到界面窗口弹出事件。检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数,其中该显示参数包括弹窗的显示位置参数、透明度参数等。具体的,以android操作系统为例,调用Dialog或PopUpWindow中的方法函数已确定当前弹窗的显示参数,如getDialog().getWindow().getAttributes().width。When the interface window pop-up event is triggered, the corresponding program is executed to realize the corresponding pop-up window. In one embodiment, by adding a management and control mechanism in the window management service to implement and run the application scheme, first set a listener in the window management service for listening to window pop-up events, for example, the android operating system is used as For example, the method call event of Dialog and PopUpWindow can be monitored, and it is determined that the interface window pop-up event is detected after the Dialog or PopUpWindow method is called. When an interface window pop-up event is detected, display parameters of a pop-up window corresponding to the interface window pop-up event are acquired, wherein the display parameters include a display position parameter, a transparency parameter, and the like of the pop-up window. Specifically, taking the android operating system as an example, call a method function in Dialog or PopUpWindow to determine the display parameters of the current pop-up window, such as getDialog().getWindow().getAttributes().width.

步骤S103、依据预设显示参数对所述弹窗的显示参数进行设置。Step S103, setting the display parameters of the pop-up window according to the preset display parameters.

其中,预设显示参数为预先设置的在防弹窗模式下新弹窗的显示方式。在一个实施例中,所述依据预设显示参数对所述弹窗的显示参数进行设置包括:依据预设显示参数将所述弹窗的透明度设置为透明。在一个实施例中,可以是:获取当前显示界面的显示内容,依据所述显示内容确定所述弹窗的显示位置并进行相应的显示参数的设置。示例性的,将该弹窗显示在当前显示界面的非操控位置,或者非核心位置。Wherein, the preset display parameter is a preset display mode of the new pop-up window in the bulletproof window mode. In one embodiment, the setting the display parameters of the pop-up window according to the preset display parameters includes: setting the transparency of the pop-up window to transparent according to the preset display parameters. In an embodiment, it may be: acquire the display content of the current display interface, determine the display position of the pop-up window according to the display content, and set corresponding display parameters. Exemplarily, the pop-up window is displayed at a non-manipulation position of the current display interface, or a non-core position.

由上述内容可知,依据接收到的用户操作指令开启防弹窗模式,检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数,依据预设显示参数对所述弹窗的显示参数进行设置,如设置弹窗透明度为全透明,或将弹窗设置在当前显示界面的非核心位置,由此合理有效的避免了弹窗对用户的影响,简化了用户操作,提高了终端设备的运行效率,降低了终端设备的功耗。It can be seen from the above content that the bullet-proof window mode is turned on according to the received user operation instruction, and when an interface window pop-up event is detected, the display parameters of the pop-up window corresponding to the interface window pop-up event are obtained, and the pop-up window is displayed according to the preset display parameters. For example, setting the transparency of the pop-up window to be fully transparent, or setting the pop-up window at a non-core position of the current display interface, thereby reasonably and effectively avoiding the impact of the pop-up window on the user, simplifying user operations, and improving the user experience. The operating efficiency of the terminal equipment is improved, and the power consumption of the terminal equipment is reduced.

图2是本申请实施例提供的另一种窗口控制方法的流程图,可选的,依据预设显示参数对所述弹窗的显示参数进行设置包括:判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件,如果不满足,则依据预设显示参数对所述弹窗的显示参数进行设置。如图2所示,技术方案具体如下:Fig. 2 is a flowchart of another window control method provided by the embodiment of the present application. Optionally, setting the display parameters of the pop-up window according to the preset display parameters includes: judging the application corresponding to the pop-up event of the interface window Whether the program satisfies the condition of the pop-up window, if not, the display parameters of the pop-up window are set according to the preset display parameters. As shown in Figure 2, the technical solution is as follows:

步骤S201、依据接收到的用户操作指令开启防弹窗模式。Step S201. Turn on the bulletproof window mode according to the received user operation instruction.

步骤S202、检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数。Step S202, when an interface window pop-up event is detected, acquire display parameters of a pop-up window corresponding to the interface window pop-up event.

步骤S203、判断所述界面窗口弹出事件对应的应用程序是否为用户手动启动,如果否,则执行步骤S204,如果是,则执行步骤S205。Step S203 , judging whether the application program corresponding to the interface window pop-up event is manually started by the user, if not, execute step S204 , and if yes, execute step S205 .

在一个实施例中,判断界面窗口弹出事件对应的应用程序是否为用户手动启动可以是:获取触发所述界面窗口弹出事件的操作链路,如果依据所述操作链路确定出所述界面窗口弹出事件为非用户触发,则禁止对所述界面窗口弹出事件进行响应。其中,该操作链路为检测到防弹窗模式开启后,通过操作系统中的窗口管理服务、应用活动管理服务以及输入服务对响应用户点击操作产生的处理链路进行记录生成操作链路,具体的,依据记录的点击操作触发启动的后台服务、调用者以判断当前界面窗口弹出事件是否和该点击操作关联,可选的,获取触发界面窗口弹出事件的服务进程以及调用者,如果判断出该界面窗口弹出事件的服务进程以及调用者存在在记录的用户点击操作触发的操作链路中,则确定该界面窗口弹出事件为用户手动触发,反之,则确定界面窗口弹出事件为非用户手动触发。在一个实施例中,还可采取:取所述界面窗口弹出事件触发之前的响应用户触控操作的时间信息以及对应的应用程序信息,如果依据所述时间信息以及所述应用程序信息确定出所述界面窗口弹出事件为非用户触发,则禁止对所述界面窗口弹出事件进行响应,具体的,在一个实施例中,开启防弹窗模式后,对用户的点击操作的时间信息以及该点击操作对应的执行应用程序进行记录,示例性的,以android操作系统为例,当监听到按钮、列表等界面控件响应点击操作时,记录当前的时间点,并相应的获取点击操作界面的应用程序的标识,判断过程可以是:设定一时间阈值,若记录的最近一次的点击操作到界面弹窗事件被触发时的时间大于该预设阈值(如60秒),且该记录的点击操作对应的应用程序非当前界面运行的应用程序,则确定该界面窗口弹出事件为非用户手动触发,反之,则确定界面窗口弹出事件为用户手动触发。In one embodiment, judging whether the application program corresponding to the interface window pop-up event is manually started by the user may be: acquiring the operation link that triggers the interface window pop-up event, and if it is determined according to the operation link that the interface window pop-up If the event is not triggered by the user, it is forbidden to respond to the pop-up event of the interface window. Among them, the operation link is to record the processing link generated in response to the user's click operation through the window management service, application activity management service and input service in the operating system after the bulletproof window mode is detected to generate an operation link. According to the recorded click operation, trigger the background service and caller to determine whether the current interface window pop-up event is associated with the click operation. Optionally, obtain the service process and caller that triggered the interface window pop-up event. If the interface is determined If the service process and the caller of the window pop-up event exist in the operation link triggered by the recorded user click operation, then it is determined that the interface window pop-up event is manually triggered by the user; otherwise, it is determined that the interface window pop-up event is not manually triggered by the user. In an embodiment, it may also be adopted: to obtain the time information of responding to the user's touch operation and the corresponding application program information before the interface window pop-up event is triggered, and if the time information and the application program information are used to determine the If the pop-up event of the interface window is not triggered by the user, it is forbidden to respond to the pop-up event of the interface window. Specifically, in one embodiment, after the bullet-proof window mode is turned on, the time information of the user's click operation and the corresponding click operation For example, take the android operating system as an example, when the button, list and other interface controls are detected to respond to the click operation, record the current time point, and correspondingly obtain the identification of the application program that clicks the operation interface , the judgment process can be: set a time threshold, if the time from the last recorded click operation to when the interface pop-up window event is triggered is greater than the preset threshold (such as 60 seconds), and the recorded click operation corresponds to the application If the program is not an application running on the current interface, it is determined that the pop-up event of the interface window is not manually triggered by the user; otherwise, it is determined that the pop-up event of the interface window is manually triggered by the user.

步骤S204、依据预设显示参数将所述弹窗的透明度设置为透明。Step S204, setting the transparency of the pop-up window to transparent according to preset display parameters.

以安卓系统为例,设置方式可以是:Taking the Android system as an example, the setting method can be:

Final WindowManager.LayoutParams params=Final WindowManager.LayoutParams params=

DialogActivity.this.getWindow().getAttributes();DialogActivity.this.getWindow().getAttributes();

params.alpha=1f;params.alpha = 1f;

DialogActivity.this.getWindow().setAttributes(params)DialogActivity.this.getWindow().setAttributes(params)

步骤S205、依据界面窗口弹出事件对应的弹窗的显示参数进行弹窗显示。Step S205 , displaying the pop-up window according to the display parameters of the pop-up window corresponding to the interface window pop-up event.

由上述可知,在对弹窗进行设置时,进一步将弹窗是否为用户手动触发引入参考条件中,将用户手动触发的弹出的显示参数保持原有参数,非用户手动触发的弹出如弹窗广告、三方应用弹窗等设置为透明,避免弹窗对用户的影响。It can be seen from the above that when setting the pop-up window, whether the pop-up window is manually triggered by the user is further introduced into the reference condition, and the display parameters of the pop-up manually triggered by the user remain the original parameters, and the pop-up that is not manually triggered by the user is like a pop-up advertisement , Three-party application pop-up windows, etc. are set to be transparent to avoid the impact of pop-up windows on users.

图3是本申请实施例提供的另一种窗口控制方法的流程图,可选的,所述判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件包括:判断所述界面窗口弹出事件对应的应用程序是否在前台运行。如图3所示,技术方案具体如下:Fig. 3 is a flow chart of another window control method provided by the embodiment of the present application. Optionally, the judging whether the application program corresponding to the pop-up event of the interface window satisfies the pop-up window condition includes: judging the pop-up event of the interface window Whether the corresponding application is running in the foreground. As shown in Figure 3, the technical solution is as follows:

步骤S301、依据接收到的用户操作指令开启防弹窗模式。Step S301. Turn on the bulletproof window mode according to the received user operation instruction.

步骤S302、检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数。Step S302, when an interface window pop-up event is detected, acquire display parameters of a pop-up window corresponding to the interface window pop-up event.

步骤S303、判断所述界面窗口弹出事件对应的应用程序是否在前台运行,如果否,则执行步骤S304,如果是,则执行步骤S305。Step S303 , judging whether the application program corresponding to the interface window pop-up event is running in the foreground, if not, execute step S304 , and if yes, execute step S305 .

示例性的,可获取触发界面窗口弹出事件的进程号,根据该进程号在系统运行进程中进行查询以判断其是否为前台运行进程触发。Exemplarily, the process number that triggers the pop-up event of the interface window can be obtained, and according to the process number, it can be queried in the system running process to determine whether it is triggered by the foreground running process.

步骤S304、获取当前显示界面的显示内容,依据所述显示内容确定所述弹窗的显示位置并进行相应的显示参数的设置。Step S304, acquire the display content of the current display interface, determine the display position of the pop-up window according to the display content, and set corresponding display parameters.

在一个实施例中,获取当前显示界面的界面布局,如按钮、复选框、下拉列表等控件的排布位置,将该弹窗的显示位置设置在非控件布局的界面位置。具体的,设置方式可以是首先按照预设长度(如3cm)、宽度(如3cm)设置弹窗的长宽,再将其设置在选定的界面位置中。示例性的,可设置PopUpWindow的参数如下“'width=50,height=50left=300,top=300”。In one embodiment, the interface layout of the currently displayed interface is obtained, such as the arrangement positions of controls such as buttons, check boxes, and drop-down lists, and the display position of the pop-up window is set at the interface position of the non-control layout. Specifically, the setting method may be to first set the length and width of the pop-up window according to the preset length (such as 3 cm) and width (such as 3 cm), and then set it in the selected interface position. Exemplarily, the parameters of the PopUpWindow can be set as follows "'width=50, height=50left=300, top=300".

步骤S305、依据界面窗口弹出事件对应的弹窗的显示参数进行弹窗显示。Step S305 , displaying the pop-up window according to the display parameters of the pop-up window corresponding to the interface window pop-up event.

由上述可知,在对弹窗进行设置时,进一步结合判断弹窗是否为前台应用触发,将非前台应用触发的弹窗如弹窗广告、三方应用弹窗等重新布局其位置参数,避免弹窗对用户正在使用的应用程序造成影响。It can be seen from the above that when setting the pop-up window, it is further combined with judging whether the pop-up window is triggered by the foreground application, and the position parameters of the pop-up window triggered by the non-foreground application, such as pop-up advertisements and third-party application pop-up windows, etc., are re-arranged to avoid pop-up windows Impact the application the user is using.

在一个可能的实施例中,所述判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件包括:获取终端设备的操作记录,依据所述操作记录中记载的应用程序弹窗频次、弹窗关闭时间确定所述界面窗口弹出事件对应的应用程序是否满足弹窗条件,如果不满足弹窗条件,则依据预设显示参数对所述弹窗的显示参数进行设置。In a possible embodiment, the judging whether the application program corresponding to the interface window pop-up event satisfies the pop-up window condition includes: obtaining the operation record of the terminal device, and according to the pop-up frequency and pop-up window frequency of the application program recorded in the operation record, The window closing time determines whether the application program corresponding to the pop-up event of the interface window satisfies the pop-up window condition, and if the pop-up window condition is not satisfied, the display parameters of the pop-up window are set according to the preset display parameters.

图4是本申请实施例提供的一种窗口控制装置的结构框图,该装置用于执行上述实施例提供的窗口控制方法,具备执行方法相应的功能模块和有益效果。如图4所示,该装置具体包括:防护开启模块101、数据信息确定模块102和响应处理模块103,其中,Fig. 4 is a structural block diagram of a window control device provided in an embodiment of the present application. The device is used to execute the window control method provided in the above embodiment, and has corresponding functional modules and beneficial effects for executing the method. As shown in Figure 4, the device specifically includes: a protection opening module 101, a data information determination module 102 and a response processing module 103, wherein,

防护开启模块101,用于依据接收到的用户操作指令开启防弹窗模式。The protection opening module 101 is configured to open the bulletproof window mode according to the received user operation instruction.

在Android系统中,系统通过窗口管理服务WindowManagerService,简称WMS负责管理系统与所有应用的窗口,包括各种窗口信息、窗口层次、窗口绘制、窗口动画、窗口是否可见、窗口透明度和窗口的显示等等。In the Android system, the system uses the window management service WindowManagerService, referred to as WMS, to manage the windows of the system and all applications, including various window information, window hierarchy, window drawing, window animation, whether the window is visible, window transparency and window display, etc. .

在一个实施例中,依据接收到的用户操作指令开启防弹窗模式。其中,该防弹窗模式为设置的一种防止意外、非法弹窗影响的弹窗控制方式,当终端设备进入防弹窗模式后,即运行本申请的防弹窗机制。具体的,该用户操作指令可以是定义的一种预设操作指令,如用户在某个界面a进行双击(或从底部往上滑,从顶部往下滑等)时,界面a所属的应用b的所有界面即进入防弹窗模式。In one embodiment, the bulletproof window mode is enabled according to the received user operation instruction. Wherein, the bullet-proof window mode is a pop-up window control method set to prevent accidental and illegal pop-up windows. When the terminal device enters the bullet-proof window mode, it will run the bullet-proof window mechanism of the present application. Specifically, the user operation instruction may be a defined preset operation instruction. For example, when the user double-clicks (or slides up from the bottom, slides down from the top, etc.) All interfaces enter the bullet-proof window mode.

数据信息确定模块102,用于检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数。The data information determination module 102 is configured to acquire display parameters of a pop-up window corresponding to the interface window pop-up event when an interface window pop-up event is detected.

当界面窗口弹出事件被触发后即执行相应的程序以实现对应的弹窗。在一个实施例中,通过在窗口管理服务中增加管控机制以实现、运行本申请方案,首先在窗口管理服务中设置一监听器,用于监听窗口弹出事件,示例性的,以android操作系统为例,可对Dialog和PopUpWindow的方法调用事件进行监听,确定Dialog或PopUpWindow方法被调用后即认定检测到界面窗口弹出事件。检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数,其中该显示参数包括弹窗的显示位置参数、透明度参数等。具体的,以android操作系统为例,调用Dialog或PopUpWindow中的方法函数已确定当前弹窗的显示参数,如getDialog().getWindow().getAttributes().width。When the interface window pop-up event is triggered, the corresponding program is executed to realize the corresponding pop-up window. In one embodiment, by adding a management and control mechanism in the window management service to implement and run the application scheme, first set a listener in the window management service for listening to window pop-up events, for example, the android operating system is used as For example, the method call event of Dialog and PopUpWindow can be monitored, and it is determined that the interface window pop-up event is detected after the Dialog or PopUpWindow method is called. When an interface window pop-up event is detected, display parameters of a pop-up window corresponding to the interface window pop-up event are acquired, wherein the display parameters include a display position parameter, a transparency parameter, and the like of the pop-up window. Specifically, taking the android operating system as an example, call a method function in Dialog or PopUpWindow to determine the display parameters of the current pop-up window, such as getDialog().getWindow().getAttributes().width.

响应处理模块103,用于依据预设显示参数对所述弹窗的显示参数进行设置。The response processing module 103 is configured to set display parameters of the pop-up window according to preset display parameters.

其中,预设显示参数为预先设置的在防弹窗模式下新弹窗的显示方式。在一个实施例中,所述依据预设显示参数对所述弹窗的显示参数进行设置包括:依据预设显示参数将所述弹窗的透明度设置为透明。在一个实施例中,可以是:获取当前显示界面的显示内容,依据所述显示内容确定所述弹窗的显示位置并进行相应的显示参数的设置。示例性的,将该弹窗显示在当前显示界面的非操控位置,或者非核心位置。Wherein, the preset display parameter is a preset display mode of the new pop-up window in the bulletproof window mode. In one embodiment, the setting the display parameters of the pop-up window according to the preset display parameters includes: setting the transparency of the pop-up window to transparent according to the preset display parameters. In an embodiment, it may be: acquire the display content of the current display interface, determine the display position of the pop-up window according to the display content, and set corresponding display parameters. Exemplarily, the pop-up window is displayed at a non-manipulation position of the current display interface, or a non-core position.

由上述内容可知,依据接收到的用户操作指令开启防弹窗模式,检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数,依据预设显示参数对所述弹窗的显示参数进行设置,如设置弹窗透明度为全透明,或将弹窗设置在当前显示界面的非核心位置,由此合理有效的避免了弹窗对用户的影响,简化了用户操作,提高了终端设备的运行效率,降低了终端设备的功耗。It can be seen from the above content that the bullet-proof window mode is turned on according to the received user operation instruction, and when an interface window pop-up event is detected, the display parameters of the pop-up window corresponding to the interface window pop-up event are obtained, and the pop-up window is displayed according to the preset display parameters. For example, setting the transparency of the pop-up window to be fully transparent, or setting the pop-up window at a non-core position of the current display interface, thereby reasonably and effectively avoiding the impact of the pop-up window on the user, simplifying user operations, and improving the user experience. The operating efficiency of the terminal equipment is improved, and the power consumption of the terminal equipment is reduced.

在一个可能的实施例中,所述响应处理模块103具体用于:In a possible embodiment, the response processing module 103 is specifically configured to:

依据预设显示参数将所述弹窗的透明度设置为透明。The transparency of the pop-up window is set to transparent according to preset display parameters.

在一个可能的实施例中,所述响应处理模块103具体用于:In a possible embodiment, the response processing module 103 is specifically configured to:

获取当前显示界面的显示内容,依据所述显示内容确定所述弹窗的显示位置并进行相应的显示参数的设置。Obtain the display content of the current display interface, determine the display position of the pop-up window according to the display content, and set corresponding display parameters.

在一个可能的实施例中,所述响应处理模块103具体用于:In a possible embodiment, the response processing module 103 is specifically configured to:

判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件,如果不满足,则依据预设显示参数对所述弹窗的显示参数进行设置。It is judged whether the application program corresponding to the pop-up event of the interface window satisfies the pop-up window condition, and if not, the display parameters of the pop-up window are set according to the preset display parameters.

在一个可能的实施例中,所述响应处理模块103具体用于:In a possible embodiment, the response processing module 103 is specifically configured to:

判断所述界面窗口弹出事件对应的应用程序是否为用户手动启动。It is judged whether the application program corresponding to the pop-up event of the interface window is started manually by the user.

在一个可能的实施例中,所述响应处理模块103具体用于:In a possible embodiment, the response processing module 103 is specifically configured to:

判断所述界面窗口弹出事件对应的应用程序是否在前台运行。It is judged whether the application program corresponding to the pop-up event of the interface window is running in the foreground.

在一个可能的实施例中,所述响应处理模块103具体用于:In a possible embodiment, the response processing module 103 is specifically configured to:

获取终端设备的操作记录,依据所述操作记录中记载的应用程序弹窗频次、弹窗关闭时间确定所述界面窗口弹出事件对应的应用程序是否满足弹窗条件。Obtain the operation record of the terminal device, and determine whether the application program corresponding to the pop-up event of the interface window satisfies the pop-up condition according to the pop-up frequency of the application program and the pop-up window closing time recorded in the operation record.

本实施例在上述各实施例的基础上提供了一种终端设备,图5是本申请实施例提供的一种终端设备的结构示意图,如图5所示,该终端设备200包括:存储器201、处理器(Central Processing Unit,CPU)202、外设接口203、RF(Radio Frequency,射频)电路205、音频电路206、扬声器211、电源管理芯片208、输入/输出(I/O)子系统209、触摸屏212、其他输入/控制设备210以及外部端口204,这些部件通过一个或多个通信总线或信号线207来通信。This embodiment provides a terminal device on the basis of the foregoing embodiments. FIG. 5 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. As shown in FIG. 5 , the terminal device 200 includes: a memory 201, Processor (Central Processing Unit, CPU) 202, peripheral interface 203, RF (Radio Frequency, radio frequency) circuit 205, audio circuit 206, speaker 211, power management chip 208, input/output (I/O) subsystem 209, Touch screen 212 , other input/control devices 210 , and external ports 204 , these components communicate through one or more communication buses or signal lines 207 .

应该理解的是,图示终端设备200仅仅是终端设备的一个范例,并且终端设备200可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal device 200 is only an example of a terminal device, and the terminal device 200 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

下面就本实施例提供的用于多开应用的权限管理的终端设备进行详细的描述,该终端设备以智能手机为例。The following describes in detail the terminal device used for the permission management of multiple applications provided by this embodiment, and the terminal device takes a smart phone as an example.

存储器201,所述存储器201可以被CPU202、外设接口203等访问,所述存储器201可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 201, the memory 201 can be accessed by the CPU 202, the peripheral interface 203, etc., the memory 201 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口203,所述外设接口203可以将设备的输入和输出外设连接到CPU202和存储器201。Peripheral interface 203 , which can connect the input and output peripherals of the device to CPU 202 and memory 201 .

I/O子系统209,所述I/O子系统209可以将设备上的输入输出外设,例如触摸屏212和其他输入/控制设备210,连接到外设接口203。I/O子系统209可以包括显示控制器2091和用于控制其他输入/控制设备210的一个或多个输入控制器2092。其中,一个或多个输入控制器2092从其他输入/控制设备210接收电信号或者向其他输入/控制设备210发送电信号,其他输入/控制设备210可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器2092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 209 , the I/O subsystem 209 can connect the input and output peripherals on the device, such as the touch screen 212 and other input/control devices 210 , to the peripheral interface 203 . I/O subsystem 209 may include a display controller 2091 and one or more input controllers 2092 for controlling other input/control devices 210 . Among them, one or more input controllers 2092 receive electrical signals from or send electrical signals to other input/control devices 210, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It should be noted that the input controller 2092 can be connected with any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏212,所述触摸屏212是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 212, the touch screen 212 is an input interface and an output interface between the user terminal and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, and the like.

I/O子系统209中的显示控制器2091从触摸屏212接收电信号或者向触摸屏212发送电信号。触摸屏212检测触摸屏上的接触,显示控制器2091将检测到的接触转换为与显示在触摸屏212上的用户界面对象的交互,即实现人机交互,显示在触摸屏212上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 2091 in the I/O subsystem 209 receives electrical signals from the touch screen 212 or sends electrical signals to the touch screen 212 . The touch screen 212 detects the contact on the touch screen, and the display controller 2091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 212, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 212 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touch screen.

RF电路205,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路205接收并发送RF信号,RF信号也称为电磁信号,RF电路205将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路205可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 205 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 205 receives and sends an RF signal, which is also called an electromagnetic signal, and the RF circuit 205 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and communicates with the communication network and other devices through the electromagnetic signal to communicate. RF circuitry 205 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.

音频电路206,主要用于从外设接口203接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器211。The audio circuit 206 is mainly used to receive audio data from the peripheral interface 203 , convert the audio data into electrical signals, and send the electrical signals to the speaker 211 .

扬声器211,用于将手机通过RF电路205从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 211 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 205 into sound and play the sound to the user.

电源管理芯片208,用于为CPU202、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 208 is used for power supply and power management for the hardware connected to the CPU 202 , the I/O subsystem and the peripheral interface.

上述实施例中提供的终端设备的窗口控制装置及终端设备可执行本发明任意实施例所提供的终端设备的窗口控制方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的终端设备的窗口控制方法。The terminal device window control device and the terminal device provided in the above embodiments can execute the terminal device window control method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the window control method of a terminal device provided in any embodiment of the present invention.

本申请实施例还提供一种包含终端设备可执行指令的存储介质,所述终端设备可执行指令在由终端设备处理器执行时用于执行一种窗口控制方法,该方法包括:An embodiment of the present application also provides a storage medium containing executable instructions of a terminal device, the executable instructions of the terminal device are used to execute a window control method when executed by a processor of the terminal device, the method includes:

依据接收到的用户操作指令开启防弹窗模式;Open the bulletproof window mode according to the received user operation instruction;

检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数;When the pop-up event of the interface window is detected, the display parameters of the pop-up window corresponding to the pop-up event of the interface window are obtained;

依据预设显示参数对所述弹窗的显示参数进行设置。The display parameters of the pop-up window are set according to the preset display parameters.

在一个可能的实施例中,所述依据预设显示参数对所述弹窗的显示参数进行设置包括:In a possible embodiment, the setting the display parameters of the pop-up window according to preset display parameters includes:

依据预设显示参数将所述弹窗的透明度设置为透明。The transparency of the pop-up window is set to transparent according to preset display parameters.

在一个可能的实施例中,所述依据预设显示参数对所述弹窗的显示参数进行设置包括:In a possible embodiment, the setting the display parameters of the pop-up window according to preset display parameters includes:

获取当前显示界面的显示内容,依据所述显示内容确定所述弹窗的显示位置并进行相应的显示参数的设置。Obtain the display content of the current display interface, determine the display position of the pop-up window according to the display content, and set corresponding display parameters.

在一个可能的实施例中,所述依据预设显示参数对所述弹窗的显示参数进行设置包括:In a possible embodiment, the setting the display parameters of the pop-up window according to preset display parameters includes:

判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件,如果不满足,则依据预设显示参数对所述弹窗的显示参数进行设置。It is judged whether the application program corresponding to the pop-up event of the interface window satisfies the pop-up window condition, and if not, the display parameters of the pop-up window are set according to the preset display parameters.

在一个可能的实施例中,所述判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件包括:In a possible embodiment, the judging whether the application program corresponding to the interface window pop-up event satisfies the pop-up window condition includes:

判断所述界面窗口弹出事件对应的应用程序是否为用户手动启动。It is judged whether the application program corresponding to the pop-up event of the interface window is started manually by the user.

在一个可能的实施例中,所述判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件包括:In a possible embodiment, the judging whether the application program corresponding to the interface window pop-up event satisfies the pop-up window condition includes:

判断所述界面窗口弹出事件对应的应用程序是否在前台运行。It is judged whether the application program corresponding to the pop-up event of the interface window is running in the foreground.

在一个可能的实施例中,所述判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件包括:In a possible embodiment, the judging whether the application program corresponding to the interface window pop-up event satisfies the pop-up window condition includes:

获取终端设备的操作记录,依据所述操作记录中记载的应用程序弹窗频次、弹窗关闭时间确定所述界面窗口弹出事件对应的应用程序是否满足弹窗条件。Obtain the operation record of the terminal device, and determine whether the application program corresponding to the pop-up event of the interface window satisfies the pop-up condition according to the pop-up frequency of the application program and the pop-up window closing time recorded in the operation record.

存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROMs, floppy disks or tape drives; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.

当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的窗口控制方法操作,还可以执行本发明任意实施例所提供的窗口控制方法中的相关操作。Certainly, a storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the operation of the above-mentioned window control method, and can also execute the window control method provided in any embodiment of the present invention. Related operations in .

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (10)

1.窗口控制方法,其特征在于,包括:1. The window control method is characterized in that, comprising: 依据接收到的用户操作指令开启防弹窗模式;Open the bulletproof window mode according to the received user operation instruction; 检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数;When the pop-up event of the interface window is detected, the display parameters of the pop-up window corresponding to the pop-up event of the interface window are acquired; 依据预设显示参数对所述弹窗的显示参数进行设置。The display parameters of the pop-up window are set according to the preset display parameters. 2.根据权利要求1所述的方法,其特征在于,所述依据预设显示参数对所述弹窗的显示参数进行设置包括:2. The method according to claim 1, wherein the setting the display parameters of the pop-up window according to preset display parameters comprises: 依据预设显示参数将所述弹窗的透明度设置为透明。The transparency of the pop-up window is set to transparent according to preset display parameters. 3.根据权利要求1所述的方法,其特征在于,所述依据预设显示参数对所述弹窗的显示参数进行设置包括:3. The method according to claim 1, wherein the setting the display parameters of the pop-up window according to preset display parameters comprises: 获取当前显示界面的显示内容,依据所述显示内容确定所述弹窗的显示位置并进行相应的显示参数的设置。Obtain the display content of the current display interface, determine the display position of the pop-up window according to the display content, and set corresponding display parameters. 4.根据权利要求1-3中任一项所述的方法,其特征在于,所述依据预设显示参数对所述弹窗的显示参数进行设置包括:4. The method according to any one of claims 1-3, wherein the setting the display parameters of the pop-up window according to preset display parameters comprises: 判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件,如果不满足,则依据预设显示参数对所述弹窗的显示参数进行设置。It is judged whether the application program corresponding to the pop-up event of the interface window satisfies the pop-up window condition, and if not, the display parameters of the pop-up window are set according to the preset display parameters. 5.根据权利要求4所述的方法,其特征在于,所述判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件包括:5. The method according to claim 4, wherein the judging whether the application program corresponding to the interface window pop-up event satisfies the pop-up window condition comprises: 判断所述界面窗口弹出事件对应的应用程序是否为用户手动启动。It is judged whether the application program corresponding to the pop-up event of the interface window is started manually by the user. 6.根据权利要求4所述的方法,其特征在于,所述判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件包括:6. The method according to claim 4, wherein the judging whether the application corresponding to the pop-up event of the interface window satisfies the pop-up condition comprises: 判断所述界面窗口弹出事件对应的应用程序是否在前台运行。It is judged whether the application program corresponding to the pop-up event of the interface window is running in the foreground. 7.根据权利要求4所述的方法,其特征在于,所述判断所述界面窗口弹出事件对应的应用程序是否满足弹窗条件包括:7. The method according to claim 4, wherein the judging whether the application program corresponding to the interface window pop-up event satisfies the pop-up window condition comprises: 获取终端设备的操作记录,依据所述操作记录中记载的应用程序弹窗频次、弹窗关闭时间确定所述界面窗口弹出事件对应的应用程序是否满足弹窗条件。Obtain the operation record of the terminal device, and determine whether the application program corresponding to the pop-up event of the interface window satisfies the pop-up condition according to the pop-up frequency of the application program recorded in the operation record and the closing time of the pop-up window. 8.窗口控制装置,其特征在于,包括:8. The window control device is characterized in that it comprises: 防护开启模块,用于依据接收到的用户操作指令开启防弹窗模式;The protection opening module is used to open the bulletproof window mode according to the received user operation instruction; 数据信息确定模块,用于检测到界面窗口弹出事件时,获取所述界面窗口弹出事件对应的弹窗的显示参数;The data information determination module is used to obtain the display parameters of the pop-up window corresponding to the pop-up event of the interface window when the pop-up event of the interface window is detected; 响应处理模块,用于依据预设显示参数对所述弹窗的显示参数进行设置。The response processing module is used to set the display parameters of the pop-up window according to the preset display parameters. 9.一种终端设备,包括:处理器、存储器以及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-7中任一项所述的窗口控制方法。9. A terminal device, comprising: a processor, a memory, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the computer program, the computer program according to claims 1-7 is implemented. The window control method described in any one. 10.一种包含终端设备可执行指令的存储介质,其特征在于,所述终端设备可执行指令在由终端设备处理器执行时用于执行如权利要求1-7中任一项所述的窗口控制方法。10. A storage medium containing executable instructions of a terminal device, wherein the executable instructions of the terminal device are used to execute the window according to any one of claims 1-7 when executed by a processor of the terminal device Control Method.
CN201711167126.8A 2017-11-21 2017-11-21 Window control method and device, terminal equipment and storage medium Pending CN107861759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711167126.8A CN107861759A (en) 2017-11-21 2017-11-21 Window control method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711167126.8A CN107861759A (en) 2017-11-21 2017-11-21 Window control method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107861759A true CN107861759A (en) 2018-03-30

Family

ID=61703421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711167126.8A Pending CN107861759A (en) 2017-11-21 2017-11-21 Window control method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107861759A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108447538A (en) * 2018-06-29 2018-08-24 贵州医科大学 An Intervention Method of Antibiotic Prescription Rate Based on Hospital HIS System
CN108932148A (en) * 2018-06-29 2018-12-04 北京奇虎科技有限公司 Pop-up management method and device
CN110865865A (en) * 2019-11-22 2020-03-06 科大讯飞股份有限公司 Popup window position determining method, device, equipment and storage medium
CN111125433A (en) * 2019-12-13 2020-05-08 珠海格力电器股份有限公司 Popup window management method and device, electronic equipment and readable storage medium
CN111212313A (en) * 2019-12-13 2020-05-29 珠海格力电器股份有限公司 Advertisement display method, device, storage medium and computer equipment
CN111818375A (en) * 2020-06-09 2020-10-23 深圳市天威视讯股份有限公司 Popup window detection method and device for intelligent set top box and intelligent set top box
CN111949339A (en) * 2019-04-30 2020-11-17 腾讯科技(深圳)有限公司 Method, apparatus, device and computer-readable storage medium for displaying information
CN112083974A (en) * 2020-09-18 2020-12-15 珠海豹趣科技有限公司 Advertisement window closing method and device and electronic equipment
CN114268811A (en) * 2021-12-31 2022-04-01 广州方硅信息技术有限公司 Method, device and equipment for controlling popup of message bubbles in live broadcast room and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123276A (en) * 2013-04-23 2014-10-29 腾讯科技(深圳)有限公司 Method, device and system for intercepting popup windows in browser
CN104298432A (en) * 2014-09-30 2015-01-21 珠海市君天电子科技有限公司 Method and device for displaying information
CN104978201A (en) * 2015-07-14 2015-10-14 安一恒通(北京)科技有限公司 Method and device for controlling automatic pop-up window display
CN106126562A (en) * 2016-06-15 2016-11-16 广东欧珀移动通信有限公司 A pop-up interception method and terminal
CN106843629A (en) * 2015-12-07 2017-06-13 北京奇虎科技有限公司 A kind of suspended window methods of exhibiting and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123276A (en) * 2013-04-23 2014-10-29 腾讯科技(深圳)有限公司 Method, device and system for intercepting popup windows in browser
CN104298432A (en) * 2014-09-30 2015-01-21 珠海市君天电子科技有限公司 Method and device for displaying information
CN104978201A (en) * 2015-07-14 2015-10-14 安一恒通(北京)科技有限公司 Method and device for controlling automatic pop-up window display
CN106843629A (en) * 2015-12-07 2017-06-13 北京奇虎科技有限公司 A kind of suspended window methods of exhibiting and device
CN106126562A (en) * 2016-06-15 2016-11-16 广东欧珀移动通信有限公司 A pop-up interception method and terminal

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932148A (en) * 2018-06-29 2018-12-04 北京奇虎科技有限公司 Pop-up management method and device
CN108447538A (en) * 2018-06-29 2018-08-24 贵州医科大学 An Intervention Method of Antibiotic Prescription Rate Based on Hospital HIS System
CN111949339A (en) * 2019-04-30 2020-11-17 腾讯科技(深圳)有限公司 Method, apparatus, device and computer-readable storage medium for displaying information
CN111949339B (en) * 2019-04-30 2023-10-20 腾讯科技(深圳)有限公司 Method, apparatus, device and computer readable storage medium for displaying information
CN110865865B (en) * 2019-11-22 2023-01-13 科大讯飞股份有限公司 Popup window position determining method, device, equipment and storage medium
CN110865865A (en) * 2019-11-22 2020-03-06 科大讯飞股份有限公司 Popup window position determining method, device, equipment and storage medium
CN111212313A (en) * 2019-12-13 2020-05-29 珠海格力电器股份有限公司 Advertisement display method, device, storage medium and computer equipment
CN111125433A (en) * 2019-12-13 2020-05-08 珠海格力电器股份有限公司 Popup window management method and device, electronic equipment and readable storage medium
CN111818375A (en) * 2020-06-09 2020-10-23 深圳市天威视讯股份有限公司 Popup window detection method and device for intelligent set top box and intelligent set top box
CN112083974A (en) * 2020-09-18 2020-12-15 珠海豹趣科技有限公司 Advertisement window closing method and device and electronic equipment
CN112083974B (en) * 2020-09-18 2024-08-20 珠海豹趣科技有限公司 Advertisement window closing method and device and electronic equipment
CN114268811A (en) * 2021-12-31 2022-04-01 广州方硅信息技术有限公司 Method, device and equipment for controlling popup of message bubbles in live broadcast room and storage medium
CN114268811B (en) * 2021-12-31 2024-04-19 广州方硅信息技术有限公司 Pop-up control method, device, equipment and storage medium for message bubbles in live broadcasting room

Similar Documents

Publication Publication Date Title
CN107861759A (en) Window control method and device, terminal equipment and storage medium
CN107797841B (en) Window control method, device, terminal device and storage medium
CN107844342B (en) Application program keep alive management and control method, device and storage medium and mobile terminal
CN107748685B (en) Application program starting control method and device, terminal equipment and storage medium
US11138956B2 (en) Method for controlling display of terminal, storage medium, and electronic device
CN108108142A (en) Voice information processing method and device, terminal equipment and storage medium
CN107944258A (en) Control method and device for starting application in service mode, storage medium and terminal
CN107861773A (en) Management and control method, device, storage medium and mobile terminal for association activation
CN107943650A (en) Control method, device, storage medium and the terminal of application program
CN107422916B (en) Touch operation response method and device, storage medium and terminal
CN107027150A (en) WiFi control method, device and terminal equipment
CN107783803A (en) System optimization method, device, storage medium and intelligent terminal for intelligent terminal
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN108958828A (en) Application program preloads method, apparatus, storage medium and terminal
CN108845838B (en) Application preloading method, device, storage medium and terminal
CN107402712B (en) Touch operation response method and device, storage medium and terminal
CN107423064B (en) Message processing method, device, terminal device and storage medium
CN107862203A (en) Control method, device, storage medium and the terminal of application program
CN108845840A (en) Application sound management method and device, storage medium and intelligent terminal
CN110515662B (en) Remote control method, system, device and readable storage medium for dual-system equipment
CN107844341A (en) Process starting control method and device, storage medium and mobile terminal
CN107831886A (en) Association starts management-control method, device, storage medium and the intelligent terminal of application
WO2019101107A1 (en) System notification service control method, apparatus, terminal device, and storage medium
CN107861608A (en) System notification service control method, device, terminal device and storage medium
CN110730946B (en) Volume control method and device of mobile terminal, storage medium and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180330