[go: up one dir, main page]

CN117435104A - Data transmission methods, devices, electronic equipment and storage media - Google Patents

Data transmission methods, devices, electronic equipment and storage media Download PDF

Info

Publication number
CN117435104A
CN117435104A CN202311356957.5A CN202311356957A CN117435104A CN 117435104 A CN117435104 A CN 117435104A CN 202311356957 A CN202311356957 A CN 202311356957A CN 117435104 A CN117435104 A CN 117435104A
Authority
CN
China
Prior art keywords
electronic device
target object
interface
displaying
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311356957.5A
Other languages
Chinese (zh)
Inventor
席孝倩
蒋建伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311356957.5A priority Critical patent/CN117435104A/en
Publication of CN117435104A publication Critical patent/CN117435104A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种数据传输方法、装置、电子设备及存储介质,属于通信技术领域。该方法包括:显示第一界面,第一界面包括目标对象和至少一个电子设备标识;至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件;接收对目标对象和至少一个电子设备标识中的第二电子设备标识的第一输入;响应于第一输入,将目标对象发送至第二电子设备标识对应的第二电子设备;其中,第二电子设备执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。

This application discloses a data transmission method, device, electronic equipment and storage medium, which belongs to the field of communication technology. The method includes: displaying a first interface, the first interface including a target object and at least one electronic device identification; the electronic device corresponding to the at least one electronic device identification and the first electronic device meeting a quick connection condition; receiving a pair of the target object and at least one electronic device a first input of the second electronic device identification in the identification; in response to the first input, sending the target object to the second electronic device corresponding to the second electronic device identification; wherein the second electronic device performs at least one of the following: The target object is displayed in the position, the mirror simulation window of the target object is displayed, and the target object is displayed in the application interface of the application program corresponding to the target object.

Description

数据传输方法、装置、电子设备及存储介质Data transmission methods, devices, electronic equipment and storage media

技术领域Technical field

本申请属于通信技术领域,具体涉及一种数据传输方法、装置、电子设备及存储介质。This application belongs to the field of communication technology, and specifically relates to a data transmission method, device, electronic equipment and storage medium.

背景技术Background technique

目前,多个电子设备之间可以通过有线连接或无线连接的方式进行数据传输。相关技术中,第一电子设备可以通过通讯类应用程序将第一电子设备中的数据,例如,应用安装包、文本和图片,传输至第二电子设备中。Currently, data can be transmitted between multiple electronic devices through wired or wireless connections. In related technology, the first electronic device can transmit data in the first electronic device, such as application installation packages, text and pictures, to the second electronic device through a communication application program.

然而,上述方法中,由于用户需要通过通讯类应用程序才可以与第二电子设备进行数据传输,导致电子设备之间进行数据传输的操作繁琐。However, in the above method, since the user needs to use a communication application program to transmit data to the second electronic device, the operation of data transmission between the electronic devices is cumbersome.

发明内容Contents of the invention

本申请实施例的目的是提供一种数据传输方法、装置、电子设备及存储介质,能够避免电子设备之间数据传输的繁琐操作。The purpose of the embodiments of the present application is to provide a data transmission method, device, electronic device, and storage medium that can avoid cumbersome operations of data transmission between electronic devices.

第一方面,本申请实施例提供了一种数据传输方法,应用于第一电子设备;该数据传输方法包括:显示第一界面,第一界面包括目标对象和至少一个电子设备标识;至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件;接收对目标对象和至少一个电子设备标识中的第二电子设备标识的第一输入;响应于第一输入,将目标对象发送至第二电子设备标识对应的第二电子设备;其中,第二电子设备执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。In a first aspect, embodiments of the present application provide a data transmission method, applied to a first electronic device; the data transmission method includes: displaying a first interface, the first interface including a target object and at least one electronic device identification; at least one electronic device The electronic device corresponding to the device identification satisfies the quick connection condition with the first electronic device; receives a first input of the target object and the second electronic device identification in the at least one electronic device identification; and in response to the first input, sends the target object to the first electronic device. The second electronic device identifies the second electronic device corresponding to the second electronic device; wherein the second electronic device performs at least one of the following: displaying the target object at the cursor position, displaying the mirror simulation window of the target object, and displaying the target on the application interface of the application program corresponding to the target object. object.

第二方面,本申请实施例提供了一种数据传输装置,应用于第一电子设备;该数据传输装置包括:显示模块、接收模块和发送模块。显示模块,用于显示第一界面,第一界面包括目标对象和至少一个电子设备标识;至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件。接收模块,用于接收对显示模块显示的目标对象和至少一个电子设备标识中的第二电子设备标识的第一输入。发送模块,用于响应于接收模块接收的第一输入,将目标对象发送至第二电子设备标识对应的第二电子设备。其中,第二电子设备执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。In a second aspect, embodiments of the present application provide a data transmission device, applied to a first electronic device; the data transmission device includes: a display module, a receiving module and a sending module. A display module is used to display a first interface. The first interface includes a target object and at least one electronic device identifier; the electronic device corresponding to the at least one electronic device identifier and the first electronic device meet the quick connection conditions. The receiving module is configured to receive a first input of the target object displayed by the display module and the second electronic device identification among the at least one electronic device identification. The sending module is configured to send the target object to the second electronic device corresponding to the second electronic device identification in response to the first input received by the receiving module. Wherein, the second electronic device performs at least one of the following: displaying the target object at the cursor position, displaying a mirror simulation window of the target object, and displaying the target object on an application interface of an application program corresponding to the target object.

第三方面,本申请实施例提供了一种数据传输方法,应用于第二电子设备;该数据传输方法包括:在接收到第一电子设备发送的目标对象的情况下,执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。In a third aspect, embodiments of the present application provide a data transmission method, applied to a second electronic device; the data transmission method includes: upon receiving a target object sent by the first electronic device, performing at least one of the following: Display the target object at the cursor position, display the mirror simulation window of the target object, and display the target object in the application interface of the application program corresponding to the target object.

第四方面,本申请实施例提供了一种数据传输装置,应用于第二电子设备;该数据传输装置包括:处理模块。处理模块,用于在接收到第一电子设备发送的目标对象的情况下,执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。In a fourth aspect, embodiments of the present application provide a data transmission device, applied to a second electronic device; the data transmission device includes: a processing module. A processing module configured to, upon receiving the target object sent by the first electronic device, perform at least one of the following: display the target object at the cursor position, display the mirror simulation window of the target object, and apply the application program corresponding to the target object. The interface displays the target object.

第五方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面或第三方面所述的方法的步骤。In a fifth aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The programs or instructions are processed by the processor. When the processor is executed, the steps of the method described in the first aspect or the third aspect are implemented.

第六方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面或第三方面所述的方法的步骤。In a sixth aspect, embodiments of the present application provide a readable storage medium on which programs or instructions are stored. When the programs or instructions are executed by a processor, the implementation is as described in the first aspect or the third aspect. steps of the method.

第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面或第三方面所述的方法。In a seventh aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. or the method described in the third aspect.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面或第三方面所述的方法。In a sixth aspect, embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect or the third aspect.

在本申请实施例中,显示第一界面,第一界面包括目标对象和至少一个电子设备标识,接收对目标对象和至少一个电子设备标识中的第二电子设备标识的第一输入,响应于第一输入,将目标对象发送至第二电子设备标识对应的第二电子设备,其中,第二电子设备执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象,由于至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件,因此第一电子设备在第一界面中确定目标对象之后,无需通过通讯类应用程序,就可以将目标对象发送至第二电子设备,避免了电子设备之间数据传输的繁琐操作。In this embodiment of the present application, a first interface is displayed, the first interface includes a target object and at least one electronic device identification, a first input to a second electronic device identification among the target object and at least one electronic device identification is received, and in response to the first An input is sent to the second electronic device corresponding to the second electronic device identification, wherein the second electronic device performs at least one of the following: displaying the target object at the cursor position, displaying the mirror simulation window of the target object, and displaying the target object in the second electronic device. The application interface of the corresponding application program displays the target object. Since the electronic device corresponding to the at least one electronic device identifier and the first electronic device meet the quick connection conditions, the first electronic device does not need to go through the communication class after determining the target object in the first interface. application, the target object can be sent to the second electronic device, avoiding the cumbersome operation of data transmission between electronic devices.

附图说明Description of the drawings

图1是本申请实施例提供的一种数据传输方法的流程图之一;Figure 1 is one of the flow charts of a data transmission method provided by an embodiment of the present application;

图2是本申请实施例提供的一种数据传输界面的实例示意图之一;Figure 2 is one of the schematic diagrams of an example of a data transmission interface provided by an embodiment of the present application;

图3是本申请实施例提供的一种数据传输界面的实例示意图之二;Figure 3 is a second schematic diagram of an example of a data transmission interface provided by an embodiment of the present application;

图4是本申请实施例提供的一种数据传输界面的实例示意图之三;Figure 4 is a third schematic diagram of an example of a data transmission interface provided by an embodiment of the present application;

图5是本申请实施例提供的一种数据显示界面的实例示意图之一;Figure 5 is one of the schematic diagrams of an example of a data display interface provided by an embodiment of the present application;

图6是本申请实施例提供的一种数据显示界面的实例示意图之二;Figure 6 is a second schematic diagram of an example of a data display interface provided by an embodiment of the present application;

图7是本申请实施例提供的一种数据显示界面的实例示意图之三;Figure 7 is a third schematic diagram of an example of a data display interface provided by an embodiment of the present application;

图8是本申请实施例提供的一种数据传输装置的结构示意图之一;Figure 8 is one of the structural schematic diagrams of a data transmission device provided by an embodiment of the present application;

图9是本申请实施例提供的一种数据传输装置的结构示意图之二;Figure 9 is a second structural schematic diagram of a data transmission device provided by an embodiment of the present application;

图10是本申请实施例提供的一种电子设备的硬件结构示意图之一;Figure 10 is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application;

图11是本申请实施例提供的一种电子设备的硬件结构示意图之二。FIG. 11 is a second schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances so that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

本申请的说明书和权利要求书中的术语“至少一个(项)”、“至少之一”等指其包含对象中的任意一个、任意两个或两个以上的组合。例如,a、b、c中的至少一个(项),可以表示:“a”、“b”、“c”、“a和b”、“a和c”、“b和c”以及“a、b和c”,其中a,b,c可以是单个,也可以是多个。同理,“至少两个(项)”是指两个或两个以上,其表达的含义与“至少一个(项)”类似。The terms "at least one (item)", "at least one", etc. in the description and claims of this application refer to any one, any two or a combination of more than two of the included objects. For example, at least one (item) of a, b, c can represent: "a", "b", "c", "a and b", "a and c", "b and c" and "a , b and c", where a, b, c can be single or multiple. Similarly, "at least two (items)" refers to two or more than two, and its meaning is similar to "at least one (item)".

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的数据传输方法、装置、电子设备及存储介质进行详细地说明。The data transmission method, device, electronic device and storage medium provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

本申请实施例提供的数据传输方法的执行主体可以为数据传输装置,该拍数据传输装置可以为电子设备,或电子设备中的功能模块。以下以电子设备为例,对本申请实施例提供的技术方案进行说明。The execution subject of the data transmission method provided by the embodiment of the present application may be a data transmission device, and the data transmission device may be an electronic device, or a functional module in the electronic device. The following uses electronic equipment as an example to describe the technical solutions provided by the embodiments of the present application.

本申请实施例提供一种数据传输方法,图1示出了本申请实施例提供的一种数据传输方法的流程图,应用于第一电子设备。如图1所示,本申请实施例提供的数据传输方法可以包括下述的步骤201至步骤203。An embodiment of the present application provides a data transmission method. FIG. 1 shows a flow chart of a data transmission method provided by an embodiment of the present application, which is applied to a first electronic device. As shown in Figure 1, the data transmission method provided by the embodiment of the present application may include the following steps 201 to 203.

