An information processing method and apparatus

By establishing a communication connection between the scaffolding window and the visual window in the Flutter development environment, receiving and responding to manipulation information, the problem of developers needing to remember a large number of character-form instructions is solved, and the development experience and friendliness are improved.

CN111556092BActive Publication Date: 2025-05-27BEIJING 58 INFORMATION TTECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010227063.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-27
Publication Date
2025-05-27
Estimated Expiration
2040-03-27

AI Technical Summary

Technical Problem

When developing applications based on Flutter, developers need to remember and be familiar with a large number of characters in the form of instructions, resulting in high development complexity and low development experience.

Method used

By establishing a communication connection between the scaffolding window and the visualization window, receiving the control information sent by the visualization window, and responding to the corresponding control instructions in the scaffolding window, enabling the Flutter function.

Benefits of technology

Reduces the amount of instructions that developers need to remember, simplifies the development process, and improves the development experience and developer-friendliness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111556092B_ABST
    Figure CN111556092B_ABST
Patent Text Reader

Abstract

This application discloses an information processing method and apparatus. In this application, developers do not need to input manipulation instructions in character form for enabling the function on the window of the scaffolding. Instead, developers can manipulate the target manipulation control corresponding to the manipulation instruction among multiple manipulation controls in the visualization window, so that the visualization window sends the manipulation information of the developer manipulating the target manipulation control corresponding to the manipulation instruction to the scaffolding window. Subsequently, the scaffolding window can receive this manipulation information, obtain the manipulation instruction corresponding to the manipulation information, and respond to the manipulation instruction in the scaffolding window, thereby enabling the function. In this way, developers only need to directly manipulate the manipulation controls in the visualization window, and there is no need to remember and be familiar with manipulation instructions in character form, thus reducing the complexity of developing application programs, improving the friendliness to developers, and enhancing the development experience of developers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to an information processing method and apparatus. Background Art

[0002] Flutter is a brand-new cross-platform and open-source UI (User Interface) framework developed by Google, which supports the development of applications running on iOS (a mobile operating system developed by Apple Inc.) or Android (a Linux-based free and open-source operating system).

[0003] Currently, when developing applications based on Flutter, it is mainly through the Command Line Interface (CLI) to develop applications based on Flutter. The CLI is a command-line tool, and developers need to enter character-based instructions on the CLI to call the functions of Flutter to implement the development of applications.

[0004] However, this requires developers to remember and be familiar with all character-based instructions, which increases the development complexity, reduces the friendliness to developers, and results in a lower development experience for developers. Summary of the Invention

[0005] To solve the above technical problems, this application discloses an information processing method and apparatus.

[0006] In a first aspect, this application discloses an information processing method, the method comprising:

[0007] In a CLI window, based on the communication connection between the CLI window and the visualization window, receiving the manipulation information sent by the visualization window; wherein, the manipulation information includes the manipulation information of the user manipulating a target manipulation control among a plurality of manipulation controls in the visualization window, and the plurality of manipulation controls include manipulation controls corresponding to a plurality of development instructions for developing an application;

[0008] Based on the CLI window, obtaining the manipulation instruction corresponding to the manipulation information;

[0009] Responding to the manipulation instruction in the CLI window.

[0010] In an optional implementation, the method further comprises:

[0011] Displaying the response result of responding to the manipulation instruction in the CLI window.

[0012] In an optional implementation, the method further comprises:

[0013] Send a response result in the scaffolding window to the visualization window based on the communication connection in response to the manipulation instruction; so that the visualization window receives the response result based on the communication connection and responds to the response result in the visualization window.

[0014] In an alternative implementation, the displayed scaffolding window includes a new scaffolding window generated based on the original scaffolding window; the original scaffolding window is different from and independent of the new scaffolding window.

[0015] In a second aspect, the present application discloses an information processing method, the method comprising:

[0016] Display a visualization window, where the visualization window includes manipulation controls corresponding to multiple development instructions for developing an application respectively;

[0017] Obtain manipulation information of a target manipulation control among multiple manipulation controls in the visualization window by a user;

