WO2019134289A1 - 投屏控制方法、装置、电子终端及可读存储介质 - Google Patents

投屏控制方法、装置、电子终端及可读存储介质 Download PDF

Info

Publication number
WO2019134289A1
WO2019134289A1 PCT/CN2018/082351 CN2018082351W WO2019134289A1 WO 2019134289 A1 WO2019134289 A1 WO 2019134289A1 CN 2018082351 W CN2018082351 W CN 2018082351W WO 2019134289 A1 WO2019134289 A1 WO 2019134289A1
Authority
WO
WIPO (PCT)
Prior art keywords
focus
floating panel
page
default
screen
Prior art date
Application number
PCT/CN2018/082351
Other languages
English (en)
French (fr)
Inventor
张磊
张文明
陈少杰
Original Assignee
武汉斗鱼网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Publication of WO2019134289A1 publication Critical patent/WO2019134289A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay

Definitions

  • the present disclosure relates to the field of computer technologies, and in particular, to a screencast control method, apparatus, electronic terminal, and readable storage medium.
  • the control panel is used when the screen is projected, and the implementation of the control panel is implemented based on the floating layer in the system. Since the floating layer is a separate system, the floating layer is unable to receive page focus information such as the return button of the system. This will cause the floating layer to be unable to respond to the page focus information, and the floating layer cannot be manipulated by the focus information. For example, the floating layer cannot be hidden by the return button. As a result, the user's operation on the floating layer is very inconvenient.
  • an object of embodiments of the present disclosure includes providing a screencast control method, apparatus, electronic terminal, and readable storage medium.
  • a projection control method provided by an embodiment of the present disclosure is applied to an electronic terminal, wherein the electronic terminal stores a floating panel object, the floating panel object includes an attribute parameter, and the attribute parameter includes a flag that does not acquire a page focus by default. Bit, the projection control method includes:
  • executing the floating panel object control electronic terminal After receiving the screencast request, executing the floating panel object control electronic terminal displays the screencast data corresponding to the screencast request;
  • the embodiment of the present disclosure further provides a screen-casting control method, which is applied to an electronic terminal, where the floating panel object is stored in the electronic terminal, and the screen-casting control method includes:
  • the button operation information of the system is monitored, and when the button operation information is received, the floating panel is controlled to perform a button operation according to the button operation information.
  • the embodiment of the present disclosure further provides a screen-casting control device, which is applied to an electronic terminal, wherein the electronic terminal stores a floating panel object, the floating panel object includes an attribute parameter, and the attribute parameter includes a flag that does not obtain a page focus by default.
  • the projection control device includes:
  • a display module configured to: after receiving the screencast request, execute the floating panel object control electronic terminal to display the screencast data corresponding to the screencast request;
  • a clearing module configured to: perform data clearing on a flag of the floating panel object that does not acquire a page focus by default, so that the floating panel object can acquire a page focus, where the page focus includes various operation information about the control page ;
  • an execution module configured to perform an operation corresponding to the page focus on the screen being displayed when the floating panel object intercepts any page focus.
  • the embodiment of the present disclosure further provides a projection control device, which is applied to an electronic terminal, wherein the electronic terminal stores a floating panel object, and the projection control device includes:
  • a configuration module configured to configure a focus attribute of the floating panel when the floating panel is invoked, so that the floating panel has the capability of obtaining a focus of the system page;
  • the button monitoring module is configured to monitor key operation information of the system, and when receiving the button operation information, control the floating panel to perform a button operation according to the button operation information.
  • An embodiment of the present disclosure further provides an electronic terminal, including:
  • the above-described projection control device is stored in the memory and controlled by the processor.
  • Embodiments of the present disclosure also provide a readable storage medium having stored thereon a computer program that, when executed, implements the above-described screencast control method.
  • the screen-casting control method, the device, the electronic terminal, and the readable storage medium of the embodiment of the present disclosure avoid setting the flag of the page focus by default in the attribute parameter of the floating panel object.
  • the electronic terminal does not display the floating layer, the page focus is incorrectly intercepted; when the projection is displayed in the electronic terminal, the flag position of the page focus is not cleared by default, so that the floating panel object can intercept the page focus, thereby effectively performing the corresponding page focus. Operation, which makes it easier for users to operate the floating panel and improve the user experience.
  • FIG. 1 is a block schematic diagram of an electronic terminal according to a preferred embodiment of the present disclosure.
  • FIG. 2 is a flow chart of a screencast control method according to a preferred embodiment of the present disclosure.
  • FIG. 3 is a flowchart of a screencast control method according to another preferred embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of functional modules of a projection control device according to a preferred embodiment of the present disclosure.
  • FIG. 1 it is a block schematic diagram of the electronic terminal 100.
  • the electronic terminal 100 includes a projection control device 110, a memory 111, a memory controller 112, a processor 113, a peripheral interface 114, an input and output unit 115, and a display unit 116.
  • a projection control device 110 for controlling the operation of the electronic terminal 100.
  • the electronic terminal 100 may also include more or less components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the electronic terminal 100 may be a display device such as a television.
  • the components of the memory 111, the memory controller 112, the processor 113, the peripheral interface 114, the input and output unit 115, and the display unit 116 are electrically connected directly or indirectly to each other to implement data transmission or interaction.
  • the components can be electrically connected to one another via one or more communication buses or signal lines.
  • the projection control device 110 includes at least one software function module that can be stored in the memory 111 or is solidified in an operating system (OS) of the electronic terminal 100 in the form of software or firmware.
  • the processor 113 is configured to execute an executable module stored in a memory, such as a software function module or a computer program included in the screencast control device 110.
  • the memory 111 can be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like.
  • the memory 111 is configured to store a program, and the processor 113 executes the program after receiving the execution instruction.
  • the method executed by the electronic terminal 100 defined by the process disclosed in any embodiment of the present disclosure may be applied to the processing. In the device 113, or implemented by the processor 113.
  • the processor 113 may be an integrated circuit chip with signal processing capabilities.
  • the processor 113 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP processor, etc.), or a digital signal processor (DSP), an application specific integrated circuit. (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • CPU central processing unit
  • NP processor network processor
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA Field Programmable Gate Array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • peripheral interface 114 couples various input/input devices to the processor 113 and the memory 111.
  • peripheral interface 114, processor 113, and memory controller 112 can be implemented in a single chip. In other instances, they can be implemented by separate chips.
  • the input and output unit 115 is configured to provide input data to a user.
  • the input and output unit 115 may be, but not limited to, a mouse, a keyboard, and the like.
  • the display unit 116 provides an interactive interface (eg, a user operation interface) between the electronic terminal 100 and a user or is configured to display image data for user reference.
  • the display unit may be a liquid crystal display or a touch display.
  • a touch display it can be a capacitive touch screen or a resistive touch screen that supports single-point and multi-touch operations. Supporting single-point and multi-touch operations means that the touch display can sense the simultaneous touch operation from one or more positions on the touch display, and the touch operation is performed by the processor. Calculation and processing.
  • the floating terminal object is stored in the electronic terminal, and the floating panel object includes an attribute parameter, and the attribute parameter includes a flag bit that does not acquire the page focus by default.
  • the floating panel object initialization generation is described in detail below.
  • the type property of the floating panel object mMenuLayoutParams is set to WindowManager.LayoutParams.TYPE_PHONE type, which is configured to display the hierarchical relationship of the floating panel in the view.
  • the type attribute is set to TYPE_PHONE type, so that the floating panel is on the upper layer of the application page, so that the floating panel can be displayed on multiple pages.
  • the flag attribute is used to describe the function of mMenuLayoutParams.
  • the setting of different function attribute attributes will make the mMenuLayoutParams object have different behavior characteristics.
  • two attributes are set for the floating panel object mMenuLayoutParams: WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE and WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS.
  • the WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE attribute indicates that the floating panel cannot acquire the page, thereby preventing the floating panel from maintaining the state of the page focus, which may cause other page elements other than the floating panel to fail to obtain the page focus, thereby causing other pages to operate.
  • the failure causes the various programs of the electronic terminal to operate abnormally.
  • the setting of the WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS property indicates that the display of the floating panel is not controlled by the screen size of the electronic terminal, that is, the display position of the floating panel can be anywhere on the screen, including the outer edge of the screen. display.
  • the setting of the WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS property can be used when the floating panel is displayed for animation effects. For example, when the floating panel is expanded, it can be moved from the bottom screen to the inside of the screen. If the property is not set, the animation cannot be implemented.
  • the suspension panel is also required to be packaged.
  • the standard control of the system is used to implement the container of the entire suspension panel.
  • This solution cannot be used in this solution because of the container of the system used.
  • the control panel is wrapped so that information such as key events inside the container cannot be intercepted and processed, and thus the control panel cannot intercept the return key information of the processing system. Therefore, in order to enable the control panel to process the page focus information of the system, for example, return key information, in the present embodiment, a new container SCSettingView is used for the floating panel, and the SCSettingView container is inherited from the system container RelativeLayout. Therefore, the SCSettingView container in this embodiment has all the functional features of the system container RelativeLayout.
  • the SCSettingView container internally rewrites the dispatchKeyEvent method, and the dispatchKeyEvent method is a key distribution function. Therefore, the container SCSettingView of the floating panel in this embodiment can intercept the key event distribution of the system, so that the container SCSettingView can intercept the return key information of the system.
  • the SCSettingView container is further provided with an interface to expose key information to the external view of the container.
  • the specific interface design is as follows:
  • the name of the interface is IOnBackPressed. Only one function onBackPressed is set inside the interface. The function is very simple. There is no input parameter or output parameter.
  • the interface function onBackPressed can be used to distribute the message to the container.
  • the outside world can make the corresponding processing unit in the electronic terminal process the page focus.
  • FIG. 2 is a flowchart of a projection control method applied to the electronic terminal shown in FIG. 1 according to a preferred embodiment of the present disclosure. The specific flow shown in FIG. 2 will be described in detail below.
  • Step S101 After receiving the screencast request, the floating panel object control electronic terminal displays the screencast data corresponding to the screencast request.
  • the floating terminal object is stored in the electronic terminal, and the floating panel object includes an attribute parameter, and the attribute parameter includes a flag bit that does not acquire the focus of the page by default.
  • the projection screen data is displayed on a floating panel corresponding to the floating panel object.
  • the type attribute of the floating panel object mMenuLayoutParams is set to the WindowManager.LayoutParams.TYPE_PHONE type, the floating panel is on the upper layer of the application page, so that the floating panel can be displayed on multiple pages.
  • the flag position of the page focus is not obtained by default, so that the floating panel object cannot intercept the page focus.
  • Step S102 Perform data clearing on the flag of the floating panel object that does not acquire the page focus by default, so that the floating panel object can acquire the page focus.
  • the page focus includes a plurality of operation information about the control page.
  • the page focus may be a return operation of a remote controller, a volume addition and subtraction operation, or the like.
  • the floating panel object since the attribute parameter of the floating panel object includes a flag bit WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE that does not acquire the page focus by default, the floating panel object cannot be obtained when the flag of the page focus is not valid by default. System focus. In order for the floating panel object to get the page focus, you need to clear the default flag of WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, which does not get the focus of the page, so that the floating panel object can get the system focus.
  • the step S102 may include: performing an inversion operation on the flag bit that does not acquire the page focus by default to obtain auxiliary clear data; performing the bitwise AND operation on the auxiliary clear data and the attribute parameter.
  • the attribute parameters of the floating panel object may be saved in the flags parameter.
  • all the parameters in the flags are saved in a binary form, that is, each attribute is described by one or several binary numbers.
  • the floating panel object needs to intercept the page focus executed in the electronic terminal, for example, returning button information.
  • it can be implemented as follows:
  • WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE ⁇ WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE.
  • WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE turns to 1 and becomes 0. The original 0 becomes 1.
  • the floating panel object control electronic terminal displays the projection screen data corresponding to the screen projection request
  • the flag position of the page focus is not cleared by default, so that the floating panel of the screen display can be obtained.
  • Focus information That is, the floating panel can respond to some page focus of the electronic terminal, for example, the return button information can be obtained.
  • Step S103 when the floating panel object intercepts any page focus, perform an operation corresponding to the page focus on the screen being displayed.
  • the electronic terminal is a television set
  • a return operation is performed to hide the floating panel
  • the method further includes: when the page focus intercepted by the floating panel object is an operation of exiting or returning to the displayed screen.
  • the flag bit of the floating panel object that does not acquire the page focus by default is restored to prevent the floating panel object from acquiring the page focus.
  • the flag bit that does not acquire the page focus by default performs a bitwise OR operation with the attribute parameter to restore the flag bit in the attribute parameter that does not acquire the page focus by default.
  • mMenuLayoutParams.flags represents the original flags flag information
  • the position of the FLAG_NOT_FOCUSABLE flag bit can be restored in the flag after the bit or operation with FLAG_NOT_FOCUSABLE.
  • the screen-casting control method of the embodiment of the present disclosure prevents the page focus from being incorrectly intercepted when the electronic terminal does not display the floating layer by setting a flag bit that does not acquire the page focus by default in the attribute parameter of the floating panel object; displaying the information in the electronic terminal when the electronic terminal does not display the floating layer;
  • the flag of the page focus is not cleared by default, so that the floating panel object can intercept the focus of the page, thereby effectively performing the operation corresponding to the page focus, so that the user can operate the floating panel more conveniently and improve the user experience.
  • the projection control method includes steps S201 to S205.
  • Step S201 After receiving the screencast request, the floating panel object control electronic terminal displays the screencast data corresponding to the screencast request.
  • the floating terminal object is stored in the electronic terminal, and the floating panel object includes an attribute parameter, and the attribute parameter includes a flag bit that does not acquire the focus of the page by default.
  • Step S202 Perform data clearing on the flag bit of the floating panel object that does not acquire the page focus by default, so that the floating panel object can acquire the page focus.
  • steps S201 and S202 in this embodiment are similar to the steps S101 and S102 in the previous method embodiment.
  • steps S201 and S202 in the embodiment reference may be made to the description in the foregoing method embodiments, and details are not described herein again.
  • Step S203 after performing the floating panel object control to display the projection screen data corresponding to the projection request, the monitoring function is started to monitor the state of the displayed projection screen.
  • Step S204 when the floating panel object intercepts the return button, performing the hiding operation on the screen being displayed.
  • Step S205 after the interception function monitors that the displayed projection screen is invisible, the floating panel corresponding to the displayed projection screen is removed.
  • the method in this embodiment can monitor whether the floating panel is hidden by monitoring the animation state corresponding to the floating panel when the floating panel is invisible.
  • an animated listen message can be set for the hidden animation of the floating panel.
  • the animation of the animation panel can be implemented by calling the addListener(new Animator.AnimatorListener()) method.
  • the listener has an interface function onAnimationEnd, which will be called back at the end of the animation, so that we can In the onAnimationEnd function to achieve the operation that needs to be performed after hiding.
  • the floating panel can be removed by calling the removeView method provided by the android system to release the floating panel in memory.
  • Step S206 Perform a recovery operation on the flag of the floating panel object that does not acquire the page focus by default, so as to prevent the floating panel object from acquiring the page focus.
  • the flag bit that does not acquire the page focus by default performs a bitwise OR operation with the attribute parameter to restore the flag bit in the attribute parameter that does not acquire the page focus by default.
  • mMenuLayoutParams.flags represents the original flags flag information
  • the position of the FLAG_NOT_FOCUSABLE flag bit can be restored in the flag after the bit or operation with FLAG_NOT_FOCUSABLE.
  • the memory of the electronic terminal can be released, saving space for use.
  • the flag that does not obtain the focus of the page is cleared by default; when the floating panel is hidden, the flag of the focus of the page is not obtained by default, and the floating panel can obtain the focus of the page, and Affect other pages to get page focus.
  • Step S301 when the floating panel is called, configuring a focus attribute of the floating panel, so that the floating panel has the capability of obtaining a focus of the system page.
  • the floating panel may be used on the control panel when the electronic terminal is used for the screen-casting operation, and the control panel does not display on the electronic terminal when the screen-casting operation is not performed.
  • the control panel can be displayed on the electronic terminal.
  • the control panel can be located on the upper layer of the application page and can be displayed on multiple pages.
  • the floating layer in the Android operating system cannot respond to the key information of the system, that is, the key information input by the user through the remote controller or the touch screen cannot be Received by the control panel.
  • the focus attribute of the floating panel is first configured to change the situation in which the floating panel cannot obtain the button information.
  • the page focus state is not obtained by default, and the layer focus of the electronic terminal is located, and the layer can obtain the button information of the system. For example, if the application layer obtains the page focus of the system, the key operations for the electronic terminal are performed in the application layer.
  • the focus state of the floating panel may be determined; and the focus state of the floating panel is changed from the default non-obtaining page focus state to the default acquired page focus state.
  • the data in the default non-obtaining focus flag may be first expressed in binary.
  • the data in the default non-obtained focus flag after the binary representation is inverted by bit.
  • the focus state is changed from the default not getting the page focus state to the get page focus state.
  • mMenuLayoutParams For example, you can first define a floating panel mMenuLayoutParams.
  • the mMenuLayoutParams floating panel property is set to WindowManager.LayoutParams.TYPE_PHONE type, indicating the hierarchical relationship of the control panel in the view.
  • the TYPE_PHONE type is set to ensure that the control panel is in the The upper layer of the application page allows the control panel to be displayed on multiple pages.
  • the focus property of the floating panel can be defined as: WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE.
  • the focus attribute of the control panel is to obtain the focus state of the page by default. If the focus attribute of the control panel is not configured, the control panel will always be in the state of acquiring the focus of the page, so that the electronic terminal The other pages in the terminal have failed to get the focus and the program is abnormal.
  • the parameters of the floating panel property are saved in binary form.
  • the focus property WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE is one or several bits in the binary. When the floating panel is called, you need to clear the focus attribute WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE of the floating panel, as shown below:
  • mMenuLayoutParams.flags is the attribute parameter of the floating panel. After we represent the parameters of the focus attribute in binary, the binary data in the focus attribute parameter is inverted by bit. The original data is changed to 0, and the original is 0. 1.
  • Step S302 monitoring key operation information of the system, and when receiving the key operation information, controlling the floating panel to perform a key operation according to the key operation information.
  • the floating panel After the data of the floating panel's property parameter is not cleared by the default focus flag, the floating panel has the function of obtaining the focus of the page. If the button operation is generated at this time in the system, the floating panel will be operated. At this time, the key operation information of the system can be monitored. When the key operation information is a return operation, the floating panel can be hidden according to the return operation, that is, the floating panel is not continuously displayed on the display screen of the electronic terminal.
  • the focus attribute of the floating panel is configured, so that the floating panel does not have the ability to obtain the focus of the system page.
  • the floating panel is removed, and the process corresponding to the floating panel is released in the content of the electronic terminal.
  • the return button When the user operates the button of the electronic terminal and presses the return button, it is hoped that the floating panel can be no longer displayed under the control of the return button, that is, the floating panel is hidden. If the floating panel is hidden, if you still have the ability to get the focus of the page, it will appear that although the electronic terminal does not display the floating panel, the page focus will still be acquired by the floating panel, so that the button information for other pages in the system will not be correct. The page gets, and an exception occurs.
  • the focus state of the floating panel is determined first; the focus state of the floating panel is changed from a default acquisition page focus state to a default non-page focus state.
  • the default non-obtaining focus flag and the focus attribute data may be bitwise ORed, so that the default non-acquisition focus flag in the focus attribute is restored, so that the floating panel is The focus state is changed from the default get page focus state to the default not to get the page focus state.
  • the floating panel in the embodiment of the present application when the floating panel in the embodiment of the present application is called, it has the ability to obtain the page focus of the system.
  • the focus property of the floating panel is changed to the default state of not acquiring the page focus state, and the floating panel after the focus property is changed no longer has the ability to obtain the page focus, and the page focus is It can be obtained by other pages, so that the key information of the system is not acquired by the floating panel, and the user does not operate the floating panel for the key operation of the electronic terminal.
  • the floating panel when the floating panel is called, the focus attribute of the floating panel is changed, so that the floating panel has the ability to obtain the focus of the page, and can obtain the focus of the page when the system generates the button operation.
  • the floating panel can obtain the button information, and the key operation of the system can also operate the floating panel, so that the floating panel can respond to the button of the system and improve the user experience.
  • FIG. 4 is a functional block diagram of the projection control device 110 shown in FIG. 1 according to a preferred embodiment of the present disclosure.
  • the various modules of the projection control device 110 in this embodiment are used to perform the steps in the above method embodiments.
  • the projection control device 110 includes a display module 1101, a clearing module 1102, and an execution module 1103.
  • the display module 1101 is configured to, after receiving the screencast request, execute the floating panel object control electronic terminal to display the screencast data corresponding to the screencast request.
  • the clearing module 1102 is configured to perform data clearing on a flag of the floating panel object that does not acquire a page focus by default, so that the floating panel object can acquire a page focus, where the page focus includes multiple control pages. Operational information.
  • the execution module 1103 is configured to perform an operation corresponding to the page focus on the screen being displayed when the floating panel object intercepts any page focus.
  • the device further includes: a recovery module 1104, configured to: when the page focus intercepted by the floating panel object is to exit or return the displayed operation information of the screen, the default in the floating panel object is not The flag bit of the page focus is acquired to perform a recovery operation to prevent the floating panel object from acquiring the page focus.
  • a recovery module 1104 configured to: when the page focus intercepted by the floating panel object is to exit or return the displayed operation information of the screen, the default in the floating panel object is not The flag bit of the page focus is acquired to perform a recovery operation to prevent the floating panel object from acquiring the page focus.
  • the device further includes: a listening module 1105 and a removing module 1106.
  • the monitoring module 1105 is configured to, after executing the floating panel object control display screencast data corresponding to the screencast request, start the monitoring function to perform state monitoring on the displayed screen.
  • the removing module 1106 is configured to remove the floating panel corresponding to the displayed projection screen after the monitoring function monitors that the displayed projection screen is invisible.
  • the recovery module 1104 is further configured to perform a recovery operation on the flag bit of the floating panel object that does not acquire the page focus by default to prevent the floating panel object from acquiring the page focus.
  • the screen-casting control device of the embodiment of the present disclosure prevents the page focus from being incorrectly intercepted when the electronic terminal does not display the floating layer by setting a flag bit that does not acquire the page focus by default in the attribute parameter of the floating panel object; displaying the focus in the electronic terminal when the electronic terminal does not display the floating layer;
  • the flag of the page focus is not cleared by default, so that the floating panel object can intercept the focus of the page, thereby effectively performing the operation corresponding to the page focus, so that the user can operate the floating panel more conveniently and improve the user experience.
  • the embodiment of the present disclosure further provides a projection control device, which is applied to an electronic terminal, wherein the electronic terminal stores a floating panel object, and the projection control device includes:
  • a configuration module configured to configure a focus attribute of the floating panel when the floating panel is invoked, so that the floating panel has the capability of obtaining a focus of the system page;
  • the button monitoring module is configured to monitor key operation information of the system, and when receiving the button operation information, control the floating panel to perform a button operation according to the button operation information.
  • the method for configuring the focus attribute of the floating panel by the configuration module is:
  • the focus state of the floating panel is changed from the default not acquiring page focus state to the default acquiring page focus state.
  • the focus attribute includes not acquiring a focus flag by default, and the floating panel is configured to have the default non-focus flag set before being invoked, and the configuration module does not acquire the focus state of the floating panel by default.
  • the method of changing the focus state to obtaining the page focus state includes:
  • the data in the default non-obtaining focus flag is expressed in binary
  • the embodiment of the present disclosure provides a readable storage medium on which a computer program is stored, which implements the projection control method provided by the above embodiment when executed.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • the functional modules in the various embodiments of the present disclosure may be integrated to form a separate portion, or each module may exist separately, or two or more modules may be integrated to form a separate portion.
  • the functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • a computer readable storage medium including: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.
  • the present disclosure provides a projection control method, apparatus, electronic terminal and readable storage medium.
  • the floating panel By changing the properties of the floating panel, the floating panel has the ability to obtain the focus of the page, so that the button information for the system can operate the floating panel. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本公开实施例提供一种投屏控制方法、装置、电子终端及可读存储介质。所述投屏控制方法包括:接收到投屏请求后,执行悬浮面板对象控制电子终端显示所述投屏请求对应的投屏数据;将所述悬浮面板对象中的默认不获取页面焦点的标志位进行数据清除,以使所述悬浮面板对象能够获取页面焦点,所述页面焦点包括多种关于控制页面的操作信息;当所述悬浮面板对象拦截到任一页面焦点时,对正在显示的投屏执行所述页面焦点对应的操作。

Description

投屏控制方法、装置、电子终端及可读存储介质
相关申请的交叉引用
本申请要求于2018年01月02日提交中国专利局的申请号为2018100028749,名称为“投屏控制方法、装置、电子终端及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及计算机技术领域,具体而言,涉及一种投屏控制方法、装置、电子终端及可读存储介质。
背景技术
在投屏时会使用到控制面板,该控制面板的实现是基于***中的浮层来实现。由于浮层是一个单独的***,因此浮层是无法接收到***的返回按键等页面焦点信息。这样就会导致浮层不能响应页面焦点信息,无法通过焦点信息对该浮层进行操作,例如,不能通过返回按键将浮层隐藏掉。从而导致用户对浮层的操作非常不方便。
发明内容
有鉴于此,本公开实施例的目的包括提供一种投屏控制方法、装置、电子终端及可读存储介质。
本公开实施例提供的一种投屏控制方法,应用于电子终端,所述电子终端中存储有悬浮面板对象,所述悬浮面板对象包括属性参数,所述属性参数包括默认不获取页面焦点的标志位,所述投屏控制方法包括:
接收到投屏请求后,执行悬浮面板对象控制电子终端显示所述投屏请求对应的投屏数据;
将所述悬浮面板对象中的默认不获取页面焦点的标志位进行数据清除,以使所述悬浮面板对象能够获取页面焦点,所述页面焦点包括多种关于控制页面的操作信息;
当所述悬浮面板对象拦截到任一页面焦点时,对正在显示的投屏执行所述页面焦点对应的操作。
本公开实施例还提供了一种投屏控制方法,应用于电子终端,所述电子终端中存储有悬浮面板对象,所述投屏控制方法包括:
在所述悬浮面板被调用时,配置所述悬浮面板的焦点属性,使所述悬浮面板具备获得***页面焦点的能力;
监听所述***的按键操作信息,当接收到按键操作信息时,根据所述按键操作信息,控制所述悬浮面板执行按键操作。
本公开实施例还提供一种投屏控制装置,应用于电子终端,所述电子终端中存储有悬 浮面板对象,所述悬浮面板对象包括属性参数,所述属性参数包括默认不获取页面焦点的标志位,所述投屏控制装置包括:
显示模块,配置成接收到投屏请求后,执行悬浮面板对象控制电子终端显示所述投屏请求对应的投屏数据;
清除模块,配置成将所述悬浮面板对象中的默认不获取页面焦点的标志位进行数据清除,以使所述悬浮面板对象能够获取页面焦点,所述页面焦点包括多种关于控制页面的操作信息;
执行模块,配置成当所述悬浮面板对象拦截到任一页面焦点时,对正在显示的投屏执行所述页面焦点对应的操作。
本公开实施例还提供了一种投屏控制装置,应用于电子终端,所述电子终端中存储有悬浮面板对象,所述投屏控制装置包括:
配置模块,配置成在所述悬浮面板被调用时,配置所述悬浮面板的焦点属性,使所述悬浮面板具备获得***页面焦点的能力;
按键监听模块,配置成监听所述***的按键操作信息,当接收到按键操作信息时,根据所述按键操作信息,控制所述悬浮面板执行按键操作。
本公开实施例还提供一种电子终端,包括:
存储器;
处理器;
上述的投屏控制装置,该投屏控制装置存储于所述存储器并由所述处理器控制执行。
本公开实施例还提供一种可读存储介质,其上存储有计算机程序,所述计算机程序在执行时实现上述的投屏控制方法。
与现有技术相比,本公开实施例的投屏控制方法、装置、电子终端及可读存储介质,通过在所述悬浮面板对象的属性参数中设置默认不获取页面焦点的标志位,避免在电子终端未显示浮层时误拦截页面焦点;在电子终端中显示投屏时,将默认不获取页面焦点的标志位清除,从而使悬浮面板对象能够拦截到页面焦点,从而有效执行页面焦点对应的操作,使用户能够更方便地操作悬浮面板,提高用户体验。
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这 些附图获得其他相关的附图。
图1为本公开较佳实施例提供的电子终端的方框示意图。
图2为本公开较佳实施例提供的投屏控制方法的流程图。
图3为本公开另一较佳实施例提供的投屏控制方法的流程图。
图4为本公开较佳实施例提供的投屏控制装置的功能模块示意图。
具体实施方式
下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本公开的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
如图1所示,是所述电子终端100的方框示意图。所述电子终端100包括投屏控制装置110、存储器111、存储控制器112、处理器113、外设接口114、输入输出单元115、显示单元116。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对电子终端100的结构造成限定。例如,电子终端100还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。
本实施例中,所述电子终端100可以是电视机等显示设备。
所述存储器111、存储控制器112、处理器113、外设接口114、输入输出单元115及显示单元116各元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。所述投屏控制装置110包括至少一个可以软件或固件(Firmware)的形式存储于所述存储器111中或固化在所述电子终端100的操作***(Operating System,OS)中的软件功能模块。所述处理器113配置成执行存储器中存储的可执行模块,例如所述投屏控制装置110包括的软件功能模块或计算机程序。
其中,所述存储器111可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only  Memory,EEPROM)等。其中,存储器111配置成存储程序,所述处理器113在接收到执行指令后,执行所述程序,本公开实施例任一实施例揭示的过程定义的电子终端100所执行的方法可以应用于处理器113中,或者由处理器113实现。
所述处理器113可能是一种集成电路芯片,具有信号的处理能力。上述的处理器113可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本公开实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述外设接口114将各种输入/输入装置耦合至处理器113以及存储器111。在一些实施例中,外设接口114,处理器113以及存储控制器112可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。
所述输入输出单元115配置成提供给用户输入数据。所述输入输出单元115可以是,但不限于,鼠标和键盘等。
所述显示单元116在所述电子终端100与用户之间提供一个交互界面(例如用户操作界面)或配置成显示图像数据给用户参考。在本实施例中,所述显示单元可以是液晶显示器或触控显示器。若为触控显示器,其可为支持单点和多点触控操作的电容式触控屏或电阻式触控屏等。支持单点和多点触控操作是指触控显示器能感应到来自该触控显示器上一个或多个位置处同时产生的触控操作,并将该感应到的触控操作交由处理器进行计算和处理。
本实施例中,所述电子终端中存储有悬浮面板对象,所述悬浮面板对象包括属性参数,所述属性参数包括默认不获取页面焦点的标志位。下面对悬浮面板对象初始化生成进行详细描述。
首先,通过WindowManager.LayoutParams类来定义一个悬浮面板的设置对象mMenuLayoutParams,通过WindowManager.LayoutParams类中的构造函数来实例化得到一个mMenuLayoutParams对象,即所述悬浮面板对象。
其次,将悬浮面板对象mMenuLayoutParams的type属性设置为WindowManager.LayoutParams.TYPE_PHONE类型,配置成显示投屏的悬浮面板在视图中的层级关系。其中,将type属性设设置为TYPE_PHONE类型,以使悬浮面板是在应用页面(Activity)的上层,使悬浮面板可以在多个页面之上进行显示。
再次,将悬浮面板对象mMenuLayoutParams的flag属性进行设置。其中,flag属性用于描述mMenuLayoutParams的功能特性,不同的功能特性属性的设置会使得 mMenuLayoutParams对象具备有不同的行为特征。本实施例中,为所述悬浮面板对象mMenuLayoutParams设置了两个属性:WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE和WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS。所述WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE属性表示悬浮面板不能获取页面,从而避免悬浮面板一直保持能够获取到页面焦点的状态,会导致悬浮面板以外的其他页面元素无法获取到页面焦点,从而导致其它页面的操作失效,使得电子终端的各个程序运行异常。其次,所述WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS属性的设置表示悬浮面板的显示不受电子终端的屏幕大小的控制,也就是说悬浮面板的显示位置可以在屏幕的任意位置,包括可以在屏幕的外边缘进行显示。该WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS属性的设置可以实现悬浮面板在进行动画特效显示的时候使用。例如,悬浮面板展开的时候是可以从底部屏幕外逐步移动到屏幕内部的,如果没有设置该属性那么该动画的无法实现。
本实施例中,还需要对所述悬浮面板进行包裹设计,传统的方案中会使用***的标准控件来实现整个悬浮面板的容器,这种方案在本方案中无法使用是因为使用的***的容器来包裹控制面板,这样容器内部的按键事件等信息是无法被拦截和处理的,因此会导致控制面板无法拦截处理***的返回按键信息。因此,为了能够让控制面板能够处理***的页面焦点信息,例如,返回按键信息,本实施例中的为悬浮面板使用了新容器SCSettingView,并让该SCSettingView容器继承自***容器RelativeLayout。因此,本实施例中的SCSettingView容器具备了***容器RelativeLayout的所有功能特性。然后,所述SCSettingView容器内部复写的dispatchKeyEvent方法,该dispatchKeyEvent方法是按键分发函数。因此,本实施例中的悬浮面板的容器SCSettingView可以拦截***的按键事件分发,这样就使得容器SCSettingView能够拦截***的返回按键信息。
为了能够将本实施例中的SCSettingView容器拦截的返回按键信息进行对外暴露,所述SCSettingView容器还设置有接口来对容器外界视图暴露按键信息,具体的接口设计如下所示:
public interface IOnBackPressed{
void onBackPressed();
}
该接口的名称是IOnBackPressed,接口内部仅设置一个函数onBackPressed,该函数很简单没有输入参数也没有输出参数,当容器拦截到***的页面焦点后就可以通过接口函数onBackPressed来将该消息分发到容器的外界,就可以使得电子终端中对应的处理单元处理 该页面焦点。
请参阅图2,是本公开较佳实施例提供的应用于图1所示的电子终端的投屏控制方法的流程图。下面将对图2所示的具体流程进行详细阐述。
步骤S101,接收到投屏请求后,执行悬浮面板对象控制电子终端显示所述投屏请求对应的投屏数据。
所述电子终端中存储有悬浮面板对象,所述悬浮面板对象包括属性参数,所述属性参数包括默认不获取页面焦点的标志位。
本实施例中,所述投屏数据显示在所述悬浮面板对象对应形成的悬浮面板上。具体地,由于悬浮面板对象mMenuLayoutParams的type属性设置为WindowManager.LayoutParams.TYPE_PHONE类型,因此,所述悬浮面板是在应用页面(Activity)的上层,使悬浮面板可以在多个页面之上进行显示。
本实施例中,在电子终端中未显示投屏时,所述默认不获取页面焦点的标志位可以使悬浮面板对象不能拦截页面焦点。
步骤S102,将所述悬浮面板对象中的默认不获取页面焦点的标志位进行数据清除,以使所述悬浮面板对象能够获取页面焦点。
本实施例中,所述页面焦点包括多种关于控制页面的操作信息。例如,所述电子终端是电视机时,所述页面焦点可以是遥控器的返回操作、音量加减操作等。
本实施例中,由于所述悬浮面板对象的属性参数中包括默认不获取页面焦点的标志位WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,因此在默认不获取页面焦点的标志位有效的情况悬浮面板对象就无法获取到***焦点。为了使悬浮面板对象能获取页面焦点需要清除默认不获取页面焦点的标志位WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,以使悬浮面板对象就能够获取到***焦点。
本实施例中,步骤S102可以包括:将所述默认不获取页面焦点的标志位进行取反操作得到辅助清除数据;将所述辅助清除数据与所述属性参数执行按位与操作。通过上述步骤S102的操作可以清除所述属性参数中的默认不获取页面焦点的标志位。
本实施例中,所述悬浮面板对象的属性参数可以保存在flags参数中。本实施例中,flags中的所有参数使用二进制的形式来进行保存的,也就是说每一个属性是一位或几位二进制数来进行描述的。当悬浮面板在显示的时候,悬浮面板对象需要拦截电子终端中执行的页面焦点,例如,返回按键信息。为了清除默认不获取页面焦点的标志位的数据并且保持flags参数中其它属性参数不变,可以通过如下方式实现:
mMenuLayoutParams.flags=mMenuLayoutParams.flags&
(~WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE)。
下面详细描述上述的实现算法,并分析其中的实现原理:
首先,获取WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE的二进制数;
然后,对WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE进行按位取反操作:~WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,通过上述操作后WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE原来是1的变成了0,原来是0的变成了1。
然后与原始的flags数据按照按位与(&)操作,由于1与任意数据“与”后都是1,0与任何数据“与”后都是0,因此就可以将flags中的WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE位的数据清除,以实现清除默认不获取页面焦点的标志位FLAG_NOT_FOCUSABLE的目的。
本实施例中,在执行悬浮面板对象控制电子终端显示所述投屏请求对应的投屏数据时,都清除默认不获取页面焦点的标志位,因此,能够使得投屏显示的悬浮面板能够获取到焦点信息。也就是悬浮面板能够响应电子终端的一些页面焦点,例如,也就可以获取返回按键信息。
步骤S103,当所述悬浮面板对象拦截到任一页面焦点时,对正在显示的投屏执行所述页面焦点对应的操作。
在一个实例中,所述电子终端是电视机,所述悬浮面板对象拦截到该电视机对应的遥控器的返回按键操作时,执行返回操作以隐藏悬浮面板。
本实施例中,在所述对正在显示的投屏执行所述页面焦点对应的操作之后,该方法还包括:当所述悬浮面板对象拦截到的页面焦点是退出或返回显示的投屏的操作信息时,将所述悬浮面板对象中的默认不获取页面焦点的标志位进行恢复操作,以防止所述悬浮面板对象获取所述页面焦点。
详细地,将所述默认不获取页面焦点的标志位与所述属性参数执行按位或操作,以恢复所述属性参数中的默认不获取页面焦点的标志位。
在显示悬浮面板的时,已经将默认不获取页面焦点的标志位FLAG_NOT_FOCUSABLE进行了清除操作,当电子终端隐藏悬浮面板时,需要对默认不获取页面焦点的标志位FLAG_NOT_FOCUSABLE进行恢复,否则悬浮面板将一直拦截电子终端的页面焦点,从而导致其他页面无法获取到页面焦点。因此,在悬浮面板被隐藏时,进一步地对默认不获取页面焦点的标志位FLAG_NOT_FOCUSABLE进行重置,可以通过如下方式实现:
mMenuLayoutParams.flags=
mMenuLayoutParams.flags|WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE。
下面详细描述上述的实现算法,并分析其中的实现原理:
其中,“|”表示按位或操作,mMenuLayoutParams.flags表示原始的flags标志位信息,与FLAG_NOT_FOCUSABLE按位或操作后就可以将FLAG_NOT_FOCUSABLE标志位所在的位置在flag中进行了恢复置1。通过将所述默认不获取页面焦点的标志位FLAG_NOT_FOCUSABLE进行恢复,这样悬浮面板又不能够获取到页面焦点,也就无法对页面焦点进行拦截处理了。
本公开实施例的投屏控制方法,通过在所述悬浮面板对象的属性参数中设置默认不获取页面焦点的标志位,避免在电子终端未显示浮层时误拦截页面焦点;在电子终端中显示投屏时,将默认不获取页面焦点的标志位清除,从而使悬浮面板对象能够拦截到页面焦点,从而有效执行页面焦点对应的操作,使用户能够更方便地操作悬浮面板,提高用户体验。
在其它实施例中,如图3所示,所述投屏控制方法包括步骤S201至S205
步骤S201,接收到投屏请求后,执行悬浮面板对象控制电子终端显示所述投屏请求对应的投屏数据。
所述电子终端中存储有悬浮面板对象,所述悬浮面板对象包括属性参数,所述属性参数包括默认不获取页面焦点的标志位。
步骤S202,将所述悬浮面板对象中的默认不获取页面焦点的标志位进行数据清除,以使所述悬浮面板对象能够获取页面焦点。
本实施例中的步骤S201及S202与前一方法实施例中的步骤S101及S102相似,关于本实施例中的步骤S201及S202可以参考上述方法实施例中的描述,在此不再赘述。
步骤S203,在执行悬浮面板对象控制显示投屏请求对应的投屏数据之后,启动监听函数对显示的投屏的进行状态监听。
步骤S204,当所述悬浮面板对象拦截到返回按键时,对正在显示的投屏执行所述隐藏操作。
步骤S205,当所述监听函数监听到所述显示的投屏不可见后,移除所述显示的投屏对应的悬浮面板。
由于悬浮面板的隐藏是一个动画过程,本实施例中的方法可以在悬浮面板不可见时,通过监听所述悬浮面板对应的动画状态以监听所述悬浮面板是否被隐藏。为了捕获控制面板的不可见状态可以对悬浮面板的隐藏动画设置一个动画监听消息。具体地,可以通过调用addListener(new Animator.AnimatorListener())方法来实现动画面板的动画监听,该***中有一个接口函数onAnimationEnd,该函数会在动画结束的时候会被回调,这样我们就可以在onAnimationEnd该函数中实现隐藏后需要执行的操作。
在一个实例中,可以通过调用android***提供的removeView方法将悬浮面板移除, 从而将悬浮面板在内存中进行释放。
步骤S206,将所述悬浮面板对象中的默认不获取页面焦点的标志位进行恢复操作,以防止所述悬浮面板对象获取页面焦点。
详细地,将所述默认不获取页面焦点的标志位与所述属性参数执行按位或操作,以恢复所述属性参数中的默认不获取页面焦点的标志位。
在显示悬浮面板的时,已经将默认不获取页面焦点的标志位FLAG_NOT_FOCUSABLE进行了清除操作,当电子终端隐藏悬浮面板时,需要对默认不获取页面焦点的标志位FLAG_NOT_FOCUSABLE进行恢复,否则悬浮面板将一直拦截电子终端的页面焦点,从而导致其他页面无法获取到页面焦点。因此,在悬浮面板被隐藏时,进一步地对默认不获取页面焦点的标志位FLAG_NOT_FOCUSABLE进行重置,可以通过如下方式实现:
mMenuLayoutParams.flags=
mMenuLayoutParams.flags|WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE。
下面详细描述上述的实现算法,并分析其中的实现原理:
其中,“|”表示按位或操作,mMenuLayoutParams.flags表示原始的flags标志位信息,与FLAG_NOT_FOCUSABLE按位或操作后就可以将FLAG_NOT_FOCUSABLE标志位所在的位置在flag中进行了恢复置1。通过将所述默认不获取页面焦点的标志位FLAG_NOT_FOCUSABLE进行恢复,这样悬浮面板又不能够获取到页面焦点,也就无法对页面焦点进行拦截处理了。
通过在所述悬浮面板被隐藏时,移除所述悬浮面板可以释放所述电子终端的内存,节省使用空间。另外,在悬浮面板显示时,清除所述默认不获取页面焦点的标志位;在悬浮面板隐藏时,恢复默认不获取页面焦点的标志位,可以使悬浮面板能够获取页面焦点的情况下,也不影响其它页面获取页面焦点。
本申请实施例还提供了一种投屏控制方法,应用于电子终端,所述电子终端中存储有悬浮面板对象,所述投屏控制方法包括以下步骤。
步骤S301,在所述悬浮面板被调用时,配置所述悬浮面板的焦点属性,使所述悬浮面板具备获得***页面焦点的能力。
在本申请实施例中,悬浮面板可以上使用电子终端进行投屏操作时的控制面板,该控制面板在没有进行投屏操作时不会在电子终端上进行显示,在进行投屏操作后,该控制面板就可以在电子终端上进行显示。该控制面板可以是位于应用页面(Activity)的上层的,可以在多个页面之上进行显示。
由于电子终端中的控制面板在展示过程中,通常采用悬浮层的方式实现,而在安卓操作***中悬浮层是无法响应***的按键信息的,即用户通过遥控器或触摸屏输入 的按键信息是不能被该控制面板接收到的。
在本申请中,在悬浮面板被调用时,先对悬浮面板的焦点属性进行配置,以改变悬浮面板不能获得按键信息的情况。
所述悬浮面板被调用前为默认不获取页面焦点状态,电子终端的页面焦点位于哪一层,该层即可获取***的按键信息。例如,如果应用层获取到了***的页面焦点,那么针对电子终端的按键操作就会在应用层中进行。在进行焦点属性配置时,可以确定所述悬浮面板的焦点状态;再将所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为默认获取页面焦点状态。
详细的,可以先将所述默认不获取焦点标志位中的数据用二进制表示。对二进制表示后的所述默认不获取焦点标志位中的数据按位取反。将按位取反后的默认不获取焦点标志位与所述焦点属性数据进行按位与操作,以使所述焦点属性中的所述默认不获取焦点标志位被清除,使所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为获取页面焦点状态。
例如,可以先定义一个悬浮面板mMenuLayoutParams,mMenuLayoutParams悬浮面板的属性设置为WindowManager.LayoutParams.TYPE_PHONE类型,表示该控制面板在视图中的层级关系,本方案中设置为TYPE_PHONE类型这样就能够保证控制面板是在应用页面的上层的,使得控制面板可以在多个页面之上进行显示。
在进行焦点属性配置时,悬浮面板的焦点属性可以定义为:WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE。在悬浮面板被调用时,该控制面板的焦点属性为默认获取页面焦点状态,如果不对该控制面板的焦点属性进行配置的话,就会导致该控制面板会一直处于获取页面焦点的状态,使得电子终端终端中的其他页面由于无法获取到焦点而出现操作失效、程序异常的情况。
悬浮面板属性的参数是通过二进制的形式来进行保存的,焦点属性WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE是二进制中的一位或几位。在悬浮面板被调用时,需要清除掉该悬浮面板的焦点属性WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE这一标志位,实现如下所示:
mMenuLayoutParams.flags=mMenuLayoutParams.flags&
(~WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE);
mMenuLayoutParams.flags为悬浮面板的属性参数,我们将焦点属性的参数用二进制表示后,对焦点属性参数中的二进制数据按位取反,原来数据是1的变成了0,原来是0的变成了1.
按位取反后的焦点属性参数再与原始的属性参数按照按位与(&)操作,由于1 与任意数据“与”操作后都得到1,0与任何数据“与”操作后都得到0,这样就可以将属性参数中的WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE这一标志位的数据清除掉,也就达到了清除悬浮面板属性参数中焦点属性的默认不获取焦点标志位的目的。
步骤S302,监听所述***的按键操作信息,当接收到按键操作信息时,根据所述按键操作信息,控制所述悬浮面板执行按键操作。
悬浮面板的属性参数中的默认不获取焦点标志位的数据被清除掉后,该悬浮面板就具备了获取页面焦点的功能。***中此时如果产生了按键操作,就会对该悬浮面板进行操作。此时,可以监听***的按键操作信息,在按键操作信息为返回操作时,即可根据该返回操作将该悬浮面板进行隐藏,即不在电子终端的显示屏上继续显示该悬浮面板。
详细的,在将悬浮面板进行隐藏时,配置所述悬浮面板的焦点属性,使所述悬浮面板不具备获得***页面焦点的能力。同时将所述悬浮面板进行移除,并在所述电子终端的内容中释放该悬浮面板对应的进程。用户操作电子终端的按键按下了返回按键后,就是希望悬浮面板可以在返回按键的操控下不再显示,即将悬浮面板进行隐藏。悬浮面板被隐藏后如果仍然具备获得页面焦点的能力,就会出现虽然电子终端没有显示悬浮面板,但页面焦点仍然会被悬浮面板获取,以至于***中针对其他页面的按键信息不会被正确的页面获取到,而出现异常。
本申请实施例中,通过先确定所述悬浮面板的焦点状态;将所述悬浮面板的焦点状态由默认获取页面焦点状态改变为默认不获取页面焦点状态。
具体的,可以将所述默认不获取焦点标志位与所述焦点属性数据进行按位或操作,以使所述焦点属性中的所述默认不获取焦点标志位被恢复,使所述悬浮面板的焦点状态由默认获取页面焦点状态改变为默认不获取页面焦点状态。
对该标志位进行重置,具体的实现如下所示:
mMenuLayoutParams.flags=mMenuLayoutParams.flags|
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
接下来我们描述一下上述的实现原理,“|”表示按位或操作,mMenuLayoutParams.flags表示悬浮面板原始的属性,与FLAG_NOT_FOCUSABLE按位或操作后就可以将FLAG_NOT_FOCUSABLE标志位所在的位置在属性参数中置1。从而使得默认不获取焦点标志位被回复,这样悬浮面板又不能够获取到***焦点信息了,也就无法对***按键进行拦截处理了。
如前所述,本申请实施例中的悬浮面板被调用被显示时,具有获得***的页面焦 点的能力。通过再将悬浮面板的属性当中的焦点属性的状态改变,使得悬浮面板的焦点属性改变为默认不获取页面焦点状态,焦点属性改变后的悬浮面板就不再具备获得页面焦点的能力,页面焦点就可以被其他页面获取,从而使得***的按键信息不会被悬浮面板获取到,用户针对电子终端的按键操作也不会操作悬浮面板。
综上所述,本申请实施例中,通过在悬浮面板被调用时,改变悬浮面板的焦点属性,使悬浮面板具备获得页面焦点的能力,并可以在***产生按键操作时,具备获得页面焦点能力的悬浮面板可以获得按键信息,***的按键操作也就可以对悬浮面板进行操作,使得悬浮面板可以针对***的按键做出响应,提高用户的使用体验。
请参阅图4,是本公开较佳实施例提供的图1所示的投屏控制装置110的功能模块示意图。本实施例中的投屏控制装置110的各个模块用于执行上述方法实施例中的步骤。所述投屏控制装置110包括显示模块1101、清除模块1102及执行模块1103。
所述显示模块1101,配置成接收到投屏请求后,执行悬浮面板对象控制电子终端显示所述投屏请求对应的投屏数据。
所述清除模块1102,配置成将所述悬浮面板对象中的默认不获取页面焦点的标志位进行数据清除,以使所述悬浮面板对象能够获取页面焦点,所述页面焦点包括多种关于控制页面的操作信息。
所述执行模块1103,配置成当所述悬浮面板对象拦截到任一页面焦点时,对正在显示的投屏执行所述页面焦点对应的操作。
本实施例中,该装置还包括:恢复模块1104,配置成当所述悬浮面板对象拦截到的页面焦点是退出或返回显示的投屏的操作信息时,将所述悬浮面板对象中的默认不获取页面焦点的标志位进行恢复操作,以防止所述悬浮面板对象获取所述页面焦点。
本实施例中,所述装置还包括:监听模块1105及移除模块1106。
所述监听模块1105,配置成在执行悬浮面板对象控制显示投屏请求对应的投屏数据之后,启动监听函数对显示的投屏的进行状态监听。
所述移除模块1106,配置成当所述监听函数监听到所述显示的投屏不可见后,移除所述显示的投屏对应的悬浮面板。
所述恢复模块1104还配置成将所述悬浮面板对象中的默认不获取页面焦点的标志位进行恢复操作,以防止所述悬浮面板对象获取页面焦点。
本公开实施例的投屏控制装置,通过在所述悬浮面板对象的属性参数中设置默认不获取页面焦点的标志位,避免在电子终端未显示浮层时误拦截页面焦点;在电子终端中显示投屏时,将默认不获取页面焦点的标志位清除,从而使悬浮面板对象能够拦截到页面焦点,从而有效执行页面焦点对应的操作,使用户能够更方便地操作悬浮面板,提高用户体验。
本公开实施例还提供了一种投屏控制装置,应用于电子终端,所述电子终端中存储有悬浮面板对象,所述投屏控制装置包括:
配置模块,配置成在所述悬浮面板被调用时,配置所述悬浮面板的焦点属性,使所述悬浮面板具备获得***页面焦点的能力;
按键监听模块,配置成监听所述***的按键操作信息,当接收到按键操作信息时,根据所述按键操作信息,控制所述悬浮面板执行按键操作。
进一步地,所述悬浮面板被调用前为默认不获取页面焦点状态,所述配置模块配置所述悬浮面板的焦点属性的方法包括:
确定所述悬浮面板的焦点状态;
将所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为默认获取页面焦点状态。
进一步地,所述焦点属性包括默认不获取焦点标志位,所述悬浮面板被调用前配置有所述默认不获取焦点标志位,所述配置模块将所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为获取页面焦点状态的方法包括:
将所述默认不获取焦点标志位中的数据用二进制表示;
对二进制表示后的所述默认不获取焦点标志位中的数据按位取反;
将按位取反后的默认不获取焦点标志位与所述焦点属性数据进行按位与操作,以使所述焦点属性中的所述默认不获取焦点标志位被清除,使所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为获取页面焦点状态。
本公开实施例提供一种可读存储介质,其上存储有计算机程序,所述计算机程序在执行时实现上述实施例提供的投屏控制方法。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本公开的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的***来实现,或者可以用专用硬件与计算机指令的组合来实现。
另外,在本公开各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也 可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。
工业实用性
本公开提供了一种投屏控制方法、装置、电子终端及可读存储介质,通过改变悬浮面板的属性,使悬浮面板具有可以获得页面焦点的能力,从而使针对***的按键信息可以操作悬浮面板。