步骤201、第一电子设备显示第一界面,该第一界面包括目标对象和至少一个电子设备标识;该至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件。Step 201: The first electronic device displays a first interface, which includes a target object and at least one electronic device identifier; the electronic device corresponding to the at least one electronic device identifier satisfies the quick connection condition with the first electronic device.

可选地,本申请实施例中,上述目标对象可以包括以下至少一项:文本内容、音频内容、视频内容、应用标识、压缩包、图片和文档。Optionally, in this embodiment of the present application, the above-mentioned target object may include at least one of the following: text content, audio content, video content, application identification, compressed package, picture and document.

可以理解,上述目标对象可以为第一界面中的文本内容、音频内容、视频内容和应用标识。It can be understood that the above target objects may be text content, audio content, video content and application identification in the first interface.

示例性地,在上述第一界面为文档界面的情况下,上述目标对象可以为文本内容;在上述第一界面为音频界面的情况下,上述目标对象可以为音频内容;在上述第一界面为视频界面的情况下,上述目标对象为视频内容;在上述第一界面为后台应用管理界面的情况下,上述目标对象为应用标识。For example, when the first interface is a document interface, the target object may be text content; when the first interface is an audio interface, the target object may be audio content; when the first interface is In the case of a video interface, the target object is the video content; in the case of the first interface being a background application management interface, the target object is an application identifier.

示例性地,上述应用标识可以为以下至少一项:文字标识、图像标识,例如图标标识和符号标识。For example, the above-mentioned application identification may be at least one of the following: a text identification, an image identification, such as an icon identification and a symbol identification.

在一种示例中,上述目标对象可以为第一界面已经存储好的完整内容,例如,文档。In one example, the target object may be complete content already stored in the first interface, for example, a document.

在另一种示例中,上述目标对象可以为从第一界面中的完整内容中提取出的部分内容。In another example, the above target object may be partial content extracted from the complete content in the first interface.

示例性地,电子设备可以通过用户在第一界面中对第一内容的输入,以从第一内容中确定目标对象,然后,通过文本处理算法,从第一内容中提取出目标对象。For example, the electronic device can determine the target object from the first content through the user's input of the first content in the first interface, and then extract the target object from the first content through a text processing algorithm.

示例性地,假设上述第一界面为文本编辑界面,该文本编辑界面中显示有“今夕何夕兮,搴舟中流。今日何日兮,得与流子同舟。蒙羞被好兮,不訾诟耻。心几烦而不绝兮,得知流子。山有木兮木有枝,心悦君兮君不知。”上述目标对象可以为“心几烦而不绝兮,得知流子。山有木兮木有枝,心悦君兮君不知”。For example, assume that the above-mentioned first interface is a text editing interface, and the text editing interface displays the words "What night is today, I am in the boat. I have to be in the same boat with the boat. I am ashamed and be good, I am not in trouble." Criticism and shame. My heart is troubled but it doesn’t stop, and I know Liuzi. There are trees in the mountain, and the trees have branches, and my heart is happy to you. You don’t know it." The above target audience can be "My heart is troubled but it doesn’t stop, and I know Liuzi. . There are trees in the mountains, and the trees have branches. My heart is happy for you, but you don’t know it.”

示例性地,上述文本处理算法可以为神经网络算法或人工智能算法。For example, the above text processing algorithm may be a neural network algorithm or an artificial intelligence algorithm.

本申请实施例中,上述至少一个设备标识用于表征第一电子设备与至少一个设备标识指示的电子设备已经建立通信连接。In this embodiment of the present application, the at least one device identifier is used to indicate that a communication connection has been established between the first electronic device and the electronic device indicated by the at least one device identifier.

可选地,本申请实施例中,上述至少一个设备标识中的每个设备标识可以为以下至少一项:文字标识、图像标识,例如图标标识和符号标识。Optionally, in this embodiment of the present application, each of the above at least one device identification may be at least one of the following: a text identification, an image identification, such as an icon identification and a symbol identification.

可选地,本申请实施例中,上述通信连接包括以下至少一项:有线连接和无线连接。Optionally, in this embodiment of the present application, the above communication connection includes at least one of the following: a wired connection and a wireless connection.

示例性地,上述无线连接可以包括以下任一项:蓝牙连接、无线保真(WirelessFidelity,WiFi)连接或扫码连接。For example, the wireless connection may include any of the following: Bluetooth connection, Wireless Fidelity (WiFi) connection, or QR code scanning connection.

需要说明的是,上述扫码连接为第一电子设备和第二电子设备中拥有共同的应用程序,下述简称为第一应用程序,如此,第一电子设备可以通过中的第一应用程序中的扫一扫应用功能,扫描第二电子设备中的第一应用程序中的二维码,如此,第一电子设备可以与第二电子设备建立通信连接。It should be noted that the above-mentioned scan code connection means that the first electronic device and the second electronic device have a common application program, which is referred to as the first application program below. In this way, the first electronic device can use the first application program in The scan application function scans the QR code in the first application in the second electronic device. In this way, the first electronic device can establish a communication connection with the second electronic device.

可选地,本申请实施例中,第一电子设备在显示第一界面之前,第一电子设备可以基于用户的对第一应用图标的输入,运行第一应用图标对应的应用程序,从而显示上述第一界面,然后,电子设备可以基于用户的输入,在第一界面中显示至少一个电子设备标识。Optionally, in this embodiment of the present application, before the first electronic device displays the first interface, the first electronic device can run the application program corresponding to the first application icon based on the user's input to the first application icon, thereby displaying the above-mentioned The first interface, and then the electronic device may display at least one electronic device identification in the first interface based on the user's input.

示例性地,电子设备可以在第一界面的任意空白区域中显示第一组件,该第一组件中包括至少一个电子设备标识。For example, the electronic device may display the first component in any blank area of the first interface, and the first component includes at least one electronic device identification.

示例性地,电子设备可以通过弹窗在第一界面中显示第一组件。For example, the electronic device may display the first component in the first interface through a pop-up window.

示例性地,第一电子设备可以在设置应用界面中开启显示第一组件功能;如此,在第一电子设备确定目标对象之后,第一电子设备可以在第一界面中显示第一组件。For example, the first electronic device can enable the function of displaying the first component in the setting application interface; thus, after the first electronic device determines the target object, the first electronic device can display the first component in the first interface.

可选地,本申请实施例中,第一电子设备在上述第一界面中的第一区域中显示第一组件之前,第一电子设备可以向用户显示提示信息,以提示用户是否显示第一组件,从而进行数据传输。Optionally, in this embodiment of the present application, before the first electronic device displays the first component in the first area of the first interface, the first electronic device may display prompt information to the user to prompt the user whether to display the first component. , thereby transmitting data.

可选地,本申请实施例中,在第一电子设备显示M次提示信息,且用户均未同意的情况下,若用户在一次对目标对象进行输入,则第一电子设备不显示提示信息,从而也不显示第一组件,M为小于或等于3的整数。Optionally, in this embodiment of the present application, when the first electronic device displays prompt information M times and the user does not agree, if the user inputs the target object once, the first electronic device does not display the prompt information, Therefore, the first component is also not displayed, and M is an integer less than or equal to 3.

可选地,本申请实施例中,在用户第一次通过第一组件进行数据传输时,第一电子设备可以向用户提示功能引导,以指示用户如何使用第一组件进行数据传输。Optionally, in this embodiment of the present application, when the user transmits data through the first component for the first time, the first electronic device may prompt the user with function guidance to instruct the user how to use the first component for data transmission.

示例性地,以文本为例,第一电子设备在显示第一组件之后,第一电子设备可以在第一界面中播放第一动画,该第一动画中包含功能引导,例如,提示用户拖动文本,直至拖动至第一组件中的至少一个设备标识中的目标标识,即可完成本次数据传输过程。Illustratively, taking text as an example, after the first electronic device displays the first component, the first electronic device can play a first animation in the first interface. The first animation contains function guidance, for example, prompting the user to drag Text until it is dragged to the target identification in at least one device identification in the first component, the data transfer process can be completed.

可选地,本申请实施例中,第一电子设备还可以在第一组件中显示至少一个设备标识对应的电子设备的设备名称。Optionally, in this embodiment of the present application, the first electronic device may also display the device name of the electronic device corresponding to at least one device identification in the first component.

本申请实施例中,电子设备可以通过组件的方式显示上述N个设备标识,提升了电子设备显示N个设备标识的可读性。In the embodiment of the present application, the electronic device can display the above-mentioned N device identifiers in the form of components, which improves the readability of the electronic device displaying the N device identifiers.

可选地,本申请实施例中,电子设备可以根据至少一个设备标识的显示优先级,在第一组件中显示至少一个设备标识。Optionally, in this embodiment of the present application, the electronic device may display at least one device identifier in the first component according to the display priority of the at least one device identifier.

本申请实施例中,上述至少一个设备标识中的任一设备标识的显示优先级是由:该任一设备标识对应的电子设备与第一电子设备间的通信连接方式对应的优先级确定。In this embodiment of the present application, the display priority of any one of the above at least one device identification is determined by the priority corresponding to the communication connection mode between the electronic device corresponding to the any device identification and the first electronic device.

可以理解,上述至少一个设备标识的显示优先级用于确定该至少一个设备标识在第一组件中的显示顺序。It can be understood that the display priority of the at least one device identifier is used to determine the display order of the at least one device identifier in the first component.

示例性地,上述显示优先级为有线连接大于WiFi连接大于蓝牙连接大于扫码连接。For example, the above display priority is that wired connection is greater than WiFi connection, Bluetooth connection is greater than QR code scanning connection.

可选地,本申请实施例中,上述显示优先级可以为电子设备预设的;或者为用户自定义的。Optionally, in this embodiment of the present application, the above display priority may be preset by the electronic device or customized by the user.

本申请实施例中,第一电子设备可以通过显示优先级确定至少一个设备标识在第一组件中的显示顺序,提升了第一电子设备显示至少一个设备标识的灵活性。In the embodiment of the present application, the first electronic device can determine the display order of at least one device identifier in the first component through display priority, which improves the flexibility of the first electronic device in displaying at least one device identifier.

步骤202、第一电子设备接收对目标对象和至少一个电子设备标识中的第二电子设备标识的第一输入。Step 202: The first electronic device receives a first input of the target object and the second electronic device identifier among the at least one electronic device identifier.

本申请实施例中,上述第二电子设备标识可以为至少一个电子设备标识中的至少一个设备标识。In this embodiment of the present application, the second electronic device identifier may be at least one device identifier among at least one electronic device identifier.

本申请实施例中,上述第一输入用于从至少一个设备标识中的确定第二设备标识。In this embodiment of the present application, the above-mentioned first input is used to determine the second device identification from at least one device identification.

可选地,本申请实施例中,上述第一输入可以为用户对目标对象和目标设备标识点击输入、滑动输入、预设轨迹输入或长按输入。具体可以根据实际使用情况确定,本申请实施例不作限制。Optionally, in this embodiment of the present application, the above-mentioned first input may be the user's click input, sliding input, preset trajectory input or long press input on the target object and target device identification. The details can be determined according to actual usage conditions, and are not limited by the embodiments of this application.

需要说明的是,在上述第二设备标识为多个的情况下,用户可以依次对多个第二设备标识进行第一输入。It should be noted that, in the case where there are multiple second device identifiers, the user may perform first input on multiple second device identifiers in sequence.