[0018] Send the manipulation information to the scaffolding window based on a communication connection between the visualization window and the displayed scaffolding window; so that the scaffolding window obtains a manipulation instruction corresponding to the manipulation information and responds to the manipulation instruction in the scaffolding window.

[0019] In an alternative implementation, the method further comprises:

[0020] Receive a running instruction for running the visualization window;

[0021] Determine whether the visualization window has been run;

[0022] In the case where the visualization window has been run, close the already running visualization window;

[0023] Rerun the visualization window;

[0024] Establish a connection between the rerun visualization window and the scaffolding window.

[0025] In a third aspect, the present application discloses an information processing apparatus, the apparatus comprising:

[0026] A first receiving module, configured to receive, in a scaffolding window, manipulation information sent by the visualization window based on a communication connection between the scaffolding window and the visualization window; wherein, the manipulation information includes manipulation information of a target manipulation control among multiple manipulation controls in the visualization window by a user, and the multiple manipulation controls include manipulation controls corresponding to multiple development instructions for developing an application respectively;

[0027] A first acquisition module, configured to obtain a manipulation instruction corresponding to the manipulation information based on the scaffolding window;

[0028] A response module, configured to respond to the manipulation instruction in the scaffolding window.

[0029] In an optional implementation manner, the device further includes:

[0030] A first display module, configured to display a response result of responding to the manipulation instruction in the scaffolding window.

[0031] In an optional implementation manner, the device further includes:

[0032] A first sending module, configured to send, in the scaffolding window, a response result of responding to the manipulation instruction to the visualization window based on the communication connection; so that the visualization window receives the response result based on the communication connection and responds to the response result in the visualization window.

[0033] In an optional implementation manner, the displayed scaffolding window includes a new scaffolding window generated based on the original scaffolding window; the original scaffolding window is different from and independent of the new scaffolding window.

[0034] In a fourth aspect, the present application discloses an information processing device, the device includes:

[0035] A second display module, configured to display a visualization window, where the visualization window includes manipulation controls corresponding to multiple development instructions for developing an application program;

[0036] A second acquisition module, configured to obtain manipulation information of a target manipulation control among multiple manipulation controls in the visualization window by a user;

[0037] A second sending module, configured to send the manipulation information to the scaffolding window based on a communication connection between the visualization window and the displayed scaffolding window; so that a manipulation instruction corresponding to the manipulation information is obtained based on the scaffolding window, and the manipulation instruction is responded to in the scaffolding window.

[0038] In an optional implementation manner, the device further includes:

[0039] A second receiving module, configured to receive a running instruction for running the visualization window;

[0040] A judgment module, configured to judge whether the visualization window has been run;

[0041] A closing module, configured to close the already running visualization window when the visualization window has been run;

[0042] A running module for rerunning the visualization window;

[0043] A establishing module for establishing a connection between the rerun visualization window and the scaffold window.

[0044] In a fifth aspect, the present application discloses an electronic device, which includes:

[0045] A processor;

[0046] A memory for storing instructions executable by the processor;

[0047] Wherein, the processor is configured to execute the information processing method as described in the first aspect.

[0048] In a sixth aspect, the present application discloses a non - transitory computer - readable storage medium, when the instructions in the storage medium are executed by the processor of an electronic device, enabling the electronic device to execute the information processing method as described in the first aspect.

[0049] In a seventh aspect, the present application discloses a computer program product, when the instructions in the computer program product are executed by the processor of an electronic device, enabling the electronic device to execute the information processing method as described in the first aspect.

[0050] In an eighth aspect, the present application discloses an electronic device, which includes:

[0051] A processor;

[0052] A memory for storing instructions executable by the processor;

[0053] Wherein, the processor is configured to execute the information processing method as described in the second aspect.

[0054] In a ninth aspect, the present application discloses a non - transitory computer - readable storage medium, when the instructions in the storage medium are executed by the processor of an electronic device, enabling the electronic device to execute the information processing method as described in the second aspect.

[0055] In a tenth aspect, the present application discloses a computer program product, when the instructions in the computer program product are executed by the processor of an electronic device, enabling the electronic device to execute the information processing method as described in the second aspect.

