WO2019136853A1 - Keyboard optimization processing method, storage medium, electrical device and system - Google Patents

Keyboard optimization processing method, storage medium, electrical device and system Download PDF

Info

Publication number
WO2019136853A1
WO2019136853A1 PCT/CN2018/081322 CN2018081322W WO2019136853A1 WO 2019136853 A1 WO2019136853 A1 WO 2019136853A1 CN 2018081322 W CN2018081322 W CN 2018081322W WO 2019136853 A1 WO2019136853 A1 WO 2019136853A1
Authority
WO
WIPO (PCT)
Prior art keywords
keyboard
parameter
notification
function
coordinate value
Prior art date
Application number
PCT/CN2018/081322
Other languages
French (fr)
Chinese (zh)
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 WO2019136853A1 publication Critical patent/WO2019136853A1/en

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages

Definitions

  • the present invention relates to the field of mobile application technologies, and in particular, to a keyboard optimization processing method, a storage medium, an electronic device, and a system.
  • each controller defines a notification to listen to the pop-up and hidden events of the keyboard, and triggers corresponding when popping up and hiding. Callback function.
  • each controller is less efficient to listen and register. And there are hundreds of controllers in the general project. If each controller has the same need of a keyboard pop-up mobile subview, it needs hundreds of monitoring notifications, so the entire mobile mobile application needs to have a large number of duplicate codes.
  • the present invention aims to provide a keyboard optimization processing method, a storage medium, an electronic device and a system, and simplifies the code required to use the mobile phone mobile application software to monitor notifications.
  • the parameters of the keyboard parameter calling function include a keyboard coordinate value parameter and a keyboard position change a parameter and a keyboard action end parameter;
  • the first callback function is used to call back the keyboard coordinate value parameter, and the second callback function is used to call back the keyboard position change parameter;
  • the function of the system is called by the keyboard parameter to obtain the notification center of the system and listen to the keyboard notification, and then the monitored keyboard notification is fed back to the classification of the controller through the callback method, allowing each controller to be multiplexed;
  • the keyboard action function is used to obtain whether the current state of the keyboard is popped or hidden, and the first callback function and the second callback function are invoked according to the received keyboard notification to implement pop-up or hiding of the keyboard.
  • the keyboard coordinate value parameter includes a coordinate value before the keyboard change, a time required for the keyboard to pop up, and whether the current keyboard is popped up;
  • the keyboard position change parameter includes a coordinate value after the keyboard change and a time required for the position change;
  • the keyboard action end parameter is used to indicate that the keyboard pops up or hides the end of the action.
  • the keyboard action function is used to obtain whether the current state of the keyboard is popped or hidden, and the coordinate value before the keyboard change, the time required for the keyboard to pop up, and the keyboard action are obtained from the keyboard notification.
  • the parameter and use the first callback function to call back to the controller obtain the time required for the coordinate value and position change of the keyboard change from the keyboard notification, and the time after the keyboard changes, the time required for the position change, and the current state of the keyboard are popped up.
  • the keyboard parameter calling function call notification management class NSNotificationCenter calls the method of obtaining the system notification to obtain the notification center of the system, and uses the addObserver function to monitor the keyboard notification.
  • the invention also discloses a storage medium on which a computer program is stored, and when the computer program is executed by the processor, a keyboard optimization processing method is implemented.
  • the invention also discloses an electronic device comprising a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor implements a keyboard optimization processing method when executing the computer program.
  • the invention also discloses a keyboard optimization processing system, comprising:
  • a function creation module configured to create a keyboard parameter calling function, a first callback function, and a second callback function in a classification of the controller, and define a parameter of the keyboard parameter calling function;
  • the parameter of the keyboard parameter calling function includes a keyboard a coordinate value parameter, a keyboard position change parameter, and a keyboard action end parameter;
  • the first callback function is used to call back the keyboard coordinate value parameter, and the second callback function is used to call back the keyboard position change parameter;
  • a parameter obtaining module configured to acquire a notification center of the system through a keyboard parameter calling function and listen to the keyboard notification, and then feed the monitored keyboard notification to the classification of the controller through a callback method, allowing each controller to reuse;
  • a keyboard action module configured to: after the controller receives the keyboard notification, use a keyboard action function to obtain whether the current state of the keyboard is popped or hidden, and invoke the first callback function and the second callback function according to the received keyboard notification The keyboard pops up or hides.
  • the keyboard coordinate value parameter includes a coordinate value before the keyboard change, a time required for the keyboard to pop up, and whether the current keyboard is popped up;
  • the keyboard position change parameter includes a coordinate value after the keyboard change and a time required for the position change;
  • the keyboard action end parameter is used to indicate that the keyboard pops up or hides the end of the action.
  • the parameter obtaining module is configured to use the keyboard action function to obtain whether the current state of the keyboard is popped or hidden after the controller receives the keyboard notification, and obtain the coordinate value before the keyboard change and the keyboard from the keyboard notification.
  • the required time and keyboard action end parameters are popped up and the first callback function is used to call back to the controller; the coordinate value and the time required for the position change after the keyboard change are obtained from the keyboard notification, and the coordinate value and the position change time required after the keyboard change are obtained.
  • the current state of the keyboard is popped or hidden using the second callback function to call back to the controller.
  • the parameter obtaining module is configured to call the notification management class NSNotificationCenter to call the method for obtaining the system notification to obtain the notification center of the system, and use the addObserver function to monitor the keyboard notification.
  • the invention creates a keyboard parameter calling function and a first callback function and a second callback function in the classification of the controller, and only needs to listen to the keyboard notification of the system, and adjusts the parameters in the monitored keyboard notification to the controller classification, allowing each The controllers are multiplexed, and then the first callback function and the second callback function and the controller implement all the actions of the keyboard pop-up and hidden, without having to define a notification on each controller to monitor the keyboard pop-up and hidden events, simplifying The code that needs to be developed to listen to notifications using the mobile app.
  • FIG. 1 is a schematic flowchart of a keyboard optimization processing method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a keyboard optimization processing system according to an embodiment of the present invention.
  • an embodiment of the present invention provides a keyboard optimization processing method:
  • the keyboard parameter calling function, the first callback function and the second callback function are created in the classification of the controller, and the parameters of the keyboard parameter calling function are defined; the parameters of the keyboard parameter calling function include the keyboard coordinate value parameter, the keyboard position changing parameter and the keyboard action End parameter; the first callback function is used to call back the keyboard coordinate value parameter, and the second callback function is used to call back the keyboard position change parameter;
  • the keyboard action function is used to obtain whether the current keyboard state is popped or hidden, and the first callback function and the second callback function are called according to the received keyboard notification to implement pop-up or hiding of the keyboard.
  • the invention creates a keyboard parameter calling function and a first callback function and a second callback function in the classification of the controller, and only needs to listen to the keyboard notification of the system, and adjusts the parameters in the monitored keyboard notification to the controller classification, allowing each The controllers are multiplexed, and then the first callback function and the second callback function and the controller implement all the actions of the keyboard pop-up and hidden, without having to define a notification on each controller to monitor the keyboard pop-up and hidden events, simplifying The code that needs to be developed to listen to notifications using the mobile app.
  • the first parameter is that the type is a KeyboardBlock type, and the corresponding callback function is the first callback function, and the name of the first callback function is beforeAnimations;
  • the type of the second parameter is the AnimationBoardBlock type, the corresponding callback function is the second callback function, and the name of the second callback function is animations;
  • the third parameter is the keyboard action end parameter, a CompletAnimationBlock type.
  • the above declaration of the function is completed. Now, the implementation of this function is written.
  • the created function is internally implemented by classification.
  • classification is used here is because many keyboards need to pop up pages that need to use the keyboard, create a controller-based classification, allow all controllers to call, and use this solution more conveniently and quickly.
  • the specific method is: use the method of the associated object inside this function to save the three parameters passed in above. Because the attribute cannot be added to the class to generate the set method and the get method, only the method of the associated object is used.
  • the controller After the controller receives the keyboard notification, use the keyboard action function to obtain whether the current state of the keyboard is popped or hidden, obtain the coordinate value before the keyboard change from the keyboard notification, the time required for the keyboard to pop up, and the keyboard action end parameter and use the first callback function.
  • Callback to the controller obtain the time required for the coordinate value and position change of the keyboard change from the keyboard notification, and change the coordinate value after the keyboard change, the time required for the position change, and the current state of the keyboard to pop up or hide using the second callback function callback Give the controller.
  • the keyboard coordinate value parameter includes the coordinate value before the keyboard change, the time required for the keyboard to pop up and whether the current keyboard pops up;
  • the keyboard position change parameter includes the time required for the coordinate value and the position change after the keyboard change;
  • the keyboard action end parameter is used to indicate the keyboard pop-up or The hidden action ends.
  • the coordinate value before the keyboard change is a rect of the CGRect type
  • the time required for the keyboard to pop up is the duration of the NSTimeInterval type
  • the coordinate value after the keyboard change is a CCRect type rect
  • the time required for the location change is the duration of the NSTimeInterval type
  • the keyboard action end parameter is a boolean type finished.
  • the method for acquiring the associated object is used to obtain the coordinate value before the keyboard change, the time required for the keyboard to pop up, and the keyboard action end parameter from the keyboard notification.
  • the method for obtaining the associated object is objc_getAssociatedObject.
  • the keyboard parameter calls the function call notification management class NSNotificationCenter calls the method of obtaining the system notification to obtain the notification center of the system, and uses the addObserver function to listen to the keyboard notification.
  • the notification notification needs a notification name. You need to add a listener. Set who listens for this notification, set it to self, and self will monitor the notification on behalf of the current controller.
  • the notification name is UIKeyboardWillShowNotification, the callback received is ShowNotification; the notification name is UIKeyboardWillHideNotification, and the received callback is handleNotification.
  • the embodiment of the invention also discloses a storage medium on which a computer program is stored, and when the computer program is executed by the processor, a keyboard optimization processing method is implemented.
  • the embodiment of the invention further discloses an electronic device, comprising a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor implements a keyboard optimization processing method when the computer program is executed.
  • an embodiment of the present invention further discloses a keyboard optimization processing system, including:
  • a function creation module configured to create a keyboard parameter calling function, a first callback function, and a second callback function in the classification of the controller, and define a parameter of the keyboard parameter calling function;
  • the parameter of the keyboard parameter calling function includes a keyboard coordinate value parameter, a keyboard position change parameter and a keyboard action end parameter;
  • a first callback function is used to call back a keyboard coordinate value parameter, and a second callback function is used to call back a keyboard position change parameter;
  • a parameter obtaining module configured to acquire a notification center of the system through a keyboard parameter calling function and listen to the keyboard notification, and then feed the monitored keyboard notification to the controller by using a callback method, allowing each controller to reuse;
  • a keyboard action module configured to: after the controller receives the keyboard notification, use a keyboard action function to obtain whether the current state of the keyboard is popped or hidden, and invoke the first callback function and the second callback function to implement the keyboard according to the received keyboard notification Pop up or hide.
  • the keyboard coordinate value parameter includes the coordinate value before the keyboard change, the time required for the keyboard to pop up and whether the current keyboard pops up;
  • the keyboard position change parameter includes the time required for the coordinate value and the position change after the keyboard change;
  • the keyboard action end parameter is used to indicate the keyboard pop-up or The hidden action ends.
  • the parameter acquisition module is configured to use the keyboard action function to obtain whether the current state of the keyboard is popped or hidden after the controller receives the keyboard notification, obtain the coordinate value before the keyboard change, the time required for the keyboard to pop up, and the keyboard action end parameter from the keyboard notification.
  • Use the first callback function to call back to the controller; obtain the time required for the coordinate value and position change after the keyboard change from the keyboard notification, and change the coordinate value after the keyboard change, the time required for the position change, and the current keyboard state to pop or hide.
  • the second callback function is called back to the controller.
  • the parameter acquisition module is used to call the notification management class NSNotificationCenter to call the method of obtaining the system notification to obtain the notification center of the system, and use the addObserver function to monitor the keyboard notification.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