步骤203、第一电子设备响应于上述第一输入,将目标对象发送至第二电子设备标识对应的第二电子设备,其中,第二电子设备执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。Step 203: In response to the above-mentioned first input, the first electronic device sends the target object to the second electronic device corresponding to the second electronic device identification, wherein the second electronic device performs at least one of the following: displaying the target object at the cursor position; Display the mirror simulation window of the target object, and display the target object in the application interface of the application program corresponding to the target object.

示例性地,以目标对象为第一文本为例,第一电子设备可以接收用户对第一文本和对第二电子设备标识的输入,然后将第一文本传输至第二电子设备标识对应的第二电子设备中。For example, taking the target object as the first text, the first electronic device can receive the user's input of the first text and the second electronic device identification, and then transmit the first text to the third electronic device identification corresponding to the second electronic device identification. 2. In electronic equipment.

示例性地,如图2所示,假设第一界面为备忘录界面10,该备忘录界面10中显示有“今夕何夕兮,搴舟中流。今日何日兮,得与流子同舟。蒙羞被好兮,不訾诟耻。心几烦而不绝兮,得知流子。山有木兮木有枝,心悦君兮君不知。”,此时,用户可以对“心几烦而不绝兮,得知流子。山有木兮木有枝,心悦君兮君不知”进行长按输入,以使得第一电子设备可以悬浮显示“心几烦而不绝兮,得知流子。山有木兮木有枝,心悦君兮君不知”,并在备忘录界面10的右上角显示第一组件11,该第一组件11中包含3个设备标识,图3中分别以1,2,3表示。For example, as shown in Figure 2, assume that the first interface is a memo interface 10, and the memo interface 10 displays "What night is this day, I am in the same boat. I am in the same boat as the boat. I am ashamed." Good, don't feel shameful. I'm upset but I don't know. There are trees in the mountains, and the trees have branches, and I'm happy. You don't know." At this time, the user can say "I'm upset but not aware of it." Juexi, I know Liuzi. There are trees in the mountains, and the trees have branches, and I am happy with you. I don’t know you." Long press the input, so that the first electronic device can float and display "My heart is troubled but not endless, I know Liuzi. "There are trees in the mountains, and the trees have branches, and I am happy with you, but you don't know it", and the first component 11 is displayed in the upper right corner of the memo interface 10. The first component 11 contains 3 device identifiers, each with 1 and 1 in Figure 3. 2,3 means.

在一种示例中,以目标对象为第一视频为例,第一电子设备可以接收用户对第一视频和对第二电子设备标识的输入,然后将第一视频传输至第二电子设备标识对应的第二电子设备中。In one example, taking the target object as the first video, the first electronic device can receive the user's input of the first video and the second electronic device identification, and then transmit the first video to the second electronic device identification corresponding in the second electronic device.

可选地,本申请实施例中,第一电子设备可以提取第一视频中的部分视频内容,并将提取出的部分视频内容传输目标电子设备中。Optionally, in this embodiment of the present application, the first electronic device may extract part of the video content in the first video, and transmit the extracted part of the video content to the target electronic device.

示例性地,假设第一电子设备在正在播放第一视频,此时,用户对第一视频进行了点击输入,则第一电子设备通过视频帧处理算法提取出用户的输入对应的当前视频帧,并在视频播放界面中显示上述第一组件,该第一组件中包括3个设备标识;此时,用户可以将当前视频帧拖动至3个设备标识中的任一设备标识之上,以使得电子设备可以将当前视频帧传输至该任一设备标识对应的电子设备中。For example, assuming that the first electronic device is playing the first video, and at this time, the user performs a click input on the first video, the first electronic device extracts the current video frame corresponding to the user's input through a video frame processing algorithm, And the above-mentioned first component is displayed in the video playback interface, and the first component includes 3 device identifiers; at this time, the user can drag the current video frame to any one of the 3 device identifiers, so that The electronic device can transmit the current video frame to the electronic device corresponding to any device identification.

在另一种示例中,以目标对象为第一音频为例,第一电子设备可以接收用户对第一音频和对第二电子设备标识的输入,然后将第一视频传输至第二电子设备标识对应的第二电子设备中。In another example, taking the target object as the first audio, the first electronic device can receive the user's input of the first audio and the second electronic device identification, and then transmit the first video to the second electronic device identification. in the corresponding second electronic device.

在又一种示例中,以目标对象为应用标识为例,第一电子设备可以接收用户对应用标识和对第二电子设备标识的输入,以在第二电子设备中显示该应用标识对应的应用程序。In another example, taking the target object as an application identifier, the first electronic device can receive the user's input of the application identifier and the second electronic device identifier to display the application corresponding to the application identifier on the second electronic device. program.

示例性地,如图3所示,第一电子设备可以显示任务管理界面12中,该任务管理界面12中的右上角显示第一组件11,该第一组件11中包含3个设备标识,图3中分别以1,2,3表示。该任务管理器的界面12中包括:第一应用程序的应用标识121和第二应用程序的应用标识122。用户可以对第一应用程序的应用标识121进行拖动输入,直至推动至第一组件11中的设备标识1中,以使得第一电子设备可以将第一应用程序的应用标识121发送至设备标识1对应的电子设备中。For example, as shown in Figure 3, the first electronic device can display a task management interface 12. The first component 11 is displayed in the upper right corner of the task management interface 12. The first component 11 contains three device identifiers. Figure 3 are represented by 1, 2, and 3 respectively. The interface 12 of the task manager includes: an application identifier 121 of the first application program and an application identifier 122 of the second application program. The user can drag and input the application identification 121 of the first application until it is pushed to the device identification 1 in the first component 11, so that the first electronic device can send the application identification 121 of the first application to the device identification. 1 in corresponding electronic equipment.

示例性地,若第二电子设备中不包含应用标识对应的应用程序,则第二电子设备可以显示应用标识的镜像模拟窗口。For example, if the second electronic device does not contain an application program corresponding to the application identification, the second electronic device may display a mirror simulation window of the application identification.

示例性地,若第二电子设备中包含应用标识对应的应用程序,则第二电子设备可以运行应用标识对应的应用程序,并在应用程序的应用界面显示目标对象。For example, if the second electronic device contains an application program corresponding to the application identification, the second electronic device can run the application program corresponding to the application identification and display the target object on the application interface of the application program.

示例性地,以目标对象为一个界面为例,第一电子设备可以接收用户对一个界面和对第二电子设备标识的输入,以在第二电子设备中显示该界面。For example, taking the target object as an interface, the first electronic device can receive the user's input of an interface and the identification of the second electronic device to display the interface in the second electronic device.

示例性地,如图4所示,第一电子设备可以显示拍摄界面13中,并在第一电子设备的屏幕的右上角显示第一组件11,该第一组件11中包含3个设备标识,图3中分别以1,2,3表示。用户可以对拍摄界面13进行拖动输入,直至推动至第一组件11中的设备标识1中,以使得第一电子设备可以将第一界面发送至设备标识1对应的电子设备中。For example, as shown in Figure 4, the first electronic device can display the shooting interface 13, and display the first component 11 in the upper right corner of the screen of the first electronic device. The first component 11 contains three device identifiers, In Figure 3, they are represented by 1, 2, and 3 respectively. The user can drag and input the shooting interface 13 until it is pushed to the device identification 1 in the first component 11 , so that the first electronic device can send the first interface to the electronic device corresponding to the device identification 1 .

示例性地,若第二电子设备中不包含上述界面对应的应用程序,则第二电子设备可以显示界面的镜像模拟窗口。For example, if the second electronic device does not include an application program corresponding to the above-mentioned interface, the second electronic device may display a mirror simulation window of the interface.

示例性地,若第二电子设备中包含上述界面对应的应用程序,则第二电子设备可以运行上述界面对应的应用程序,并通过该应用程序显示上述界面。For example, if the second electronic device includes an application program corresponding to the above-mentioned interface, the second electronic device can run the application program corresponding to the above-mentioned interface and display the above-mentioned interface through the application program.

可选地,本申请实施例中,在第一电子设备向第二电子设备传输目标对象的过程中,第一电子设备可以在第一组件中显示传输进度和传输状态。Optionally, in this embodiment of the present application, during the process of the first electronic device transmitting the target object to the second electronic device, the first electronic device may display the transmission progress and transmission status in the first component.

示例性地,上述传输进度可以通过百分比显示,上述传输状态包括:正在传输中、传输成功和传输失败。For example, the above-mentioned transmission progress can be displayed as a percentage, and the above-mentioned transmission status includes: transmission in progress, transmission successful and transmission failure.

示例性地,第一电子设备可以在第一组件之上叠加显示上述传输进度和传输状态。For example, the first electronic device may display the above-mentioned transmission progress and transmission status in an overlay on the first component.

示例性地,第一电子设备可以在第一组件的左半部分叠加显示传输进度,在第一组件的有半部分叠加显示传输状态;或者,第一电子设备可以在第一组件的上半部分叠加显示传输进度,在第一组件的下半部分叠加显示传输状态。具体可以根据实际使用情况确定,本申请实施例不作限制。For example, the first electronic device can overlay and display the transmission progress on the left half of the first component, and overlay and display the transmission status on the first half of the first component; or, the first electronic device can overlay and display the transmission status on the upper half of the first component. The transfer progress is overlaid and the transfer status is overlaid on the lower half of the first component. The details can be determined according to actual usage conditions, and are not limited by the embodiments of this application.

可选地,本申请实施例中,在第一电子设备向第二电子设备传输完成目标对象之后,第一电子设备可以自动取消显示上述第一组件。Optionally, in this embodiment of the present application, after the first electronic device completes transmitting the target object to the second electronic device, the first electronic device may automatically cancel the display of the first component.

可选地,本申请实施例中,在第一电子设备向第二电子设备传输完成目标对象之后,第一电子设备可以在第一组件中显示完成控件,用户可以对该完成控件进行输入,以使得电子设备可以取消显示上述第一组件。Optionally, in this embodiment of the present application, after the first electronic device transmits the completion target object to the second electronic device, the first electronic device can display a completion control in the first component, and the user can input the completion control to This allows the electronic device to cancel display of the above first component.

可选地,本申请实施例中,第一电子设备可以在向第二电子设备传输目标对象的过程中,在第一组件中显示完成控件,用户可以对该完成控件进行输入,以使得第一电子设备可以取消显示上述第一组件。Optionally, in this embodiment of the present application, the first electronic device can display a completion control in the first component during the process of transmitting the target object to the second electronic device, and the user can input the completion control, so that the first The electronic device can cancel displaying the above-mentioned first component.

可选地,本申请实施例中,在第一电子设备未检测到用户对第一组件中的任一设备标识进行输入的情况下,第一电子设备在预设时长之后,自动取消显示上述第一组件。Optionally, in this embodiment of the present application, when the first electronic device does not detect the user's input to any device identification in the first component, the first electronic device automatically cancels the display of the above-mentioned first component after a preset period of time. One component.

可选地,本申请实施例中,第一电子设备与第二电子设备标识对应的第二电子设备建立有线连接和无线连接的情况下,第一电子设备响应于第一输入,在有线连接断开的情况下,通过无线连接向目标电子设备传输第一内容。Optionally, in the embodiment of the present application, when the first electronic device establishes a wired connection and a wireless connection with the second electronic device corresponding to the second electronic device identification, the first electronic device responds to the first input and disconnects the wired connection. When turned on, the first content is transmitted to the target electronic device through the wireless connection.

可选地,本申请实施例中,第一电子设备与第二电子设备标识对应的第二电子设备建立无线连接断开的情况下,第一电子设备响应于第一输入,通过有线连接向目标电子设备传输第一内容。Optionally, in the embodiment of the present application, when the first electronic device establishes a wireless connection with the second electronic device corresponding to the second electronic device identification and is disconnected, the first electronic device responds to the first input and sends a message to the target through a wired connection. The electronic device transmits the first content.