[0056] The technical solution provided by the present application may include the following beneficial effects:

[0057] When a certain function in Flutter needs to be enabled, in the prior art, developers need to input manipulation instructions in character form for enabling the function in the scaffold window, so that the scaffold window responds to the manipulation instructions, thereby enabling the function.

[0058] In this application, however, developers do not need to input manipulation instructions in character form for enabling the function on the window of the scaffold. Developers can manipulate the target manipulation control corresponding to the manipulation instruction among multiple manipulation controls in the visualization window, so that the visualization window sends the manipulation information of developers manipulating the target manipulation control corresponding to the manipulation instruction to the scaffold window. Furthermore, the scaffold window can receive the manipulation information, obtain the manipulation instruction corresponding to the manipulation information, and respond to the manipulation instruction in the scaffold window, thereby enabling the function.

[0059] In this way, for developers, developers do not need to input manipulation instructions in character form in the visualization window. The visualization window includes multiple manipulation controls, and developers only need to directly manipulate the manipulation controls in the visualization window, and thus do not need to remember and be familiar with manipulation instructions in character form, thereby reducing the complexity of developing application programs, improving the friendliness to developers, and enhancing the development experience of developers. Description of the Drawings

[0060] Figure 1 is a flowchart of the steps of an information processing method of this application;

[0061] Figure 2 is a block diagram of the structure of an information processing device of this application;

[0062] Figure 3 is a block diagram of the structure of an information processing device of this application;

[0063] Figure 4 is a block diagram of an electronic device shown in this application;

[0064] Figure 5 is a block diagram of an electronic device shown in this application. Detailed Embodiments

[0065] To make the above objects, features, and advantages of this application more obvious and understandable, the following further describes this application in detail with reference to the drawings and specific embodiments.

[0066] Refer to Figure 1 , which shows a flowchart of the steps of an information processing method of this application. The method is applied to an electronic device, and the method may specifically include the following steps:

[0067] In step S101, a visualization window is run, and the visualization window includes manipulation controls corresponding to multiple development instructions for developing an application.

[0068] When developing an application based on Flutter, it is necessary to call the functions of Flutter through character-form instructions in the scaffold. In order to enable developers to call the functions of Flutter without memorizing and being familiar with all character-form instructions to develop an application based on Flutter, in this application, an electronic device can create a visualization window. For example, a developer can run the scaffold of Flutter on the electronic device, and then enter an instruction to run the visualization window in the scaffold. For example, enter an instruction such as "mgpcli start", etc. After that, the electronic device will create a new process and run the visualization window based on the new process. The visualization window includes manipulation controls corresponding to multiple development instructions for developing an application.

[0069] In this way, when developing an application based on Flutter, developers do not need to enter character-form instructions in the scaffold, but can directly manipulate the manipulation controls in the visualization window to enable the electronic device to execute step S102.

[0070] Among them, the manipulation controls include virtual buttons and selection boxes, etc., which are controls that developers can directly manipulate.

[0071] In this application, the visualization window can include the visualization window of workflow, etc. Workflow is a tool flow developed by Flutter, and through workflow, the creation, development, compilation, packaging, and uploading of Flutter are realized.

[0072] In step S102, manipulation information of a target manipulation control among multiple manipulation controls in the visualization window is obtained.

[0073] In step S103, the manipulation information is sent to the scaffold window based on the communication connection between the visualization window and the displayed scaffold window.

[0074] In this application, the visualization window is equivalent to a middleware between the developer and the scaffold window. After the developer interacts with the visualization window, the visualization window also needs to transmit the interaction instructions between the developer and the visualization window to the scaffold window so that the scaffold window can execute the interaction instructions of the developer, thereby completing the development of the application.

[0075] Therefore, in the present application, in order to enable the visualization window to transmit the interaction instructions between the developer and the visualization window to the scaffolding window, it is necessary to create a communication connection between the visualization window and the displayed scaffolding window. This communication connection may include: a communication connection based on websocket, or a communication connection based on HTTP (HyperText Transfer Protocol), etc.