Disclosed in the present invention are a keyboard optimization processing method, a storage medium, an electrical device and a system, relating to the technical field of mobile end application. In the present invention, a keyboard parameter invoking function, a first callback function and a second callback function are created in the categories of controllers; only keyboard notifications of the system are needed to be monitored, and parameters in the monitored keyboard notifications are called back to the categories of controllers, and each of the controllers is allowed to be multiplexed; and all the actions of keyboard popup and hiding can be realized by means of the first callback function, the second callback function and the controllers. Therefore, there is no need to define a notification in each controller to monitor the events of the keyboard popup and hiding, thereby simplifying codes needing to be developed when a handset mobile end application software is used to monitor the notifications.

Description

键盘优化处理方法、存储介质、电子设备及系统Keyboard optimization processing method, storage medium, electronic device and system 技术领域Technical field
本发明涉及涉及移动端应用技术领域,具体涉及一种键盘优化处理方法、存储介质、电子设备及系统。The present invention relates to the field of mobile application technologies, and in particular, to a keyboard optimization processing method, a storage medium, an electronic device, and a system.
背景技术Background technique
随着手机移动端的快速发展,手机移动端应用软件产品的设计不再仅限于功能的实现,在实际开发中,很多时候用户都需要显示键盘,显示键盘的时候有时候需要调整界面的样式,修改界面的的子视图的位置,当需要根据键盘的弹出和隐藏来调整界面的时候,常规的方案是每个控制器都定义一个通知来监听键盘弹出和隐藏的事件,当弹出和隐藏时触发相应的回调函数。但是,每个控制器都进行监听和注册通知效率较低。且一般项目中有几百个控制器,如果每个控制器都有类似键盘弹出移动子视图的需要,需要几百次监听通知,这样整个手机移动端应用软件需要设置有大量的重复代码。With the rapid development of mobile phones, the design of mobile mobile application software is no longer limited to the realization of functions. In actual development, users often need to display the keyboard. When displaying the keyboard, sometimes the interface style needs to be adjusted. The position of the subview of the interface. When it is necessary to adjust the interface according to the pop-up and hiding of the keyboard, the conventional scheme is that each controller defines a notification to listen to the pop-up and hidden events of the keyboard, and triggers corresponding when popping up and hiding. Callback function. However, each controller is less efficient to listen and register. And there are hundreds of controllers in the general project. If each controller has the same need of a keyboard pop-up mobile subview, it needs hundreds of monitoring notifications, so the entire mobile mobile application needs to have a large number of duplicate codes.
发明内容Summary of the invention
针对现有技术中存在的缺陷,本发明的目的在于提供一种键盘优化处理方法、存储介质、电子设备及系统,简化了使用手机移动端应用软件监听通知所需开发的代码。In view of the deficiencies in the prior art, the present invention aims to provide a keyboard optimization processing method, a storage medium, an electronic device and a system, and simplifies the code required to use the mobile phone mobile application software to monitor notifications.
为达到以上目的,本发明采取的技术方案是:一种键盘优化处理方法:In order to achieve the above objectives, the technical solution adopted by the present invention is: a keyboard optimization processing method:
在控制器的分类中创建键盘参数调用函数、第一回调函数和第二回调函数,并定义所述键盘参数调用函数的参数;所述键盘参数调用 函数的参数包括键盘坐标值参数、键盘位置变化参数和键盘动作结束参数;所述第一回调函数用于回调所述键盘坐标值参数,所述第二回调函数用于回调所述键盘位置变化参数;Creating a keyboard parameter calling function, a first callback function and a second callback function in a classification of the controller, and defining parameters of the keyboard parameter calling function; the parameters of the keyboard parameter calling function include a keyboard coordinate value parameter and a keyboard position change a parameter and a keyboard action end parameter; the first callback function is used to call back the keyboard coordinate value parameter, and the second callback function is used to call back the keyboard position change parameter;
通过键盘参数调用函数获取系统的通知中心并监听键盘通知,再将监听到的键盘通知通过回调方法反馈至所述控制器的分类,允许每个控制器复用;The function of the system is called by the keyboard parameter to obtain the notification center of the system and listen to the keyboard notification, and then the monitored keyboard notification is fed back to the classification of the controller through the callback method, allowing each controller to be multiplexed;
在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,并根据收到的键盘通知调用所述第一回调函数和第二回调函数实现键盘的弹出或隐藏。After the controller receives the keyboard notification, the keyboard action function is used to obtain whether the current state of the keyboard is popped or hidden, and the first callback function and the second callback function are invoked according to the received keyboard notification to implement pop-up or hiding of the keyboard.
在上述技术方案的基础上,所述键盘坐标值参数包括键盘变化前坐标值,键盘弹出需要的时间和当前的键盘是否弹出;键盘位置变化参数包括键盘变化后坐标值和位置变化需要的时间;键盘动作结束参数用于表示键盘弹出或隐藏动作结束。On the basis of the above technical solution, the keyboard coordinate value parameter includes a coordinate value before the keyboard change, a time required for the keyboard to pop up, and whether the current keyboard is popped up; the keyboard position change parameter includes a coordinate value after the keyboard change and a time required for the position change; The keyboard action end parameter is used to indicate that the keyboard pops up or hides the end of the action.
在上述技术方案的基础上,在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,从键盘通知中获取键盘变化前坐标值、键盘弹出需要的时间和键盘动作结束参数并使用第一回调函数回调给控制器;从键盘通知中获取键盘变化后坐标值、位置变化需要的时间,并将键盘变化后坐标值、位置变化需要的时间和当前键盘的状态是弹出还是隐藏使用第二回调函数回调给控制器。On the basis of the above technical solution, after the controller receives the keyboard notification, the keyboard action function is used to obtain whether the current state of the keyboard is popped or hidden, and the coordinate value before the keyboard change, the time required for the keyboard to pop up, and the keyboard action are obtained from the keyboard notification. End the parameter and use the first callback function to call back to the controller; obtain the time required for the coordinate value and position change of the keyboard change from the keyboard notification, and the time after the keyboard changes, the time required for the position change, and the current state of the keyboard are popped up. Still hide using the second callback function to call back to the controller.
在上述技术方案的基础上,所述键盘参数调用函数调用通知管理类NSNotificationCenter调用获取系统通知的方法获取系统的通知中心,使用addObserver函数监听键盘通知。On the basis of the above technical solution, the keyboard parameter calling function call notification management class NSNotificationCenter calls the method of obtaining the system notification to obtain the notification center of the system, and uses the addObserver function to monitor the keyboard notification.
本发明还公开了一种存储介质,该存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现键盘优化处理方法。The invention also discloses a storage medium on which a computer program is stored, and when the computer program is executed by the processor, a keyboard optimization processing method is implemented.
本发明还公开了一种电子设备,包括存储器和处理器,存储器上 储存有在处理器上运行的计算机程序,处理器执行计算机程序时实现键盘优化处理方法。The invention also discloses an electronic device comprising a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor implements a keyboard optimization processing method when executing the computer program.
本发明还公开了一种键盘优化处理系统,包括:The invention also discloses a keyboard optimization processing system, comprising:
函数创建模块,其用于在控制器的分类中创建键盘参数调用函数、第一回调函数和第二回调函数,并定义所述键盘参数调用函数的参数;所述键盘参数调用函数的参数包括键盘坐标值参数、键盘位置变化参数和键盘动作结束参数;所述第一回调函数用于回调所述键盘坐标值参数,所述第二回调函数用于回调所述键盘位置变化参数;a function creation module, configured to create a keyboard parameter calling function, a first callback function, and a second callback function in a classification of the controller, and define a parameter of the keyboard parameter calling function; the parameter of the keyboard parameter calling function includes a keyboard a coordinate value parameter, a keyboard position change parameter, and a keyboard action end parameter; the first callback function is used to call back the keyboard coordinate value parameter, and the second callback function is used to call back the keyboard position change parameter;
参数获取模块,其用于通过键盘参数调用函数获取系统的通知中心并监听键盘通知,再将监听到的键盘通知通过回调方法反馈至所述控制器的分类,允许每个控制器复用;a parameter obtaining module, configured to acquire a notification center of the system through a keyboard parameter calling function and listen to the keyboard notification, and then feed the monitored keyboard notification to the classification of the controller through a callback method, allowing each controller to reuse;
键盘动作模块,其用于在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,并根据收到的键盘通知调用所述第一回调函数和第二回调函数实现键盘的弹出或隐藏。a keyboard action module, configured to: after the controller receives the keyboard notification, use a keyboard action function to obtain whether the current state of the keyboard is popped or hidden, and invoke the first callback function and the second callback function according to the received keyboard notification The keyboard pops up or hides.
在上述技术方案的基础上,所述键盘坐标值参数包括键盘变化前坐标值,键盘弹出需要的时间和当前的键盘是否弹出;键盘位置变化参数包括键盘变化后坐标值和位置变化需要的时间;键盘动作结束参数用于表示键盘弹出或隐藏动作结束。On the basis of the above technical solution, the keyboard coordinate value parameter includes a coordinate value before the keyboard change, a time required for the keyboard to pop up, and whether the current keyboard is popped up; the keyboard position change parameter includes a coordinate value after the keyboard change and a time required for the position change; The keyboard action end parameter is used to indicate that the keyboard pops up or hides the end of the action.
在上述技术方案的基础上,所述参数获取模块用于在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,从键盘通知中获取键盘变化前坐标值、键盘弹出需要的时间和键盘动作结束参数并使用第一回调函数回调给控制器;从键盘通知中获取键盘变化后坐标值、位置变化需要的时间,并将键盘变化后坐标值、位置变化需要的时间和当前键盘的状态是弹出还是隐藏使用第二回调函数回调给控制器。On the basis of the above technical solution, the parameter obtaining module is configured to use the keyboard action function to obtain whether the current state of the keyboard is popped or hidden after the controller receives the keyboard notification, and obtain the coordinate value before the keyboard change and the keyboard from the keyboard notification. The required time and keyboard action end parameters are popped up and the first callback function is used to call back to the controller; the coordinate value and the time required for the position change after the keyboard change are obtained from the keyboard notification, and the coordinate value and the position change time required after the keyboard change are obtained. And the current state of the keyboard is popped or hidden using the second callback function to call back to the controller.
在上述技术方案的基础上,所述参数获取模块用于调用通知管理类NSNotificationCenter调用获取系统通知的方法获取系统的通知中心,使用addObserver函数监听键盘通知。On the basis of the foregoing technical solution, the parameter obtaining module is configured to call the notification management class NSNotificationCenter to call the method for obtaining the system notification to obtain the notification center of the system, and use the addObserver function to monitor the keyboard notification.
与现有技术相比,本发明的优点在于:The advantages of the present invention over the prior art are:
本发明通过在控制器的分类创建键盘参数调用函数以及第一回调函数和第二回调函数,仅需要监听系统的键盘通知,将监听到的键盘通知中的参数回调给控制器的分类,允许每个控制器复用,再通过第一回调函数和第二回调函数和控制器实现键盘的弹出和隐藏的所有动作,无需在每个控制器都定义一个通知来监听键盘弹出和隐藏的事件,简化了使用手机移动端应用软件监听通知所需开发的代码。The invention creates a keyboard parameter calling function and a first callback function and a second callback function in the classification of the controller, and only needs to listen to the keyboard notification of the system, and adjusts the parameters in the monitored keyboard notification to the controller classification, allowing each The controllers are multiplexed, and then the first callback function and the second callback function and the controller implement all the actions of the keyboard pop-up and hidden, without having to define a notification on each controller to monitor the keyboard pop-up and hidden events, simplifying The code that needs to be developed to listen to notifications using the mobile app.
附图说明DRAWINGS
图1为本发明实施例中键盘优化处理方法的流程示意图;1 is a schematic flowchart of a keyboard optimization processing method according to an embodiment of the present invention;
图2为本发明实施例中键盘优化处理系统的结构示意图。FIG. 2 is a schematic structural diagram of a keyboard optimization processing system according to an embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图及实施例对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
参见图1所示,本发明实施例提供一种键盘优化处理方法:Referring to FIG. 1, an embodiment of the present invention provides a keyboard optimization processing method:
在控制器的分类中创建键盘参数调用函数、第一回调函数和第二回调函数,并定义键盘参数调用函数的参数;键盘参数调用函数的参数包括键盘坐标值参数、键盘位置变化参数和键盘动作结束参数;第一回调函数用于回调键盘坐标值参数,第二回调函数用于回调键盘位置变化参数;The keyboard parameter calling function, the first callback function and the second callback function are created in the classification of the controller, and the parameters of the keyboard parameter calling function are defined; the parameters of the keyboard parameter calling function include the keyboard coordinate value parameter, the keyboard position changing parameter and the keyboard action End parameter; the first callback function is used to call back the keyboard coordinate value parameter, and the second callback function is used to call back the keyboard position change parameter;
通过键盘参数调用函数获取系统的通知中心并监听键盘通知,再将监听到的键盘通知通过回调方法反馈至控制器的分类,允许每个控制器复用;Calling the function through the keyboard parameter to obtain the notification center of the system and listening to the keyboard notification, and then listening to the monitored keyboard notification through the callback method to the controller classification, allowing each controller to reuse;
在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,并根据收到的键盘通知调用第一回调函数和第二回调函数实现键盘的弹出或隐藏。After the controller receives the keyboard notification, the keyboard action function is used to obtain whether the current keyboard state is popped or hidden, and the first callback function and the second callback function are called according to the received keyboard notification to implement pop-up or hiding of the keyboard.
本发明通过在控制器的分类创建键盘参数调用函数以及第一回调函数和第二回调函数,仅需要监听系统的键盘通知,将监听到的键盘通知中的参数回调给控制器的分类,允许每个控制器复用,再通过第一回调函数和第二回调函数和控制器实现键盘的弹出和隐藏的所有动作,无需在每个控制器都定义一个通知来监听键盘弹出和隐藏的事件,简化了使用手机移动端应用软件监听通知所需开发的代码。The invention creates a keyboard parameter calling function and a first callback function and a second callback function in the classification of the controller, and only needs to listen to the keyboard notification of the system, and adjusts the parameters in the monitored keyboard notification to the controller classification, allowing each The controllers are multiplexed, and then the first callback function and the second callback function and the controller implement all the actions of the keyboard pop-up and hidden, without having to define a notification on each controller to monitor the keyboard pop-up and hidden events, simplifying The code that needs to be developed to listen to notifications using the mobile app.
其中,创建键盘参数调用函数、第一回调函数和第二回调函数,并定义键盘参数调用函数的参数的具体实现过程如下:The specific implementation process of creating a keyboard parameter calling function, a first callback function and a second callback function, and defining parameters of the keyboard parameter calling function is as follows:
1)键盘参数调用函数的声明1) The declaration of the keyboard parameter calling function
定义键盘参数调用函数的声明,这个函数的名字是an_subscribeAnimations,这个函数需要三个参数,Define the declaration of the keyboard parameter calling function. The name of this function is an_subscribeAnimations. This function requires three parameters.
第一个参数是类型是KeyboardBlock类型,其对应的回调函数是第一回调函数,第一回调函数的名称是beforeAnimations;The first parameter is that the type is a KeyboardBlock type, and the corresponding callback function is the first callback function, and the name of the first callback function is beforeAnimations;
第二个参数的类型是AnimationBoardBlock类型,其对应的回调函数是第二回调函数,第二回调函数的名称是animations;The type of the second parameter is the AnimationBoardBlock type, the corresponding callback function is the second callback function, and the name of the second callback function is animations;
第三个参数是键盘动作结束参数,一个CompletAnimationBlock类型。The third parameter is the keyboard action end parameter, a CompletAnimationBlock type.
2)编写键盘参数调用函数的实现2) Write the implementation of the keyboard parameter calling function
上面完成了这个函数的声明,现在编写这个函数的实现,创建的这个函数内部是通过分类来实现的。此处之所以使用分类,是因为很多键盘需要弹出的页面是需要使用键盘的,创建一个基于控制器的分类,允许所有控制器调用,可以更方便和更快捷的使用本方案。具体 方法为:在这个函数内部使用关联对象的方法将上面传入的三个参数都保存起来。因为分类中无法添加属性来生成set方法和get方法,只有使用关联对象的方法来实现。The above declaration of the function is completed. Now, the implementation of this function is written. The created function is internally implemented by classification. The reason why classification is used here is because many keyboards need to pop up pages that need to use the keyboard, create a controller-based classification, allow all controllers to call, and use this solution more conveniently and quickly. The specific method is: use the method of the associated object inside this function to save the three parameters passed in above. Because the attribute cannot be added to the class to generate the set method and the get method, only the method of the associated object is used.
在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,从键盘通知中获取键盘变化前坐标值、键盘弹出需要的时间和键盘动作结束参数并使用第一回调函数回调给控制器;从键盘通知中获取键盘变化后坐标值、位置变化需要的时间,并将键盘变化后坐标值、位置变化需要的时间和当前键盘的状态是弹出还是隐藏使用第二回调函数回调给控制器。After the controller receives the keyboard notification, use the keyboard action function to obtain whether the current state of the keyboard is popped or hidden, obtain the coordinate value before the keyboard change from the keyboard notification, the time required for the keyboard to pop up, and the keyboard action end parameter and use the first callback function. Callback to the controller; obtain the time required for the coordinate value and position change of the keyboard change from the keyboard notification, and change the coordinate value after the keyboard change, the time required for the position change, and the current state of the keyboard to pop up or hide using the second callback function callback Give the controller.
键盘坐标值参数包括键盘变化前坐标值,键盘弹出需要的时间和当前的键盘是否弹出;键盘位置变化参数包括键盘变化后坐标值和位置变化需要的时间;键盘动作结束参数用于表示键盘弹出或隐藏动作结束。The keyboard coordinate value parameter includes the coordinate value before the keyboard change, the time required for the keyboard to pop up and whether the current keyboard pops up; the keyboard position change parameter includes the time required for the coordinate value and the position change after the keyboard change; the keyboard action end parameter is used to indicate the keyboard pop-up or The hidden action ends.
其中:among them:
键盘变化前坐标值是CGRect类型的rect;The coordinate value before the keyboard change is a rect of the CGRect type;
键盘弹出需要的时间是NSTimeInterval类型的duration;The time required for the keyboard to pop up is the duration of the NSTimeInterval type;
当前的键盘是否弹出是布尔类型的isShowing;Whether the current keyboard pops up is a boolean type isShowing;
键盘变化后坐标值是CGRect类型的rect;The coordinate value after the keyboard change is a CCRect type rect;
位置变化需要的时间是NSTimeInterval类型的duration;The time required for the location change is the duration of the NSTimeInterval type;
键盘动作结束参数是布尔类型的finished。The keyboard action end parameter is a boolean type finished.
此时使用获取关联对象的方法从键盘通知中获取键盘变化前坐标值、键盘弹出需要的时间和键盘动作结束参数,获取关联对象的方法是objc_getAssociatedObject。At this time, the method for acquiring the associated object is used to obtain the coordinate value before the keyboard change, the time required for the keyboard to pop up, and the keyboard action end parameter from the keyboard notification. The method for obtaining the associated object is objc_getAssociatedObject.
键盘参数调用函数调用通知管理类NSNotificationCenter调用获取系统通知的方法获取系统的通知中心,使用addObserver函数监听 键盘通知。The keyboard parameter calls the function call notification management class NSNotificationCenter calls the method of obtaining the system notification to obtain the notification center of the system, and uses the addObserver function to listen to the keyboard notification.
具体的说,使用addObserver函数去监听通知,监听通知需要一个通知名,需要添加监听者,就是设置谁监听这个通知,设置为self,self代表当前的控制器监听这个通知。通知名是UIKeyboardWillShowNotification,收到的回调是ShowNotification;通知名是UIKeyboardWillHideNotification,收到的回调是handleNotification。Specifically, use the addObserver function to listen for notifications. The notification notification needs a notification name. You need to add a listener. Set who listens for this notification, set it to self, and self will monitor the notification on behalf of the current controller. The notification name is UIKeyboardWillShowNotification, the callback received is ShowNotification; the notification name is UIKeyboardWillHideNotification, and the received callback is handleNotification.
本发明实施例还公开了一种存储介质,该存储介质上存储有计算机程序,计算机程序被处理器执行时实现键盘优化处理方法。The embodiment of the invention also discloses a storage medium on which a computer program is stored, and when the computer program is executed by the processor, a keyboard optimization processing method is implemented.
本发明实施例还公开了一种电子设备,包括存储器和处理器,存储器上储存有在处理器上运行的计算机程序,处理器执行计算机程序时实现键盘优化处理方法。The embodiment of the invention further discloses an electronic device, comprising a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor implements a keyboard optimization processing method when the computer program is executed.
参见图2所示,本发明实施例还公开了一种键盘优化处理系统,包括:Referring to FIG. 2, an embodiment of the present invention further discloses a keyboard optimization processing system, including:
函数创建模块,其用于在控制器的分类中创建键盘参数调用函数、第一回调函数和第二回调函数,并定义键盘参数调用函数的参数;键盘参数调用函数的参数包括键盘坐标值参数、键盘位置变化参数和键盘动作结束参数;第一回调函数用于回调键盘坐标值参数,第二回调函数用于回调键盘位置变化参数;a function creation module, configured to create a keyboard parameter calling function, a first callback function, and a second callback function in the classification of the controller, and define a parameter of the keyboard parameter calling function; the parameter of the keyboard parameter calling function includes a keyboard coordinate value parameter, a keyboard position change parameter and a keyboard action end parameter; a first callback function is used to call back a keyboard coordinate value parameter, and a second callback function is used to call back a keyboard position change parameter;
参数获取模块,其用于通过键盘参数调用函数获取系统的通知中心并监听键盘通知,再将监听到的键盘通知通过回调方法反馈至控制器的分类,允许每个控制器复用;a parameter obtaining module, configured to acquire a notification center of the system through a keyboard parameter calling function and listen to the keyboard notification, and then feed the monitored keyboard notification to the controller by using a callback method, allowing each controller to reuse;
键盘动作模块,其用于在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,并根据收到的键盘通知调用第一回调函数和第二回调函数实现键盘的弹出或隐藏。a keyboard action module, configured to: after the controller receives the keyboard notification, use a keyboard action function to obtain whether the current state of the keyboard is popped or hidden, and invoke the first callback function and the second callback function to implement the keyboard according to the received keyboard notification Pop up or hide.
键盘坐标值参数包括键盘变化前坐标值,键盘弹出需要的时间和当前的键盘是否弹出;键盘位置变化参数包括键盘变化后坐标值和位置变化需要的时间;键盘动作结束参数用于表示键盘弹出或隐藏动作结束。The keyboard coordinate value parameter includes the coordinate value before the keyboard change, the time required for the keyboard to pop up and whether the current keyboard pops up; the keyboard position change parameter includes the time required for the coordinate value and the position change after the keyboard change; the keyboard action end parameter is used to indicate the keyboard pop-up or The hidden action ends.
参数获取模块用于在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,从键盘通知中获取键盘变化前坐标值、键盘弹出需要的时间和键盘动作结束参数并使用第一回调函数回调给控制器;从键盘通知中获取键盘变化后坐标值、位置变化需要的时间,并将键盘变化后坐标值、位置变化需要的时间和当前键盘的状态是弹出还是隐藏使用第二回调函数回调给控制器。The parameter acquisition module is configured to use the keyboard action function to obtain whether the current state of the keyboard is popped or hidden after the controller receives the keyboard notification, obtain the coordinate value before the keyboard change, the time required for the keyboard to pop up, and the keyboard action end parameter from the keyboard notification. Use the first callback function to call back to the controller; obtain the time required for the coordinate value and position change after the keyboard change from the keyboard notification, and change the coordinate value after the keyboard change, the time required for the position change, and the current keyboard state to pop or hide. The second callback function is called back to the controller.
参数获取模块用于调用通知管理类NSNotificationCenter调用获取系统通知的方法获取系统的通知中心,使用addObserver函数监听键盘通知。The parameter acquisition module is used to call the notification management class NSNotificationCenter to call the method of obtaining the system notification to obtain the notification center of the system, and use the addObserver function to monitor the keyboard notification.
本发明不局限于上述实施方式,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围之内。本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。The present invention is not limited to the above embodiments, and those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. These improvements and retouchings are also considered as protection of the present invention. Within the scope. The contents not described in detail in the present specification belong to the prior art well known to those skilled in the art.