可选地,本申请实施例中,在第一电子设备与第二电子设备标识对应的第二电子设备建立有线连接和无线连接的情况下,若第一内容的占用内存大小大于预设内存,第一电子设备通过有线连接向目标电子设备传输第一内容。Optionally, in this embodiment of the present application, when the first electronic device establishes a wired connection and a wireless connection with the second electronic device corresponding to the second electronic device identification, if the memory size occupied by the first content is greater than the preset memory, The first electronic device transmits the first content to the target electronic device through the wired connection.

本申请实施例中,第一电子设备可以与第二电子设备同时具备有线连接和无线连接,如此,在其中任何一个传输通道断开的情况下,第一电子设备可以通过另一条传输通道进行数据传输,保证了数据传输的稳定性。In the embodiment of the present application, the first electronic device can have both a wired connection and a wireless connection with the second electronic device. In this way, when any one of the transmission channels is disconnected, the first electronic device can transmit data through another transmission channel. transmission, ensuring the stability of data transmission.

可选地,本申请实施例中,上述第二电子设备在光标位置显示目标对象的情况下,目标对象包括以下至少一项:文本、图像、音频、视频、文档。Optionally, in this embodiment of the present application, when the second electronic device displays a target object at the cursor position, the target object includes at least one of the following: text, image, audio, video, and document.

可选地,本申请实施例中,上述第二电子设备显示目标对象的镜像模拟窗口的情况下,目标对象为应用界面、任务管理器的任务窗口或者第三电子设备的控制窗口。Optionally, in this embodiment of the present application, when the second electronic device displays a mirror simulation window of a target object, the target object is an application interface, a task window of a task manager, or a control window of a third electronic device.

可选地,本申请实施例中,上述第二电子设备在目标对象对应的应用程序的应用界面显示目标对象的情况下,目标对象在第一界面处于编辑状态,目标对象包括以下至少一项:图像、音频、视频、文档。Optionally, in this embodiment of the present application, when the above-mentioned second electronic device displays the target object on the application interface of the application program corresponding to the target object, the target object is in the editing state on the first interface, and the target object includes at least one of the following: Images, audio, video, documents.

在本申请实施例提供的数据传输方法中,显示第一界面,第一界面包括目标对象和至少一个电子设备标识;至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件;接收对目标对象和至少一个电子设备标识中的第二电子设备标识的第一输入;响应于第一输入,将目标对象发送至第二电子设备标识对应的第二电子设备;其中,第二电子设备执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。本方案中,由于第一电子设备可以直接在第一界面中显示至少一个设备标识和目标对象,并可以直接通过该至少一个设备标识向至少一个设备标识中的第二设备标识对应的第二电子设备进行数据传输,如此,第一电子设备在第一界面中确定目标对象之后,无需通过快传应用程序,就可以直接在第一界面中就可以进行数据传输,避免了电子设备之间数据传输的繁琐操作。In the data transmission method provided by the embodiment of the present application, a first interface is displayed, and the first interface includes a target object and at least one electronic device identifier; the electronic device corresponding to the at least one electronic device identifier and the first electronic device satisfy the quick connection condition; receive A first input to the target object and a second electronic device identification among the at least one electronic device identification; in response to the first input, sending the target object to the second electronic device corresponding to the second electronic device identification; wherein, the second electronic device Perform at least one of the following: display the target object at the cursor position, display the mirror simulation window of the target object, and display the target object in the application interface of the application program corresponding to the target object. In this solution, the first electronic device can directly display at least one device identification and the target object in the first interface, and can directly use the at least one device identification to identify the corresponding second electronic device to the second device identification in the at least one device identification. The device performs data transmission. In this way, after the first electronic device determines the target object in the first interface, it can directly transmit data in the first interface without going through the quick transfer application, thus avoiding data transmission between electronic devices. cumbersome operations.

可选地,本申请实施例中,上述步骤203具体通过下述的步骤203a至步骤203c实现。Optionally, in this embodiment of the present application, the above step 203 is specifically implemented through the following steps 203a to 203c.

步骤203a、第一电子设备响应于第一输入,显示至少两个处理选项。Step 203a: The first electronic device displays at least two processing options in response to the first input.

本申请实施例中,上述至少两个处理选项中的每个处理选项用于指示第二电子设备对目标对象的一种处理方式。In this embodiment of the present application, each of the above-mentioned at least two processing options is used to indicate a processing method for the target object by the second electronic device.

示例性地,上述至少两个处理选项中的每个处理选项均对应一个处理选项控件。Illustratively, each of the above at least two processing options corresponds to a processing option control.

可选地,本申请实施例中,电子设备可以在第一组件中显示至少两个处理选项控件;或者,电子设备可以在第一界面中的任意空白区域中显示至少两个处理选项控件。Optionally, in this embodiment of the application, the electronic device can display at least two processing option controls in the first component; or, the electronic device can display at least two processing option controls in any blank area in the first interface.

步骤203b、第一电子设备接收对至少两个处理选项中的目标处理选项的第二输入。Step 203b: The first electronic device receives a second input to the target processing option among the at least two processing options.

本申请实施例中,上述第二输入用于从至少两个处理选项中确定目标处理选项。In this embodiment of the present application, the above-mentioned second input is used to determine the target processing option from at least two processing options.

可选地,本申请实施例中,上述第二输入可以为用户对至少两个处理选项中的目标处理选项的点击输入、滑动输入、预设轨迹输入或长按输入。具体可以根据实际使用情况确定,本申请实施例不作限制。Optionally, in this embodiment of the present application, the above-mentioned second input may be the user's click input, sliding input, preset trajectory input or long press input on the target processing option among the at least two processing options. The details can be determined according to actual usage conditions, and are not limited by the embodiments of this application.

步骤203c、第一电子设备响应于第二输入,将目标处理选项对应的处理信息和目标对象发送至第二电子设备。Step 203c: In response to the second input, the first electronic device sends the processing information and the target object corresponding to the target processing option to the second electronic device.

本申请实施例中,上述处理信息用于指示第二电子设备对目标对象的处理方式。In the embodiment of the present application, the above processing information is used to indicate the processing method of the target object by the second electronic device.

本申请实施例中,在第一电子设备确定目标对象之后,第一电子设备可以在第一组件中显示至少两个处理选项,从而在第一电子设备确定目标处理选项之后,第一电子设备可以将该处理信息和目标对象同时发送至第二电子设备中,以使得电子设备可以通过处理信息对应的处理方式处理目标对象。In the embodiment of the present application, after the first electronic device determines the target object, the first electronic device can display at least two processing options in the first component, so that after the first electronic device determines the target processing option, the first electronic device can The processing information and the target object are simultaneously sent to the second electronic device, so that the electronic device can process the target object through the processing method corresponding to the processing information.

示例性地,上述处理方式包括:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。Exemplarily, the above processing method includes: displaying the target object at the cursor position, displaying the mirror simulation window of the target object, and displaying the target object on the application interface of the application program corresponding to the target object.

本申请实施例中,第一电子设备可以基于用户的选择,控制在第二电子设备中目标对象的处理方式,如此,提升了显示目标对象的灵活性。In the embodiment of the present application, the first electronic device can control the processing method of the target object in the second electronic device based on the user's selection, thus improving the flexibility of displaying the target object.

可选地,本申请实施例中,本申请实施例提供的数据传输方法还包括下述的步骤301。Optionally, in the embodiment of the present application, the data transmission method provided by the embodiment of the present application further includes the following step 301.

步骤301、在至少一个电子设备标识对应的电子设备的用户账号与第一电子设备的用户账号相匹配的情况下,第一电子设备确定至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件。Step 301: When the user account of the electronic device corresponding to the at least one electronic device identification matches the user account of the first electronic device, the first electronic device determines that the electronic device corresponding to the at least one electronic device identification and the first electronic device satisfy Quick connection conditions.

本申请实施例中,上述用户账号为电子设备登录账号、应用程序登录账号或者应用程序套件登录账号。In the embodiment of this application, the above-mentioned user account is an electronic device login account, an application program login account, or an application package login account.

需要说明的是,上述快捷连接条件为第一电子设备与至少一个电子设备标识对应的电子设备之间无需通过WIFI连接、蓝牙连接或有线连接。It should be noted that the above-mentioned quick connection condition is that there is no need for a WIFI connection, a Bluetooth connection or a wired connection between the first electronic device and the electronic device corresponding to at least one electronic device identifier.

本申请实施例中,第一电子设备可以向服务器发送账号匹配请求,在服务器确定第一电子设备中的用户账号与第二电子设备中的用户账号匹配之后,服务器可以向第一电子设备下发账号匹配消息,从而电子设备可以通过该账号匹配消息,确定第二电子设备与第一电子设备满足快捷连接条件。In this embodiment of the present application, the first electronic device may send an account matching request to the server. After the server determines that the user account in the first electronic device matches the user account in the second electronic device, the server may issue an account matching request to the first electronic device. The account matching message allows the electronic device to determine that the second electronic device and the first electronic device meet the quick connection conditions through the account matching message.

可选地,本申请实施例中,上述至少一个电子设备标识对应的电子设备的用户账号与第一电子设备的用户账号相匹配可以为:用户账号的注册用户一致;或者,用户账号的亲情号;或者用户账号与用户密码一致。Optionally, in this embodiment of the present application, matching the user account of the electronic device corresponding to the at least one electronic device identifier with the user account of the first electronic device may be: the registered user of the user account is consistent; or, the family number of the user account is the same. ; Or the user account and user password are consistent.

本申请实施例中,第一电子设备可以通过与至少一个电子设备标识对应的电子设备之间的快捷连接,将目标对象传输至至少一个电子设备标识对应的电子设备中,从而提升了第一电子设备与至少一个电子设备标识对应的电子设备之间通信的灵活性。In the embodiment of the present application, the first electronic device can transmit the target object to the electronic device corresponding to the at least one electronic device identifier through a quick connection between the electronic devices corresponding to the at least one electronic device identifier, thereby improving the efficiency of the first electronic device. Flexibility in communication between the device and the electronic device corresponding to at least one electronic device identification.

本申请实施例提供一种数据传输方法,本申请实施例提供的一种数据传输方法的流程图,应用于第二电子设备。本申请实施例提供的数据传输方法可以包括下述的步骤401。The embodiment of the present application provides a data transmission method. The flow chart of the data transmission method provided by the embodiment of the present application is applied to the second electronic device. The data transmission method provided by the embodiment of the present application may include the following step 401.

步骤401、在接收到第一电子设备发送的目标对象的情况下,第二电子设备执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。Step 401: Upon receiving the target object sent by the first electronic device, the second electronic device performs at least one of the following: displaying the target object at the cursor position, displaying the mirror simulation window of the target object, and displaying the application program corresponding to the target object. The application interface displays the target object.

可选地,本申请实施例中,第二电子设备可以根据目标对象的类型,执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。Optionally, in this embodiment of the present application, the second electronic device can perform at least one of the following according to the type of the target object: display the target object at the cursor position, display the mirror simulation window of the target object, and display the target object in the application program corresponding to the target object. The application interface displays the target object.

可选地,本申请实施例中,第二电子设备可以根据第一电子设备发送的处理方式,执行对应的处理方式。Optionally, in this embodiment of the present application, the second electronic device may execute the corresponding processing method according to the processing method sent by the first electronic device.

示例性地,目标对象包括文本,在第二电子设备接收到文本的情况下,第二电子设备的可以在光标位置显示文本。For example, the target object includes text, and if the second electronic device receives the text, the second electronic device may display the text at the cursor position.