[0076] Among them, the communication connection based on HTTP can be one-way. For example, it is a communication connection from the scaffolding window to the visualization window. The scaffolding window can send the version information of Flutter, the version information of the computer programming language used to develop Flutter, and the version information of the scaffolding window, etc. to the visualization window through the communication connection based on HTTP, so that the developer can directly obtain this information in the visualization window, which is convenient for the developer to develop an application based on the visualization window.

[0077] The communication connection based on websocket can be a two-way communication connection. The visualization window and the scaffolding window can send each other the log information generated during the development of the application program through the communication connection based on websocket.

[0078] In this way, in this step, the electronic device can send the manipulation information to the scaffolding window based on the communication connection between the visualization window and the displayed scaffolding window.

[0079] In step S104, receive the manipulation information in the scaffolding window based on this communication connection;

[0080] In step S105, obtain the manipulation instruction corresponding to the manipulation information based on the scaffolding window, and respond to the manipulation instruction in the scaffolding window.

[0081] In the present application, there are multiple manipulation instructions that can be input in the scaffolding window to enable the functions of Flutter. Each manipulation instruction is reflected in the visualization window. That is, each manipulation instruction corresponds to a different manipulation control in the visualization window respectively. Or rather, each manipulation instruction can be triggered by manipulating the manipulation control of the visualization window respectively.

[0082] Therefore, for any manipulation instruction that can be input in the scaffolding window to enable the functions of Flutter, it is possible to determine in advance the manipulation information that can trigger this manipulation instruction in the visualization window, and form a corresponding table entry with this manipulation instruction and this manipulation information, and store it in the corresponding relationship between the manipulation instruction and the manipulation information. For each other manipulation instruction that can be input in the scaffolding window to enable the functions of Flutter, the above operations are also performed.

[0083] Thus, in this step, in the correspondence between manipulation instructions and manipulation information, the manipulation instruction corresponding to the manipulation information can be searched for and the manipulation instruction can be responded to in the scaffold window.

[0084] When a certain function in Flutter needs to be enabled, in the prior art, a developer needs to input a character-based manipulation instruction for enabling the function in the scaffold window so that the scaffold window responds to the manipulation instruction, thereby enabling the function.

[0085] However, in this application, the developer does not need to input a character-based manipulation instruction for enabling the function on the window of the scaffold. The developer can manipulate the target manipulation control corresponding to the manipulation instruction among multiple manipulation controls in the visualization window, so that the visualization window sends the manipulation information of the developer manipulating the target manipulation control corresponding to the manipulation instruction to the scaffold window. Furthermore, the scaffold window can receive the manipulation information, obtain the manipulation instruction corresponding to the manipulation information, and respond to the manipulation instruction in the scaffold window, thereby enabling the function.

[0086] In this way, for the developer, the developer does not need to input a character-based manipulation instruction in the visualization window. The visualization window includes multiple manipulation controls. The developer only needs to directly manipulate the manipulation controls in the visualization window, and thus does not need to remember and be familiar with the character-based manipulation instructions, thereby reducing the complexity of developing an application program, improving the friendliness to developers, and improving the development experience of developers.

[0087] In this application, during the process of developing an application program, the developer directly interacts with the visualization window and does not need to interact with the scaffold window related to the development of the application program. However, during the process of developing an application program, it is often necessary to continuously manipulate different manipulation controls, and there is a sequential logical relationship or a dependency relationship between these manipulation controls. For example, whether the manipulation control with a later manipulation order is valid depends on the manipulation result of the manipulation control with an earlier manipulation order.

[0088] Thus, whenever the developer manipulates a manipulation control in the visualization window, it is necessary to make the developer aware of the manipulation result of manipulating the manipulation control so that the developer can know whether other manipulation controls can be continuously manipulated to complete the task of developing the application program.

[0089] Thus, in another embodiment of this application, the response result responding to the manipulation instruction can be sent from the scaffold window to the visualization window based on the communication connection; then the response result can be received in the visualization window based on the communication connection; and the response result can be responded to in the visualization window.

[0090] Secondly, the response result in response to the manipulation instruction can also be displayed in the scaffold window, so that developers can view the manipulation results of the target manipulation control in multiple places.