Claims (23)

  1. 一种投屏控制方法,其特征在于,应用于电子终端,所述电子终端中存储有悬浮面板对象,所述悬浮面板对象包括属性参数,所述属性参数包括默认不获取页面焦点的标志位,所述投屏控制方法包括:
    接收到投屏请求后,执行悬浮面板对象控制电子终端显示所述投屏请求对应的投屏数据;
    将所述悬浮面板对象中的默认不获取页面焦点的标志位进行数据清除,以使所述悬浮面板对象能够获取页面焦点,所述页面焦点包括多种关于控制页面的操作信息;
    当所述悬浮面板对象拦截到任一页面焦点时,对正在显示的投屏执行所述页面焦点对应的操作。
  2. 如权利要求1所述的投屏控制方法,其特征在于,当所述悬浮面板对象拦截到任一页面焦点时,该方法还包括:
    确定所述页面焦点对应的操作指令,当所述操作指令为返回操作时,根据所述返回操作执行对应的操作。
  3. 如权利要求1或2所述的投屏控制方法,其特征在于,在所述对正在显示的投屏执行所述页面焦点对应的操作之后,该方法还包括:
    当所述悬浮面板对象拦截到的页面焦点是退出或返回显示的投屏的操作信息时,将所述悬浮面板对象中的默认不获取页面焦点的标志位进行恢复操作,以防止所述悬浮面板对象获取所述页面焦点。
  4. 如权利要求3所述的投屏控制方法,其特征在于,所述将所述悬浮面板对象中的默认不获取页面焦点的标志位进行恢复操作的步骤包括:
    将所述默认不获取页面焦点的标志位与所述属性参数执行按位或操作,以恢复所述属性参数中的默认不获取页面焦点的标志位。
  5. 如权利要求1至4任意一项所述的投屏控制方法,其特征在于,所述将所述悬浮面板对象中的默认不获取页面焦点的标志位进行数据清除的步骤包括:
    将所述默认不获取页面焦点的标志位进行取反操作得到辅助清除数据;
    将所述辅助清除数据与所述属性参数执行按位与操作。
  6. 如权利要求1至5任意一项所述的投屏控制方法,其特征在于,所述方法还包括:
    在执行悬浮面板对象控制显示投屏请求对应的投屏数据之后,启动监听函数对显示的投屏的进行状态监听;
    当所述监听函数监听到所述显示的投屏不可见后,移除所述显示的投屏对应的悬 浮面板;
    将所述悬浮面板对象中的默认不获取页面焦点的标志位进行恢复操作,以防止所述悬浮面板对象获取页面焦点。
  7. 一种投屏控制方法,其特征在于,应用于电子终端,所述电子终端中存储有悬浮面板对象,所述投屏控制方法包括:
    在所述悬浮面板被调用时,配置所述悬浮面板的焦点属性,使所述悬浮面板具备获得***页面焦点的能力;
    监听所述***的按键操作信息,当接收到按键操作信息时,根据所述按键操作信息,控制所述悬浮面板执行按键操作。
  8. 如权利要求7所述的投屏控制方法,其特征在于,所述悬浮面板被调用前为默认不获取页面焦点状态,配置所述悬浮面板的焦点属性的步骤包括:
    确定所述悬浮面板的焦点状态;
    将所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为默认获取页面焦点状态。
  9. 如权利要求7或8所述的投屏控制方法,其特征在于,所述焦点属性包括默认不获取焦点标志位,所述悬浮面板被调用前配置有所述默认不获取焦点标志位,将所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为获取页面焦点状态的方法包括:
    将所述默认不获取焦点标志位中的数据用二进制表示;
    对二进制表示后的所述默认不获取焦点标志位中的数据按位取反;
    将按位取反后的默认不获取焦点标志位与所述焦点属性数据进行按位与操作,以使所述焦点属性中的所述默认不获取焦点标志位被清除,使所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为获取页面焦点状态。
  10. 如权利要求7至9任意一项所述的投屏控制方法,其特征在于,监听所述***的按键操作信息,当接收到按键操作信息时,根据所述按键操作信息,控制所述悬浮面板执行按键操作的步骤包括:
    当所述按键操作信息为返回按键信息时,根据该返回按键信息,控制所述悬浮面板在所述电子终端的显示界面中隐藏。
  11. 如权利要求7至10任意一项所述的投屏控制方法,其特征在于,所述悬浮面板预先配置有非限制布局属性,以使所述悬浮面板控制所述悬浮面板在所述电子终端的显示界面中隐藏的步骤包括:
    配置所述悬浮面板的焦点属性,使所述悬浮面板不具备获得***页面焦点的能力;
    将所述悬浮面板进行移除,并在所述电子终端的内容中释放该悬浮面板对应的进程。
  12. 如权利要求7至11任意一项所述的投屏控制方法,其特征在于,所述悬浮面板被调用前为默认不获取页面焦点状态,配置所述悬浮面板的焦点属性的步骤包括:
    确定所述悬浮面板的焦点状态;
    将所述悬浮面板的焦点状态由默认获取页面焦点状态改变为默认不获取页面焦点状态。
  13. 如权利要求7至12任意一项所述的投屏控制方法,其特征在于,将所述悬浮面板的焦点状态由默认获取页面焦点状态改变为默认不获取页面焦点状态的步骤包括:
    将所述默认不获取焦点标志位与所述焦点属性数据进行按位或操作,以使所述焦点属性中的所述默认不获取焦点标志位被恢复,使所述悬浮面板的焦点状态由默认获取页面焦点状态改变为默认不获取页面焦点状态。
  14. 一种投屏控制装置,其特征在于,应用于电子终端,所述电子终端中存储有悬浮面板对象,所述悬浮面板对象包括属性参数,所述属性参数包括默认不获取页面焦点的标志位,所述投屏控制装置包括:
    显示模块,配置成接收到投屏请求后,执行悬浮面板对象控制电子终端显示所述投屏请求对应的投屏数据;
    清除模块,配置成将所述悬浮面板对象中的默认不获取页面焦点的标志位进行数据清除,以使所述悬浮面板对象能够获取页面焦点,所述页面焦点包括多种关于控制页面的操作信息;
    执行模块,配置成当所述悬浮面板对象拦截到任一页面焦点时,对正在显示的投屏执行所述页面焦点对应的操作。
  15. 如权利要求14所述的投屏控制装置,其特征在于,在所述对正在显示的投屏执行所述页面焦点对应的操作之后,该装置还包括:
    恢复模块,用于当所述悬浮面板对象拦截到的页面焦点是退出或返回显示的投屏的操作信息时,将所述悬浮面板对象中的默认不获取页面焦点的标志位进行恢复操作,以防止所述悬浮面板对象获取所述页面焦点。
  16. 如权利要求14所述的投屏控制装置,其特征在于,所述装置还包括:
    监听模块,用于在执行悬浮面板对象控制显示投屏请求对应的投屏数据之后,启动监听函数对显示的投屏的进行状态监听;
    移除模块,用于当所述监听函数监听到所述显示的投屏不可见后,移除所述显示的投屏对应的悬浮面板;
    恢复模块,用于将所述悬浮面板对象中的默认不获取页面焦点的标志位进行恢复操作,以防止所述悬浮面板对象获取页面焦点。
  17. 一种投屏控制装置,其特征在于,应用于电子终端,所述电子终端中存储有悬浮面板对象,所述投屏控制装置包括:
    配置模块,配置成在所述悬浮面板被调用时,配置所述悬浮面板的焦点属性,使所述悬浮面板具备获得***页面焦点的能力;
    按键监听模块,配置成监听所述***的按键操作信息,当接收到按键操作信息时,根据所述按键操作信息,控制所述悬浮面板执行按键操作。
  18. 如权利要求17所述的投屏控制装置,其特征在于,所述悬浮面板被调用前为默认不获取页面焦点状态,所述配置模块配置所述悬浮面板的焦点属性的方法包括:
    确定所述悬浮面板的焦点状态;
    将所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为默认获取页面焦点状态。
  19. 如权利要求18所述的投屏控制装置,其特征在于,所述焦点属性包括默认不获取焦点标志位,所述悬浮面板被调用前配置有所述默认不获取焦点标志位,所述配置模块将所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为获取页面焦点状态的方法包括:
    将所述默认不获取焦点标志位中的数据用二进制表示;
    对二进制表示后的所述默认不获取焦点标志位中的数据按位取反;
    将按位取反后的默认不获取焦点标志位与所述焦点属性数据进行按位与操作,以使所述焦点属性中的所述默认不获取焦点标志位被清除,使所述悬浮面板的焦点状态由默认不获取页面焦点状态改变为获取页面焦点状态。
  20. 一种电子终端,其特征在于,包括:
    存储器;
    处理器;
    权利要求14-16任一项所述的投屏控制装置,该投屏控制装置存储于所述存储器并由所述处理器控制执行。
  21. 一种电子终端,其特征在于,包括:
    存储器;
    处理器;
    权利要求17-19任一项所述的投屏控制装置,该投屏控制装置存储于所述存储器并由所述处理器控制执行。
  22. 一种可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序在执行时实现上述权利要求1-6中任意一项所述的投屏控制方法。
  23. 一种可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序在执行时实现上述权利要求7-13中任意一项所述的投屏控制方法。