在一种示例中,目标对象包括第一视频,在第二电子设备中包括第一视频对应的应用程序时,第二电子设备可以运行该第一视频对应的应用程序,并播放第一视频。In one example, the target object includes the first video, and when the second electronic device includes an application program corresponding to the first video, the second electronic device can run the application program corresponding to the first video and play the first video.

示例性地,目标对象包括第一视频,在第二电子设备中不包括第一视频对应的应用程序时,第二电子设备可以显示第一视频对应的应用程序的镜像模拟窗口,第二电子设备可以通过该镜像模拟窗口播放第一视频。For example, the target object includes the first video. When the second electronic device does not include the application program corresponding to the first video, the second electronic device can display the mirror simulation window of the application program corresponding to the first video. The second electronic device The first video can be played through the mirror simulation window.

在另一种示例中,目标对象包括第一音频,在第二电子设备中包括第一音频对应的应用程序时,第二电子设备可以运行该第一音频对应的应用程序,并播放第一音频。In another example, the target object includes the first audio, and when the second electronic device includes an application corresponding to the first audio, the second electronic device can run the application corresponding to the first audio and play the first audio. .

示例性地,目标对象包括第一视频,在第二电子设备中不包括第一音频对应的应用程序时,第二电子设备可以显示第一音频对应的应用程序的镜像模拟窗口,第二电子设备可以通过该镜像模拟窗口播放第一音频。For example, the target object includes the first video, and when the second electronic device does not include the application program corresponding to the first audio, the second electronic device can display the mirror simulation window of the application program corresponding to the first audio, and the second electronic device The first audio can be played through this mirror simulation window.

在又一种示例中,目标对象包括应用标识,在第二电子设备中包括应用标识对应的应用程序时,第二电子设备可以运行该应用标识对应的应用程序,并继续显示第一电子设备中的应用标识对应的应用程序的运行界面。In another example, the target object includes an application identifier. When the second electronic device includes an application program corresponding to the application identifier, the second electronic device can run the application program corresponding to the application identifier and continue to display the application program corresponding to the application identifier. The application identifier corresponds to the running interface of the application.

示例性地,假设第一电子设备正在显示第一应用程序的第一界面,在第二电子接收到第一应用程序的应用标识之后,在第二电子设备中包含第一应用程序的情况下,第二电子设备可以继续显示第一界面。For example, assuming that the first electronic device is displaying the first interface of the first application program, after the second electronic device receives the application identification of the first application program and the first application program is included in the second electronic device, The second electronic device can continue to display the first interface.

示例性地,目标对象包括应用标识,第二电子设备不包括应用标识对应的应用程序时,第二电子设备可以显示应用标识对应的应用程序的镜像模拟窗口。For example, the target object includes an application identifier, and when the second electronic device does not include an application program corresponding to the application identifier, the second electronic device may display a mirror simulation window of the application program corresponding to the application identifier.

在本申请提供的数据传输方法中,第二电子设备可以接收第一电子设备发送的目标对象,并通过目标对象对应的处理方式显示目标对象,提升了第二电子设备显示目标对象的灵活性。In the data transmission method provided by this application, the second electronic device can receive the target object sent by the first electronic device and display the target object through a processing method corresponding to the target object, which improves the flexibility of the second electronic device in displaying the target object.

可选地,本申请实施例中,本申请实施例提供的数据传输方法还包括下述的步骤501或步骤502。Optionally, in the embodiment of the present application, the data transmission method provided by the embodiment of the present application further includes the following step 501 or step 502.

步骤501、在接收到第一电子设备发送的目标对象,且未检测到光标的情况下,第二电子设备不显示上述目标对象。Step 501: When the target object sent by the first electronic device is received and the cursor is not detected, the second electronic device does not display the target object.

本申请实施例中,第二电子设备可以根据光标的位置,显示目标对象,所以在第二电子设备的屏幕中不存在光标时,第二电子设备可以不显示目标对象。In this embodiment of the present application, the second electronic device may display the target object according to the position of the cursor. Therefore, when the cursor does not exist on the screen of the second electronic device, the second electronic device may not display the target object.

可选地,本申请实施例中,在第二电子设备的屏幕中不存在光标时,第二电子设备可以显示提示信息,以提示用户第二电子设备的屏幕中不存在光标,不显示目标对象。Optionally, in this embodiment of the present application, when there is no cursor on the screen of the second electronic device, the second electronic device can display prompt information to remind the user that there is no cursor on the screen of the second electronic device and no target object is displayed. .

步骤502、在检测到光标的情况下,第二电子设备在光标位置显示上述目标对象。Step 502: When a cursor is detected, the second electronic device displays the above-mentioned target object at the cursor position.

本申请实施例中,第二电子设备在接收到第一电子设备发送的目标对象之后,第二电子设备可以将当前焦点,即上述光标在第二电子设备屏幕中的位置,确定为目标对象的显示位置。In this embodiment of the present application, after the second electronic device receives the target object sent by the first electronic device, the second electronic device can determine the current focus, that is, the position of the cursor on the screen of the second electronic device, as the target object. Show location.

可选地,本申请实施例中,上述光标可以位于第二电子设备中的任一应用程序的任一界面中或桌面中。Optionally, in this embodiment of the present application, the cursor may be located in any interface of any application program or on the desktop of the second electronic device.

可选地,本申请实施例中,上述第二电子设备可以为一个或多个。Optionally, in this embodiment of the present application, there may be one or more second electronic devices.

在一种示例中,上述一个第二电子设备可以接收一个第一电子设备发送的第一内容。In an example, the above-mentioned second electronic device can receive the first content sent by a first electronic device.

在另一种示例种,上述一个第二电子设备可接收多个第一电子设备发送的第一内容。In another example, the above-mentioned one second electronic device can receive the first content sent by multiple first electronic devices.

示例性地,上述多个第一电子设备发送的第一内容可以相同或不同。For example, the first content sent by the plurality of first electronic devices may be the same or different.

在又一种示例种,示例性地,上述多个第二电子设备可以同时接收一个第一电子设备发送的第一内容。In yet another example, illustratively, the plurality of second electronic devices may receive the first content sent by one first electronic device at the same time.

可选地,本申请实施例中,在第二电子设备显示桌面的情况下,第二电子设备将第一内容转化为文本文档,并在桌面中光标的显示位置,显示文本文档。Optionally, in this embodiment of the present application, when the second electronic device displays the desktop, the second electronic device converts the first content into a text document, and displays the text document at the display position of the cursor on the desktop.

可以理解,由于桌面中显示的均为应用图标或文档文件,所以在光标位于桌面的情况下,第二电子设备在接收到第一内容之后,第二电子设备可以将第一内容复制在空白文本文档中,以得到第一文档,并将该第一文档显示在光标对应的显示位置上。It can be understood that since all displayed on the desktop are application icons or document files, when the cursor is located on the desktop, after the second electronic device receives the first content, the second electronic device can copy the first content in the blank text document to obtain the first document, and display the first document at the display position corresponding to the cursor.

可选地,本申请实施例中,在第二电子设备得到第一文档之后,第二电子设备可以将第一文档显示在桌面中的任意空置图标位上。Optionally, in this embodiment of the present application, after the second electronic device obtains the first document, the second electronic device can display the first document on any vacant icon position on the desktop.

可选地,本申请实施例中,在第二电子设备得到第一文档之后,第二电子设备可以基于第一内容对第一文档进行自动重命名,并将重命名后的第一文档显示在桌面中。Optionally, in this embodiment of the present application, after the second electronic device obtains the first document, the second electronic device can automatically rename the first document based on the first content, and display the renamed first document in in desktop.

本申请实施例中,第二电子设备可以基于光标的位置,确定目标对象的显示位置,提升了第二电子设备显示目标对象的灵活性。In the embodiment of the present application, the second electronic device can determine the display position of the target object based on the position of the cursor, which improves the flexibility of the second electronic device in displaying the target object.

可选地,本申请实施例中,本申请实施例提供的数据传输方法还包括下述的步骤601和步骤602。Optionally, in the embodiment of the present application, the data transmission method provided by the embodiment of the present application further includes the following steps 601 and 602.

步骤601、第二电子设备接收第一电子设备发送的第一消息。Step 601: The second electronic device receives the first message sent by the first electronic device.

本申请实施例中,第二电子设备可以通过有线连接方式或无线连接方式接受第一电子设备发送的第一消息。In this embodiment of the present application, the second electronic device may receive the first message sent by the first electronic device through a wired connection or a wireless connection.

可选地,本申请实施例中,上述第一消息可以为第一电子设备在发送目标对象的同时将第一消息发送至第二电子设备中,以使得第二电子设备可以同时接收第一消息和目标对象;或者,第一电子设备可以基于用户的输入先发送第一消息,然后在发送目标对象,以使得第二电子设备可以先接收第一消息,在接收目标对象。Optionally, in this embodiment of the present application, the above-mentioned first message may be that the first electronic device sends the first message to the second electronic device while sending the target object, so that the second electronic device can receive the first message at the same time. and the target object; or, the first electronic device can first send the first message based on the user's input, and then send the target object, so that the second electronic device can first receive the first message and then receive the target object.

本申请实施例中,上述第一消息中包含目标对象的至少一种显示方式。In this embodiment of the present application, the first message includes at least one display mode of the target object.

步骤602、第二电子设备基于第一消息,确定目标对象的显示方式。Step 602: The second electronic device determines the display mode of the target object based on the first message.

本申请实施例中,上述显示方式包括窗口显示或运行目标对象对应的应用程序显示。In the embodiment of the present application, the above-mentioned display method includes window display or application program display corresponding to the running target object.

本申请实施例中,第二电子设备接收到第一消息之后,第二电子设备可以从第一消息中解析出目标对象的显示方式,从而确定目标对象的显示方式,并通过该显示方式显示目标对象。In the embodiment of the present application, after the second electronic device receives the first message, the second electronic device can parse the display mode of the target object from the first message, thereby determining the display mode of the target object, and display the target through the display mode. object.

示例性地,电子设备可以通过解码器从第一消息中解析出目标对象的显示方式。For example, the electronic device can parse the display mode of the target object from the first message through a decoder.

本申请实施例中,第二电子设备可以从第一消息中确定目标对象的显示方式,提升了第二电子设备显示目标对象的灵活性。In the embodiment of the present application, the second electronic device can determine the display mode of the target object from the first message, which improves the flexibility of the second electronic device in displaying the target object.

示例性地,在上述步骤401之前,本申请实施例提供的数据传输方法还包括下述的步骤701;并且上述步骤401中的“在接收到所述第一电子设备发送的目标对象的情况下,在光标位置显示所述目标对象”具体可以通过下述的步骤401a实现。Exemplarily, before the above-mentioned step 401, the data transmission method provided by the embodiment of the present application also includes the following step 701; and in the above-mentioned step 401, "in the case of receiving the target object sent by the first electronic device , display the target object at the cursor position" can be specifically implemented through the following step 401a.

步骤701、第二电子设备显示多媒体文件编辑界面。Step 701: The second electronic device displays a multimedia file editing interface.

可选地,本申请实施例中,第二电子设备中的多媒体文件编辑界面中包括多媒体文件,该多媒体文件中包含上述光标。Optionally, in this embodiment of the present application, the multimedia file editing interface in the second electronic device includes a multimedia file, and the multimedia file includes the above-mentioned cursor.

本申请实施例中,第二电子设备可以基于用户的输入,运行多媒体文件编辑应用程序,从而显示多媒体文件编辑界面。In this embodiment of the present application, the second electronic device can run a multimedia file editing application based on the user's input, thereby displaying a multimedia file editing interface.