[0091] In another embodiment of the present application, during the process in which a developer develops an application based on the visualization window in the manner of the embodiment shown in FIG. 1, since the visualization window and the scaffold window need to interact in real time, generally, the developer cannot manually input other instructions in the scaffold window during this process, otherwise the scaffold window's response to other instructions will affect the normal development of the application.

[0092] Therefore, during the process of developing an application, in order to support the developer to input other instructions in the scaffold window to run other functions of Flutter without affecting the normal development of the application, in another embodiment of the present application, the displayed scaffold window includes a new scaffold window generated based on the original scaffold window. The original scaffold window is different from and independent of the new scaffold window. The original scaffold window includes the default scaffold window of Flutter.

[0093] For example, after the developer inputs an instruction to run the visualization window in the original scaffold, for example, after inputting the instruction "mgpcli start", the electronic device will create a new process, then run the visualization window based on the new process, and, generate a new scaffold window according to the original scaffold window, and run the new scaffold window and the visualization window simultaneously based on the above new process. Thus, the visualization window and the new scaffold window are bound.

[0094] After that, the developer can develop the application based on the visualization window and the new scaffold window. After the application is developed, the developer can manually close the new scaffold window. For the electronic device, when the developer manually closes the new scaffold window, the binding relationship between the visualization window and the new scaffold window is also eliminated.

[0095] Among them, the electronic device can display the original scaffold window and the new scaffold window simultaneously. The new scaffold window and the visualization window run based on the same process respectively. There is a communication connection between the new scaffold window and the visualization window. The function of the new scaffold window can be the same as that of the original scaffold window. The new scaffold window and the visualization window can interact with each other, while there may be no communication connection between the original scaffold window and the visualization window, and the original scaffold window and the visualization window may not interact with each other, so that the developer can Figure 1Develop an application in the manner of the illustrated embodiment. The new scaffolding window and the visualization window can participate in the process of developers developing an application, while the original scaffolding window may not participate in the process of developers developing an application.

[0096] In one embodiment, during the process of developers developing an application in the manner of the illustrated embodiment based on the visualization window, Figure 1 developers can also input instructions in the original scaffolding window midway to make the original scaffolding window respond to the instructions. Since the new scaffolding window and the visualization window participate in the process of developers developing an application, while the original scaffolding window may not participate in the process of developers developing an application, therefore, developers inputting instructions in the original scaffolding window does not affect the normal development of the application by developers.

[0097] Among them, sometimes the visualization window may malfunction. For example, the visualization window cannot sense the manipulation of the control by the developer. In this case, it is necessary to restart a visualization window, and developers can continue to develop the application based on the restarted visualization window.

[0098] However, there is a communication connection between the scaffolding window and the malfunctioning visualization window, and there is no communication connection between the scaffolding window and the restarted visualization window. Moreover, the scaffolding window can only establish a communication connection with one visualization window at a time and cannot establish multiple communication connections with multiple visualization windows simultaneously. Therefore, the manipulation information of developers manipulating the control in the restarted visualization window cannot be transmitted to the scaffolding window, which further leads to the inability to develop the application normally.

[0099] Therefore, to avoid this situation, in this application, when the electronic device receives a running instruction for the visualization window, it can determine whether a visualization window has already been running; if a visualization window has already been running, close the already running visualization window; restart the visualization window; and establish a connection between the restarted visualization window and the scaffolding window. If no visualization window is running, the visualization window can be directly run.

[0100] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions involved are not necessarily required by this application.

[0101] Refer to Figure 2, showing a structural block diagram of an information processing device according to the present application. Specifically, the device may include the following modules:

[0102] A first receiving module 11, configured to receive manipulation information sent by the visualization window based on a communication connection between a scaffold window and the visualization window in the scaffold window; wherein, the manipulation information includes manipulation information of a user manipulating a target manipulation control among a plurality of manipulation controls in the visualization window, and the plurality of manipulation controls include manipulation controls corresponding to a plurality of development instructions for developing an application program;