PCT/CN2018/082351 2018-01-02 2018-04-09 投屏控制方法、装置、电子终端及可读存储介质 WO2019134289A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810002874.9A CN108228126B (zh) 2018-01-02 2018-01-02 投屏控制方法、装置、电子终端及可读存储介质
CN201810002874.9 2018-01-02

Publications (1)

Publication Number Publication Date
WO2019134289A1 true WO2019134289A1 (zh) 2019-07-11

Family

ID=62642592

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082351 WO2019134289A1 (zh) 2018-01-02 2018-04-09 投屏控制方法、装置、电子终端及可读存储介质

Country Status (2)

Country Link
CN (1) CN108228126B (zh)
WO (1) WO2019134289A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022052662A1 (zh) * 2020-09-10 2022-03-17 华为技术有限公司 显示方法及电子设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244927A (zh) * 2019-07-03 2019-09-17 明基智能科技(上海)有限公司 一种智能显示***及装置
CN112333326B (zh) * 2020-10-26 2022-03-18 努比亚技术有限公司 一种投屏显示控制方法、设备及计算机可读存储介质

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828139A (zh) * 2016-04-06 2016-08-03 乐视控股(北京)有限公司 一种视频投屏方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9300834B2 (en) * 2009-05-20 2016-03-29 Dacuda Ag Image processing for handheld scanner
CN104469465A (zh) * 2014-12-09 2015-03-25 四川长虹电器股份有限公司 基于安卓***的智能电视悬浮主场景交互方法
CN104780453A (zh) * 2015-01-19 2015-07-15 康佳集团股份有限公司 一种智能电视桌面***交互方法及装置
CN107241633A (zh) * 2017-06-07 2017-10-10 珠海市魅族科技有限公司 一种焦点提示方法及装置、计算机装置及可读存储介质
CN107484024B (zh) * 2017-08-17 2019-12-24 四川长虹电器股份有限公司 基于webos智能电视***利用热键实现全局悬浮菜单的方法
CN107506113A (zh) * 2017-08-31 2017-12-22 深圳市金立通信设备有限公司 一种显示界面的控制方法、终端及计算机可读介质

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828139A (zh) * 2016-04-06 2016-08-03 乐视控股(北京)有限公司 一种视频投屏方法及装置

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"Custom Floating Window", 9 July 2015 (2015-07-09), pages 1, Retrieved from the Internet <URL:https://blog.csdn.net/qq_15949077/article/details/46815583> *
"Problems about Android Floating Window to Get Keypress Response", 8 November 2014 (2014-11-08), pages 1, Retrieved from the Internet <URL:https://www.cnbkjgs.com/wytings/p/4083303.html> *
"Return Key Event Processing of Floating Window in WindowsManager", 15 June 2017 (2017-06-15), pages 1, Retrieved from the Internet <URL:https://blog.csdn.net/xiaoxsen/article/details/73302231> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022052662A1 (zh) * 2020-09-10 2022-03-17 华为技术有限公司 显示方法及电子设备
CN114253491A (zh) * 2020-09-10 2022-03-29 华为技术有限公司 显示方法及电子设备

Also Published As

Publication number Publication date
CN108228126B (zh) 2020-01-03
CN108228126A (zh) 2018-06-29

Similar Documents

Publication Publication Date Title
US10552644B2 (en) Method and apparatus for displaying information content
CN107515759B (zh) 截屏方法、装置、电子设备及可读存储介质
CN106951335B (zh) 一种进程守护方法和移动终端
US10949154B2 (en) Systems and methods for using screen sampling to detect display changes
CN107181858B (zh) 一种显示通知消息的方法及终端
WO2019134289A1 (zh) 投屏控制方法、装置、电子终端及可读存储介质
JP5384638B2 (ja) シェルアプリケーションおよびサブアプリケーションの結合インターフェース
US20150220239A1 (en) Global keyboard shortcuts management for web applications
CN108400868B (zh) 种子密钥的存储方法、装置及移动终端
AU2014296756B2 (en) Coerced encryption on connected devices
KR101837678B1 (ko) 신뢰실행환경 기반의 컴퓨팅 장치
WO2022134361A1 (zh) 屏幕水印显示方法、装置、电子设备及存储介质
CN114528517A (zh) 一种视图处理方法、装置、电子设备及计算机可读介质
CN111708431A (zh) 人机交互方法、装置、头戴显示设备及存储介质
US20200089512A1 (en) Method and Apparatus for Invoking Input Method, Server, and Terminal
WO2020119484A1 (zh) 一种信息提示的方法、装置、电子设备及可读介质
CN111338628A (zh) 组件渲染方法及设备
KR20130058621A (ko) 터치 신호를 처리하는 방법 및 그 계산 장치
WO2016115753A1 (zh) 运行多***的方法、装置及终端
WO2019000820A1 (zh) 锁屏界面消息的处理方法、装置及电子设备
US8719704B2 (en) Seamless integration of additional functionality into enterprise software without customization or apparent alteration of same
US9807111B1 (en) Systems and methods for detecting advertisements displayed to users via user interfaces
CN107729107B (zh) 一种模态对话框处理方法及装置
US20160077899A1 (en) Handling of inputs in a multi-process application
US10326780B1 (en) Auto-sizing an untrusted view

Legal Events

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

Ref document number: 18898512

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18898512

Country of ref document: EP

Kind code of ref document: A1