步骤401a、在接收到第一电子设备发送的文本的情况下,第二电子设备在多媒体文件编辑界面的光标位置显示文本。Step 401a: When receiving the text sent by the first electronic device, the second electronic device displays the text at the cursor position of the multimedia file editing interface.

示例性地,第二电子设备可以在上述多媒体文件中光标的显示位置,插入第一内容,并显示插入第一文本后的多媒体文件。For example, the second electronic device can insert the first content at the display position of the cursor in the multimedia file, and display the multimedia file with the first text inserted.

可选地,本申请实施例中,上述第一内容可以包括文档文件、视频文件、图片文件。Optionally, in this embodiment of the present application, the above-mentioned first content may include document files, video files, and picture files.

示例性地,第二电子设备可以在文档界面中显示文档文件;或者,第二电子设备可以在视频界面中显示视频文件;或者,第二电子设备可以在图库界面中显示图片文件。For example, the second electronic device may display document files in the document interface; or the second electronic device may display video files in the video interface; or the second electronic device may display picture files in the gallery interface.

示例性地,结合图2,如图5所示,假设上述多媒体文件为文档文件,该文档文件为“今夕何夕兮,搴舟中流。今日何日兮,得与流子同舟。蒙羞被好兮,不訾诟耻。心几烦而不绝兮,得知流子”。此时,第一光标所在的位置在心几烦而不绝兮,得知流子的后方,而且第一内容为“山有木兮木有枝,心悦君兮君不知”;如此,第二电子设备可以直接将该“山有木兮木有枝,心悦君兮君不知”,插入在“心几烦而不绝兮,得知流子”的后面;也就是说,第二电子设备中显示的内容为“今夕何夕兮,搴舟中流。今日何日兮,得与流子同舟。蒙羞被好兮,不訾诟耻。心几烦而不绝兮,得知流子。山有木兮木有枝,心悦君兮君不知”,此时,用户可以对“心几烦而不绝兮,得知流子。山有木兮木有枝,心悦君兮君不知。”For example, in conjunction with Figure 2, as shown in Figure 5, it is assumed that the above-mentioned multimedia file is a document file, and the document file is "What night is it today, I am in the boat on the river. What day is it today, I have to be in the same boat. I am ashamed to be He is so good that he is not ashamed of himself. His heart is troubled but he is not tired of it, and he knows that he is a wanderer." At this time, the position of the first cursor is in my heart, and I know Liuzi's rear, and the first content is "There are trees in the mountains, and the trees have branches, and I am happy with you, but you don't know"; in this way, the second The electronic device can directly insert the phrase "There are trees in the mountains, and the trees have branches, and the heart is happy, but you don't know it" behind "The heart is troubled but not endless, and the flow is known"; that is to say, the second electronic device The content shown in it is "Today, what evening is coming, the boat is in the middle of the river. What day is it today, I have to be in the same boat with the Liuzi. I am humiliated and treated well, and I don't feel ashamed. My heart is troubled but not endless, I know the Liuzi." There are trees in the mountains, and the trees have branches, and my heart is happy to you, but you don’t know it." At this time, the user can learn about "How often your heart is troubled but you don’t know it." There are trees in the mountains, and the trees have branches, and your heart is happy to you, but you don’t know it. .”

本申请实施例中,第二电子设备可以在多媒体文件编辑界面的光标位置显示文本,例如插入文本,从而第二电子设备可以得到插入文本后的多媒体文件,如此,提升了电子设备得到多媒体文件的多样性。In the embodiment of the present application, the second electronic device can display text at the cursor position of the multimedia file editing interface, for example, insert text, so that the second electronic device can obtain the multimedia file after inserting the text. In this way, the electronic device can obtain the multimedia file. Diversity.

示例性地,在上述步骤401之前,本申请实施例提供的数据传输方法还包括下述的步骤801;并且上述步骤401中的“在接收到所述第一电子设备发送的目标对象的情况下,在光标位置显示所述目标对象”具体可以通过下述的步骤401b和步骤401c实现。Exemplarily, before the above-mentioned step 401, the data transmission method provided by the embodiment of the present application also includes the following step 801; and in the above-mentioned step 401, "In the case of receiving the target object sent by the first electronic device , display the target object at the cursor position" can be specifically implemented through the following steps 401b and 401c.

步骤801、第二电子设备显示桌面界面。Step 801: The second electronic device displays a desktop interface.

示例性地,第二电子设备可以基于用户的输入从上述多媒体文件编辑界面中回退至桌面界面。For example, the second electronic device can return to the desktop interface from the above multimedia file editing interface based on the user's input.

步骤401b、在接收到第一电子设备发送的文本的情况下,第二电子设备将文本转化为文本文档。Step 401b: When receiving the text sent by the first electronic device, the second electronic device converts the text into a text document.

步骤401c、第二电子设备在桌面界面的光标位置显示文本文档。Step 401c: The second electronic device displays the text document at the cursor position of the desktop interface.

需要说明的是,具体实现过程可以详见上述实施例,为避免重复,此处不再赘述。It should be noted that the specific implementation process can be found in the above-mentioned embodiments. To avoid repetition, details will not be described here.

本申请实施例中,在第二电子设备显示桌面的情况下,第二电子设备可以将文本转化为文本文档保存至桌面中,提升了第二电子设备接收文本的灵活性。In the embodiment of the present application, when the second electronic device displays the desktop, the second electronic device can convert the text into a text document and save it to the desktop, which improves the flexibility of the second electronic device in receiving text.

可选地,本申请实施例中,上述步骤401具体可以通过下述的步骤901实现。Optionally, in this embodiment of the present application, the above step 401 can be specifically implemented through the following step 901.

步骤901、在接收到第一电子设备发送的目标对象的情况下,若第二电子设备未安装目标对象对应的应用程序,则第二电子设备显示目标对象的镜像模拟窗口。Step 901: Upon receiving the target object sent by the first electronic device, if the second electronic device does not install the application program corresponding to the target object, the second electronic device displays a mirror simulation window of the target object.

本申请实施例中,若第二电子设备未安装目标对象对应的应用程序,第二电子设备可以向第一电子设备发送投屏请求,从而第二电子设备可以目标对象的镜像模拟窗口。In this embodiment of the present application, if the application program corresponding to the target object is not installed on the second electronic device, the second electronic device can send a screen casting request to the first electronic device, so that the second electronic device can simulate the window of the target object's mirror image.

需要说明的是,上述镜像模拟窗口为第二电子设备中显示的窗口不具备操作权限。It should be noted that the above-mentioned mirror simulation window is a window displayed on the second electronic device and does not have operating permissions.

可选地,本申请实施例中,上述步骤401具体可以通过下述的步骤1001实现。Optionally, in this embodiment of the present application, the above step 401 can be specifically implemented through the following step 1001.

步骤1001、在接收到第一电子设备发送的目标对象的情况下,若第二电子设备安装有目标对象对应的应用程序,则第二电子设备在目标对象对应的应用程序的应用界面显示目标对象。Step 1001. Upon receiving the target object sent by the first electronic device, if the second electronic device has an application program corresponding to the target object installed, the second electronic device displays the target object on the application interface of the application program corresponding to the target object. .

本申请实施例中,在第二电子设备中安装目标对象对应的应用程序的情况下,第二电子设备在目标对象对应的应用程序的应用界面显示目标对象可以理解为,第二电子设备可以继续执行目标对象对应的应用程序在第一电子设备中的操作。In the embodiment of the present application, when the application program corresponding to the target object is installed in the second electronic device, it can be understood that the second electronic device displays the target object on the application interface of the application program corresponding to the target object, and the second electronic device can continue Execute the operation of the application program corresponding to the target object in the first electronic device.

示例性地,如图6所示,第二电子设备在接收到拍摄应用标识、且第二电子设备中安装有拍摄应用标识对应的应用程序的情况下,第二电子设备可以运行拍摄应用程序,并显示拍摄预览界面14。For example, as shown in Figure 6, when the second electronic device receives the photographing application identifier and the application program corresponding to the photographing application identifier is installed in the second electronic device, the second electronic device can run the photographing application program, And display the shooting preview interface 14.

示例性地,如图7所示,第二电子设备接收到图库界面,且第二电子设备中安装有图库应用程序的情况下,第二电子设备可以运行图库应用程序,并显示图库界面15。For example, as shown in FIG. 7 , when the second electronic device receives the gallery interface and the gallery application is installed in the second electronic device, the second electronic device can run the gallery application and display the gallery interface 15 .

示例性地,假设第一电子设备正在通过笔记应用程序编辑笔记,第一电子设备将笔记应用程序分享至第二电子设备之后,第二电子设备可以继续在与第一电子设备同样的编辑位置处继续进行编辑。For example, assuming that the first electronic device is editing notes through the note application, after the first electronic device shares the note application to the second electronic device, the second electronic device can continue to be at the same editing position as the first electronic device Continue editing.

本申请实施例中,第二电子设备可以基于第二电子设备中是否安装目标对象对应的应用程序,从而确定目标对象的显示方式,提升了电子设备处理目标对象的灵活性。In the embodiment of the present application, the second electronic device can determine the display mode of the target object based on whether the application program corresponding to the target object is installed in the second electronic device, thereby improving the flexibility of the electronic device in processing the target object.

示例性地,下面通过第一电子设备与第二电子设置之间的交互,来对本申请提供的数据传输方法进行具体的解释说明,具体可以通过下述的步骤20至步骤24实现。Illustratively, the data transmission method provided by this application is specifically explained below through the interaction between the first electronic device and the second electronic setting, which can be implemented through the following steps 20 to 24.

步骤20、第一电子设备显示第一界面。Step 20: The first electronic device displays the first interface.

步骤21、第一电子设备接收对目标对象和第二设备标识的第一输入。Step 21: The first electronic device receives a first input of the target object and the second device identification.

步骤22、第一电子设备与第二设备标识对应的第二电子设备通信连接的情况下,第一电子设备响应于第一输入,向第二电子设备传输第一内容。Step 22: When the first electronic device is communicatively connected to the second electronic device corresponding to the second device identification, the first electronic device transmits the first content to the second electronic device in response to the first input.

步骤23、第二电子设备接收第一电子设备发送的第一内容,并在第二电子设备中的第一光标对应的位置,显示目标对象。Step 23: The second electronic device receives the first content sent by the first electronic device, and displays the target object at a position corresponding to the first cursor in the second electronic device.

可选地,本申请实施例中,在上述步骤20之前,本申请实施例提供的数据传输还包括下述的步骤30。Optionally, in the embodiment of the present application, before the above step 20, the data transmission provided by the embodiment of the present application further includes the following step 30.

步骤30、第一电子设备建立与第二电子设备之间的通信连接。Step 30: The first electronic device establishes a communication connection with the second electronic device.

可选地,本申请实施例中,第一电子设备同样可以在上述步骤20之后,建立与第二电子设备之间的通信连接。具体的执行时机,可以根据实际使用情况确定,本申请实施例不作限制。Optionally, in this embodiment of the present application, the first electronic device can also establish a communication connection with the second electronic device after the above step 20. The specific execution timing can be determined according to actual usage conditions, and is not limited by the embodiments of this application.

需要说明的是,本申请实施例提供的数据传输方法,执行主体可以为数据传输装置,或者电子设备,或者还可以为电子设备中的功能模块或实体。本申请实施例中以数据传输装置执行数据传输方法为例,说明本申请实施例提供的数据传输装置。It should be noted that, for the data transmission method provided by the embodiments of the present application, the execution subject may be a data transmission device, an electronic device, or a functional module or entity in the electronic device. In the embodiment of the present application, a data transmission device performing a data transmission method is used as an example to illustrate the data transmission device provided by the embodiment of the present application.