[0103] A first obtaining module 12, configured to obtain a manipulation instruction corresponding to the manipulation information based on the scaffold window;

[0104] A response module 13, configured to respond to the manipulation instruction in the scaffold window.

[0105] In an optional implementation manner, the device further includes:

[0106] A first display module, configured to display a response result of responding to the manipulation instruction in the scaffold window.

[0107] In an optional implementation manner, the device further includes:

[0108] A first sending module, configured to send a response result of responding to the manipulation instruction to the visualization window based on the communication connection in the scaffold window; so that the visualization window receives the response result based on the communication connection and responds to the response result in the visualization window.

[0109] In an optional implementation manner, the displayed scaffold window includes a new scaffold window generated based on the original scaffold window; the original scaffold window is different from and independent of the new scaffold window.

[0110] When a certain function in Flutter needs to be enabled, in the prior art, a developer needs to input a character-based manipulation instruction for enabling the function in the scaffold window so that the scaffold window responds to the manipulation instruction, thereby implementing the enabling of the function.

[0111] In the present application, developers do not need to input manipulation instructions in character form on the window of the scaffolding. Instead, developers can manipulate the target manipulation control corresponding to the manipulation instruction among multiple manipulation controls in the visualization window, so that the visualization window sends the manipulation information of the developer's manipulation of the target manipulation control corresponding to the manipulation instruction to the scaffolding window. Subsequently, the scaffolding window can receive the manipulation information, obtain the manipulation instruction corresponding to the manipulation information, and respond to the manipulation instruction in the scaffolding window, thereby enabling the function to be enabled.

[0112] In this way, for developers, they do not need to input manipulation instructions in character form in the visualization window. The visualization window includes multiple manipulation controls, and developers only need to directly manipulate the manipulation controls in the visualization window, eliminating the need to remember and be familiar with manipulation instructions in character form. This reduces the complexity of developing application programs, improves the friendliness to developers, and enhances the development experience of developers.

[0113] Referring to Figure 3 , a structural block diagram of an information processing device according to the present application is shown. The device may specifically include the following modules:

[0114] A second display module 21 for displaying a visualization window, where the visualization window includes manipulation controls corresponding to multiple development instructions for developing application programs;

[0115] A second acquisition module 22 for acquiring the manipulation information of the user on the target manipulation control among the multiple manipulation controls in the visualization window;

[0116] A second sending module 23 for sending the manipulation information to the scaffolding window based on the communication connection between the visualization window and the displayed scaffolding window, so that the scaffolding window can obtain the manipulation instruction corresponding to the manipulation information and respond to the manipulation instruction in the scaffolding window.

[0117] In an optional implementation manner, the device further includes:

[0118] A second receiving module for receiving the running instruction of the visualization window;

[0119] A judgment module for judging whether the visualization window has been run;

[0120] A closing module for closing the already running visualization window when the visualization window has been run;

[0121] A running module for re-running the visualization window;

[0122] A building module is configured to establish a connection between a re-run visualization window and the scaffolding window.

[0123] When a certain function in Flutter needs to be enabled, in the prior art, a developer needs to input a character-based manipulation instruction for enabling the function in the scaffolding window so that the scaffolding window responds to the manipulation instruction, thereby enabling the function.

[0124] In this application, however, the developer does not need to input a character-based manipulation instruction for enabling the function in the scaffolding window. The developer can manipulate a target manipulation control corresponding to the manipulation instruction among multiple manipulation controls in the visualization window, so that the visualization window sends the manipulation information of the developer's manipulation of the target manipulation control corresponding to the manipulation instruction to the scaffolding window. Then, the scaffolding window can receive the manipulation information, obtain the manipulation instruction corresponding to the manipulation information, and respond to the manipulation instruction in the scaffolding window, thereby enabling the function.

[0125] In this way, for the developer, the developer does not need to input a character-based manipulation instruction in the visualization window. The visualization window includes multiple manipulation controls, and the developer only needs to directly manipulate the manipulation controls in the visualization window, so there is no need to remember and be familiar with character-based manipulation instructions, thereby reducing the complexity of developing an application, improving the friendliness to developers, and enhancing the development experience of developers.