Claims (10)

  1. 一种键盘优化处理方法,其特征在于:A keyboard optimization processing method, characterized in that:
    在控制器的分类中创建键盘参数调用函数、第一回调函数和第二回调函数,并定义所述键盘参数调用函数的参数;所述键盘参数调用函数的参数包括键盘坐标值参数、键盘位置变化参数和键盘动作结束参数;所述第一回调函数用于回调所述键盘坐标值参数,所述第二回调函数用于回调所述键盘位置变化参数;Creating a keyboard parameter calling function, a first callback function and a second callback function in a classification of the controller, and defining parameters of the keyboard parameter calling function; the parameters of the keyboard parameter calling function include a keyboard coordinate value parameter and a keyboard position change a parameter and a keyboard action end parameter; the first callback function is used to call back the keyboard coordinate value parameter, and the second callback function is used to call back the keyboard position change parameter;
    通过键盘参数调用函数获取系统的通知中心并监听键盘通知,再将监听到的键盘通知通过回调方法反馈至所述控制器的分类,允许每个控制器复用;The function of the system is called by the keyboard parameter to obtain the notification center of the system and listen to the keyboard notification, and then the monitored keyboard notification is fed back to the classification of the controller through the callback method, allowing each controller to be multiplexed;
    在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,并根据收到的键盘通知调用所述第一回调函数和第二回调函数实现键盘的弹出或隐藏。After the controller receives the keyboard notification, the keyboard action function is used to obtain whether the current state of the keyboard is popped or hidden, and the first callback function and the second callback function are invoked according to the received keyboard notification to implement pop-up or hiding of the keyboard.
  2. 如权利要求1所述的一种键盘优化处理方法,其特征在于:所述键盘坐标值参数包括键盘变化前坐标值,键盘弹出需要的时间和当前的键盘是否弹出;键盘位置变化参数包括键盘变化后坐标值和位置变化需要的时间;键盘动作结束参数用于表示键盘弹出或隐藏动作结束。The keyboard optimization processing method according to claim 1, wherein the keyboard coordinate value parameter comprises a coordinate value before the keyboard change, a time required for the keyboard to pop up, and whether the current keyboard is popped; the keyboard position change parameter includes a keyboard change. The time required for the post-coordinate value and position change; the keyboard action end parameter is used to indicate the end of the keyboard pop-up or hidden action.
  3. 如权利要求2所述的一种键盘优化处理方法,其特征在于:在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,从键盘通知中获取键盘变化前坐标值、键盘弹出需要的时间和键盘动作结束参数并使用第一回调函数回调给控制器;从键盘通知中获取键盘变化后坐标值、位置变化需要的时间,并将键盘变化后坐标值、位置变化需要的时间和当前键盘的状态是弹出还是隐藏使用第二回调函数回调给控制器。The keyboard optimization processing method according to claim 2, wherein after the controller receives the keyboard notification, the keyboard action function is used to obtain whether the current keyboard state is popped or hidden, and the keyboard change pre-coordinate is obtained from the keyboard notification. The value, the time required for the keyboard to pop up, and the keyboard action end parameter are used to call back to the controller using the first callback function; the coordinate value and the position change time after the keyboard change are obtained from the keyboard notification, and the coordinate value and position change after the keyboard change The time required and the state of the current keyboard is popped or hidden using the second callback function to call back to the controller.
  4. 如权利要求1所述的一种键盘优化处理方法,其特征在于:所述键盘参数调用函数调用通知管理类NSNotificationCenter调用获取系统通知的方法获取系统的通知中心,使用addObserver函数监听键盘通知。The keyboard optimization processing method according to claim 1, wherein the keyboard parameter calling function call notification management class NSNotificationCenter calls a method for obtaining a system notification to acquire a notification center of the system, and uses the addObserver function to monitor a keyboard notification.
  5. 一种存储介质,该存储介质上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现权利要求1至4任一项所述的方法。A storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement the method of any one of claims 1 to 4.
  6. 一种电子设备,包括存储器和处理器,存储器上储存有在处理器上运行的计算机程序,其特征在于:处理器执行计算机程序时实现权利要求1至4任一项所述的方法。An electronic device comprising a memory and a processor, the memory having stored thereon a computer program running on the processor, wherein the processor executes the computer program to implement the method of any one of claims 1 to 4.
  7. 一种键盘优化处理系统,其特征在于,包括:A keyboard optimization processing system, comprising:
    函数创建模块,其用于在控制器的分类中创建键盘参数调用函数、第一回调函数和第二回调函数,并定义所述键盘参数调用函数的参数;所述键盘参数调用函数的参数包括键盘坐标值参数、键盘位置变化参数和键盘动作结束参数;所述第一回调函数用于回调所述键盘坐标值参数,所述第二回调函数用于回调所述键盘位置变化参数;a function creation module, configured to create a keyboard parameter calling function, a first callback function, and a second callback function in a classification of the controller, and define a parameter of the keyboard parameter calling function; the parameter of the keyboard parameter calling function includes a keyboard a coordinate value parameter, a keyboard position change parameter, and a keyboard action end parameter; the first callback function is used to call back the keyboard coordinate value parameter, and the second callback function is used to call back the keyboard position change parameter;
    参数获取模块,其用于通过键盘参数调用函数获取系统的通知中心并监听键盘通知,再将监听到的键盘通知通过回调方法反馈至所述控制器的分类,允许每个控制器复用;a parameter obtaining module, configured to acquire a notification center of the system through a keyboard parameter calling function and listen to the keyboard notification, and then feed the monitored keyboard notification to the classification of the controller through a callback method, allowing each controller to reuse;
    键盘动作模块,其用于在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,并根据收到的键盘通知调用所述第一回调函数和第二回调函数实现键盘的弹出或隐藏。a keyboard action module, configured to: after the controller receives the keyboard notification, use a keyboard action function to obtain whether the current state of the keyboard is popped or hidden, and invoke the first callback function and the second callback function according to the received keyboard notification The keyboard pops up or hides.
  8. 如权利要求7所述的一种键盘优化处理系统,其特征在于:所述键盘坐标值参数包括键盘变化前坐标值,键盘弹出需要的时间和当前的键盘是否弹出;键盘位置变化参数包括键盘变化后坐标值和位 置变化需要的时间;键盘动作结束参数用于表示键盘弹出或隐藏动作结束。The keyboard optimization processing system according to claim 7, wherein the keyboard coordinate value parameter comprises a coordinate value before the keyboard change, a time required for the keyboard to pop up, and whether the current keyboard is popped; the keyboard position change parameter includes a keyboard change. The time required for the post-coordinate value and position change; the keyboard action end parameter is used to indicate the end of the keyboard pop-up or hidden action.
  9. 如权利要求8所述的一种键盘优化处理系统,其特征在于:所述参数获取模块用于在控制器收到键盘通知后,使用键盘动作函数获取当前键盘的状态是弹出还是隐藏,从键盘通知中获取键盘变化前坐标值、键盘弹出需要的时间和键盘动作结束参数并使用第一回调函数回调给控制器;从键盘通知中获取键盘变化后坐标值、位置变化需要的时间,并将键盘变化后坐标值、位置变化需要的时间和当前键盘的状态是弹出还是隐藏使用第二回调函数回调给控制器。The keyboard optimization processing system according to claim 8, wherein the parameter obtaining module is configured to: after the controller receives the keyboard notification, use a keyboard action function to obtain whether the current keyboard state is popped or hidden, from the keyboard. The notification obtains the coordinate value before the keyboard change, the time required for the keyboard to pop up, and the keyboard action end parameter and uses the first callback function to call back to the controller; obtain the time required for the coordinate value and the position change after the keyboard change from the keyboard notification, and the keyboard The coordinate value after the change, the time required for the position change, and the state of the current keyboard are popped or hidden using the second callback function to call back to the controller.
  10. 如权利要求7所述的一种键盘优化处理系统,其特征在于:所述参数获取模块用于调用通知管理类NSNotificationCenter调用获取系统通知的方法获取系统的通知中心,使用addObserver函数监听键盘通知。The keyboard optimization processing system according to claim 7, wherein the parameter acquisition module is configured to invoke a notification management class NSNotificationCenter to call a method for obtaining a system notification to acquire a notification center of the system, and use the addObserver function to monitor a keyboard notification.