图8示出了本申请实施例中涉及的数据传输装置的一种可能的结构示意图。如图8所示,该数据传输装置70可以包括:显示模块71、接收模块72和发送模块73。Figure 8 shows a possible structural diagram of the data transmission device involved in the embodiment of the present application. As shown in FIG. 8 , the data transmission device 70 may include: a display module 71 , a receiving module 72 and a sending module 73 .

其中,所述显示模块,用于显示第一界面,第一界面包括目标对象和至少一个电子设备标识;至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件。接收模块,用于接收对显示模块显示的目标对象和至少一个电子设备标识中的第二电子设备标识的第一输入。发送模块,用于响应于接收模块接收的第一输入,将目标对象发送至第二电子设备标识对应的第二电子设备;其中,第二电子设备执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。Wherein, the display module is used to display a first interface. The first interface includes a target object and at least one electronic device identifier; the electronic device corresponding to the at least one electronic device identifier and the first electronic device satisfy the quick connection condition. The receiving module is configured to receive a first input of the target object displayed by the display module and the second electronic device identification among the at least one electronic device identification. a sending module, configured to send the target object to the second electronic device corresponding to the second electronic device identification in response to the first input received by the receiving module; wherein the second electronic device performs at least one of the following: displaying the target object at the cursor position , display the mirror simulation window of the target object, and display the target object in the application interface of the application program corresponding to the target object.

在一种可能的实现方式中,在至少一个电子设备标识对应的电子设备的用户账号与第一电子设备的用户账号相匹配的情况下,确定至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件;用户账号为电子设备登录账号、应用程序登录账号或者应用程序套件登录账号。In a possible implementation, when the user account of the electronic device corresponding to the at least one electronic device identification matches the user account of the first electronic device, it is determined that the electronic device corresponding to the at least one electronic device identification matches the user account of the first electronic device. The device meets the conditions for quick connection; the user account is an electronic device login account, an application login account, or an application suite login account.

在一种可能的实现方式中,上述第二电子设备在光标位置显示目标对象的情况下,目标对象包括以下至少一项:文本、图像、音频、视频、文档。In a possible implementation manner, when the second electronic device displays the target object at the cursor position, the target object includes at least one of the following: text, image, audio, video, and document.

在一种可能的实现方式中,上述第二电子设备显示目标对象的镜像模拟窗口的情况下,目标对象为应用界面、任务管理器的任务窗口或者第三电子设备的控制窗口。In a possible implementation manner, when the second electronic device displays a mirror simulation window of a target object, the target object is an application interface, a task window of a task manager, or a control window of a third electronic device.

在一种可能的实现方式中,上述第二电子设备在目标对象对应的应用程序的应用界面显示目标对象的情况下,目标对象在第一界面处于编辑状态,目标对象包括以下至少一项:图像、音频、视频、文档。In a possible implementation manner, when the above-mentioned second electronic device displays the target object on the application interface of the application program corresponding to the target object, the target object is in the editing state on the first interface, and the target object includes at least one of the following: image , audio, video, documents.

在一种可能的实现方式中,上述显示模块71,具体用于响应于第一输入,显示至少两个处理选项。上述接收模块72,具体用于接收对至少两个处理选项中的目标处理选项的第二输入。上述发送模块73,具体用于响应于第二输入,将目标处理选项对应的处理信息和目标对象发送至第二电子设备;处理信息用于指示第二电子设备对目标对象的处理方式。In a possible implementation, the above-mentioned display module 71 is specifically configured to display at least two processing options in response to the first input. The above-mentioned receiving module 72 is specifically configured to receive a second input to a target processing option among at least two processing options. The above-mentioned sending module 73 is specifically configured to send processing information corresponding to the target processing option and the target object to the second electronic device in response to the second input; the processing information is used to indicate the processing method of the target object by the second electronic device.

本申请实施例提供一种数据传输装置,由于数据传输装置可以直接在第一界面中显示至少一个设备标识和目标对象,并可以直接通过该至少一个设备标识向至少一个设备标识中的第二设备标识对应的第二电子设备进行数据传输,如此,数据传输装置在第一界面中确定目标对象之后,无需通过快传应用程序,就可以直接在第一界面中就可以进行数据传输,避免了数据传输装置之间数据传输的繁琐操作。The embodiment of the present application provides a data transmission device, because the data transmission device can directly display at least one device identification and the target object in the first interface, and can directly use the at least one device identification to send data to the second device in the at least one device identification. The second electronic device corresponding to the identification performs data transmission. In this way, after the data transmission device determines the target object in the first interface, the data can be transmitted directly in the first interface without going through the quick transfer application, thus avoiding the need for data transmission. The cumbersome operation of data transmission between transmission devices.

图9示出了本申请实施例中涉及的数据传输装置的另一种可能的结构示意图。如图9所示,该数据传输装置80可以包括:处理模块81。Figure 9 shows another possible structural schematic diagram of the data transmission device involved in the embodiment of the present application. As shown in FIG. 9 , the data transmission device 80 may include: a processing module 81 .

其中,处理模块81,用于在接收到第一电子设备发送的目标对象的情况下,执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。Among them, the processing module 81 is used to perform at least one of the following when receiving the target object sent by the first electronic device: display the target object at the cursor position, display the mirror simulation window of the target object, and display the application corresponding to the target object. The program's application interface displays the target object.

在一种可能的实现方式中,本申请实施例提供的数据传输装置80还包括:显示模块;显示模块,用于在接收到第一电子设备发送的目标对象,且未检测到光标的情况下,不显示目标对象;在检测到光标的情况下,在光标位置显示目标对象。In a possible implementation, the data transmission device 80 provided by the embodiment of the present application also includes: a display module; a display module configured to receive a target object sent by the first electronic device and no cursor is detected. , the target object is not displayed; when the cursor is detected, the target object is displayed at the cursor position.

在一种可能的实现方式中,本申请实施例提供的数据传输装置80还包括:接收模块和确定模块。上述接收模块,用于接收第一电子设备发送的第一消息。确定模块,用于基于第一消息,确定目标对象的显示方式;其中,显示方式包括窗口显示或运行目标对象对应的应用程序显示。In a possible implementation, the data transmission device 80 provided by the embodiment of the present application further includes: a receiving module and a determining module. The above-mentioned receiving module is used to receive the first message sent by the first electronic device. The determination module is configured to determine a display mode of the target object based on the first message; wherein the display mode includes window display or running an application program corresponding to the target object.

在一种可能的实现方式中,上述目标对象为文本;上述显示模块,还用于在接收到所述第一电子设备发送的目标对象的情况下,在光标位置显示所述目标对象之前,显示多媒体文件编辑界面。上述显示模块,具体用于在接收到所述第一电子设备发送的文本的情况下,在所述多媒体文件编辑界面的光标位置显示所述文本。In a possible implementation, the target object is text; the display module is further configured to, upon receiving the target object sent by the first electronic device, display the target object at the cursor position before displaying the target object. Multimedia file editing interface. The above display module is specifically configured to display the text at the cursor position of the multimedia file editing interface when receiving the text sent by the first electronic device.

在一种可能的实现方式中,上述目标对象为文本;上述显示模块,还用于在接收到所述第一电子设备发送的目标对象的情况下,在光标位置显示所述目标对象之前,显示桌面界面。上述显示模块,具体用于在接收到所述第一电子设备发送的文本的情况下,将所述文本转化为文本文档;在所述桌面界面的光标位置显示所述文本文档。In a possible implementation, the target object is text; the display module is further configured to, upon receiving the target object sent by the first electronic device, display the target object at the cursor position before displaying the target object. Desktop interface. The above display module is specifically configured to, when receiving a text sent by the first electronic device, convert the text into a text document; and display the text document at the cursor position of the desktop interface.

本申请实施例提供一种数据传输装置,数据传输装置可以接收第一电子设备发送的目标对象,并通过目标对象对应的处理方式显示目标对象,提升了数据传输装置显示目标对象的灵活性。Embodiments of the present application provide a data transmission device. The data transmission device can receive a target object sent by a first electronic device and display the target object through a processing method corresponding to the target object, which improves the flexibility of the data transmission device in displaying the target object.