[0126] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant parts, refer to the partial description of the method embodiment.

[0127] Figure 4 FIG. is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0128] Referring to Figure 4 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0129] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0130] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, images, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0131] The power component 806 provides power to various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0132] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0133] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0134] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a run button, and a lock button.

[0135] The sensor component 814 includes one or more sensors for providing status assessments of various aspects of the electronic device 800. For example, the sensor component 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor component 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0136] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a wireless network based on communication standards, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0137] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0138] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the electronic device 800 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0139] Figure 5 FIG. 7 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.

[0140] Referring to Figure 5 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by a memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0141] The electronic device 1900 may further include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.

[0142] Each embodiment in this specification is described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts among the embodiments may be referred to each other.

[0143] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, apparatuses, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.

[0144] The present application is described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable test case generation terminal devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable test case generation terminal devices generate a device for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0145] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable test case generation terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0146] These computer program instructions can also be loaded onto a computer or other programmable test case generation terminal device, such that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0147] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0148] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

[0149] The above provides a detailed introduction to an information processing method and apparatus provided by the present application. Specific examples are used in this text to elaborate on the principles and implementation manners of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. An information processing method, characterized in that, applied to an electronic device, the electronic device is used to create a visualization window, including: running a Flutter scaffold window on the electronic device, in the Flutter scaffold window, by inputting an instruction to run the visualization window, creating a new process, and running the visualization window based on the new process, the visualization window includes different manipulation controls, and each manipulation control corresponds to a manipulation instruction for enabling a Flutter function respectively. The method includes: In the Flutter scaffold window, based on the communication connection between the scaffold window and the visualization window, the scaffold window receives the manipulation information sent by the visualization window; wherein, the manipulation information includes the manipulation information of the user continuously manipulating different target manipulation controls among the multiple manipulation controls in the visualization window, and the multiple manipulation controls include the manipulation controls corresponding to multiple development instructions for developing an application based on Flutter respectively; there is a sequential logical relationship or a dependency relationship among the multiple manipulation controls, and whether the manipulation control with a later execution order is effective depends on the manipulation result of the manipulation control with an earlier execution order; Based on the scaffold window, obtaining the manipulation instruction for enabling the Flutter function corresponding to the manipulation information; Responding to the manipulation instruction in the scaffold window to enable the corresponding Flutter function for developing an application based on Flutter.

2. The method according to claim 1, characterized in that, the method further includes: Displaying the response result of responding to the manipulation instruction in the scaffold window.

3. The method according to claim 1, characterized in that, the method further includes: Sending the response result of responding to the manipulation instruction to the visualization window based on the communication connection in the scaffold window; so that the visualization window receives the response result based on the communication connection and responds to the response result in the visualization window.

4. The method according to claim 1, characterized in that, the scaffold window includes a new scaffold window generated based on the original scaffold window; the original scaffold window is different from and independent of the new scaffold window.

5. An information processing method, characterized in that, applied to an electronic device, the electronic device is used to create a visualization window, including: running a Flutter scaffold window on the electronic device, in the Flutter scaffold window, by inputting an instruction to run the visualization window, creating a new process, and running the visualization window based on the new process, the visualization window includes different manipulation controls, and each manipulation control corresponds to a manipulation instruction for enabling a Flutter function respectively. The method includes: Display a visualization window, where the visualization window includes manipulation controls corresponding to multiple development instructions for developing a Flutter-based application; there is a sequential logical relationship or a dependency relationship among the multiple manipulation controls, and whether a manipulation control with a later manipulation order is valid depends on the manipulation result of a manipulation control with an earlier manipulation order; Obtain manipulation information of the user's continuous manipulation of different target manipulation controls among the multiple manipulation controls in the visualization window; Send the manipulation information to the scaffold window based on the communication connection between the visualization window and the displayed Flutter scaffold window; so that based on the scaffold window, obtain a manipulation instruction for enabling a Flutter function corresponding to the manipulation information, and in the scaffold window, respond to the manipulation instruction to enable the corresponding Flutter function to develop a Flutter-based application.

6. The method according to claim 5, wherein, the method further includes: Receive a running instruction for running the visualization window; Determine whether the visualization window has already been run; In the case where the visualization window has already been run, close the already-run visualization window; Rerun the visualization window; Establish a connection between the rerun visualization window and the scaffold window.

7. An information processing device, wherein, The device is used to create a visualization window, including: running a Flutter scaffold window on the device, in the Flutter scaffold window, by inputting an instruction for running the visualization window, create a new process, and based on the new process, run the visualization window, the visualization window includes different manipulation controls, and each manipulation control corresponds to a manipulation instruction for enabling a Flutter function respectively, and the device includes: A first receiving module, used in the Flutter scaffold window, based on the communication connection between the scaffold window and the visualization window, the scaffold window receives the manipulation information sent by the visualization window; wherein, the manipulation information includes the manipulation information of the user's continuous manipulation of different target manipulation controls among the multiple manipulation controls in the visualization window, the multiple manipulation controls include manipulation controls corresponding to multiple development instructions for developing a Flutter-based application; there is a sequential logical relationship or a dependency relationship among the multiple manipulation controls, and whether a manipulation control with a later manipulation order is valid depends on the manipulation result of a manipulation control with an earlier manipulation order; A first obtaining module, used to obtain a manipulation instruction for enabling a Flutter function corresponding to the manipulation information based on the scaffold window; A response module, used to respond to the manipulation instruction in the scaffold window to enable the corresponding Flutter function to develop a Flutter-based application.

8. The device according to claim 7, wherein, the device further includes: The first display module is configured to display, in the scaffold window, a response result in response to the manipulation instruction.

9. The apparatus according to claim 7, wherein, the apparatus further comprises: The first sending module is configured to send, in the scaffold window, a response result in response to the manipulation instruction to the visualization window based on the communication connection; so that the visualization window receives the response result based on the communication connection and responds to the response result in the visualization window.

10. The apparatus according to claim 7, wherein, The scaffold window includes a new scaffold window generated based on the original scaffold window; the original scaffold window is different from and independent of the new scaffold window.

11. An information processing apparatus, wherein, the apparatus is configured to create a visualization window, including: running a scaffold window of Flutter on the apparatus, in the scaffold window of Flutter, creating a new process by inputting an instruction to run the visualization window, and running the visualization window based on the new process. The visualization window includes different manipulation controls, and each manipulation control respectively corresponds to a manipulation instruction for enabling a function of Flutter. The apparatus includes: The second display module is configured to display the visualization window, where the visualization window includes manipulation controls respectively corresponding to a plurality of development instructions for developing an application based on Flutter; there is a sequential logical relationship or a dependency relationship among the plurality of manipulation controls, and whether a manipulation control with a later manipulation order is valid depends on the manipulation result of a manipulation control with an earlier manipulation order; The second acquisition module is configured to acquire manipulation information of a user's continuous manipulation of different target manipulation controls among the plurality of manipulation controls in the visualization window; The second sending module is configured to send the manipulation information to the scaffold window based on the communication connection between the visualization window and the displayed scaffold window of Flutter; so that the scaffold window acquires a manipulation instruction for enabling a Flutter function corresponding to the manipulation information and enables the corresponding Flutter function in response to the manipulation instruction in the scaffold window for developing an application based on Flutter.

12. The apparatus according to claim 11, wherein, the apparatus further comprises: The second receiving module is configured to receive an instruction to run the visualization window; The judgment module is configured to judge whether the visualization window has been run; The closing module is configured to close the already running visualization window when the visualization window has been run; The running module is configured to re-run the visualization window; The establishing module is configured to establish a connection between the re-run visualization window and the scaffold window.

13. An electronic device, wherein, the electronic device includes: a processor; a memory for storing processor-executable instructions; Among them, the processor is configured to execute the information processing method according to any one of claims 1-4, or execute the information processing method according to any one of claims 5-6.

14. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the information processing method according to any one of claims 1-4, or execute the information processing method according to any one of claims 5-6.

Citation Information

Patent Citations

  • Graphical interfaces development method and system based on command lines

    CN101135966A