PCT/CN2018/081322 2018-01-09 2018-03-30 Keyboard optimization processing method, storage medium, electrical device and system WO2019136853A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810020180.8A CN108304131B (en) 2018-01-09 2018-01-09 Keyboard optimized treatment method, storage medium, electronic equipment and system
CN201810020180.8 2018-01-09

Publications (1)

Publication Number Publication Date
WO2019136853A1 true WO2019136853A1 (en) 2019-07-18

Family

ID=62868459

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/081322 WO2019136853A1 (en) 2018-01-09 2018-03-30 Keyboard optimization processing method, storage medium, electrical device and system

Country Status (2)

Country Link
CN (1) CN108304131B (en)
WO (1) WO2019136853A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352569A (en) * 2020-03-17 2020-06-30 珠海趣印科技有限公司 Control method and system of keyboard interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763207A (en) * 2008-12-23 2010-06-30 康佳集团股份有限公司 Construction method and calling method of novel handwritten virtual keyboard
CN102331927A (en) * 2011-06-24 2012-01-25 浙大网新科技股份有限公司 Method for integrating soft keyboard input of Wine and Android mobile phone
CN102854974A (en) * 2011-06-30 2013-01-02 奇智软件(北京)有限公司 Method and system for implementation of virtual input equipment in driving layer
US20160189555A1 (en) * 2006-01-13 2016-06-30 Silver Tree Media, LLC Computer based system for training workers

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175103B (en) * 2006-11-03 2011-08-03 宁波萨基姆波导研发有限公司 Keyboard multiplexing management method
CN101853103A (en) * 2010-06-03 2010-10-06 中兴通讯股份有限公司 Method and device for realizing virtual keyboard

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160189555A1 (en) * 2006-01-13 2016-06-30 Silver Tree Media, LLC Computer based system for training workers
CN101763207A (en) * 2008-12-23 2010-06-30 康佳集团股份有限公司 Construction method and calling method of novel handwritten virtual keyboard
CN102331927A (en) * 2011-06-24 2012-01-25 浙大网新科技股份有限公司 Method for integrating soft keyboard input of Wine and Android mobile phone
CN102854974A (en) * 2011-06-30 2013-01-02 奇智软件(北京)有限公司 Method and system for implementation of virtual input equipment in driving layer

Also Published As

Publication number Publication date
CN108304131B (en) 2019-10-25
CN108304131A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
TWI679573B (en) Method and device for operating background application
US11178454B2 (en) Video playing method and device, electronic device, and readable storage medium
CN101770399B (en) Electronic equipment, method and device for switching operating system desktop
CN107610698A (en) A kind of method for realizing Voice command, robot and computer-readable recording medium
CN106547580B (en) Method and device for hooking function, mobile terminal and storage medium
CN103064580A (en) Method of hiding application on desktop and calling out hidden application
CN107678782B (en) Process protection method, device, equipment and computer readable storage medium
CN106201216A (en) The display packing of a kind of self-defined desktop icons and system
WO2018094908A1 (en) Method and device for waking application program of terminal
CN108228300A (en) The method and device that a kind of control content refreshes in real time
EP3622730A1 (en) Spatializing audio data based on analysis of incoming audio data
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
WO2019136853A1 (en) Keyboard optimization processing method, storage medium, electrical device and system
CN110246502A (en) Voice de-noising method, device and terminal device
WO2018045847A1 (en) Method and system for disabling non-deletable application in mobile terminal
CN111476007A (en) Table generation method, table generation device, computer device and computer-readable storage medium
WO2021218535A1 (en) Ui control generation and trigger methods, and terminal
US20140250251A1 (en) Automatically and transparently preserving testing state across sessions
JP2003500739A5 (en)
CN106155513B (en) A kind of control method and device projecting touch screen
CN116048515A (en) Virtual scene editing method, device, equipment and readable storage medium
CN108804088B (en) Protocol processing method and device
WO2019001143A1 (en) File directory ordering method, apparatus, electronic device, and computer-readable medium
CN113835835B (en) Method, device and computer readable storage medium for creating consistency group
JP2019531555A (en) Method and apparatus for implementing accessibility features in applications

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: 18900214

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: 18900214

Country of ref document: EP

Kind code of ref document: A1