本申请实施例中的数据传输装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The data transmission device in the embodiment of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than the terminal. For example, the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), or augmented reality (AR)/virtual reality (virtual reality, VR) equipment, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., and can also be servers, network attached storage (Network Attached Storage, NAS), personal computer (PC), television (TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.

本申请实施例中的数据传输装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The data transmission device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.

本申请实施例提供的数据传输装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。The data transmission device provided by the embodiments of the present application can implement each process implemented by the above method embodiments. To avoid repetition, details will not be described here.

可选地,如图10所示,本申请实施例还提供一种电子设备90,包括处理器91和存储器92,存储器92上存储有可在所述处理器91上运行的程序或指令,该程序或指令被处理器91执行时实现上述数据传输方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 10, this embodiment of the present application also provides an electronic device 90, including a processor 91 and a memory 92. The memory 92 stores programs or instructions that can be run on the processor 91. When the program or instruction is executed by the processor 91, each step of the above-mentioned data transmission method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, the details will not be described here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图11为实现本申请实施例的一种电子设备的硬件结构示意图;其中,该电子设备可以为第一电子设备或第二电子设备。FIG. 11 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application; the electronic device may be a first electronic device or a second electronic device.

该第一电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The first electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor. 110 and other parts.

本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图11中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 11 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,显示单元106,用于显示第一界面,第一界面包括目标对象和至少一个电子设备标识;至少一个电子设备标识对应的电子设备与第一电子设备满足快捷连接条件。用户输入单元107,用于接收对目标对象和至少一个电子设备标识中的第二电子设备标识的第一输入。处理器110,用于响应于第一输入,将目标对象发送至第二电子设备标识对应的第二电子设备;其中,第二电子设备执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。The display unit 106 is used to display a first interface. The first interface includes a target object and at least one electronic device identifier; the electronic device corresponding to the at least one electronic device identifier satisfies the quick connection condition with the first electronic device. The user input unit 107 is configured to receive a first input of a target object and a second electronic device identification among the at least one electronic device identification. The processor 110 is configured to send the target object to the second electronic device corresponding to the second electronic device identification in response to the first input; wherein the second electronic device performs at least one of the following: displaying the target object at the cursor position, displaying the target The mirror simulation window of the object displays the target object in the application interface of the application corresponding to the target object.

本申请实施例提供一种第一电子设备,由于第一电子设备可以直接在第一界面中显示至少一个设备标识和目标对象,并可以直接通过该至少一个设备标识向至少一个设备标识中的第二设备标识对应的第二电子设备进行数据传输,如此,第一电子设备在第一界面中确定目标对象之后,无需通过快传应用程序,就可以直接在第一界面中就可以进行数据传输,避免了电子设备之间数据传输的繁琐操作。Embodiments of the present application provide a first electronic device, because the first electronic device can directly display at least one device identification and the target object in the first interface, and can directly use the at least one device identification to send information to the third device identification in the at least one device identification. The second electronic device corresponding to the two device identifiers performs data transmission. In this way, after the first electronic device determines the target object in the first interface, it can directly transmit data in the first interface without going through the quick transfer application. This avoids the cumbersome operation of data transmission between electronic devices.

可选地,本申请实施例中,上述显示单元106,具体用于响应于第一输入,显示至少两个处理选项。上述用户输入单元107,具体用于接收对至少两个处理选项中的目标处理选项的第二输入。上述处理器110,具体用于响应于第二输入,将目标处理选项对应的处理信息和目标对象发送至第二电子设备;处理信息用于指示第二电子设备对目标对象的处理方式。Optionally, in this embodiment of the present application, the above-mentioned display unit 106 is specifically configured to display at least two processing options in response to the first input. The above-mentioned user input unit 107 is specifically configured to receive a second input to a target processing option among at least two processing options. The above-mentioned processor 110 is specifically configured to respond to the second input and send processing information corresponding to the target processing option and the target object to the second electronic device; the processing information is used to instruct the second electronic device to process the target object.

该第二电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The second electronic device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110 and other parts.

本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图11中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 11 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,上述处理器110,用于在接收到第一电子设备发送的目标对象的情况下,执行以下至少一项:在光标位置显示目标对象、显示目标对象的镜像模拟窗口、在目标对象对应的应用程序的应用界面显示目标对象。Wherein, the above-mentioned processor 110 is configured to, upon receiving the target object sent by the first electronic device, perform at least one of the following: display the target object at the cursor position, display the mirror simulation window of the target object, and display the target object in the target object corresponding to the target object. The application's application interface displays the target object.

本申请实施例提供一种第二电子设备,第二电子设备可以接收第一电子设备发送的目标对象,并通过目标对象对应的处理方式显示目标对象,提升了第二电子设备显示目标对象的灵活性。Embodiments of the present application provide a second electronic device. The second electronic device can receive a target object sent by the first electronic device and display the target object through a processing method corresponding to the target object, which improves the flexibility of the second electronic device in displaying the target object. sex.

可选地,本申请实施例中,上述显示单元106,用于在接收到第一电子设备发送的目标对象,且未检测到光标的情况下,不显示目标对象;在检测到光标的情况下,在光标位置显示目标对象。Optionally, in this embodiment of the present application, the above-mentioned display unit 106 is configured to not display the target object when the target object sent by the first electronic device is received and the cursor is not detected; when the cursor is detected , displays the target object at the cursor position.

可选地,本申请实施例中,上述处理器110,还用于接收第一电子设备发送的第一消息;基于第一消息,确定目标对象的显示方式;其中,显示方式包括窗口显示或运行目标对象对应的应用程序显示。Optionally, in this embodiment of the present application, the above-mentioned processor 110 is also configured to receive a first message sent by the first electronic device; based on the first message, determine the display mode of the target object; wherein the display mode includes window display or running The application corresponding to the target object is displayed.

可选地,本申请实施例中,上述目标对象为文本;上述显示单元106,还用于在接收到第一电子设备发送的目标对象的情况下,在光标位置显示目标对象之前,显示多媒体文件编辑界面;并在接收到第一电子设备发送的文本的情况下,在多媒体文件编辑界面的光标位置显示文本。Optionally, in the embodiment of the present application, the above-mentioned target object is text; the above-mentioned display unit 106 is also configured to, when receiving the target object sent by the first electronic device, display the multimedia file before displaying the target object at the cursor position. editing interface; and when receiving the text sent by the first electronic device, display the text at the cursor position of the multimedia file editing interface.

可选地,本申请实施例中,上述目标对象为文本;上述显示单元106,还用于,在接收到第一电子设备发送的目标对象的情况下,在光标位置显示目标对象之前,显示桌面界面;上述处理器110,具体用于在接收到第一电子设备发送的文本的情况下,将文本转化为文本文档。上述显示单元106,具体用于在桌面界面的光标位置显示文本文档。Optionally, in the embodiment of the present application, the above-mentioned target object is text; the above-mentioned display unit 106 is also configured to, when receiving the target object sent by the first electronic device, display the desktop before displaying the target object at the cursor position. Interface; the above-mentioned processor 110 is specifically configured to convert the text into a text document when receiving a text sent by the first electronic device. The above-mentioned display unit 106 is specifically used to display a text document at the cursor position of the desktop interface.

本申请实施例提供的电子设备能够实现上述方法实施例实现的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The electronic device provided by the embodiments of the present application can implement each process implemented by the above method embodiments, and can achieve the same technical effect. To avoid duplication, the details will not be described here.

本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。For specific beneficial effects of various implementation methods in this embodiment, please refer to the beneficial effects of corresponding implementation methods in the above method embodiments. To avoid duplication, they will not be described again here.

应理解的是,本申请实施例中,输入单元104可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. The graphics processor 1041 is responsible for the image capture device (such as Process the image data of still pictures or videos obtained by the camera). The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072 . Touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.

存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 109 may include volatile memory or nonvolatile memory, or memory 109 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.

处理器110可包括一个或多个处理单元;可选的,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 110 .

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above method embodiments is implemented and the same technology can be achieved. The effect will not be described here to avoid repetition.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement various processes of the above method embodiments. , and can achieve the same technical effect, so to avoid repetition, they will not be described again here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述数据传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above data transmission method embodiment, and can achieve the same technical effect. , to avoid repetition, will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (15)

1. A data transmission method, applied to a first electronic device, the method comprising:
displaying a first interface, wherein the first interface comprises a target object and at least one electronic equipment identifier; the electronic equipment corresponding to the at least one electronic equipment identifier and the first electronic equipment meet the shortcut connection condition;
receiving a first input of a second electronic device identification of the target object and the at least one electronic device identification;
responding to the first input, and sending the target object to a second electronic device corresponding to the second electronic device identifier;
wherein the second electronic device performs at least one of: and displaying the target object at the cursor position, displaying a mirror image simulation window of the target object, and displaying the target object on an application interface of an application program corresponding to the target object.
2. The method according to claim 1, wherein in the case that the user account of the electronic device corresponding to the at least one electronic device identifier matches the user account of the first electronic device, determining that the electronic device corresponding to the at least one electronic device identifier and the first electronic device meet the shortcut connection condition; the user account is an electronic equipment login account, an application program login account or an application program suite login account.
3. The method of claim 1, wherein the second electronic device, in the case where the target object is displayed at the cursor position, the target object comprises at least one of: text, images, audio, video, documents.
4. The method of claim 1, wherein the target object is an application interface, a task window of a task manager, or a control window of a third electronic device, in a case where the second electronic device displays a mirrored simulation window of the target object.
5. The method according to claim 1, wherein, in a case where the second electronic device displays the target object on the application interface of the application program corresponding to the target object, the target object is in an editing state on the first interface, and the target object includes at least one of: image, audio, video, document.
6. The method of claim 1, wherein the transmitting the target object to the second electronic device corresponding to the second electronic device identification in response to the first input comprises:
displaying at least two processing options in response to the first input;
Receiving a second input to a target processing option of the at least two processing options;
transmitting processing information corresponding to the target processing option and the target object to the second electronic equipment in response to the second input; the processing information is used for indicating a processing mode of the second electronic equipment on the target object.
7. A data transmission method, applied to a second electronic device, the method comprising:
and under the condition that the target object sent by the first electronic equipment is received, executing at least one of the following steps:
and displaying the target object at the cursor position, displaying a mirror image simulation window of the target object, and displaying the target object on an application interface of an application program corresponding to the target object.
8. The method of claim 7, wherein the method further comprises:
under the condition that a target object sent by the first electronic equipment is received and a cursor is not detected, the target object is not displayed;
and displaying the target object at the cursor position when the cursor is detected.
9. The method of claim 7, wherein the method further comprises:
Receiving a first message sent by the first electronic equipment;
determining a display mode of the target object based on the first message;
the display mode comprises window display or application program display corresponding to the running target object.
10. The method of claim 7, wherein the target object is text; in the case of receiving the target object sent by the first electronic device, before the target object is displayed at the cursor position, the method further includes:
displaying a multimedia file editing interface;
displaying the target object at the cursor position under the condition of receiving the target object sent by the first electronic equipment, wherein the target object comprises
And displaying the text at the cursor position of the multimedia file editing interface under the condition that the text sent by the first electronic equipment is received.
11. The method of claim 7, wherein the target object is text; in the case of receiving the target object sent by the first electronic device, before the target object is displayed at the cursor position, the method further includes:
displaying a desktop interface;
and displaying the target object at the cursor position under the condition that the target object sent by the first electronic equipment is received, wherein the method comprises the following steps:
Converting the text into a text document under the condition that the text sent by the first electronic equipment is received;
and displaying the text document at the cursor position of the desktop interface.
12. A data transmission apparatus, characterized by being applied to a first electronic device for execution, comprising: the device comprises a display module, a receiving module and a sending module;
the display module is used for displaying a first interface, and the first interface comprises a target object and at least one electronic equipment identifier; the electronic equipment corresponding to the at least one electronic equipment identifier and the first electronic equipment meet the shortcut connection condition;
the receiving module is used for receiving a first input of a target object displayed by the display module and a second electronic equipment identifier in the at least one electronic equipment identifier;
the sending module is used for responding to the first input received by the receiving module and sending the target object to the second electronic equipment corresponding to the second electronic equipment identifier;
wherein the second electronic device performs at least one of: and displaying the target object at the cursor position, displaying a mirror image simulation window of the target object, and displaying the target object on an application interface of an application program corresponding to the target object.
13. A data transmission apparatus, characterized by being applied to a second electronic device, comprising: a processing module;
the processing module is configured to execute at least one of the following when receiving a target object sent by the first electronic device:
and displaying the target object at the cursor position, displaying a mirror image simulation window of the target object, and displaying the target object on an application interface of an application program corresponding to the target object.
14. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor implements the steps of the data transmission method of any one of claims 1 to 11.
15. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the data transmission method according to any of claims 1 to 11.
CN202311356957.5A 2023-10-18 2023-10-18 Data transmission methods, devices, electronic equipment and storage media Pending CN117435104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311356957.5A CN117435104A (en) 2023-10-18 2023-10-18 Data transmission methods, devices, electronic equipment and storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311356957.5A CN117435104A (en) 2023-10-18 2023-10-18 Data transmission methods, devices, electronic equipment and storage media

Publications (1)

Publication Number Publication Date
CN117435104A true CN117435104A (en) 2024-01-23

Family

ID=89556236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311356957.5A Pending CN117435104A (en) 2023-10-18 2023-10-18 Data transmission methods, devices, electronic equipment and storage media

Country Status (1)

Country Link
CN (1) CN117435104A (en)

Similar Documents

Publication Publication Date Title
CN111400552A (en) Memo creation method and electronic device
CN116893792A (en) Screen projection control method, device and electronic equipment
CN117215456A (en) Display method and device and electronic equipment
CN117648144A (en) Image processing method, device, electronic equipment and readable storage medium
CN117311885A (en) Picture viewing method and device
WO2024061285A1 (en) Video playback method and device
CN113037618B (en) Image sharing method and device
CN113873081B (en) Method and device for sending associated image and electronic equipment
CN116756099A (en) Display method and device
CN115718581A (en) Information display method and device, electronic equipment and storage medium
WO2023134599A1 (en) Voice information sending method and apparatus, and electronic device
CN117435104A (en) Data transmission methods, devices, electronic equipment and storage media
CN115202524A (en) Display method and device
CN116954451A (en) Image display method, device, electronic equipment and readable storage medium
CN116627676A (en) Schedule creation method and device
CN116954419A (en) Content transmission method and content transmission device
CN117750177A (en) Image display method, device, electronic equipment and medium
CN115756359A (en) Screen projection method, device, electronic equipment and medium
CN117311884A (en) Content display method, device, electronic equipment and readable storage medium
CN115657911A (en) Object processing method and device
CN117729415A (en) Image processing method, device, electronic equipment and medium
CN114860127A (en) Information transmission method and information transmission device
CN115718550A (en) Unread message identifier elimination method and device
CN115826826A (en) File transmission method and device
CN117454841A (en) Demonstration control method, device, electronic equipment and storage medium for demonstration document

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination