CN111666055A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN111666055A
CN111666055A CN202010333906.0A CN202010333906A CN111666055A CN 111666055 A CN111666055 A CN 111666055A CN 202010333906 A CN202010333906 A CN 202010333906A CN 111666055 A CN111666055 A CN 111666055A
Authority
CN
China
Prior art keywords
terminal device
data type
terminal
display
cross
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.)
Granted
Application number
CN202010333906.0A
Other languages
Chinese (zh)
Other versions
CN111666055B (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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
Priority to CN202010333906.0A priority Critical patent/CN111666055B/en
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111463143.2A priority patent/CN114356197B/en
Priority to CN202111463198.3A priority patent/CN114356198A/en
Publication of CN111666055A publication Critical patent/CN111666055A/en
Priority to CN202080100104.3A priority patent/CN115516413A/en
Priority to US17/920,867 priority patent/US20240053879A1/en
Priority to EP20932244.5A priority patent/EP4130963A4/en
Priority to PCT/CN2020/142420 priority patent/WO2021212922A1/en
Application granted granted Critical
Publication of CN111666055B publication Critical patent/CN111666055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

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

Abstract

本申请涉及一种数据的传输方法及装置。所述方法包括:第一终端设备在检测到针对第一终端设备上的对象的第一跨设备传输操作时,获取对象的数据类型,其中,第一跨设备传输操作用于发起将对象传输至第二终端设备的过程;向所述第二终端设备发送携带有数据类型的判断请求,接收来自第二终端设备基于数据类型做出的判断结果,判断结果表示所述对象是否能够传输至第二终端设备;显示判断结果。通过本申请各实施方式的数据的传输方法及装置,能够根据对象的数据类型和接收端的匹配程度为用户提供直观的视觉反馈,避免错误操作和反复操作,提高操作效率。

Figure 202010333906

The present application relates to a data transmission method and device. The method includes: when the first terminal device detects a first cross-device transfer operation for the object on the first terminal device, acquiring the data type of the object, wherein the first cross-device transfer operation is used to initiate the transfer of the object to the object. The process of the second terminal device: sending a judgment request carrying the data type to the second terminal device, and receiving a judgment result based on the data type from the second terminal device, and the judgment result indicates whether the object can be transmitted to the second terminal device. Terminal equipment; displays the judgment result. The data transmission methods and devices of the various embodiments of the present application can provide users with intuitive visual feedback according to the data type of the object and the matching degree of the receiving end, avoid erroneous operation and repeated operation, and improve the operation efficiency.

Figure 202010333906

Description

数据的传输方法及装置Data transmission method and device

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种数据的传输方法及装置。The present application relates to the field of communication technologies, and in particular, to a data transmission method and device.

背景技术Background technique

在不同的设备之间可以通过拖拽实现数据的传输,例如,在安装有同一操作系统的手机和计算机间拖拽传输数据时,需要在计算机上使用特定应用程序登录与手机上登录的账号相同的账号,从而将手机上的照片或文件拖到计算机上,但这种方式需要依赖于同一账号、以及操作系统窗口显示和反向控制能力等特定功能,并非任意两设备之间都能够通过这样的操作实现数据传输。Data can be transferred between different devices by dragging and dropping. For example, when data is transferred by dragging and dropping between a mobile phone and a computer with the same operating system, you need to use a specific application on the computer to log in with the same account that you log in on the mobile phone. You can drag photos or files from your mobile phone to your computer, but this method depends on the same account, as well as specific functions such as operating system window display and reverse control capabilities, not any two devices can pass through this The operation realizes data transmission.

如果一次拖拽操作不成功,用户会反复拖拽,会造成操作复杂、效率低下。If a drag and drop operation is unsuccessful, the user will drag and drop repeatedly, which will result in complicated operations and low efficiency.

发明内容SUMMARY OF THE INVENTION

有鉴于此,提出了一种数据的传输方法、装置、终端设备、存储介质以及计算机程序产品,可以通过为用户提供直观的视觉反馈,避免错误操作和反复操作,提高操作效率。In view of this, a data transmission method, device, terminal device, storage medium and computer program product are proposed, which can avoid wrong operation and repeated operation and improve operation efficiency by providing users with intuitive visual feedback.

第一方面,本申请的实施例提供了一种数据的传输方法,所述方法应用于第一终端设备,第一终端设备与第二终端设备连接,所述方法包括:In a first aspect, an embodiment of the present application provides a data transmission method, the method is applied to a first terminal device, and the first terminal device is connected to a second terminal device, and the method includes:

第一终端设备在检测到针对第一终端设备上的对象的第一跨设备传输操作时,获取对象的数据类型,其中,第一跨设备传输操作用于发起将对象传输至第二终端设备的过程;The first terminal device acquires the data type of the object when detecting a first cross-device transfer operation for the object on the first terminal device, wherein the first cross-device transfer operation is used to initiate a transfer of the object to the second terminal device. process;

向第二终端设备发送携带有所述数据类型判断请求,sending the data type judgment request carrying the data type to the second terminal device,

接收来自第二终端设备基于所述数据类型做出的判断结果,所述判断结果表示所述对象是否能够传输至第二终端设备;receiving a judgment result from the second terminal device based on the data type, the judgment result indicating whether the object can be transmitted to the second terminal device;

显示判断结果。The judgment result is displayed.

结合第一方面的第一种可能的实现方式中,所述判断请求携带有数据类型字段和/或扩展的数据类型字段,数据类型字段和扩展的数据类型字段用于表示对象的数据类型。根据本申请上述实现方式的数据的传输方法可以扩展可拖拽的内容,扩展的数据类型字段可以指示自定义的、或适用于特定设备或应用的、或新出现的数据类型,使得跨设备传输数据时适用更多种数据类型和设备,便于用户操作。In combination with the first possible implementation manner of the first aspect, the judgment request carries a data type field and/or an extended data type field, and the data type field and the extended data type field are used to represent the data type of the object. The data transmission method according to the above-mentioned implementation of the present application can expand the content that can be dragged, and the expanded data type field can indicate a custom, or a data type suitable for a specific device or application, or a new data type, so that cross-device transmission is possible. More data types and devices are applicable to the data, which is convenient for users to operate.

结合第一方面或者第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述方法还包括,在判断结果为能够传输至第二终端设备且检测到第二跨设备传输操作时,向第二终端设备发送对象,第二跨设备传输操作用于确认将对象传输至第二终端设备。With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the method further includes, when the judgment result is that it can be transmitted to the second terminal device and the second crossover is detected. During the device transmission operation, the object is sent to the second terminal device, and the second cross-device transmission operation is used to confirm the transmission of the object to the second terminal device.

结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,向第二终端设备发送对象,具体可以实现为:In combination with the second possible implementation manner of the first aspect, in a third possible implementation manner, sending an object to the second terminal device may be specifically implemented as:

将对象暂存在第一终端设备本地;Temporarily store the object locally in the first terminal device;

向第二终端设备发送数据传输请求,数据传输请求用于传输对象;Send a data transmission request to the second terminal device, and the data transmission request is used to transmit the object;

在接收到第二终端设备返回的接受数据传输请求的第一响应信号时,根据第一响应信号发送对象;When receiving the first response signal of accepting the data transmission request returned by the second terminal device, send the object according to the first response signal;

在接收到第二终端设备返回的不接受数据传输请求的第二响应信号时,撤销发送对象。When receiving the second response signal that the second terminal device does not accept the data transmission request, cancel the sending object.

结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,将对象暂存在第一终端设备本地之后,还包括:In combination with the third possible implementation manner of the first aspect, in a fourth possible implementation manner, after the object is temporarily stored locally on the first terminal device, the method further includes:

在检测到针对暂存的对象的调出指令时,调出暂存的对象,并向第二终端设备发送所述数据传输请求。When a call-out instruction for the temporarily stored object is detected, the temporarily stored object is called out, and the data transmission request is sent to the second terminal device.

结合第一方面的第三种或第四种可能的实现方式,在第五种可能的实现方式中,根据第一响应信号发送对象,具体可以实现为:In combination with the third or fourth possible implementation manner of the first aspect, in the fifth possible implementation manner, according to the first response signal sending object, the specific implementation may be as follows:

在接收到第一响应信号时,直接发送对象;或者,在接收到第一响应信号时,延迟发送对象。When the first response signal is received, the object is sent directly; or, when the first response signal is received, the object is sent with a delay.

根据上述第三种、第四种和第五种可能的实现方式的数据的传输方法,可以显示可选择的针对拖入的对象的操作,便于用户根据实际的需求调整传输的过程或处理的方式,使得第二终端设备可以根据实际需求对对象进行处理。According to the data transmission methods of the third, fourth and fifth possible implementations above, selectable operations for the dragged-in object can be displayed, so that the user can adjust the transmission process or processing method according to actual needs , so that the second terminal device can process the object according to actual needs.

结合第一方面或者第一方面的第一种、第二种、第三种、第四种或第五种可能的实现方式,在第六种可能的实现方式中,第一终端设备与两个以上候选终端设备连接,本申请的数据的传输方法还可以包括:In combination with the first aspect or the first, second, third, fourth or fifth possible implementation manners of the first aspect, in the sixth possible implementation manner, the first terminal device and the two The above candidate terminal devices are connected, and the data transmission method of the present application may also include:

第一终端设备在检测到针对第一终端设备上的对象的第一跨设备传输操作时,显示两个以上候选终端设备的信息;When the first terminal device detects the first cross-device transmission operation for the object on the first terminal device, the information of two or more candidate terminal devices is displayed;

根据第一跨设备传输操作的停留位置与两个以上候选终端设备的信息的显示位置之间的关系,确定第一跨设备传输操作对应的第二终端设备。The second terminal device corresponding to the first cross-device transmission operation is determined according to the relationship between the stay position of the first cross-device transmission operation and the display positions of the information of the two or more candidate terminal devices.

结合第一方面或者第一方面的第一种、第二种、第三种、第四种或第五种可能的实现方式,在第七种可能的实现方式中,第一终端设备与两个以上候选终端设备连接,本申请的数据的传输方法还可以包括:In combination with the first aspect or the first, second, third, fourth or fifth possible implementation manners of the first aspect, in the seventh possible implementation manner, the first terminal device and the two The above candidate terminal devices are connected, and the data transmission method of the present application may also include:

根据第一跨设备传输操作的停留位置与第一终端设备的边缘的位置关系确定第一跨设备传输操作对应的第二终端设备。The second terminal device corresponding to the first cross-device transmission operation is determined according to the positional relationship between the stay position of the first cross-device transmission operation and the edge of the first terminal device.

根据以上第六种或第七种可能的实现方式的数据的传输方法,可以实现对多个终端设备之间的交互,且多个终端设备类型可以不同,使得用户才多个不同设备之间共享数据时更加便利。According to the data transmission method of the sixth or seventh possible implementation, the interaction between multiple terminal devices can be realized, and the types of multiple terminal devices can be different, so that users can share between multiple different devices. more convenient when using data.

结合第一方面或者第一方面的第七种可能的实现方式,在第八种可能的实现方式中,所述方法还包括:With reference to the first aspect or the seventh possible implementation manner of the first aspect, in an eighth possible implementation manner, the method further includes:

向第二终端设备发送显示指令,以指示第二终端设备根据显示指令和第二终端设备与第一终端设备之间的位置关系显示对象的第一图像,第一终端设备上显示的对象的第二图像与第二终端设备上显示的对象的第一图像能够拼成对象的完整图像;若检测到在显示屏幕上显示的对象的第二图像的面积满足发送条件,则向第二终端设备设备发送对象。根据该实现方式的数据的传输方法,以简洁、直观的展示出拖拽交互的过程,同时有利于用户判断拖拽时机,避免重复操作,简化用户操作。Send a display instruction to the second terminal device to instruct the second terminal device to display the first image of the object according to the display instruction and the positional relationship between the second terminal device and the first terminal device, and the first image of the object displayed on the first terminal device. The second image and the first image of the object displayed on the second terminal device can be combined to form a complete image of the object; if it is detected that the area of the second image of the object displayed on the display screen satisfies the sending conditions, the second terminal device will be sent to the second terminal device. send the object. According to the data transmission method of this implementation, the dragging interaction process is displayed concisely and intuitively, and at the same time, it is helpful for the user to judge the dragging timing, avoid repeated operations, and simplify user operations.

结合第一方面或者第一方面的第六种可能的实现方式,在第九种可能的实现方式中,所述方法还包括:With reference to the first aspect or the sixth possible implementation manner of the first aspect, in a ninth possible implementation manner, the method further includes:

向第二终端设备发送显示状态请求,以使第二终端设备响应显示状态请求返回第二终端设备当前的显示界面,并显示显示界面;sending a display state request to the second terminal device, so that the second terminal device responds to the display state request and returns to the current display interface of the second terminal device, and displays the display interface;

在本实现方式中,第一方面中的,向所述第二终端设备发送携带有所述数据类型的判断请求,具体可以实现为:In this implementation manner, in the first aspect, sending the judgment request carrying the data type to the second terminal device may be specifically implemented as:

向所述第二终端设备发送判断请求,所述判断请求所述数据类型和第一跨设备传输操作停留的位置在上述显示界面中的坐标,Sending a judgment request to the second terminal device, the judgment request is the coordinates of the data type and the position where the first cross-device transmission operation stays in the above-mentioned display interface,

在本实现方式中,第一方面中的,接收来自所述第二终端设备基于所述数据类型做出的判断结果,具体可以实现为:In this implementation manner, in the first aspect, receiving the judgment result made by the second terminal device based on the data type may be specifically implemented as:

接收来自第二终端设备基于上述数据类型和上述坐标做出的判断结果。The judgment result based on the above-mentioned data type and the above-mentioned coordinates is received from the second terminal device.

根据上述第九种可能的实现方式的数据的传输方法,能够直接将对象拖拽到目标位置,相比于相关技术需要进一步在接收端操作拖拽到目标位置的过程,能够简化用户操作。在拖拽的过程中实时显示判断结果,能够避免重复操作,提高操作效率。According to the data transmission method of the ninth possible implementation, the object can be directly dragged to the target position. Compared with the related art, the process of dragging to the target position needs to be further operated at the receiving end, which can simplify the user operation. The judgment result is displayed in real time during the dragging process, which can avoid repeated operations and improve the operation efficiency.

结合第一方面的第二种可能的实现方式,在第十种可能的实现方式中,所述方法还包括:With reference to the second possible implementation manner of the first aspect, in a tenth possible implementation manner, the method further includes:

确定第二终端设备对对象的处理方式;determining how the object is processed by the second terminal device;

向所述第二终端设备发送所述对象,包括:Sending the object to the second terminal device includes:

向所述第二终端设备发送所述对象以及指示信息,所述指示信息用于指示第二终端设备以所述处理方式处理所述对象。Send the object and indication information to the second terminal device, where the indication information is used to instruct the second terminal device to process the object in the processing mode.

第二方面,本申请的实施例提供了一种数据的传输方法,所述方法应用于第二终端设备,所述第二终端设备与第一终端设备连接,所述方法包括:In a second aspect, an embodiment of the present application provides a data transmission method, the method is applied to a second terminal device, the second terminal device is connected to the first terminal device, and the method includes:

接收第一终端设备发送的判断请求,其中,所述判断请求携带有待传输的对象的数据类型,所述判断请求用于请求第二终端设备判断所述数据类型的对象能否传输至第二终端设备;Receive a judgment request sent by the first terminal device, wherein the judgment request carries the data type of the object to be transmitted, and the judgment request is used to request the second terminal device to judge whether the object of the data type can be transmitted to the second terminal equipment;

根据所述数据类型做出判断结果,并将判断结果发送给第一终端设备,以使第一终端设备显示判断结果。The judgment result is made according to the data type, and the judgment result is sent to the first terminal device, so that the first terminal device displays the judgment result.

结合第二方面的第一种可能的实现方式中,所述方法还包括:In combination with the first possible implementation manner of the second aspect, the method further includes:

在接收到第一终端设备发送的显示状态请求时,向第一终端设备返回第二终端设备当前的显示界面,以使第一终端设备确定第一跨设备传输操作在显示界面中停留位置的坐标,其中,第一跨设备传输操作为第一终端设备用于发起将对象传输至第二终端设备的过程的操作;When receiving the display state request sent by the first terminal device, return the current display interface of the second terminal device to the first terminal device, so that the first terminal device can determine the coordinates of the location where the first cross-device transmission operation stays in the display interface , wherein the first cross-device transmission operation is an operation used by the first terminal device to initiate a process of transmitting the object to the second terminal device;

其中,第二方面的实现方式中的判断请求携带有所述坐标,Wherein, the judgment request in the implementation manner of the second aspect carries the coordinates,

第二方面的实现方式中的,根据所述数据类型做出判断结果,包括:In the implementation manner of the second aspect, the judgment result is made according to the data type, including:

根据所述数据类型和所述坐标做出判断结果。根据该实现方式的数据的传输方法,能够直接将对象拖拽到目标位置,相比于相关技术需要进一步在接收端操作拖拽到目标位置的过程,能够简化用户操作。在拖拽的过程中实时显示判断结果,能够避免重复操作,提高操作效率。The judgment result is made according to the data type and the coordinates. According to the data transmission method of this implementation, the object can be directly dragged to the target position. Compared with the related art, the process of dragging and dropping to the target position needs to be further performed at the receiving end, which can simplify the user operation. The judgment result is displayed in real time during the dragging process, which can avoid repeated operations and improve the operation efficiency.

结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述方法还包括:With reference to the first possible implementation manner of the second aspect, in the second possible implementation manner, the method further includes:

在接收到第一终端设备发送的对象时,根据数据类型、本地存储状态、第二终端设备安装的应用服务、坐标中的一项或多项对对象进行处理。When the object sent by the first terminal device is received, the object is processed according to one or more items of data type, local storage state, application service installed by the second terminal device, and coordinates.

结合第二方面的第二种可能的实现方式,在第三种可能的实现方式中,根据数据类型、本地存储状态、第二终端设备安装的应用服务、坐标中的一项或多项对对象进行处理,具体可以实现为:In combination with the second possible implementation manner of the second aspect, in a third possible implementation manner, the object processing, which can be implemented as:

在本地存储状态为不具备存储能力时,根据第二终端设备安装的应用服务打开对象;When the local storage state is that it does not have the storage capability, the object is opened according to the application service installed by the second terminal device;

在本地存储状态为具备存储能力时,在本地存储对象。When the local storage state is capable of storage, the object is stored locally.

结合第二方面的第三种可能的实现方式,在第四种可能的实现方式中,在本地存储状态为具备存储能力时,在本地存储对象,具体可以实现为:In combination with the third possible implementation manner of the second aspect, in the fourth possible implementation manner, when the local storage state is capable of storing, the object is stored locally, which may be specifically implemented as:

在本地存储状态为具备存储能力、上述坐标在上述显示界面中的对应位置不允许所述数据类型插入时,在本地存储对象并根据上述数据类型选择应用程序打开对对象;When the local storage state is capable of storing, and the corresponding position of the above-mentioned coordinates in the above-mentioned display interface does not allow the insertion of the data type, the object is stored locally and the object is opened by selecting an application program according to the above-mentioned data type;

在本地存储状态为具备存储能力、上述坐标在上述显示界面中的对应位置允许所述数据类型插入时,在本地存储对象并根据上述坐标在上述显示界面中打开对象。When the local storage state is capable of storing and the corresponding position of the coordinates in the display interface allows the insertion of the data type, the object is stored locally and the object is opened in the display interface according to the coordinates.

根据上述实现方式的数据的传输方法,接收端可以根据本地的信息对对象进行处理,简化用户操作。According to the data transmission method of the above implementation manner, the receiving end can process the object according to the local information, thereby simplifying the user operation.

结合第二方面或者第二方面的第一种、第二种、第三种或者第四种可能的实现方式,在第五种可能的实现方式中,所述方法还包括:With reference to the second aspect or the first, second, third or fourth possible implementation manners of the second aspect, in a fifth possible implementation manner, the method further includes:

在接收到所述第一终端设备发送的所述对象时,若第二终端设备具备存储能力,则将所述对象暂存在本地;When receiving the object sent by the first terminal device, if the second terminal device has storage capability, temporarily storing the object locally;

显示处理选项;display processing options;

根据针对所述处理选项的选择操作对所述对象进行处理。The object is processed according to a selection operation for the processing option.

结合第二方面,在第六种可能的实现方式中,所述方法还包括:With reference to the second aspect, in a sixth possible implementation manner, the method further includes:

在接收到第一终端设备发送的显示指令时,根据显示指令和第二终端设备与第一终端设备之间的位置关系显示对象的第一图像,When receiving the display instruction sent by the first terminal device, display the first image of the object according to the display instruction and the positional relationship between the second terminal device and the first terminal device,

第一终端设备上显示的对象的第二图像与第二终端设备上显示的对象的第一图像能够拼成对象的完整图像。根据该实现方式的数据的传输方法,以简洁、直观的展示出拖拽交互的过程,同时有利于用户判断拖拽时机,避免重复操作,简化用户操作。The second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be combined to form a complete image of the object. According to the data transmission method of this implementation, the dragging interaction process is displayed concisely and intuitively, and at the same time, it is helpful for the user to judge the dragging timing, avoid repeated operations, and simplify user operations.

第三方面,本申请的实施例提供了一种数据的传输装置,所述方法应用于第一终端设备,所述第一终端设备与第二终端设备连接,所述装置包括:In a third aspect, an embodiment of the present application provides a data transmission apparatus, the method is applied to a first terminal device, the first terminal device is connected to a second terminal device, and the apparatus includes:

第一获取模块,用于所述第一终端设备在检测到针对第一终端设备上的对象的第一跨设备传输操作时,获取对象的数据类型,其中,第一跨设备传输操作用于发起将所述对象传输至第二终端设备的过程;a first obtaining module, configured to obtain the data type of the object when the first terminal device detects a first cross-device transmission operation for the object on the first terminal device, wherein the first cross-device transmission operation is used to initiate the process of transmitting the object to the second terminal device;

第一发送模块,用于向第二终端设备发送携带有所述数据类型的判断请求,a first sending module, configured to send a judgment request carrying the data type to the second terminal device,

第一接收模块,用于接收来自第二终端设备基于所述数据类型做出的判断结果,所述判断结果表示所述对象是否能够传输至第二终端设备;a first receiving module, configured to receive a judgment result made by the second terminal device based on the data type, where the judgment result indicates whether the object can be transmitted to the second terminal device;

第一显示模块,用于显示判断结果。The first display module is used to display the judgment result.

结合第三方面的第一种可能的实现方式,所述判断请求携带有数据类型字段和/或扩展的数据类型字段,数据类型字段和扩展的数据类型字段用于表示对象的数据类型。With reference to the first possible implementation manner of the third aspect, the judgment request carries a data type field and/or an extended data type field, and the data type field and the extended data type field are used to represent the data type of the object.

结合第三方面或者第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述装置还包括:With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the apparatus further includes:

第二发送模块,用于在判断结果为能够传输至第二终端设备且检测到第二跨设备传输操作时,向第二终端设备发送所述对象,第二跨设备传输操作用于确认将对象传输至第二终端设备。The second sending module is configured to send the object to the second terminal device when the judgment result is that it can be transmitted to the second terminal device and a second cross-device transmission operation is detected, and the second cross-device transmission operation is used to confirm that the object is sent to the second terminal device. transmitted to the second terminal device.

结合第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述第二发送模块可以包括:With reference to the second possible implementation manner of the third aspect, in the third possible implementation manner, the second sending module may include:

第一保存单元,用于将对象暂存在第一终端设备本地;a first storage unit, configured to temporarily store the object locally in the first terminal device;

第一发送单元,用于向第二终端设备发送数据传输请求,数据传输请求用于传输所述对象;a first sending unit, configured to send a data transmission request to the second terminal device, where the data transmission request is used to transmit the object;

第二发送单元,用于在接收到所述第二终端设备返回的接受数据传输请求的第一响应信号时,根据第一响应信号发送对象;a second sending unit, configured to send an object according to the first response signal when receiving the first response signal of accepting the data transmission request returned by the second terminal device;

撤销发送单元,用于在接收到所述第二终端设备返回的不接受数据传输请求的第二响应信号时,撤销发送对象。The canceling sending unit is configured to cancel the sending object when receiving the second response signal that the second terminal device does not accept the data transmission request.

结合第三方面的第三种可能的实现方式,在第四种可能的实现方式中,第一发送单元还用于在检测到针对暂存的所述对象的调出指令时,调出暂存的对象,并向所述第二终端设备发送所述数据传输请求。With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner, the first sending unit is further configured to call out the temporary storage when detecting a call-out instruction for the temporarily stored object object, and send the data transmission request to the second terminal device.

结合第三方面的第三种可能的实现方式,在第五种可能的实现方式中,,所述第二发送单元还用于:在接收到第一响应信号时,直接发送对象,或者,在接收到第一响应信号时,延迟发送对象。With reference to the third possible implementation manner of the third aspect, in a fifth possible implementation manner, the second sending unit is further configured to: when receiving the first response signal, directly send the object, or, in When the first response signal is received, the object is sent with a delay.

结合第三方面或者第三方面的第一种、第二种、第三种、第四种或第五种可能的实现方式,在第六种可能的实现方式中,所述第一终端设备与两个以上候选终端设备连接,所述装置还包括:With reference to the third aspect or the first, second, third, fourth or fifth possible implementation manners of the third aspect, in the sixth possible implementation manner, the first terminal device and the More than two candidate terminal devices are connected, and the device further includes:

第二显示模块,用于第一终端设备在检测到针对第一终端设备本地的对象的第一跨设备传输操作时,显示两个以上候选终端设备的信息;The second display module is used for the first terminal device to display the information of two or more candidate terminal devices when detecting a first cross-device transmission operation for an object local to the first terminal device;

第二确定模块,用于根据第一跨设备传输操作的停留位置与两个以上候选终端设备的信息的显示位置之间的关系,确定第一跨设备传输操作对应的第二终端设备。The second determination module is configured to determine the second terminal device corresponding to the first cross-device transmission operation according to the relationship between the stay position of the first cross-device transmission operation and the display positions of the information of two or more candidate terminal devices.

结合第三方面或者第三方面的第一种、第二种、第三种、第四种或第五种可能的实现方式,在第七种可能的实现方式中,第一终端设备与两个以上候选终端设备连接,所述装置还包括:第三确定模块,用于根据第一跨设备传输操作的停留位置与第一终端设备的边缘的位置关系确定第一跨设备传输操作对应的第二终端设备。In combination with the third aspect or the first, second, third, fourth or fifth possible implementation manners of the third aspect, in the seventh possible implementation manner, the first terminal device and the two The above candidate terminal equipment is connected, and the apparatus further includes: a third determining module, configured to determine the second cross-device transmission operation corresponding to the first cross-device transmission operation according to the positional relationship between the stay position of the first cross-device transmission operation and the edge of the first terminal equipment Terminal Equipment.

结合第三方面或者第三方面的第七种可能的实现方式,在第八种可能的实现方式中,所述装置还包括:With reference to the third aspect or the seventh possible implementation manner of the third aspect, in the eighth possible implementation manner, the apparatus further includes:

第三发送模块,用于向第二终端设备发送显示指令,以指示第二终端设备根据显示指令和第二终端设备与第一终端设备之间的位置关系显示对象的第一图像,a third sending module, configured to send a display instruction to the second terminal device to instruct the second terminal device to display the first image of the object according to the display instruction and the positional relationship between the second terminal device and the first terminal device,

所述第一终端设备上显示的对象的第二图像与第二终端设备上显示的对象的第一图像能够拼成对象的完整图像;The second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be combined to form a complete image of the object;

第四发送模块,用于若检测到在显示屏幕上显示的对象的第二图像的面积满足发送条件,则向第二终端设备发送对象。The fourth sending module is configured to send the object to the second terminal device if it is detected that the area of the second image of the object displayed on the display screen satisfies the sending condition.

结合第三方面或者第三方面的第六种可能的实现方式,在第九种可能的实现方式中,所述装置还包括:With reference to the third aspect or the sixth possible implementation manner of the third aspect, in a ninth possible implementation manner, the apparatus further includes:

第五发送模块,用于向第二终端设备发送显示状态请求,以使第二终端设备响应所述显示状态请求返回第二终端设备当前的显示界面,并显示显示界面;a fifth sending module, configured to send a display state request to the second terminal device, so that the second terminal device returns the current display interface of the second terminal device in response to the display state request, and displays the display interface;

所述第一发送模块包括:The first sending module includes:

第三发送单元,用于根据数据类型和第一跨设备传输操作停留的位置在上述显示界面中的坐标向第二终端设备发送判断请求,The third sending unit is configured to send a judgment request to the second terminal device according to the data type and the coordinates of the position where the first cross-device transmission operation stays in the above-mentioned display interface,

所述第一接收模块包括:The first receiving module includes:

接收单元,用于接收来自第二终端设备基于上述数据类型和上述坐标做出的判断结果。A receiving unit, configured to receive a judgment result made by the second terminal device based on the data type and the coordinates.

结合第三方面的第二种可能的实现方式,在第十种可能的实现方式中,所述装置还包括:With reference to the second possible implementation manner of the third aspect, in a tenth possible implementation manner, the apparatus further includes:

第三确定模块,用于确定第二终端设备对对象的处理方式;a third determining module, configured to determine the processing method of the object by the second terminal device;

所述第二发送模块还包括:The second sending module also includes:

第四发送单元,用于向所述第二终端设备发送所述对象以及指示信息,所述指示信息用于指示第二终端设备以所述处理方式处理所述对象。a fourth sending unit, configured to send the object and indication information to the second terminal device, where the indication information is used to instruct the second terminal device to process the object in the processing mode.

第四方面,本申请的实施例提供了一种数据的传输装置,所述方法应用于第二终端设备,所述第二终端设备与第一终端设备连接,所述装置包括:In a fourth aspect, an embodiment of the present application provides a data transmission apparatus, the method is applied to a second terminal device, the second terminal device is connected to the first terminal device, and the apparatus includes:

第二接收模块,用于接收到第一终端设备发送的判断请求,其中,所述判断请求携带有待传输的对象的数据类型,所述判断请求用于请求第二终端设备判断所述数据类型的对象能否传输至第二终端设备;The second receiving module is configured to receive a judgment request sent by the first terminal device, wherein the judgment request carries the data type of the object to be transmitted, and the judgment request is used to request the second terminal device to judge the data type of the data type. Whether the object can be transmitted to the second terminal device;

第一判断模块,用于根据所述数据类型做出判断结果,并将判断结果发送给第一终端设备,以使第一终端设备显示判断结果。The first judgment module is configured to make a judgment result according to the data type, and send the judgment result to the first terminal device, so that the first terminal device can display the judgment result.

结合第四方面的第一种可能的实现方式,所述装置还包括:With reference to the first possible implementation manner of the fourth aspect, the apparatus further includes:

第六发送模块,用于在接收到第一终端设备发送的显示状态请求时,向第一终端设备返回第二终端设备当前的显示界面,以使第一终端设备确定第一跨设备传输操作在显示界面中停留位置的坐标,其中,第一跨设备传输操作为第一终端设备用于发起将对象传输至第二终端设备的过程的操作;The sixth sending module is configured to, when receiving the display state request sent by the first terminal device, return the current display interface of the second terminal device to the first terminal device, so that the first terminal device determines that the first cross-device transmission operation is in Displaying the coordinates of the stay position in the interface, wherein the first cross-device transmission operation is an operation used by the first terminal device to initiate a process of transmitting the object to the second terminal device;

其中,第四方面中的判断请求携带有所述坐标,所述第一判断模块包括:Wherein, the judgment request in the fourth aspect carries the coordinates, and the first judgment module includes:

第一判断单元,用于根据上述数据类型和上述坐标做出判断结果。A first judgment unit, configured to make a judgment result according to the above data type and the above coordinates.

结合第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述装置还包括:With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the apparatus further includes:

第一处理模块,用于在接收到第一终端设备发送的对象时,根据数据类型、本地存储状态、第二终端设备安装的应用服务、上述坐标中的一项或多项对对象进行处理。The first processing module is configured to, when receiving the object sent by the first terminal device, process the object according to one or more of the data type, local storage state, application service installed by the second terminal device, and the above-mentioned coordinates.

结合第四方面的第二种可能的实现方式,在第三种可能的实现方式中,所述第一处理模块包括:With reference to the second possible implementation manner of the fourth aspect, in a third possible implementation manner, the first processing module includes:

第一处理单元,用于在本地存储状态为不具备存储能力时,根据第二终端设备安装的应用服务打开对象;a first processing unit, configured to open the object according to the application service installed by the second terminal device when the local storage state is not capable of storage;

第二处理单元,用于在本地存储状态为具备存储能力时,在本地存储对象。The second processing unit is configured to store the object locally when the local storage state is capable of storing.

结合第四方面的第三种可能的实现方式,在第四种可能的实现方式中,所述第二处理单元还用于在本地存储状态为具备存储能力、上述坐标在上述显示界面中的对应位置不允许所述数据类型插入时,在本地存储对象并根据上述数据类型选择应用程序打开对对象;在本地存储状态为具备存储能力、上述坐标在上述显示界面中的对应位置允许所述数据类型插入时,在本地存储对象并根据上述坐标在上述显示界面中打开对象。In combination with the third possible implementation manner of the fourth aspect, in the fourth possible implementation manner, the second processing unit is further configured to locally store the state of having storage capability and the correspondence of the above coordinates in the above display interface. When the location does not allow the data type to be inserted, the object is stored locally and the object is opened by selecting an application according to the above data type; in the local storage state, the storage capability is available, and the corresponding position of the above coordinates in the above display interface allows the data type When inserting, the object is stored locally and opened in the above-mentioned display interface according to the above-mentioned coordinates.

结合第四方面或者第四方面的第一种、第二种、第三种或者第四种可能的实现方式,在第五种可能的实现方式中,,所述装置还包括:With reference to the fourth aspect or the first, second, third or fourth possible implementation manners of the fourth aspect, in a fifth possible implementation manner, the apparatus further includes:

存储模块,用于在接收到所述第一终端设备发送的所述对象时,若第二终端设备具备存储能力,则将所述对象暂存在本地;a storage module, configured to temporarily store the object locally when the object sent by the first terminal device is received, if the second terminal device has a storage capability;

第三显示模块,用于显示处理选项;The third display module is used to display processing options;

第二处理模块,用于根据针对所述处理选项的选择操作对所述对象进行处理。The second processing module is configured to process the object according to the selection operation for the processing option.

结合第四方面,在第六种可能的实现方式中,所述装置还包括:With reference to the fourth aspect, in a sixth possible implementation manner, the apparatus further includes:

第四显示模块,用于在接收到第一终端设备发送的显示指令时,根据显示指令和第二终端设备与第一终端设备之间的位置关系显示对象的第一图像,a fourth display module, configured to display the first image of the object according to the display instruction and the positional relationship between the second terminal device and the first terminal device when receiving the display instruction sent by the first terminal device,

第一终端设备上显示的对象的第二图像与第二终端设备上显示的对象的第一图像能够拼成对象的完整图像。The second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be combined to form a complete image of the object.

结合第一方面、第一方面的多种实现方式、第二方面、第二方面的多种实现方式、第三方面、第三方面的多种实现方式、第四方面、第四方面的多种实现方式,在一种可能的实现方式中,第一跨设备传输操作为拖拽操作,第二跨设备传输操作为拖拽释放操作。Combining the first aspect, multiple implementations of the first aspect, the second aspect, multiple implementations of the second aspect, the third aspect, multiple implementations of the third aspect, the fourth aspect, and multiple implementations of the fourth aspect Implementation manner, in a possible implementation manner, the first cross-device transmission operation is a drag operation, and the second cross-device transmission operation is a drag release operation.

第五方面,本申请的实施例提供了一种数据的传输装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为执行指令时实现上述方法。In a fifth aspect, embodiments of the present application provide a data transmission apparatus, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions.

第六方面,本申请的实施例提供了一种非易失性计算机可读存储介质,其上存储有计算机程序指令,其中,所述计算机程序指令被处理器执行时实现上述方法。In a sixth aspect, embodiments of the present application provide a non-volatile computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the above method when executed by a processor.

第七方面,本申请的实施例提供了一种终端设备,该终端设备可以执行上面第一方面或者第一方面的多种实现方式中的一种或几种的数据的传输方法。In a seventh aspect, an embodiment of the present application provides a terminal device, where the terminal device can execute one or more of the data transmission methods in the first aspect or multiple implementation manners of the first aspect.

结合第七方面的第一种可能的实现方式中,该终端设备还可以执行上面第二方面或者第二方面的多种实现方式中的一种或几种的数据的传输方法。In combination with the first possible implementation manner of the seventh aspect, the terminal device may also perform one or more of the data transmission methods of the second aspect or multiple implementation manners of the second aspect.

第八方面,本申请的实施例提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行上述方法。In an eighth aspect, embodiments of the present application provide a computer program product, comprising computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in an electronic When running in the device, the processor in the electronic device executes the above method.

通过上述各实施方式的数据的传输方法及装置,能够根据对象的数据类型和接收端的匹配程度为用户提供直观的视觉反馈,避免错误操作和反复操作,提高操作效率。The data transmission method and device of the above-mentioned embodiments can provide users with intuitive visual feedback according to the data type of the object and the matching degree of the receiving end, avoid erroneous operation and repeated operation, and improve operation efficiency.

根据下面参考附图对示例性实施例的详细说明,本申请的其它特征及方面将变得清楚。Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.

附图说明Description of drawings

包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了本申请的示例性实施例、特征和方面,并且用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features and aspects of the application and together with the description, serve to explain the principles of the application.

图1示出根据本申请一实施例的应用场景的示意图。FIG. 1 shows a schematic diagram of an application scenario according to an embodiment of the present application.

图2示出根据本申请一实施例的终端设备内部系统结构示意图。FIG. 2 shows a schematic structural diagram of an internal system of a terminal device according to an embodiment of the present application.

图3a和图3b分别示出根据本申请一实施例的数据的传输方法的流程图。3a and 3b respectively show a flowchart of a data transmission method according to an embodiment of the present application.

图4示出根据本申请一实施例的数据的传输方法的应用场景的示意图。FIG. 4 shows a schematic diagram of an application scenario of a data transmission method according to an embodiment of the present application.

图5a和图5b分别示出根据本申请一实施例的显示判断结果的方式的示例。Fig. 5a and Fig. 5b respectively illustrate an example of a manner of displaying a judgment result according to an embodiment of the present application.

图6示出根据本申请一实施例的dragevent事件包含的字段的示意图。FIG. 6 shows a schematic diagram of fields included in a dragevent event according to an embodiment of the present application.

图7示出根据本申请一实施例的应用场景的示意图。FIG. 7 shows a schematic diagram of an application scenario according to an embodiment of the present application.

图8a和图8b分别示出根据本申请一实施例的数据的传输方法的流程图。8a and 8b respectively show a flowchart of a data transmission method according to an embodiment of the present application.

图8c示出根据本申请一实施例的应用场景的交互流程图。FIG. 8c shows an interaction flowchart of an application scenario according to an embodiment of the present application.

图9a示出根据本申请一实施例的数据的传输方法的流程图。FIG. 9a shows a flowchart of a data transmission method according to an embodiment of the present application.

图9b示出根据本申请一实施例的数据的传输方法的流程图。FIG. 9b shows a flowchart of a data transmission method according to an embodiment of the present application.

图9c示出根据本申请一实施例的数据的传输方法的流程图。FIG. 9c shows a flowchart of a data transmission method according to an embodiment of the present application.

图9d和图9e分别示出根据本申请一实施例的终端设备的显示界面的示意图。FIG. 9d and FIG. 9e respectively show schematic diagrams of a display interface of a terminal device according to an embodiment of the present application.

图9f示出根据本申请一实施例的具体应用场景的示意图。FIG. 9f shows a schematic diagram of a specific application scenario according to an embodiment of the present application.

图9g示出根据本申请一实施例的终端设备的显示界面的示意图。FIG. 9g shows a schematic diagram of a display interface of a terminal device according to an embodiment of the present application.

图10示出根据本申请一实施例的应用场景的示意图。FIG. 10 shows a schematic diagram of an application scenario according to an embodiment of the present application.

图11a示出根据本申请一实施例的第一终端设备的显示界面的示意图。FIG. 11a shows a schematic diagram of a display interface of a first terminal device according to an embodiment of the present application.

图11b示出根据本申请一实施例的第一终端设备的显示界面的示意图。FIG. 11b shows a schematic diagram of a display interface of a first terminal device according to an embodiment of the present application.

图11c示出根据本申请一实施例的第一终端设备的显示界面的示意图。FIG. 11c shows a schematic diagram of a display interface of a first terminal device according to an embodiment of the present application.

图11d示出根据本申请一实施例的第一终端设备的显示界面的应用场景示意图。FIG. 11d shows a schematic diagram of an application scenario of a display interface of a first terminal device according to an embodiment of the present application.

图12a示出根据本申请一实施例的数据的传输方法的流程图。FIG. 12a shows a flowchart of a data transmission method according to an embodiment of the present application.

图12b示出根据本申请一实施例的数据的传输方法的流程图。FIG. 12b shows a flowchart of a data transmission method according to an embodiment of the present application.

图13a示出根据本申请一实施例的应用场景的示意图。FIG. 13a shows a schematic diagram of an application scenario according to an embodiment of the present application.

图13b示出根据本申请一实施例的跨屏显示的示意图。FIG. 13b shows a schematic diagram of multi-screen display according to an embodiment of the present application.

图14a示出根据本申请一实施例的数据的传输方法的流程图。FIG. 14a shows a flowchart of a data transmission method according to an embodiment of the present application.

图14b示出根据本申请一实施例的数据的传输方法的流程图。FIG. 14b shows a flowchart of a data transmission method according to an embodiment of the present application.

图15示出根据本申请一实施例的应用场景的示意图。FIG. 15 shows a schematic diagram of an application scenario according to an embodiment of the present application.

图16示出根据本申请一实施例的数据的传输方法的流程图。FIG. 16 shows a flowchart of a data transmission method according to an embodiment of the present application.

图17示出根据本申请一实施例的数据的传输装置的框图。FIG. 17 shows a block diagram of a data transmission apparatus according to an embodiment of the present application.

图18示出根据本申请一实施例的数据的传输装置的框图。FIG. 18 shows a block diagram of a data transmission apparatus according to an embodiment of the present application.

图19示出根据本申请一实施例的终端设备的结构示意图。FIG. 19 shows a schematic structural diagram of a terminal device according to an embodiment of the present application.

图20示出根据本申请一实施例的终端设备的软件结构框图。FIG. 20 shows a block diagram of a software structure of a terminal device according to an embodiment of the present application.

具体实施方式Detailed ways

以下将参考附图详细说明本申请的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures denote elements that have the same or similar functions. While various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.

在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.

另外,为了更好的说明本申请,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本申请同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本申请的主旨。In addition, in order to better illustrate the present application, numerous specific details are given in the following detailed description. It should be understood by those skilled in the art that the present application may be practiced without certain specific details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail so as not to obscure the subject matter of the present application.

为了解决上述技术问题,本申请提供了一种数据的传输方法,本申请实施例的数据的传输方法能够实现跨设备的数据传输,该传输方法可以应用于终端设备,根据待传输的对象与接收设备的匹配程度提供直观的视觉反馈,提高操作效率。In order to solve the above technical problems, the present application provides a data transmission method. The data transmission method of the embodiment of the present application can realize data transmission across devices, and the transmission method can be applied to terminal devices. The degree of matching of the equipment provides intuitive visual feedback and improves operational efficiency.

在本申请的实施方式中,可以将发起跨设备传输数据并发送数据的一方称作源(source)端、接收数据的一方称作接收(sink)端。需要说明的是,在一对关系中作为源端的设备,在另一对关系中也可能为接收端,也就是说,对于一个终端设备来说,其既可能是作为另一个终端设备的源端,也可能是另一个终端设备的接收端。In the embodiments of the present application, the party that initiates cross-device transmission of data and sends the data may be referred to as the source (source) end, and the party that receives the data may be referred to as the sink (sink) end. It should be noted that the device that is the source end in one pair of relationships may also be the sink end in another pair of relationships, that is, for one terminal device, it may be the source end of another terminal device. , and possibly the receiver of another terminal device.

本申请涉及的终端设备(包括上文所述的源端的设备和接收端的设备)可以是指具有无线连接功能的设备,无线连接的功能是指可以通过wifi、蓝牙等无线连接方式与其他终端设备进行连接,本申请的终端设备也可以具有有线连接进行通信的功能。本申请的终端设备可以是触屏的、也可以是非触屏的、也可以是没有屏幕的,触屏的可以通过手指、触控笔等在显示屏幕上点击、滑动等方式对终端设备进行控制,非触屏的设备可以连接鼠标、键盘、触控面板等输入设备,通过输入设备对终端设备进行控制,没有屏幕的设备比如说可以是没有屏幕的蓝牙音箱等。The terminal equipment involved in this application (including the above-mentioned source-side equipment and receiving-side equipment) may refer to a device with a wireless connection function. For connection, the terminal device of the present application may also have the function of wired connection for communication. The terminal device of this application may be a touch screen, a non-touch screen, or no screen, and a touch screen can control the terminal device by clicking, sliding, etc. on the display screen with a finger, a stylus pen, etc. , Non-touch screen devices can be connected to input devices such as mouse, keyboard, touch panel, etc., and the terminal device can be controlled through the input device. For example, devices without a screen can be a Bluetooth speaker without a screen.

举例来说,本申请的终端设备可以是智能手机、上网本、平板电脑、笔记本电脑、可穿戴电子设备(如智能手环、智能手表等)、TV、虚拟现实设备、音响、电子墨水,等等。For example, the terminal device of the present application can be a smartphone, a netbook, a tablet computer, a notebook computer, a wearable electronic device (such as a smart bracelet, a smart watch, etc.), a TV, a virtual reality device, an audio system, an electronic ink, etc. .

图19示出根据本申请一实施例的终端设备的结构示意图。以终端设备是手机为例,图19示出了手机200的结构示意图。FIG. 19 shows a schematic structural diagram of a terminal device according to an embodiment of the present application. Taking the terminal device being a mobile phone as an example, FIG. 19 shows a schematic structural diagram of the mobile phone 200 .

手机200可以包括处理器210,外部存储器接口220,内部存储器221,USB接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块251,无线通信模块252,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及SIM卡接口295等。其中传感器模块280可以包括陀螺仪传感器280A,加速度传感器280B,接近光传感器280G、指纹传感器280H,触摸传感器280K(当然,手机200还可以包括其它传感器,比如温度传感器,压力传感器、距离传感器、磁传感器、环境光传感器、气压传感器、骨传导传感器等,图中未示出)。The mobile phone 200 may include a processor 210, an external memory interface 220, an internal memory 221, a USB interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 251, a wireless communication module 252, Audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, sensor module 280, buttons 290, motor 291, indicator 292, camera 293, display screen 294, SIM card interface 295, etc. The sensor module 280 may include a gyroscope sensor 280A, an acceleration sensor 280B, a proximity light sensor 280G, a fingerprint sensor 280H, and a touch sensor 280K (of course, the mobile phone 200 may also include other sensors, such as a temperature sensor, a pressure sensor, a distance sensor, and a magnetic sensor. , ambient light sensor, air pressure sensor, bone conduction sensor, etc., not shown in the figure).

可以理解的是,本申请实施例示意的结构并不构成对手机200的具体限定。在本申请另一些实施例中,手机200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile phone 200 . In other embodiments of the present application, the mobile phone 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是手机200的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor ( image signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors. The controller may be the nerve center and command center of the mobile phone 200 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.

处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in processor 210 is cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 210 . If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.

处理器210可以运行本申请实施例提供的数据的传输方法,以便于降低用户的操作复杂度、提高终端设备的智能化程度,提升用户的体验。处理器210可以包括不同的器件,比如集成CPU和GPU时,CPU和GPU可以配合执行本申请实施例提供的数据的传输方法,比如数据的传输方法中部分算法由CPU执行,另一部分算法由GPU执行,以得到较快的处理效率。The processor 210 may execute the data transmission method provided by the embodiments of the present application, so as to reduce the operation complexity of the user, improve the intelligence of the terminal device, and improve the user experience. The processor 210 may include different devices. For example, when the CPU and the GPU are integrated, the CPU and the GPU may cooperate to execute the data transmission method provided by the embodiments of the present application. For example, in the data transmission method, some algorithms are executed by the CPU, and another part of the algorithms are executed by the GPU. Execute for faster processing efficiency.

显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,手机200可以包括1个或N个显示屏294,N为大于1的正整数。显示屏294可用于显示由用户输入的信息或提供给用户的信息以及各种图形用户界面(graphical user interface,GUI)。例如,显示器294可以显示照片、视频、网页、或者文件等。再例如,显示器294可以显示图形用户界面。其中,图形用户界面上包括状态栏、可隐藏的导航栏、时间和天气小组件(widget)、以及应用的图标,例如浏览器图标等。状态栏中包括运营商名称(例如中国移动)、移动网络(例如4G)、时间和剩余电量。导航栏中包括后退(back)键图标、主屏幕(home)键图标和前进键图标。此外,可以理解的是,在一些实施例中,状态栏中还可以包括蓝牙图标、Wi-Fi图标、外接设备图标等。还可以理解的是,在另一些实施例中,图形用户界面中还可以包括Dock栏,Dock栏中可以包括常用的应用图标等。当处理器210检测到用户的手指(或触控笔等)针对某一应用图标的触摸事件后,响应于该触摸事件,打开与该应用图标对应的应用的用户界面,并在显示器294上显示该应用的用户界面。Display screen 294 is used to display images, videos, and the like. Display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED) and so on. In some embodiments, cell phone 200 may include 1 or N display screens 294, where N is a positive integer greater than 1. The display screen 294 may be used to display information entered by or provided to the user as well as various graphical user interfaces (GUIs). For example, display 294 may display photos, videos, web pages, or documents, and the like. As another example, display 294 may display a graphical user interface. The GUI includes a status bar, a hideable navigation bar, a time and weather widget, and an application icon, such as a browser icon. The status bar includes operator name (eg China Mobile), mobile network (eg 4G), time and remaining battery. The navigation bar includes a back button icon, a home button icon, and a forward button icon. In addition, it can be understood that, in some embodiments, the status bar may further include a Bluetooth icon, a Wi-Fi icon, an external device icon, and the like. It can also be understood that, in other embodiments, the graphical user interface may further include a Dock bar, and the Dock bar may include commonly used application icons and the like. After the processor 210 detects a touch event of the user's finger (or stylus, etc.) on an application icon, in response to the touch event, the user interface of the application corresponding to the application icon is opened and displayed on the display 294 The user interface of the application.

在本申请实施例中,显示屏294可以是一个一体的柔性显示屏,也可以采用两个刚性屏以及位于两个刚性屏之间的一个柔性屏组成的拼接显示屏。In this embodiment of the present application, the display screen 294 may be an integrated flexible display screen, or a spliced display screen composed of two rigid screens and a flexible screen located between the two rigid screens.

当处理器210运行本申请实施例提供的数据的传输方法后,终端设备可以通过天线1、天线2或者USB接口与其他的终端设备建立连接,并根据本申请实施例提供的数据的传输方法传输数据以及控制显示屏294显示相应的图形用户界面。After the processor 210 runs the data transmission method provided by the embodiment of the present application, the terminal device can establish a connection with other terminal devices through the antenna 1, the antenna 2 or the USB interface, and transmit the data according to the data transmission method provided by the embodiment of the present application. The data and control display 294 displays a corresponding graphical user interface.

摄像头293(前置摄像头或者后置摄像头,或者一个摄像头既可作为前置摄像头,也可作为后置摄像头)用于捕获静态图像或视频。通常,摄像头293可以包括感光元件比如镜头组和图像传感器,其中,镜头组包括多个透镜(凸透镜或凹透镜),用于采集待拍摄物体反射的光信号,并将采集的光信号传递给图像传感器。图像传感器根据所述光信号生成待拍摄物体的原始图像。Camera 293 (front camera or rear camera, or a camera that can be both a front camera and a rear camera) is used to capture still images or video. Generally, the camera 293 may include a photosensitive element such as a lens group and an image sensor, wherein the lens group includes a plurality of lenses (convex or concave) for collecting the light signal reflected by the object to be photographed, and transmitting the collected light signal to the image sensor . The image sensor generates an original image of the object to be photographed according to the light signal.

内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行手机200的各种功能应用以及数据处理。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,应用程序(比如相机应用,微信应用等)的代码等。存储数据区可存储手机200使用过程中所创建的数据(比如相机应用采集的图像、视频等)等。Internal memory 221 may be used to store computer executable program code, which includes instructions. The processor 210 executes various functional applications and data processing of the mobile phone 200 by executing the instructions stored in the internal memory 221 . The internal memory 221 may include a storage program area and a storage data area. The storage program area may store operating system, code of application programs (such as camera application, WeChat application, etc.), and the like. The storage data area may store data created during the use of the mobile phone 200 (such as images and videos collected by the camera application) and the like.

内部存储器221还可以存储本申请实施例提供的数据的传输方法对应的一个或多个计算机程序1310。该一个或多个计算机程序1304被存储在上述存储器221中并被配置为被该一个或多个处理器210执行,该一个或多个计算机程序1310包括指令,上述指令可以用于执行如图3a、图3b、图8a、图8b、图9a—图9c、图12a、图12b、图14a、图14b或图16相应实施例中的各个步骤,该计算机程序1310可以包括第一获取模块61、第一发送模块62、第一接收模块63以及第一显示模块64。其中,第一获取模块61,用于所述第一终端设备在检测到针对所述第一终端设备上的对象的第一跨设备传输操作时,获取所述对象的数据类型;第一发送模块62,用于向所述第二终端设备发送携带有所述数据类型的判断请求,第一接收模块63,用于接收来自所述第二终端设备基于所述数据类型做出的判断结果,所述判断结果表示所述对象是否能够传输至第二终端设备;第一显示模块64,用于显示所述判断结果。当内部存储器221中存储的数据的传输方法的代码被处理器210运行时,处理器210可以控制显示屏显示判断结果。The internal memory 221 may also store one or more computer programs 1310 corresponding to the data transmission methods provided in the embodiments of the present application. The one or more computer programs 1304 are stored in the aforementioned memory 221 and configured to be executed by the one or more processors 210, and the one or more computer programs 1310 include instructions that may be used to perform the execution of FIG. 3a , Fig. 3b, Fig. 8a, Fig. 8b, Fig. 9a-Fig. 9c, Fig. 12a, Fig. 12b, Fig. 14a, Fig. 14b or Fig. 16 each step in the corresponding embodiment, this computer program 1310 can comprise the first obtaining module 61, The first sending module 62 , the first receiving module 63 and the first display module 64 . Wherein, the first obtaining module 61 is used for the first terminal device to obtain the data type of the object when detecting the first cross-device transmission operation for the object on the first terminal device; the first sending module 62, for sending a judgment request carrying the data type to the second terminal device, the first receiving module 63, for receiving the judgment result made by the second terminal device based on the data type, the The judgment result indicates whether the object can be transmitted to the second terminal device; the first display module 64 is used to display the judgment result. When the code of the data transmission method stored in the internal memory 221 is executed by the processor 210, the processor 210 can control the display screen to display the judgment result.

此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。In addition, the internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.

当然,本申请实施例提供的数据的传输方法的代码还可以存储在外部存储器中。这种情况下,处理器210可以通过外部存储器接口220运行存储在外部存储器中的数据的传输方法的代码。Certainly, the code of the data transmission method provided by the embodiment of the present application may also be stored in an external memory. In this case, the processor 210 may execute the code of the transmission method of the data stored in the external memory through the external memory interface 220 .

下面介绍传感器模块280的功能。The function of the sensor module 280 is described below.

陀螺仪传感器280A,可以用于确定手机200的运动姿态。在一些实施例中,可以通过陀螺仪传感器280A确定手机200围绕三个轴(即,x,y和z轴)的角速度。即陀螺仪传感器280A可以用于检测手机200当前的运动状态,比如抖动还是静止。The gyro sensor 280A can be used to determine the movement posture of the mobile phone 200 . In some embodiments, the angular velocity of cell phone 200 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 280A. That is, the gyro sensor 280A can be used to detect the current motion state of the mobile phone 200, such as shaking or still.

当本申请实施例中的显示屏为可折叠屏时,陀螺仪传感器280A可用于检测作用于显示屏294上的折叠或者展开操作。陀螺仪传感器280A可以将检测到的折叠操作或者展开操作作为事件上报给处理器210,以确定显示屏294的折叠状态或展开状态。When the display screen in the embodiment of the present application is a foldable screen, the gyro sensor 280A can be used to detect a folding or unfolding operation acting on the display screen 294 . The gyroscope sensor 280A may report the detected folding operation or unfolding operation to the processor 210 as an event to determine the folding state or unfolding state of the display screen 294 .

加速度传感器280B可检测手机200在各个方向上(一般为三轴)加速度的大小。即陀螺仪传感器280A可以用于检测手机200当前的运动状态,比如抖动还是静止。当本申请实施例中的显示屏为可折叠屏时,加速度传感器280B可用于检测作用于显示屏294上的折叠或者展开操作。加速度传感器280B可以将检测到的折叠操作或者展开操作作为事件上报给处理器210,以确定显示屏294的折叠状态或展开状态。The acceleration sensor 280B can detect the magnitude of the acceleration of the mobile phone 200 in various directions (generally three axes). That is, the gyro sensor 280A can be used to detect the current motion state of the mobile phone 200, such as shaking or still. When the display screen in the embodiment of the present application is a foldable screen, the acceleration sensor 280B can be used to detect a folding or unfolding operation acting on the display screen 294 . The acceleration sensor 280B may report the detected folding operation or unfolding operation to the processor 210 as an event to determine the folding state or unfolding state of the display screen 294 .

接近光传感器280G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。手机通过发光二极管向外发射红外光。手机使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定手机附近有物体。当检测到不充分的反射光时,手机可以确定手机附近没有物体。当本申请实施例中的显示屏为可折叠屏时,接近光传感器280G可以设置在可折叠的显示屏294的第一屏上,接近光传感器280G可根据红外信号的光程差来检测第一屏与第二屏的折叠角度或者展开角度的大小。Proximity light sensor 280G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The mobile phone emits infrared light outward through light-emitting diodes. Phones use photodiodes to detect reflected infrared light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the phone. When insufficient reflected light is detected, the phone can determine that there are no objects near the phone. When the display screen in the embodiment of the present application is a foldable screen, the proximity light sensor 280G can be arranged on the first screen of the foldable display screen 294, and the proximity light sensor 280G can detect the first screen according to the optical path difference of the infrared signal. The size of the folding or unfolding angle between the screen and the second screen.

陀螺仪传感器280A(或加速度传感器280B)可以将检测到的运动状态信息(比如角速度)发送给处理器210。处理器210基于运动状态信息确定当前是手持状态还是脚架状态(比如,角速度不为0时,说明手机200处于手持状态)。The gyroscope sensor 280A (or the acceleration sensor 280B) may send the detected motion state information (such as angular velocity) to the processor 210 . The processor 210 determines, based on the motion state information, whether the current state is the hand-held state or the tripod state (for example, when the angular velocity is not 0, it means that the mobile phone 200 is in the hand-held state).

指纹传感器280H用于采集指纹。手机200可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 280H is used to collect fingerprints. The mobile phone 200 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.

触摸传感器280K,也称“触控面板”。触摸传感器280K可以设置于显示屏294,由触摸传感器280K与显示屏294组成触摸屏,也称“触控屏”。触摸传感器280K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏294提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器280K也可以设置于手机200的表面,与显示屏294所处的位置不同。Touch sensor 280K, also called "touch panel". The touch sensor 280K may be disposed on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, also called a "touch screen". The touch sensor 280K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 294 . In other embodiments, the touch sensor 280K may also be disposed on the surface of the mobile phone 200 , which is different from the location where the display screen 294 is located.

示例性的,手机200的显示屏294显示主界面,主界面中包括多个应用(比如相机应用、微信应用等)的图标。用户通过触摸传感器280K点击主界面中相机应用的图标,触发处理器210启动相机应用,打开摄像头293。显示屏294显示相机应用的界面,例如取景界面。Exemplarily, the display screen 294 of the mobile phone 200 displays a main interface, and the main interface includes icons of multiple applications (such as a camera application, a WeChat application, etc.). The user clicks the icon of the camera application in the main interface through the touch sensor 280K, which triggers the processor 210 to start the camera application and turn on the camera 293 . Display screen 294 displays an interface of a camera application, such as a viewfinder interface.

手机200的无线通信功能可以通过天线1,天线2,移动通信模块251,无线通信模块252,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone 200 can be realized by the antenna 1, the antenna 2, the mobile communication module 251, the wireless communication module 252, the modulation and demodulation processor, the baseband processor, and the like.

天线1和天线2用于发射和接收电磁波信号。手机200中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in handset 200 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块251可以提供应用在手机200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块251可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(lownoise amplifier,LNA)等。移动通信模块251可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块251还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块251的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块251的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。在本申请实施例中,移动通信模块251还可以用于与其它终端设备进行信息交互。The mobile communication module 251 can provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the mobile phone 200 . The mobile communication module 251 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 251 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 251 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 251 may be provided in the processor 210 . In some embodiments, at least part of the functional modules of the mobile communication module 251 may be provided in the same device as at least part of the modules of the processor 210 . In this embodiment of the present application, the mobile communication module 251 may also be used for information interaction with other terminal devices.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器270A,受话器270B等)输出声音信号,或通过显示屏294显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器210,与移动通信模块251或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 270A, the receiver 270B, etc.), or displays images or videos through the display screen 294 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modulation and demodulation processor may be independent of the processor 210, and may be provided in the same device as the mobile communication module 251 or other functional modules.

无线通信模块252可以提供应用在手机200上的包括无线局域网(wireless localarea networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequencymodulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块252可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块252经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块252还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。本申请实施例中,无线通信模块252,用于在处理器210的控制下与其他终端设备之间传输数据,比如,处理器210运行本申请实施例提供的数据的传输方法时,处理器可以控制无线通信模块252向其他终端设备发送判断请求,还可以接收其他终端设备基于上述判断请求做出的判断结果,判断结果表示要传输的数据能否传输给其他终端设备,然后控制显示屏294显示判断结果,为用户提供直观的视觉反馈,避免错误操作和反复操作,提高操作效率The wireless communication module 252 can provide applications on the mobile phone 200 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite systems ( global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 252 may be one or more devices integrating at least one communication processing module. The wireless communication module 252 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 . The wireless communication module 252 can also receive the signal to be sent from the processor 210 , perform frequency modulation on the signal, amplify the signal, and then convert it into an electromagnetic wave for radiation through the antenna 2 . In this embodiment of the present application, the wireless communication module 252 is configured to transmit data with other terminal devices under the control of the processor 210. For example, when the processor 210 executes the data transmission method provided in the embodiment of the present application, the processor may Control the wireless communication module 252 to send a judgment request to other terminal equipment, and can also receive judgment results made by other terminal equipment based on the above judgment request, the judgment result indicates whether the data to be transmitted can be transmitted to other terminal equipment, and then control the display screen 294 to display Judging the results, providing users with intuitive visual feedback, avoiding wrong operations and repeated operations, and improving operation efficiency

另外,手机200可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器等实现音频功能。例如音乐播放,录音等。手机200可以接收按键290输入,产生与手机200的用户设置以及功能控制有关的键信号输入。手机200可以利用马达291产生振动提示(比如来电振动提示)。手机200中的指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。手机200中的SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和手机200的接触和分离。In addition, the mobile phone 200 can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, and an application processor. Such as music playback, recording, etc. The cell phone 200 can receive key 290 input and generate key signal input related to user settings and function control of the cell phone 200 . The mobile phone 200 can use the motor 291 to generate vibration alerts (eg, vibration alerts for incoming calls). The indicator 292 in the mobile phone 200 may be an indicator light, which may be used to indicate a charging state, a change in power, and may also be used to indicate a message, a missed call, a notification, and the like. The SIM card interface 295 in the mobile phone 200 is used to connect the SIM card. The SIM card can be contacted and separated from the mobile phone 200 by inserting into the SIM card interface 295 or pulling out from the SIM card interface 295 .

应理解,在实际应用中,手机200可以包括比图19所示的更多或更少的部件,本申请实施例不作限定。图示手机200仅是一个范例,并且手机200可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that, in practical applications, the mobile phone 200 may include more or less components than those shown in FIG. 19 , which are not limited in this embodiment of the present application. The illustrated handset 200 is merely an example, and the handset 200 may have more or fewer components than those shown, two or more components may be combined, or may have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.

终端设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明终端设备的软件结构。The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of a terminal device.

图20是本申请实施例的终端设备的软件结构框图。FIG. 20 is a block diagram of a software structure of a terminal device according to an embodiment of the present application.

分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and system libraries, and a kernel layer.

应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.

如图20所示,应用程序包可以包括电话、相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 20, the application package may include applications such as phone, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications of the application layer. The application framework layer includes some predefined functions.

如图20所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 20, the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。窗口管理器还可以用于检测是否存在本申请实施例的扩设备传输操作,例如拖拽操作。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc. The window manager may also be used to detect whether there is an extension device transmission operation in this embodiment of the present application, such as a drag and drop operation.

内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.

电话管理器用于提供终端设备的通信功能。例如通话状态的管理(包括接通,挂断等)。The telephony manager is used to provide the communication function of the terminal device. For example, the management of call status (including connecting, hanging up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the terminal device vibrates, and the indicator light flashes.

Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.

系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL) and so on.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.

图1示出根据本申请一实施例的应用场景的示意图。如图1所示,第一终端设备和第二终端设备之间可以通过蓝牙、热点、WIFI等方式建立无线连接并进行配对,也可以通过有线的方式进行连接,比如说手机和笔记本电脑之间通过USB数据线连接,等等,本申请对具体的连接方式不作限定。本领域技术人员可以理解的是,第一终端设备和第二终端设备都可以是源端或者接收端,在本申请的实施例中,为了便于清楚的说明技术方案,在无特别说明的情况下,第一终端设备为源端,第二终端设备为接收端。FIG. 1 shows a schematic diagram of an application scenario according to an embodiment of the present application. As shown in Figure 1, a wireless connection can be established and paired between the first terminal device and the second terminal device through Bluetooth, hotspot, WIFI, etc., or a wired connection, such as between a mobile phone and a laptop It is connected through a USB data line, etc., and the specific connection manner is not limited in this application. It can be understood by those skilled in the art that both the first terminal device and the second terminal device may be a source end or a receiving end. In the embodiments of the present application, in order to clearly describe the technical solution, unless otherwise specified , the first terminal device is the source end, and the second terminal device is the receiver end.

图2示出根据本申请一实施例的终端设备内部系统结构示意图,如图2所示,所述终端设备的系统可以包括应用服务层、应用程序框架层(图2中的Framework为一个示例)以及实现跨设备数据传输功能的跨设备传输服务系统,例如,图2中的拖拽服务系统为跨设备传输服务系统的一个示例。FIG. 2 shows a schematic diagram of the internal system structure of a terminal device according to an embodiment of the present application. As shown in FIG. 2 , the system of the terminal device may include an application service layer and an application framework layer (the Framework in FIG. 2 is an example) And a cross-device transmission service system that implements a function of cross-device data transmission. For example, the drag-and-drop service system in FIG. 2 is an example of a cross-device transmission service system.

其中,应用程序框架层可以参见图20中的相关内容,本实施例中,应用程序框架层可以包括inputDispatcher、View系统以及WmS(windowManagerService),Framework层中的inputDispatcher负责接收用户操作,并分发给各个窗口处理;WmS可以与View系统一起作为窗口管理器的一部分管理显示的窗口,WmS响应用户在窗口内的用户操作,如拖拽动作、触屏动作、点击操作等,WmS响应于用户操作可以判断用户操作是否为跨设备传输操作(例如,拖拽操作),这里的跨设备传输操作可以是指用于将一个终端设备上的对象传输至另一个终端设备的操作,也就是终端设备检测到其作为源端的操作,跨设备传输操作可以是预先设置的一个或一系列操作,在WmS将用户操作与预先设置的操作进行比较,判断用户操作符合预先设置的操作时,可以确定用户操作为跨设备传输操作。如果WmS确定用户操作为是跨设备传输操作,则可以产生跨设备传输事件并发送给拖拽服务系统,拖拽服务系统可以是在系统运行库层添加的用于实现基于拖拽等各种形式的操作进行跨设备数据传输的服务,拖拽服务系统可以监听Framework层的跨设备传输事件,并将跨设备传输事件发送给连接的另一终端设备的拖拽服务系统。The application framework layer can refer to the relevant content in Figure 20. In this embodiment, the application framework layer may include inputDispatcher, View system, and WmS (windowManagerService). The inputDispatcher in the Framework layer is responsible for receiving user operations and distributing them to various Window processing; WmS can manage the displayed windows as part of the window manager together with the View system. WmS responds to user operations in the window, such as drag and drop actions, touch screen actions, click operations, etc. WmS responds to user operations to determine Whether the user operation is a cross-device transfer operation (for example, a drag-and-drop operation), the cross-device transfer operation here may refer to an operation used to transfer an object on one terminal device to another terminal device, that is, the terminal device detects the As the operation of the source end, the cross-device transmission operation can be one or a series of preset operations. When WmS compares the user operation with the preset operation and determines that the user operation conforms to the preset operation, it can determine that the user operation is a cross-device operation. transfer operation. If WmS determines that the user operation is a cross-device transfer operation, it can generate a cross-device transfer event and send it to the drag and drop service system. The drag and drop service system can be added at the system runtime layer to implement various forms based on drag and drop The drag service system can monitor the cross-device transmission event of the Framework layer, and send the cross-device transmission event to the drag service system of another connected terminal device.

应用服务层中的应用服务可以在Framework层的WmS注册跨设备传输操作的监听(例如,拖拽监听),在注册跨设备传输操作的监听后,如果终端设备的Framework层检测到窗口内有针对应用服务的跨设备传输事件(例如,拖拽事件)或者一个终端的拖拽服务系统接收到另一个终端的拖拽服务系统发送的跨设备传输事件,Framework层可以将跨设备传事件发送给应用服务,应用服务可以确定是否能够接受跨设备传事件的对象(数据)。其中,针对应用服务的跨设备传输事件可以是指用户将一个终端上的对象拖拽到另一个终端上的应用服务、应用服务内的位置等,终端设备的Framework层检测到窗口内有针对应用服务的跨设备传输事件可以是指作为接收端的设备在接收到源端发送的对象后,在本地的显示窗口检测到针对对象的拖拽等用于将对象拖入到应用服务或者应用服务内的位置的操作,此时,接收端的Framework层可以将跨设备传事件发送给应用服务,应用服务可以确定是否能够接受跨设备传事件的对象(数据)。The application service in the application service layer can register the monitoring of cross-device transmission operations (for example, drag and drop monitoring) in the WmS of the Framework layer. After registering the monitoring of the cross-device transmission operation, if the Framework layer of the terminal device detects that there is a target When a cross-device transmission event (for example, a drag event) of an application service or a drag service system of one terminal receives a cross-device transmission event sent by a drag service system of another terminal, the Framework layer can send the cross-device transmission event to the application Service, the application service can determine whether it can accept the object (data) of the event passed across the device. The cross-device transmission event for an application service may refer to a user dragging an object on one terminal to an application service on another terminal, a location in the application service, etc., and the Framework layer of the terminal device detects that there is a target for the application in the window. The cross-device transmission event of a service may refer to the event that the device serving as the receiving end detects the drag and drop of the object in the local display window after receiving the object sent by the source end, which is used to drag the object into the application service or the application service. Location operation, at this time, the framework layer of the receiving end can send the cross-device transmission event to the application service, and the application service can determine whether it can accept the object (data) of the cross-device transmission event.

在一种可能的实现方式中,图2中的拖拽服务系统可以包括第一接口和第二接口。其中,第一接口可以用于和Framework层之间的通信,第二接口可以用于与终端设备的通信组件之间的通信,终端设备的通信组件可以是无线通信组件,例如天线等,也可以是实现有线通信的硬件接口,本申请对此不作限定。In a possible implementation manner, the drag-and-drop service system in FIG. 2 may include a first interface and a second interface. The first interface can be used for communication with the Framework layer, and the second interface can be used for communication with the communication component of the terminal device. The communication component of the terminal device can be a wireless communication component, such as an antenna, etc., or It is a hardware interface for realizing wired communication, which is not limited in this application.

第一接口和第二接口都可以通过软件接口的形式实现,比如说第一接口和第二接口都可以通过回调函数实现,拖拽服务系统的其他功能也可以通过软件的形式实现。举例来说,可以通过在Framework层注册监听跨设备传输操作的回调函数,也就是说可以在Framework层注册调用拖拽服务系统(拖拽服务函数)的指针,Framework层在监听到跨设备传输操作时,可以产生跨设备传输事件,从而触发调用拖拽服务系统(拖拽服务函数)。拖拽服务系统可以根据Framework层的跨设备传输事件生成判断请求,并通过第二接口和通信组件发送给另一个终端设备。另一终端设备的拖拽服务系统在接收到判断请求后,可以通过第一接口发送给自己的Framework层。Both the first interface and the second interface can be implemented in the form of software interfaces. For example, both the first interface and the second interface can be implemented by callback functions, and other functions of the drag-and-drop service system can also be implemented in the form of software. For example, you can register a callback function that monitors the cross-device transmission operation in the Framework layer, that is to say, you can register the pointer to call the drag service system (drag service function) in the Framework layer, and the Framework layer is listening to the cross-device transmission operation. , a cross-device transmission event can be generated, thereby triggering the invocation of the drag service system (drag service function). The dragging service system can generate a judgment request according to the cross-device transmission event of the Framework layer, and send it to another terminal device through the second interface and the communication component. After receiving the judgment request, the dragging service system of the other terminal device may send it to its own Framework layer through the first interface.

需要说明的是,图2中仅仅展示了一个终端设备的Framework层中的内部结构,另一个终端设备内也有相同的结构,仅仅是未示出。It should be noted that FIG. 2 only shows the internal structure in the Framework layer of one terminal device, and another terminal device also has the same structure, which is just not shown.

终端设备内安装的操作系统可以是Android、ios、windows、mac、Linux等系统,本申请对此不作限定,针对不同的系统都可以根据以上方式开发拖拽服务的应用程序以支持通过拖拽的方式跨设备传输数据。The operating system installed in the terminal device can be Android, ios, windows, mac, Linux and other systems, which are not limited in this application. For different systems, the application program of the drag and drop service can be developed according to the above method to support the drag and drop service. way to transfer data across devices.

根据以上示例可知,通过对终端设备的系统进行改进或者添加新的应用服务,使得两个终端之间可以传输数据。在此基础上,介绍本申请的数据的传输方法,图3a和图3b分别示出根据本申请一实施例的数据的传输方法的流程图。图3a所示的数据的传输方法可以应用于图1中的第一终端设备,也就是可以应用于源端设备,传输方法可以包括:It can be known from the above examples that by improving the system of the terminal device or adding a new application service, data can be transmitted between the two terminals. On this basis, the data transmission method of the present application is introduced. FIG. 3 a and FIG. 3 b respectively show a flowchart of the data transmission method according to an embodiment of the present application. The data transmission method shown in FIG. 3a can be applied to the first terminal device in FIG. 1, that is, can be applied to the source end device, and the transmission method can include:

步骤S100,第一终端设备在检测到针对所述第一终端设备上的对象的第一跨设备传输操作时,获取所述对象的数据类型,其中,所述第一跨设备传输操作用于发起将所述对象传输至第二终端设备的过程;Step S100, the first terminal device acquires the data type of the object when detecting a first cross-device transmission operation for the object on the first terminal device, wherein the first cross-device transmission operation is used to initiate the process of transmitting the object to the second terminal device;

步骤S101,向所述第二终端设备发送携带有所述数据类型的判断请求,Step S101, sending a judgment request carrying the data type to the second terminal device,

步骤S102,接收来自所述第二终端设备基于所述数据类型做出的判断结果,所述判断结果表示所述对象是否能够传输至第二终端设备;Step S102, receiving a judgment result from the second terminal device based on the data type, where the judgment result indicates whether the object can be transmitted to the second terminal device;

步骤S103,显示所述判断结果。Step S103, displaying the judgment result.

图3b所示的方法可以应用于图1中的第二终端设备,也就是可以应用于接收端设备,在该实施方式中,数据的传输方法可以包括:The method shown in FIG. 3b can be applied to the second terminal device in FIG. 1, that is, can be applied to the receiving end device. In this embodiment, the data transmission method can include:

步骤S201,接收第一终端设备发送的判断请求,其中,所述判断请求携带有待传输的对象的数据类型,所述判断请求用于请求所述第二终端设备判断所述数据类型的对象能否传输至第二终端设备;Step S201: Receive a judgment request sent by a first terminal device, wherein the judgment request carries the data type of the object to be transmitted, and the judgment request is used to request the second terminal device to judge whether the object of the data type can be transmission to the second terminal device;

步骤S202,根据所述数据类型做出判断结果,并将所述判断结果发送给所述第一终端设备,以使所述第一终端设备显示所述判断结果。Step S202: Make a judgment result according to the data type, and send the judgment result to the first terminal device, so that the first terminal device displays the judgment result.

在步骤S100中,第一跨设备传输操作用于发起将对象传输至第二终端设备的过程,可以是指通过第一跨设备传输操作可以唤起拖拽服务系统。也就是说,用户在第一终端设备的显示屏幕上通过第一跨设备传输操作可以触发dragstart事件,在dragstart事件中能够通过setData()指定拖拽数据(对象),触发dragstart事件可以唤起拖拽服务系统,发起将对象传输至第二终端设备的过程。In step S100, the first cross-device transfer operation is used to initiate a process of transferring the object to the second terminal device, which may mean that the dragging service system can be invoked through the first cross-device transfer operation. That is to say, the user can trigger the dragstart event through the first cross-device transmission operation on the display screen of the first terminal device. In the dragstart event, the drag data (object) can be specified through setData(), and the dragstart event can be triggered by triggering the dragstart event. The service system initiates the process of transferring the object to the second terminal device.

如图2所示,第一终端设备的Framework层可以监测用户操作,并且可以在第一终端设备和第二终端设备预先设置能够唤起拖拽服务系统的操作作为预设操作,第一终端设备可以将监测到的用户操作与预设操作进行比较,当用户操作与预设操作相匹配时,第一终端设备可以确定有针对某一对象的第一跨设备传输操作,相当于检测到针对第一终端设备上的对象的第一跨设备传输操作,可以唤起拖拽服务系统。As shown in FIG. 2 , the Framework layer of the first terminal device can monitor user operations, and an operation capable of evoking the dragging service system can be preset on the first terminal device and the second terminal device as a preset operation, and the first terminal device can The monitored user operation is compared with the preset operation, and when the user operation matches the preset operation, the first terminal device can determine that there is a first cross-device transmission operation for a certain object, which is equivalent to detecting a first cross-device transmission operation for a certain object. The first cross-device transfer operation of the object on the terminal device can evoke the dragging service system.

在一种可能的实现方式中,第一跨设备传输操作可以是指从发起操作到操作停留的过程,操作停留的位置在第一终端设备的预设区域内(比如显示屏幕的边缘等)时,表示要进行跨设备传输,可以唤起拖拽服务系统。In a possible implementation manner, the first cross-device transmission operation may refer to a process from initiating an operation to an operation stop, and when the operation stop position is within a preset area of the first terminal device (such as the edge of the display screen, etc.) , indicating that cross-device transfer is to be performed, and the dragging service system can be invoked.

在一种可能的实现方式中,第一跨设备传输操作可以为拖拽操作,为便于说明,以下以拖拽操作为例进行描述,但本申请不限于此,针对不同的终端设备类型(例如,触屏设备或非触屏设备)或者不同的对象,对应的第一跨设备操作也可以不同。In a possible implementation manner, the first cross-device transmission operation may be a drag operation. For the convenience of description, the drag operation is used as an example for description below, but the present application is not limited to this. For different terminal device types (such as , touch screen device or non-touch screen device) or different objects, the corresponding first cross-device operations may also be different.

举例来说,对于触屏设备,预设操作可以是用户手指或手掌长按对象、拖拽对象到屏幕的边缘,或者,采用触控笔轻点对象后立即滑动到屏幕的边缘,滑动的方向不限定,可以向下、向上、向左、向右或者向其他方向,或者,选中一段文本后,长按选中的文本调出的多项控件中可以包括“跨设备传输”控件,在“跨设备传输”控件被触发时可以唤起拖拽服务系统,也就是说,预设操作可以是“跨设备传输”控件被触发,等等。对于非触屏设备,预设操作可以是鼠标移动到对象,手指点击鼠标左键不放开并拖拽到显示屏幕的边缘,或者,手指控制触控面板选中对象并拖拽到屏幕的边缘,等等。需要说明的是,以上第一终端设备检测到第一跨设备传输操作的可能的方式仅仅是本申请的一些示例,本申请不限于此。For example, for a touch screen device, the preset operation can be the user's finger or palm to long press the object, drag the object to the edge of the screen, or use the stylus to tap the object and immediately slide to the edge of the screen, the sliding direction Not limited, you can go down, up, left, right, or in other directions, or, after selecting a piece of text, long-press the selected text to bring up the multiple controls that can include the "Cross-device transfer" control. When the "device transfer" control is triggered, the drag service system can be invoked, that is, the preset operation can be that the "cross-device transfer" control is triggered, and so on. For non-touch screen devices, the preset operation can be to move the mouse to the object, click the left mouse button with your finger and drag it to the edge of the display screen, or use your finger to control the touch panel to select the object and drag it to the edge of the screen. and many more. It should be noted that the above possible ways in which the first terminal device detects the first cross-device transmission operation are only some examples of the present application, and the present application is not limited thereto.

本申请的对象可以是文档、文件夹、文本、图片,还可以是音频、视频或者链接等。第一终端设备可以通过数据的扩展名识别数据的类型,比如说对于对象,通过识别对象的扩展名,可以获取对象的数据类型。以视频为例,若对象的扩展名中带有“.avi”、“.mov”等表示影像的扩展名,即可识别对象的数据类型为视频;以音频为例,若对象的扩展名中带有“.wav”、“.mp4”、“.mp3”等表示声音的扩展名,即可识别对象的类型为音频。The objects of this application may be documents, folders, texts, pictures, and may also be audio, video, or links. The first terminal device may identify the data type by the extension of the data. For example, for an object, by identifying the extension of the object, the data type of the object may be acquired. Taking video as an example, if the extension of the object has ".avi", ".mov" and other extensions representing images, the data type of the object can be identified as video; taking audio as an example, if the extension of the object is in With ".wav", ".mp4", ".mp3" and other extensions representing sound, the type of the object can be identified as audio.

在一种可能的实现方式中,在dragstart事件中通过setData()指定的拖拽数据可以包含两部分信息,分别是数据类型和数据的值,也就是对象的数据类型和对象对应的数据,第一终端设备在获取对象的数据类型后,可以添加到dragstart事件的setData()中,触发dragstart事件唤起拖拽服务系统时,拖拽服务系统可以根据dragstart事件中指定的数据类型向第二终端发送判断请求时,判断请求中可以携带对象的数据类型。In a possible implementation, the drag data specified by setData() in the dragstart event may contain two pieces of information, namely the data type and the data value, that is, the data type of the object and the data corresponding to the object. After a terminal device obtains the data type of the object, it can be added to the setData() of the dragstart event. When the dragstart event is triggered to evoke the drag service system, the drag service system can send the data to the second terminal according to the data type specified in the dragstart event. When judging the request, judge the data type of the object that can be carried in the request.

图4示出根据本申请一实施例的数据的传输方法的应用场景的示意图。如图4所示,设备1和设备2之间以无线方式配对连接,设备2和设备3之间可以以无线方式配对连接、也可以通过有线方式进行连接,设备1和设备3之间以无线或有线方式连接。设备1、设备2、设备3之间可以进行本申请实施例中的跨设备数据传输。FIG. 4 shows a schematic diagram of an application scenario of a data transmission method according to an embodiment of the present application. As shown in Figure 4, device 1 and device 2 are paired and connected wirelessly, device 2 and device 3 can be paired and connected wirelessly, or connected by wire, and device 1 and device 3 are connected wirelessly. or wired connection. The cross-device data transmission in this embodiment of the present application may be performed between the device 1 , the device 2 , and the device 3 .

在一种可能的实现方式中,设备1和设备2可以是触屏的终端设备,例如,智能手机、平板电脑等,设备1和设备2上都可以安装有多个应用程序,例如图4所示设备1和设备2都可以安装有应用A和应用B,应用A可以是指社交、邮件、浏览器等“富媒体类”应用,内容可以包括文本、图片、文档、链接等,应用B可以是指文件管理类应用,如文件管理器、图库,内容主要包括图片、视频、音频和文档,无单独的文本内容。设备3可以是非触屏类设备,比如说笔记本电脑,设备3上可以安装有程序A、存储有文件夹,程序A可以是指windows/Mac系统中的office软件、浏览器等应用程序。图4展示出一些示例的对象的数据类型和可能的展现形式,展现形式可以是位于应用程序中的,或者存档管理,本申请不限于图4中表示的对象的类型和展现形式。In a possible implementation manner, device 1 and device 2 may be touch-screen terminal devices, such as smart phones, tablet computers, etc., and multiple application programs may be installed on both device 1 and device 2, such as shown in FIG. 4 . It shows that both device 1 and device 2 can have application A and application B installed. Application A can refer to "rich media" applications such as social networking, email, browser, etc., and the content can include text, pictures, documents, links, etc., and application B can Refers to file management applications, such as file manager, gallery, the content mainly includes pictures, video, audio and documents, no separate text content. The device 3 may be a non-touch screen device, such as a laptop computer, and a program A may be installed on the device 3 and a folder may be stored. The program A may refer to applications such as office software and a browser in the Windows/Mac system. FIG. 4 shows some example data types and possible presentation forms of objects. The presentation forms may be located in applications or archive management. The present application is not limited to the types and presentation forms of objects shown in FIG. 4 .

对于步骤S101,如图2所示,第一终端设备可以通过唤起的拖拽服务系统向第二终端设备的拖拽服务系统发送判断请求,判断请求中包括对象的数据类型。因此,在步骤S201中,第二终端设备接收到第一终端设备发送的判断请求,判断请求中携带有待传输的对象的数据类型,且判断请求是用于请求第二终端设备判断具有上述数据类型的对象能否传输到第二终端设备。For step S101, as shown in FIG. 2, the first terminal device may send a judgment request to the drag service system of the second terminal device through the awakened drag service system, and the judgment request includes the data type of the object. Therefore, in step S201, the second terminal equipment receives the judgment request sent by the first terminal equipment, and the judgment request carries the data type of the object to be transmitted, and the judgment request is used to request the second terminal equipment to judge that the data type has the above-mentioned data type. whether the object can be transferred to the second terminal device.

对于步骤S202,在一种可能的实现方式中,第二终端设备可以根据对象的数据类型和第二终端设备类型判断能否传输到第二终端设备,每一种类型的第二终端设备可以预设有允许传输或不允许传输的数据类型。比如说,对象为文本文件或者文件夹,第二终端设备为蓝牙音箱,那么第二终端设备的判断结果可以为不能传输至第二终端设备;对象为音频文件或者带有音频的视频文件,第二终端设备为蓝牙音箱,那么,第二终端设备的判断结果可以为能够传输至第二终端设备。For step S202, in a possible implementation manner, the second terminal device may determine whether or not to transmit to the second terminal device according to the data type of the object and the type of the second terminal device, and each type of second terminal device may pre- There are data types that are allowed or not allowed to be transferred. For example, if the object is a text file or folder, and the second terminal device is a Bluetooth speaker, then the judgment result of the second terminal device can be that it cannot be transmitted to the second terminal device; the object is an audio file or a video file with audio, the first The second terminal device is a Bluetooth speaker, then, the judgment result of the second terminal device may be able to be transmitted to the second terminal device.

对于步骤S202,在一种可能的实现方式中,第二终端设备还可以根据对象的数据类型和第二终端设备安装的应用服务判断能否传输到第二终端设备。第二终端设备安装的应用服务可以是指第二终端设备上安装的应用程序或者软件程序,比如,智能手机上安装的APP,笔记本电脑上安装的软件程序等。For step S202, in a possible implementation manner, the second terminal device may further determine whether the data can be transmitted to the second terminal device according to the data type of the object and the application service installed by the second terminal device. The application service installed on the second terminal device may refer to an application program or software program installed on the second terminal device, for example, an APP installed on a smart phone, a software program installed on a laptop computer, and the like.

以上仅仅是示例性给出两种根据对象的数据类型判断是否能够传输至第二终端设备的实现方式,本申请不限于此。The above is merely an example to provide two implementation manners of judging whether the data can be transmitted to the second terminal device according to the data type of the object, and the present application is not limited thereto.

第二终端设备在做出判断结果后,可以将判断结果通过拖拽服务系统发送给第一终端设备的拖拽服务系统,第一终设备的拖拽服务系统在接收到判断结果后,可以发送给Framework层,由Framework层控制第一终端设备的显示屏幕显示判断结果。After making the judgment result, the second terminal device can send the judgment result to the drag service system of the first terminal device through the drag service system, and the drag service system of the first terminal device can send the judgment result after receiving the judgment result. For the Framework layer, the Framework layer controls the display screen of the first terminal device to display the judgment result.

判断结果的显示方式可以有多种,图5a和图5b分别示出根据本申请一实施例的显示判断结果的方式的示例。图5a示出两个示例的第一终端设备的显示界面的示意图,图5b示出另两个示例的第一终端设备的显示界面的示意图。图5a和图5b中以虚线示意了显示屏幕的边缘区域。There may be various manners for displaying the judgment result, and FIG. 5a and FIG. 5b respectively show an example of the manner of displaying the judgment result according to an embodiment of the present application. Fig. 5a shows a schematic diagram of a display interface of a first terminal device in two examples, and Fig. 5b shows a schematic diagram of a display interface of the first terminal device in another two examples. The edge regions of the display screen are illustrated in dashed lines in Figures 5a and 5b.

比如说,如图5a所示,以鼠标拖拽的方式为例,可以在显示屏幕上鼠标的指针的附近显示小图标,小图标的不同颜色可以表示不同的判断结果,比如说小图标为绿色表示能够传输至第二终端设备、小图标为红色表示不能传输至第二终端设备,或者,如图5a所示,小图标的不同形状可以表示不同的判断结果,小图标为对勾“√”可以表示能够传输至第二终端设备、小图标为叉号“×”可以表示不能传输至第二终端设备,等等。For example, as shown in Figure 5a, taking the mouse dragging method as an example, a small icon can be displayed near the pointer of the mouse on the display screen. Different colors of the small icon can represent different judgment results. For example, the small icon is green Indicates that it can be transmitted to the second terminal device, and the small icon is red to indicate that it cannot be transmitted to the second terminal device, or, as shown in Figure 5a, different shapes of the small icon can represent different judgment results, and the small icon is a check mark "√" It can indicate that it can be transmitted to the second terminal device, the small icon with a cross "x" can indicate that it cannot be transmitted to the second terminal device, and so on.

如图5b所示,以手指操作为例,可以在对象的图标(例如缩略图)附近显示提示信息,从而显示判断结果,比如说,可以在对象的图标右上角显示提示信息“XX无法接收”或者“XX可接受”来分别表示不同的判断结果,其中“XX”可以表示第二终端设备的标识信息,鼠标操作的示例也可以采用这种方式显示判断结果。As shown in Figure 5b, taking finger operation as an example, prompt information can be displayed near the icon of the object (such as a thumbnail), so as to display the judgment result. For example, the prompt information "XX cannot be received" can be displayed in the upper right corner of the icon of the object. Or "XX acceptable" to indicate different judgment results, where "XX" can indicate the identification information of the second terminal device, and the example of mouse operation can also display the judgment results in this way.

所显示的判断结果还可以包括产生判断结果的原因,例如“设备B无法接收.avi格式文件”等,以便于用户更直观地获知原因并采取相应的解决措施。The displayed judgment result may also include the reason for generating the judgment result, such as "device B cannot receive the .avi format file", etc., so that the user can know the reason more intuitively and take corresponding solutions.

需要说明的是,以上显示判断结果的方式仅仅是本申请的一些示例,不以任何方式限制本申请,只要能够直观的将判断结果展示给用户即可。It should be noted that the above manners of displaying the judgment results are only some examples of the present application, and the present application is not limited in any way, as long as the judgment results can be displayed to the user intuitively.

通过本申请上述实施方式的数据的传输方法,能够根据对象的数据类型和接收端的匹配程度为用户提供直观的视觉反馈,避免错误操作和反复操作,提高操作效率。Through the data transmission method of the above-mentioned embodiments of the present application, intuitive visual feedback can be provided to the user according to the data type of the object and the matching degree of the receiving end, so as to avoid erroneous operation and repeated operation, and improve the operation efficiency.

相关技术中,仅仅能够实现文本、文档、图片、文件这些内容的拖拽,可拖拽的内容有限。为了解决这一技术问题,本申请在dragevent事件中添加了扩展的字段用于扩展可拖拽的内容。图6示出根据本申请一实施例的dragevent事件包含的字段的示意图。如图6所示,其中,虚线框出的字段label和mimeTypes是在clipDescription对象上扩展的字段,其中label为String(字符串)类型,可以扩展action动作,例如“open”,mimeTypes为对象的数据类型,通过以上两个扩展的字段可以扩展拖拽对象以及对拖拽对象的动作。In the related art, only text, documents, pictures, and files can be dragged and dropped, and the content that can be dragged is limited. In order to solve this technical problem, the present application adds an extended field to the dragevent event for extending the draggable content. FIG. 6 shows a schematic diagram of fields included in a dragevent event according to an embodiment of the present application. As shown in Figure 6, the fields label and mimeTypes outlined by the dotted line are the fields extended on the clipDescription object, where the label is a String (string) type, and the action action can be extended, such as "open", and mimeTypes is the data of the object Type, the dragged object and the actions on the dragged object can be extended through the above two extended fields.

图6中dragevent事件直接连接的左侧的“action”是指drag、dragstart、dragenter、dragend、drop等动作,是指的一系列的拖拽动作;x、y可以表示拖拽动作停留的位置的坐标,clipdata可以是指拖拽的数据的一些属性,比如说clip对象的MIME类型、ClipData.Item对象中包含文本、网页文本、Uri或者Intent数据;result可以是记录返回的判断结果的字段。需要说明的是,图6示出的仅仅是本申请扩展字段的一种方式,本申请不限于此,还可以在dragevent事件上其他合适的对象或位置上扩展字段。In Figure 6, the "action" on the left side directly connected to the dragevent event refers to actions such as drag, dragstart, dragenter, dragend, drop, etc., which refers to a series of drag actions; x and y can indicate the position where the drag action stays. Coordinates, clipdata can refer to some attributes of the dragged data, such as the MIME type of the clip object, the ClipData.Item object contains text, web page text, Uri or Intent data; result can be a field that records the returned judgment result. It should be noted that, what is shown in FIG. 6 is only one way of extending fields in the present application, and the present application is not limited to this, and fields can also be extended on other suitable objects or positions on dragevent events.

因此,在一种可能的实现方式中,所述判断请求可以携带有数据类型字段和/或扩展的数据类型字段,数据类型字段和扩展的数据类型字段用于表示所述对象的数据类型。这样,在第一终端设备的拖拽服务系统将判断请求发送给第二终端设备时,第二终端设备可以根据数据类型字段和/或扩展的数据类型字段判断是否能够处理第一终端设备准备移动至第二终端设备的对象,得到判断结果。Therefore, in a possible implementation manner, the judgment request may carry a data type field and/or an extended data type field, and the data type field and the extended data type field are used to indicate the data type of the object. In this way, when the dragging service system of the first terminal device sends the judgment request to the second terminal device, the second terminal device can judge whether the first terminal device is ready to move according to the data type field and/or the extended data type field. to the object of the second terminal device to obtain the judgment result.

根据本申请上述实施方式的数据的传输方法可以扩展可拖拽的内容,扩展的数据类型字段可以指示自定义的、或适用于特定设备或应用的、或新出现的数据类型,使得跨设备传输数据时适用更多种数据类型和设备,便于用户操作。The data transmission method according to the above-mentioned embodiments of the present application can expand the content that can be dragged, and the expanded data type field can indicate a custom, or a data type suitable for a specific device or application, or a new data type, so that cross-device transmission is possible. More data types and devices are applicable to the data, which is convenient for users to operate.

举例来说,相关技术中是无法实现对一些社交平台上的公众号文章的拖拽操作的。根据本申请的实施方式,可以在dragevent事件的扩展的字段添加数据类型“Weblinks”,对应的action可以为在浏览器中打开或者在社交平台对应的应用中打开等,可以用不同的字符串表示不同的动作,在一示例中,对于“Weblinks”数据类型,如果没有设置(例如,label字段为空)的话可以默认为用浏览器打开。For example, in the related art, it is impossible to implement the drag and drop operation of official account articles on some social platforms. According to the embodiment of the present application, the data type "Weblinks" can be added to the extended field of the dragevent event, and the corresponding action can be opening in a browser or opening in an application corresponding to a social platform, etc., which can be represented by different strings. A different action, in one example, for the "Weblinks" data type, may default to opening with a browser if not set (eg, the label field is empty).

图7示出根据本申请一实施例的应用场景的示意图,如图7所示,假设第一终端设备和第二终端设备都为智能手机,第一终端设备打开了应用A中的带有链接的公众号文章(链接可以为对象),针对这类对象设置的预设操作可以为大面积触摸然后向一侧滑动,第一终端设备检测到针对当前显示的页面的大面积触摸然后向一侧滑动的操作时,可以确定要针对应用A中打开的带有链接的公众号文章进行跨设备传输。比如说,如图7所示,当用户通过整个手掌或者手掌的大部分触摸屏幕并向右滑动,触发dragstart事件,第一终端设备可以向第二终端设备发送判断请求,判断请求表中携带有扩展的数据类型字段:数据类型为“Weblinks”,label字段为空。第二终端设备接收到判断请求,第二终端设备为智能手机,本地安装有浏览器,因此,判断结果可以为能够传输至第二终端设备,第二终端设备可以将判断结果发送给第一终端设备,第一终端设备在显示屏幕上显示判断结果,用户看到判断结果后,如果释放了拖拽手势,也就是第一终端设备检测到drop操作,可以将上述链接、以及扩展的数据类型字段发送给第二终端设备,第二终端设备根据扩展的数据类型识别到对象的数据类型为“Weblinks”、label字段为空,因此,采用默认的方式打开对象,如图7所示,在浏览器中打开链接。FIG. 7 shows a schematic diagram of an application scenario according to an embodiment of the present application. As shown in FIG. 7 , assuming that both the first terminal device and the second terminal device are smart phones, the first terminal device opens the application A with a link The official account article (the link can be an object), the preset operation for this type of object can be a large area touch and then slide to one side, the first terminal device detects the large area touch on the currently displayed page and then moves to one side During the swipe operation, it can be determined to perform cross-device transmission for the official account article with the link opened in application A. For example, as shown in Figure 7, when the user touches the screen with the entire palm or most of the palm and slides to the right to trigger the dragstart event, the first terminal device can send a judgment request to the second terminal device, and the judgment request table contains Extended data type field: The data type is "Weblinks", and the label field is empty. The second terminal device receives the judgment request. The second terminal device is a smart phone and has a browser installed locally. Therefore, the judgment result can be transmitted to the second terminal device, and the second terminal device can send the judgment result to the first terminal. device, the first terminal device displays the judgment result on the display screen. After the user sees the judgment result, if the user releases the drag gesture, that is, the first terminal device detects the drop operation, the above link and the extended data type field can be added. It is sent to the second terminal device, and the second terminal device recognizes that the data type of the object is "Weblinks" and the label field is empty according to the extended data type. Therefore, the object is opened by default, as shown in Figure 7, in the browser Open the link in.

图8a和图8b分别示出根据本申请一实施例的数据的传输方法的流程图,图8a所示的传输方法可以应用于第一终端设备,如图8a所示,该实施方式的传输方法可以包括:Figures 8a and 8b respectively show a flowchart of a data transmission method according to an embodiment of the present application. The transmission method shown in Figure 8a can be applied to the first terminal device. As shown in Figure 8a, the transmission method of this embodiment Can include:

步骤S800,第一终端设备在检测到针对所述第一终端设备上的对象的第一跨设备传输操作时,获取所述对象的数据类型,其中,所述第一跨设备传输操作用于发起将所述对象传输至第二终端设备的过程;Step S800, the first terminal device acquires the data type of the object when detecting a first cross-device transmission operation for the object on the first terminal device, wherein the first cross-device transmission operation is used to initiate the process of transmitting the object to the second terminal device;

步骤S801,向所述第二终端设备发送携带有所述数据类型的判断请求,Step S801, sending a judgment request carrying the data type to the second terminal device,

步骤S802,接收来自所述第二终端设备基于所述数据类型做出的判断结果,所述判断结果表示所述对象是否能够传输至第二终端设备;Step S802, receiving a judgment result from the second terminal device based on the data type, where the judgment result indicates whether the object can be transmitted to the second terminal device;

步骤S803,显示所述判断结果;Step S803, displaying the judgment result;

步骤S804,在所述判断结果为能够传输至第二终端设备且检测到第二跨设备传输操作时,向所述第二终端设备发送所述对象,所述第二跨设备传输操作用于确认将所述对象传输至第二终端设备进行显示。Step S804, when the judgment result is that it can be transmitted to the second terminal device and a second cross-device transmission operation is detected, the object is sent to the second terminal device, and the second cross-device transmission operation is used for confirmation The object is transmitted to the second terminal device for display.

其中,关于步骤S800-S803可以参见图3a对应的实施方式部分中步骤S100-S103的描述,不再赘述。Wherein, for steps S800-S803, reference may be made to the description of steps S100-S103 in the embodiment section corresponding to FIG. 3a, and details are not repeated here.

对于步骤S804,其中,第二跨设备传输操作与第一跨设备传输操作对应,比如说,第一跨设备传输操作为拖拽操作,那么第二跨设备传输操作可以为拖拽释放操作。以非触屏设备为例,若第一跨设备传输操作为手指点击鼠标左键不放开并拖拽,那么第二跨设备传输操作可以为,释放鼠标左键,或者以触屏设备为例,若第一跨设备传输操作为手指或触摸笔按住并拖拽对象,那么第二跨设备传输操作可以为手指或触摸笔离开触摸屏。For step S804, the second cross-device transfer operation corresponds to the first cross-device transfer operation. For example, if the first cross-device transfer operation is a drag operation, the second cross-device transfer operation may be a drag release operation. Taking a non-touch screen device as an example, if the first cross-device transfer operation is to click and drag the left mouse button with a finger, then the second cross-device transfer operation can be to release the left mouse button, or take a touch screen device as an example. , if the first cross-device transmission operation is that the finger or the touch pen presses and drags the object, then the second cross-device transmission operation may be that the finger or the touch pen leaves the touch screen.

向第二终端设备发送对象可以是指将对象对应的数据、数据类型、对对象的处理方式的指示信息等中的一者或多者发送给第二终端设备,第二终端设备可以根据处理方式对数据进行处理。其中,在一种可能的实现方式中,如上所述,对对象的处理方式的指示信息也可以是携带在dragstart事件中的。Sending the object to the second terminal device may refer to sending one or more of the data corresponding to the object, the data type, the indication information of the processing method of the object, etc. to the second terminal device, and the second terminal device may send the object according to the processing method. Process the data. Wherein, in a possible implementation manner, as described above, the indication information of the processing manner of the object may also be carried in the dragstart event.

图8b所示的传输方法可以应用于第二终端设备,如图8b所示,该实施方式的传输方法可以包括:The transmission method shown in FIG. 8b may be applied to the second terminal device. As shown in FIG. 8b, the transmission method of this embodiment may include:

步骤S301,接收第一终端设备发送的判断请求,其中,所述判断请求携带有待移动的对象的数据类型,所述判断请求用于请求所述第二终端设备判断所述数据类型的对象能否传输至第二终端设备;Step S301: Receive a judgment request sent by a first terminal device, wherein the judgment request carries the data type of the object to be moved, and the judgment request is used to request the second terminal device to judge whether the object of the data type can be transmission to the second terminal device;

步骤S302,根据所述数据类型做出判断结果,并将所述判断结果发送给所述第一终端设备,以使所述第一终端设备显示所述判断结果;Step S302, making a judgment result according to the data type, and sending the judgment result to the first terminal device, so that the first terminal device displays the judgment result;

步骤S303,在接收到所述第一终端设备发送的所述对象时,根据所述数据类型、本地存储状态、第二终端设备安装的应用服务中的一项或多项对所述对象进行处理。Step S303, when receiving the object sent by the first terminal device, process the object according to one or more of the data type, local storage state, and application services installed by the second terminal device .

其中,关于步骤S301-S302可以参见图3b对应的实施方式部分步骤S201-S202的描述,不再赘述。Wherein, for steps S301-S302, reference may be made to the description of steps S201-S202 in the embodiment part corresponding to FIG. 3b, and details are not repeated here.

对于步骤S303,以本地存储状态为例,在本地存储状态为不具备存储能力时,第二终端设备可以根据第二终端设备安装的应用服务打开对象;在本地存储状态为具备存储能力时,第二终端设备可以在本地存储对象。For step S303, taking the local storage state as an example, when the local storage state is not having the storage capability, the second terminal device can open the object according to the application service installed by the second terminal device; when the local storage state is having the storage capability, the first Two end devices can store objects locally.

在一种可能的实现方式中,第二终端设备本地存储状态为不具备存储能力,第二终端设备可以根据对象的数据类型选择第二终端设备安装的应用服务打开对象,或者,第二终端设备也可以显示可选择的第二终端设备安装的应用服务的选项,根据用户选择的应用服务打开对象。In a possible implementation manner, the local storage state of the second terminal device is that it does not have the storage capability, and the second terminal device can select the application service installed by the second terminal device to open the object according to the data type of the object, or the second terminal device can open the object. It is also possible to display a selectable option of an application service installed by the second terminal device, and open the object according to the application service selected by the user.

在一种可能的实现方式中,第二终端设备本地存储状态为具备存储能力,第二终端设备除了在本地存储对象外,还可以根据第一终端设备指定的操作对对象进行处理,如上所述,第一终端设备向第二终端设备发送对象时也发送了对对象的处理方式的指示信息,因此,第二终端设备可以根据该处理方式对对象进行处理。若第一终端设备未指定对对象的处理方式,第二终端设备可以根据对象的数据类型选择安装的应用服务打开对象,或者,如上所述,根据用户选择的应用服务打开对象。In a possible implementation manner, the local storage state of the second terminal device is capable of storing. In addition to storing the object locally, the second terminal device can also process the object according to the operation specified by the first terminal device, as described above. , when the first terminal device sends the object to the second terminal device, it also sends the indication information of the processing method for the object, so the second terminal device can process the object according to the processing method. If the first terminal device does not specify a processing method for the object, the second terminal device can select the installed application service to open the object according to the data type of the object, or, as described above, open the object according to the application service selected by the user.

需要说明的是,以上仅仅是本申请示出的对对象的几种处理方式的示例,不以任何方式限制本申请。It should be noted that the above are only examples of several processing methods for objects shown in this application, and do not limit this application in any way.

图8c示出根据本申请一实施例的应用场景的交互流程图。如图8c所示,设备A为第一终端设备的示例,设备B为第二终端设备的示例,设备A(Framework层)检测到针对本地对象的拖拽操作,设备A的Framework层生成dragstart事件,唤起设备A的拖拽服务系统,设备A的拖拽服务系统可以根据dragstart事件指定的对象的数据类型生成判断请求,判断请求可以为判断是否允许拖入的请求,设备A的拖拽服务系统将判断请求发送给设备B的拖拽服务系统,设备B的拖拽服务系统将判断请求发送给设备B上的WindowManager,再由WindowManager发送给WmS,WmS可以将判断请求发送给相应的应用服务(APP),由应用服务响应于判断请求做出判断结果,并将判断结果一步步返回给设备A,设备A可以显示判断结果。如果判断结果为允许拖入,设备A的Framework层检测到拖拽释放操作,可以向设备A的拖拽服务系统发送对象,设备A的拖拽服务系统向设备B的拖拽服务系统传输对象,设备B的拖拽服务系统接收到对象后,可以保存对象,并通过notifyDragAndDrop消息下发给Framework层和应用服务层以对对象进行处理。FIG. 8c shows an interaction flowchart of an application scenario according to an embodiment of the present application. As shown in Figure 8c, device A is an example of a first terminal device, device B is an example of a second terminal device, device A (Framework layer) detects a drag operation for a local object, and the Framework layer of device A generates a dragstart event , arouse the dragging service system of device A. The dragging service system of device A can generate a judgment request according to the data type of the object specified by the dragstart event. The judgment request can be a request to judge whether to allow dragging in. The dragging service system of device A Send the judgment request to the drag service system of device B, and the drag service system of device B sends the judgment request to the WindowManager on the device B, and then the WindowManager sends it to the WmS, and the WmS can send the judgment request to the corresponding application service ( APP), the application service makes a judgment result in response to the judgment request, and returns the judgment result to device A step by step, and device A can display the judgment result. If the judgment result is that dragging is allowed, the Framework layer of device A detects the drag release operation, and can send the object to the dragging service system of device A, and the dragging service system of device A transmits the object to the dragging service system of device B. After receiving the object, the dragging service system of device B can save the object and send it to the Framework layer and the application service layer through the notifyDragAndDrop message to process the object.

根据上述实施方式的数据的传输方法可以简化用户操作,通过简单的拖拽等动作不仅实现对象的显示位置的改变、复制、传输等,还可以在接收端直接根据对象的数据类型进行相应的处理,比如除了存储外,还可以选择应用服务打开、用当前打开的应用服务打开等等,无需用户在接收端进一步操作,极大的简化了用户操作。The data transmission method according to the above-mentioned embodiment can simplify the user operation, and through simple dragging and other actions, not only can the display position of the object be changed, copied, transmitted, etc., but also can be directly processed at the receiving end according to the data type of the object For example, in addition to storage, you can also choose to open the application service, open with the currently opened application service, etc., without the user's further operation on the receiving end, which greatly simplifies the user's operation.

图9a示出根据本申请一实施例的数据的传输方法的流程图。图9a示出的是步骤S804中的步骤“向所述第二终端设备发送所述对象”包括的过程的一个示例的流程图,如图9a所示,步骤“向所述第二终端设备发送所述对象”可以包括:FIG. 9a shows a flowchart of a data transmission method according to an embodiment of the present application. Fig. 9a shows a flowchart of an example of a process included in the step "send the object to the second terminal device" in step S804. As shown in Fig. 9a, the step "send the object to the second terminal device" The "object" may include:

步骤S8041,将所述对象暂存在第一终端设备本地;Step S8041, temporarily storing the object locally in the first terminal device;

步骤S8042,向所述第二终端设备发送数据传输请求,所述数据传输请求用于传输所述对象;Step S8042, sending a data transmission request to the second terminal device, where the data transmission request is used to transmit the object;

步骤S8043,在接收到所述第二终端设备返回的接受所述数据传输请求的第一响应信号时,根据所述第一响应信号发送所述对象;Step S8043, sending the object according to the first response signal when receiving the first response signal returned by the second terminal device for accepting the data transmission request;

步骤S8044,在接收到所述第二终端设备返回的不接受所述数据传输请求的第二响应信号时,撤销发送所述对象。Step S8044, when receiving the second response signal returned by the second terminal device not to accept the data transmission request, cancel sending the object.

图9b示出根据本申请一实施例的数据的传输方法的流程图。图9b的传输方法可以应用于第二终端设备,该实施方式的传输方法可以包括:FIG. 9b shows a flowchart of a data transmission method according to an embodiment of the present application. The transmission method of FIG. 9b may be applied to the second terminal device, and the transmission method of this embodiment may include:

步骤S204,在接收到第一终端设备发送的数据传输请求时,显示处理选项;Step S204, displaying processing options when receiving the data transmission request sent by the first terminal device;

步骤S205,根据针对所述处理选项的选择操作确定响应于所述数据传输请求的响应信号,并将所述响应信号发送给第一终端设备。Step S205: Determine a response signal in response to the data transmission request according to the selection operation for the processing option, and send the response signal to the first terminal device.

也就是说,第一终端设备在判断结果为能够传输至第二终端设备且检测到第二跨设备传输操作时,可以先将对象暂存在第一终端设备本地,并向第二终端设备发送数据传输请求,根据第二终端设备返回的针对数据传输请求的响应信号对对象进行处理。That is to say, when the first terminal device determines that it can be transmitted to the second terminal device and detects the second cross-device transmission operation, it can temporarily store the object locally in the first terminal device and send data to the second terminal device. For the transmission request, the object is processed according to the response signal for the data transmission request returned by the second terminal device.

第二终端设备在接收到第一终端设备发送的数据传输请求时,显示处理选项,处理选项可以是指针对对象的处理选项,比如说,可以是以控件形式显示的多个可选择的控件,也可以是可以选择的不同手势的提示信息。When the second terminal device receives the data transmission request sent by the first terminal device, it displays processing options, and the processing options may refer to the processing options of the object, for example, it may be a plurality of selectable controls displayed in the form of controls, It can also be the prompt information of different gestures that can be selected.

在一个示例中,第二终端设备以控件形式显示多个可选择的控件,比如说,“撤销”、“延迟发送”、“接收”等等。在另一个示例中,第二终端设备以可选择的不同手势的提示信息显示处理选项,比如说,在显示屏幕上显示向左滑动的手势表示撤销发送,向右滑动的手势表示接收,向上或者向下滑动的手势表示延迟发送。In one example, the second terminal device displays a plurality of selectable controls in the form of controls, for example, "Cancel", "Delay Send", "Receive" and so on. In another example, the second terminal device displays processing options with different gestures that can be selected. For example, a gesture of swiping left on the display screen indicates canceling sending, a gesture swiping right indicates receiving, upward or A swipe down gesture indicates a delayed send.

在步骤S205中,响应于所述数据传输请求的响应信号可以包括第一响应信号和第二响应信号。其中,第一响应信号可以为表示接受所述数据传输请求的信号,比如说,用户选择了接收或者延迟发送,或者用户向右滑动、向上滑动等等,表示第二终端设备允许发送所述数据传输请求对应的对象,这种情况下,第二终端设备确定的响应于数据传输请求的为第一响应信号,将第一响应信号发送给第一终端设备。第二响应信号可以表示不接受所述数据传输请求的信号,也就是说,第二终端设备不允许第一终端设备发送数据传输请求对应的对象,比如说,用户选择了撤销,或者用户向左滑动等等,第二终端设备可以根据用户针对处理选项的选择操作确定响应于数据传输请求的为第二响应信号,将第二相应信号发送给第一终端设备。In step S205, the response signal in response to the data transmission request may include a first response signal and a second response signal. The first response signal may be a signal indicating acceptance of the data transmission request. For example, if the user selects to receive or delay sending, or if the user swipes to the right, swipes upward, etc., it indicates that the second terminal device allows the data to be sent. The object corresponding to the transmission request. In this case, the second terminal device determines that the response to the data transmission request is the first response signal, and sends the first response signal to the first terminal device. The second response signal may indicate that the data transmission request is not accepted, that is, the second terminal device does not allow the first terminal device to send the object corresponding to the data transmission request. Sliding, etc., the second terminal device may determine, according to the user's selection operation for the processing option, that the response to the data transmission request is the second response signal, and send the second corresponding signal to the first terminal device.

步骤S8043中,第一终端设备在接收到第一响应信号时,根据第一响应信号发送对象,例如,在接收到所述第一响应信号时,可以直接发送对象或者延迟发送对象。延迟发送的延迟时间可以是第一终端设备预先设定的,也可以是通过第二终端设备反馈的第一响应信号指定的,比如说,第二终端设备在显示处理选项时,对于延迟发送的选项还可以向用户提供延迟时间选择的选项,或者提供延迟时间的输入框,通过输入框采集用户输入的延迟时间,第二终端设备可以根据用户选择或者输入的延迟时间生成第一响应信号,并将第一响应信号发送给第一终端设备,第一终端设备可以根据第一响应信号携带的延迟时间延迟发送对象。In step S8043, when receiving the first response signal, the first terminal device sends the object according to the first response signal. For example, when receiving the first response signal, the first terminal device may directly send the object or delay sending the object. The delay time for delayed sending may be preset by the first terminal device, or may be specified by the first response signal fed back by the second terminal device. For example, when the second terminal device displays the processing options, The option can also provide the user with the option of delay time selection, or provide an input box for the delay time, and collect the delay time input by the user through the input box, and the second terminal device can generate the first response signal according to the delay time selected or input by the user, and Send the first response signal to the first terminal device, and the first terminal device may delay the sending object according to the delay time carried by the first response signal.

步骤S8044中,第一终端设备在接收到第二响应信号时,撤销发送对象。在撤销发送对象后,在第一终端设备的前台可以保存(暂存)对象一定时间,保存时间的时长可以是第一终端预先设置的,也可以实时根据前台保存的数据量进行调整,比如说,在保存的数据量超过设定的阈值时,可以删除最早保存的数据,等等。In step S8044, the first terminal device cancels the sending object when receiving the second response signal. After revoking the sending object, the object can be stored (temporarily stored) in the foreground of the first terminal device for a certain period of time. The duration of the storage time can be preset by the first terminal, or it can be adjusted in real time according to the amount of data stored in the foreground, for example , when the amount of saved data exceeds a set threshold, the oldest saved data can be deleted, and so on.

在一种可能的实现方式中,在撤销发送对象后还可以包括:In a possible implementation manner, after canceling the sending object, it may further include:

在检测到针对暂存的所述对象的调出指令时,调出暂存的对象,并向所述第二终端设备发送所述数据传输请求。When a call-out instruction for the temporarily stored object is detected, the temporarily stored object is called out, and the data transmission request is sent to the second terminal device.

该步骤只要在将多数对象暂存在第一终端设备本地之后就可以,在撤销发送对象后仅仅是一个示例,具体的场景不限于此。This step is only required after most objects are temporarily stored locally on the first terminal device, and after canceling the sending of objects, it is only an example, and the specific scenario is not limited to this.

也就是说,在撤销发送对象后,如果用户又想继续发送对象,那么可以通过调出指令调出暂存的对象,调出指令可以是第一终端设备检测到用户的调出操作时检测到的,调出操作可以是预先设置的操作,比如说沿着屏幕的一侧向中间滑动。第一终端设备还可以向第二终端设备重新发送数据传输请求,后续的过程可以参见上文的描述。That is to say, after canceling the sending object, if the user wants to continue sending the object again, the temporarily stored object can be called out through a call-out instruction, and the call-out instruction can be detected when the first terminal device detects the user's call-out operation. Yes, the recall operation can be a preset operation, such as sliding to the middle along one side of the screen. The first terminal device may also resend the data transmission request to the second terminal device, and the subsequent process may refer to the above description.

根据上述实施方式的数据的传输方法,可以在接收端设备的显示屏幕上显示可选择的针对拖入的对象的操作,便于用户根据实际的需求调整传输的过程或处理的方式,使得第二终端设备可以根据实际需求对对象进行处理。According to the data transmission method of the above-mentioned embodiment, selectable operations for the dragged object can be displayed on the display screen of the receiving end device, which is convenient for the user to adjust the transmission process or processing method according to actual needs, so that the second terminal The device can process objects according to actual needs.

在一种可能的实现方式中,用户也可以采用上文所述的过程将多个对象暂存在第一终端设备的前台,比如向第二终端设备发送第一个对象,然后再向第二终端设备发送第二个对象,第一个对象和第二个对象都暂存在第一终端设备的前台,这种情况下,第二终端设备若连续接收到多个数据传输请求,提供的处理选项与仅接收到一个数据传输请求可以不同,比如说,可以提供“全部接收”、“全部延迟”,第二终端设备还可以显示多个对象的缩略图,在每个对象的缩略图附近显示选中控件供用户选择,用户可以选择要接收的对象,再选择“接收”或者“延迟接收”或者“撤销”,等等。第二终端设备可以根据检测到的选择操作对对象进行处理。In a possible implementation manner, the user can also temporarily store multiple objects in the foreground of the first terminal device by using the above-mentioned process, for example, send the first object to the second terminal device, and then send the first object to the second terminal device. The device sends the second object, and both the first object and the second object are temporarily stored in the foreground of the first terminal device. In this case, if the second terminal device continuously receives multiple data transmission requests, the provided processing options are the same as It can be different if only one data transmission request is received. For example, "all receive" and "all delay" can be provided. The second terminal device can also display thumbnails of multiple objects, and display a selected control near the thumbnail of each object. For the user to choose, the user can select the object to be received, and then select "receive" or "delay reception" or "cancel", and so on. The second terminal device may process the object according to the detected selection operation.

图9c示出根据本申请一实施例的数据的传输方法的流程图。图9c的传输方法可以应用于第二终端设备,该实施方式的传输方法可以包括:FIG. 9c shows a flowchart of a data transmission method according to an embodiment of the present application. The transmission method of FIG. 9c may be applied to the second terminal device, and the transmission method of this embodiment may include:

步骤S206,在接收到所述第一终端设备发送的所述对象时,若第二终端设备具备存储能力,则将所述对象暂存在本地;Step S206, when receiving the object sent by the first terminal device, if the second terminal device has storage capability, temporarily store the object locally;

步骤S207,显示处理选项;Step S207, displaying processing options;

步骤S208,根据针对所述处理选项的选择操作对所述对象进行处理。Step S208, processing the object according to the selection operation for the processing option.

也就是说,在步骤S804中,第一终端设备向第二终端设备发送对象之后,第二终端接收到对象时,可以先判断本地是否具备存储能力,如果具备存储能力,则可以将对象暂存在本地,比如说暂存在前台。然后显示处理选项,显示的处理选项以及根据针对处理选项的选择操作对对象进行处理的过程可以参见上文中对于步骤S204-S205部分的描述,不再赘述。That is to say, in step S804, after the first terminal device sends the object to the second terminal device, when the second terminal receives the object, it can first determine whether the local storage capability is available, and if the storage capability is available, the object can be temporarily stored Local, for example, temporarily in the foreground. Then, the processing options are displayed, and the displayed processing options and the process of processing the object according to the selection operation for the processing options can be referred to the descriptions of steps S204-S205 above, and will not be repeated.

在一种可能的实现方式中,将所述对象暂存在本地之后,若第二终端设备在检测到针对暂存的对象的拖拽操作时,可以判断拖拽操作停留的位置是否为可拖入位置生成判断结果并显示判断结果,比如说第二终端设备可以根据拖拽操作停留的位置在当前显示界面中的坐标和/或对象的数据类型判断该位置是否为可拖入位置。In a possible implementation manner, after the object is temporarily stored locally, if the second terminal device detects a drag operation for the temporarily stored object, it can determine whether the position where the drag operation stays is a draggable operation The location generates and displays the determination result. For example, the second terminal device can determine whether the location is a draggable location according to the coordinates of the location where the drag operation stays in the current display interface and/or the data type of the object.

在一个示例中,若第二终端设备当前显示界面为桌面或者文件夹,若拖拽操作停留在桌面上的空白位置或文件夹上,则判断为可拖入位置。若拖拽操作释放,则第二终端设备可以直接将对象存储在本地,例如存储在系统盘或者文件夹中,还可以根据对象的数据类型选择应用服务打开对象,或者如上文所述,根据用户选择的应用服务打开对象。In an example, if the current display interface of the second terminal device is a desktop or a folder, and if the dragging operation stays on a blank position or folder on the desktop, it is determined that the position can be dragged. If the drag operation is released, the second terminal device can directly store the object locally, for example, in a system disk or a folder, and can also select an application service to open the object according to the data type of the object, or as described above, according to the user The selected application service opens the object.

在另一个示例中,若拖拽操作停留在应用服务的快捷方式图标上,则第二终端设备可以根据对象的数据类型与应用服务判断是否为可拖入位置。举例来说,若应用服务可以打开该数据类型的对象,则可以判断为可拖入位置,若拖拽操作释放,则第二终端设备可以采用应用服务打开对象;若应用服务不能打开该数据类型的对象,则可以判断为不可拖入位置,若拖拽操作释放,则可以将对象保存在本地,还可以根据对象的数据类型选择第二终端设备安装的应用服务打开对象,或者如上文所述,根据用户选择的应用服务打开对象。In another example, if the drag operation stays on the shortcut icon of the application service, the second terminal device may determine whether it is a draggable position according to the data type of the object and the application service. For example, if the application service can open the object of this data type, it can be judged that it can be dragged into the position. If the drag operation is released, the second terminal device can use the application service to open the object; if the application service cannot open the data type If the drag operation is released, the object can be saved locally, and the application service installed on the second terminal device can be selected to open the object according to the data type of the object, or as described above , which opens the object according to the application service selected by the user.

在另一个示例中,若第二终端设备当前打开了应用服务,则第二终端设备可以根据拖拽操作在应用服务的当前显示界面中停留的位置和对象的数据类型判断该位置是否为可拖入位置。In another example, if the second terminal device currently opens the application service, the second terminal device can determine whether the position is draggable according to the position where the drag operation stays in the current display interface of the application service and the data type of the object into the location.

在一种可能的实现方式中,第一终端设备和第二终端设备的应用服务可以预先在Framework层注册拖拽监听,例如向Framework层的WmS注册拖拽监听。这样,第一终端设备和第二终端设备的Framework层在检测到拖拽事件或者接收到另一终端设备发送的拖拽事件时,可以将拖住事件发送给对应的应用服务,由应用服务根据拖拽事件可以判断对象是否可拖入。In a possible implementation manner, the application services of the first terminal device and the second terminal device may register the drag monitor in the Framework layer in advance, for example, register the drag monitor with the WmS of the Framework layer. In this way, when detecting a drag event or receiving a drag event sent by another terminal device, the Framework layers of the first terminal device and the second terminal device can send the drag event to the corresponding application service, and the application service can send the drag event to the corresponding application service according to the The drag event can determine whether the object can be dragged in.

如图2所示,第二终端设备的Framework层可以将捕捉到的上述位置的坐标和对象的数据类型生成DRAG_LOCATION事件,将DRAG_LOCATION事件发送给相应的应用服务,如上所述的第二终端设备打开的应用服务,应用服务可以根据该坐标和数据类型判断该坐标对应的位置是否可拖入上述数据类型的对象,若可拖入,则在第二终端设备的当前显示界面中显示判断结果,具体的显示方式可以参见图5a或者图5b中的示例。As shown in FIG. 2, the Framework layer of the second terminal device can generate a DRAG_LOCATION event by capturing the coordinates of the above-mentioned position and the data type of the object, and send the DRAG_LOCATION event to the corresponding application service, and the second terminal device as described above opens The application service can judge whether the position corresponding to the coordinate can be dragged into the object of the above data type according to the coordinate and data type. If it can be dragged in, the judgment result will be displayed in the current display interface of the second terminal device. The display manner of , can refer to the example in Fig. 5a or Fig. 5b.

图9d和9e分别示出根据本申请一实施例的终端设备的显示界面的示意图。如图9d所示,第一终端设备在检测到第二跨设备传输操作时,可以在将对象暂存在本地后向第二终端设备发送数据传输请求,也可以直接向第二终端设备发送对象,第二终端设备可以显示处理选项,第二终端设备(例如智能手机)显示的是桌面或者某一打开的文件夹,用户可以在第二终端设备内选择处理的方式(例如,撤销、延迟等)、也可以继续拖动对象,若第二终端设备检测到将对象拖拽到空白位置,那么第二终端设备可以直接将对象存储在本地,例如存储在系统盘或者文件夹中,还可以根据对象的数据类型选择应用服务打开对象,或者如上文所述,根据用户选择的应用服务打开对象,图9d中的第四个显示屏幕示出打开对象(图片)的场景。9d and 9e respectively show schematic diagrams of a display interface of a terminal device according to an embodiment of the present application. As shown in Figure 9d, when the first terminal device detects the second cross-device transmission operation, it can temporarily store the object locally and send a data transmission request to the second terminal device, or it can directly send the object to the second terminal device, The second terminal device can display processing options, the second terminal device (such as a smart phone) displays the desktop or an open folder, and the user can select the processing method in the second terminal device (for example, cancel, delay, etc.) , You can also continue to drag the object. If the second terminal device detects that the object is dragged to a blank position, then the second terminal device can directly store the object locally, for example, in the system disk or a folder. The data type of , selects the application service to open the object, or as described above, according to the application service selected by the user to open the object, the fourth display screen in FIG. 9d shows the scene of opening the object (picture).

如图9e所示,第二终端设备显示的是应用服务打开的场景,第二终端设备若捕获到用户的拖拽操作停留在应用服务的当前显示界面中的某一位置,可以根据该位置的坐标和对象的数据类型判断是否为可拖入位置。如图9e所示,若检测到拖拽释放操作,且释放前拖拽操作停留的位置是可以拖入对象的,则第二终端设备可以在该位置打开对象,如图9e中的第四个显示屏幕所示,对象在即时消息类应用服务的对话界面中打开。As shown in FIG. 9e, the second terminal device displays a scene in which the application service is opened. If the second terminal device captures that the user's drag operation stays at a certain position in the current display interface of the application service, it can The coordinates and the data type of the object determine whether it is a draggable position. As shown in Fig. 9e, if a drag release operation is detected, and the position where the drag operation stayed before the release can be dragged into the object, the second terminal device can open the object at this position, as shown in the fourth example in Fig. 9e As shown in the display screen, the object is opened in the dialog interface of the instant messaging application service.

图9f示出根据本申请一实施例的具体应用场景的示意图,如图9f所示,第二终端设备根据用户的操作打开了邮件服务新建了一封邮件,第二终端设备接收到了第一终端设备发送的数据传输请求或者将第一终端设备发送的对象暂存在本地后,在显示界面上显示了处理选项,包括“撤销”、“从XX拖出”、对象的缩略图等,当用户在第二终端设备的显示界面上拖拽对象(例如拖拽对象的缩略图)时,根据拖拽操作在新建的邮件中停留的位置以及对象的数据类型实时显示是否允许该数据类型的对象拖入该位置。Fig. 9f shows a schematic diagram of a specific application scenario according to an embodiment of the present application. As shown in Fig. 9f, the second terminal device opens the mail service and creates a new mail according to the user's operation, and the second terminal device receives the first terminal After the data transmission request sent by the device or the object sent by the first terminal device is temporarily stored locally, processing options are displayed on the display interface, including "Cancel", "Drag from XX", the thumbnail of the object, etc. When dragging an object (for example, dragging the thumbnail of the object) on the display interface of the second terminal device, according to the position where the drag operation stays in the newly created email and the data type of the object, whether the object of this data type is allowed to be dragged in is displayed in real time the location.

若用户选择了取消拖拽,那么对象是暂存在第二终端设备的前台或者暂存在第一终端设备的前台。以暂存在第二终端设备的前台为例,第二终端设备在检测到取消拖拽的操作后,可以仍然将对象暂存在前台,第二终端设备可以收起处理选项,如图9g所示示例。若用户想要再次对对象进行处理,可以采用滑动的方式拉出处理选项,第二终端设备根据针对处理选项的选择操作对对象进行处理。根据上述实施方式的数据的传输方法,可以在接收端设备的显示屏幕上显示可选择的针对拖入的对象的操作,便于第二终端设备根据实际需求对对象进行处理。If the user chooses to cancel the dragging, the object is temporarily stored in the foreground of the second terminal device or temporarily stored in the foreground of the first terminal device. Taking the temporary storage in the foreground of the second terminal device as an example, after the second terminal device detects the operation of canceling the drag and drop, it can still temporarily store the object in the foreground, and the second terminal device can put away the processing options, as shown in Figure 9g. . If the user wants to process the object again, the processing option can be pulled out in a sliding manner, and the second terminal device processes the object according to the selection operation for the processing option. According to the data transmission method of the above embodiment, selectable operations for the dragged object can be displayed on the display screen of the receiving end device, so that the second terminal device can process the object according to actual needs.

在一种可能的实现方式中,第一终端设备与两个以上候选终端设备连接,这里的连接可以包括有线连接和/或无线连接,本申请对此不作限定。图10示出根据本申请一实施例的应用场景的示意图。如图10所示,第一终端设备与三个候选终端设备(候选终端设备1、候选终端设备2和候选终端设备3)以无线方式连接。在该实施方式中,本申请的数据的传输方法还可以包括:从两个以上候选终端设备中,确定所述第二终端设备。In a possible implementation manner, the first terminal device is connected to more than two candidate terminal devices, and the connection here may include wired connection and/or wireless connection, which is not limited in this application. FIG. 10 shows a schematic diagram of an application scenario according to an embodiment of the present application. As shown in FIG. 10, the first terminal device is wirelessly connected to three candidate terminal devices (candidate terminal device 1, candidate terminal device 2, and candidate terminal device 3). In this embodiment, the data transmission method of the present application may further include: determining the second terminal device from two or more candidate terminal devices.

在一种可能的实现方式中,所述第一终端设备在检测到针对所述第一终端设备本地上的对象的第一跨设备传输操作时,根据所述第一跨设备传输操作的停留位置,从所述两个以上候选终端设备中确定第一跨设备传输操作对应的第二终端设备。In a possible implementation manner, when the first terminal device detects a first cross-device transmission operation for an object locally on the first terminal device, the first terminal device determines the stop position of the first cross-device transmission operation according to the first cross-device transmission operation. , determining a second terminal device corresponding to the first cross-device transmission operation from the two or more candidate terminal devices.

在一种可能的实现方式中,可以预先设置第一终端设备的显示屏幕上不同位置对应的终端设备,拖拽到相应的位置可能表示用户要将对象拖入该位置对应的终端设备。以图4为例,对于设备2,在配对时可以设置设备2的显示屏幕左侧区域对应设备1,右侧区域对应设备2。左侧区域或者右侧区域仅仅是本申请的一个示例,本申请不限于此,例如还可以是上侧区域或者下侧区域。每块区域的大小可以根据实际情况设置,例如,如果仅仅对左侧区域和右侧区域设置了对应的终端设备,可以将显示屏幕左边的1/3设置为左侧区域,右边的1/3设置为右侧区域。In a possible implementation manner, terminal devices corresponding to different positions on the display screen of the first terminal device may be preset, and dragging to the corresponding position may indicate that the user wants to drag the object to the terminal device corresponding to the position. Taking FIG. 4 as an example, for device 2, during pairing, it can be set that the left area of the display screen of device 2 corresponds to device 1, and the right area of the display screen corresponds to device 2. The left side area or the right side area is only an example of the present application, and the present application is not limited thereto, for example, it may also be an upper side area or a lower side area. The size of each area can be set according to the actual situation. For example, if only the left area and the right area are set with corresponding terminal devices, the left 1/3 of the display screen can be set as the left area, and the right 1/3 Set to the right area.

在一种可能的实现方式中,第一终端设备也可以在检测到针对所述第一终端设备本地上的对象的第一跨设备传输操作时,在显示屏幕上显示两个以上候选终端设备的信息,例如,可以是第二终端设备的标识信息,显示的形式可以是在显示屏幕的固定位置显示“图标和/或文字”的方式,其中,图标可以包括代表候选终端设备的图标、候选终端设备的图标、候选终端设备上安装的应用服务的图标等,文字可以为候选终端设备的标识信息、对对象的处理方式的选项等。In a possible implementation manner, the first terminal device may also display the information of two or more candidate terminal devices on the display screen when detecting the first cross-device transmission operation for an object locally on the first terminal device. The information, for example, can be the identification information of the second terminal device, and the display form can be a way of displaying “icons and/or text” at a fixed position on the display screen, wherein the icons can include icons representing candidate terminal devices, candidate terminals The icon of the device, the icon of the application service installed on the candidate terminal device, etc., the text may be the identification information of the candidate terminal device, the options of the processing method of the object, and the like.

图11a示出根据本申请一实施例的第一终端设备的显示界面的示意图。图11a中示出了第一终端设备显示两个以上候选终端设备信息的示例,如图11a所示,第一终端设备也可以在检测到针对所述第一终端设备本地的对象的第一跨设备传输操作时,在显示屏幕右侧边缘显示可拖入的抽屉(代表候选终端设备的图标的一个示例),每个抽屉可对应一个候选终端设备,例如,设备1~设备4,抽屉上可以显示对应的候选终端设备的设备标识。第一终端设备的边缘位置都可以显示可拖入的抽屉,图11a所示的仅仅是一个示例,不以任何方式限制本申请。FIG. 11a shows a schematic diagram of a display interface of a first terminal device according to an embodiment of the present application. Fig. 11a shows an example in which the first terminal device displays the information of more than two candidate terminal devices. As shown in Fig. 11a, the first terminal device may also detect the first crossover of an object local to the first terminal device. During the device transfer operation, a drawer that can be dragged (an example of an icon representing a candidate terminal device) is displayed on the right edge of the display screen, and each drawer can correspond to a candidate terminal device, for example, device 1 to device 4. Displays the device ID of the corresponding candidate terminal device. Any edge position of the first terminal device may display a drawer that can be dragged into, and what is shown in FIG. 11a is just an example, which does not limit the present application in any way.

在一种可能的实现方式中,第一跨设备传输操作可以是指从发起操作到操作停留的过程,第一终端设备可以在检测到所述发起操作时,就在屏幕右侧边缘显示可拖入的抽屉,还可以在检测到操作停留、且停留的位置为屏幕边缘时,在第一跨设备传输操作停留的屏幕边缘显示可拖入的抽屉,本申请对具体的显示可拖入抽屉的过程不作限定。In a possible implementation manner, the first cross-device transmission operation may refer to a process from initiating an operation to stopping the operation, and the first terminal device may display a draggable display on the right edge of the screen when the initiating operation is detected. The drawer that can be dragged into the drawer can also be displayed on the edge of the screen where the first cross-device transmission operation stays when it is detected that the operation stays and the location of the stay is the edge of the screen. The process is not limited.

在一种可能的实现方式中,根据所述第一跨设备传输操作的停留位置,从所述两个以上候选终端设备中确定所述第一跨设备传输操作对应的第二终端设备,可以包括:In a possible implementation manner, determining the second terminal device corresponding to the first cross-device transmission operation from the two or more candidate terminal devices according to the stay position of the first cross-device transmission operation may include: :

根据所述第一跨设备传输操作的停留位置与所述两个以上候选终端设备的信息的显示位置之间的关系,确定所述第一跨设备传输操作对应的第二终端设备。A second terminal device corresponding to the first cross-device transmission operation is determined according to the relationship between the stay position of the first cross-device transmission operation and the display positions of the information of the two or more candidate terminal devices.

第一跨设备传输操作在移动过程中,可生成对象对应的缩略图,缩略图可跟随者手指或者鼠标的移动而移动,如图11a所示跟随手指的小图标。因此,第一终端设备可以根据第一跨设备传输操作停留时,对象的缩略图的停留位置与两个以上候选终端设备的信息的显示位置之间的关系,确定第一跨设备传输操作对应的第二终端设备。候选终端设备的信息可以是如上所述的抽屉以及设备的ID等信息。During the first cross-device transmission operation, a thumbnail image corresponding to the object can be generated, and the thumbnail image can be moved following the movement of a finger or a mouse, as shown in FIG. 11a , following the small icon of the finger. Therefore, the first terminal device can determine, according to the relationship between the staying position of the thumbnail of the object and the display position of the information of the two or more candidate terminal devices when the first cross-device transmission operation is stopped, the first terminal device corresponding to the first cross-device transmission operation. second terminal equipment. The information of the candidate terminal device may be the above-mentioned information such as the drawer and the ID of the device.

根据第一跨设备传输操作停留时,对象的缩略图的停留位置和两个以上候选终端设备的信息的显示位置之间的关系可以为:对象的缩略图的停留位置与两个以上候选终端设备的信息的显示位置都不重合;或者,对象的缩略图的停留位置与其中一个候选终端设备的信息的显示位置至少部分重合,比如,对象的缩略图的停留位置完全位于其中一个候选终端设备的信息的显示位置上或者与其中一个候选终端设备的信息的显示位置存在部分重合;或者,对象的缩略图的停留位置与其中两个或多个候选终端设备的信息的显示位置存在重合。When staying according to the first cross-device transmission operation, the relationship between the stay position of the thumbnail of the object and the display position of the information of the two or more candidate terminal devices may be: the stay position of the thumbnail of the object and the position of the two or more candidate terminal devices The display positions of the information of the object do not overlap; or, the stay position of the thumbnail of the object is at least partially coincident with the display position of the information of one of the candidate terminal devices, for example, the stay position of the thumbnail of the object is completely located in one of the candidate terminal devices. The display position of the information partially overlaps with the display position of the information of one candidate terminal device; or, the stay position of the thumbnail of the object overlaps with the display position of the information of two or more candidate terminal devices.

对于对象的缩略图的停留位置与两个以上候选终端设备的信息的显示位置都不重合的情况,第一终端设备可以确定当前没有选定第二终端设备,也就是没有选定接收端设备,如图11a所示。In the case where the stay position of the thumbnail of the object does not coincide with the display position of the information of two or more candidate terminal devices, the first terminal device may determine that the second terminal device is not currently selected, that is, the receiver device is not selected, As shown in Figure 11a.

图11b示出根据本申请一实施例的第一终端设备的显示界面的示意图,图11b示出了对象的缩略图的停留位置与其中一个候选终端设备(设备2)的信息的显示位置至少部分重合的情况的一个示例,图11b中缩略图与右侧边缘显示的第二个候选终端设备的信息部分重合,第一终端设备可以确定该候选终端设备为第二终端设备。Fig. 11b shows a schematic diagram of a display interface of a first terminal device according to an embodiment of the present application, and Fig. 11b shows at least part of the stay position of the thumbnail of the object and the display position of the information of one of the candidate terminal devices (device 2). As an example of the overlapping situation, the thumbnail image in FIG. 11b overlaps with the information part of the second candidate terminal device displayed on the right edge, and the first terminal device can determine that the candidate terminal device is the second terminal device.

对于对象的缩略图的停留位置与其中两个或多个候选终端设备的信息的显示位置存在重合的情况,第一终端设备可以将信息的显示位置与对象的缩略图的停留位置重合最多候选终端设备确定为第二终端设备。第一终端设备判确定重合最多的候选终端设备为第二终端设备仅仅是本申请的一个示例,本申请不限于此。或者,第一终端设备也可以提示用户继续移动,直到能够确定第二终端设备。In the case where the stay position of the thumbnail of the object overlaps with the display position of the information of two or more candidate terminal devices, the first terminal device may overlap the display position of the information with the stay position of the thumbnail of the object to have the most candidate terminals The device is determined to be the second terminal device. It is only an example of the present application that the first terminal device determines that the candidate terminal device with the most overlap is the second terminal device, and the present application is not limited thereto. Alternatively, the first terminal device may also prompt the user to continue moving until the second terminal device can be determined.

图11c示出根据本申请一实施例的第一终端设备的显示界面的示意图。图11d示出根据本申请一实施例的第一终端设备的显示界面的应用场景示意图。FIG. 11c shows a schematic diagram of a display interface of a first terminal device according to an embodiment of the present application. FIG. 11d shows a schematic diagram of an application scenario of a display interface of a first terminal device according to an embodiment of the present application.

在一种可能的实现方式中,第一终端设备可以根据检测到的对两个以上候选终端设备的信息的触发指令确定第二终端设备、以及第二终端设备对对象的处理方式。在该实现方式中,向所述第二终端设备发送所述对象,可以包括:向所述第二终端设备发送所述对象以及指示信息,所述指示信息用于指示第二终端设备以所述处理方式处理所述对象。第二终端设备在接收到对象以及所述指示信息后,可以根据处理方式对对象进行处理。In a possible implementation manner, the first terminal device may determine the second terminal device and the processing method of the object by the second terminal device according to the detected triggering instructions for the information of two or more candidate terminal devices. In this implementation manner, sending the object to the second terminal device may include: sending the object and indication information to the second terminal device, where the indication information is used to instruct the second terminal device to use the The handle method handles the object. After receiving the object and the indication information, the second terminal device may process the object according to the processing method.

图11c示出了第一终端设备显示两个以上候选终端设备信息的示例,第一终端设备可以根据选择操作确定第二终端设备,其中,选择操作可以是用户通过手指或触控笔点击候选终端设备的图标,或者通过鼠标点击候选终端设备的图标。在根据选择操作确定第二终端设备后,可以展示可选择的第二终端对对象的处理方式,如图11c中间的小窗口所示,小窗口的上部显示了已选的对象,还可以显示已选的对象的数量,也就是说,可以选择多个对象,小窗口的中部显示了候选的终端设备的信息,以设备图标和文字的形式显示了终端设备的信息,小窗口的下部还显示了已选中的候选终端设备(例如设备1)上安装的应用程序(例如应用1、应用2)以及可以对对象进行的处理方式的选项(例如存储、打开、复制等)。第一终端设备可以根据选择操作确定第二终端设备对对象的处理方式,这样,第一终端设备向第二终端设备发送对象时,还可以发送指示信息,指示第二终端设备以上述处理方式处理对象。Fig. 11c shows an example in which the first terminal device displays information of more than two candidate terminal devices, and the first terminal device can determine the second terminal device according to a selection operation, wherein the selection operation can be that the user clicks the candidate terminal through a finger or a stylus The icon of the device, or click the icon of the candidate terminal device with the mouse. After the second terminal device is determined according to the selection operation, the optional processing method of the object by the second terminal can be displayed. As shown in the small window in the middle of Fig. 11c, the upper part of the small window displays the selected object, and can also display the The number of selected objects, that is, multiple objects can be selected, the information of the candidate terminal equipment is displayed in the middle of the small window, the information of the terminal equipment is displayed in the form of device icons and text, and the lower part of the small window also shows The applications (eg, application 1, application 2) installed on the selected candidate terminal device (eg, device 1) and options for the processing methods that can be performed on the object (eg, save, open, copy, etc.). The first terminal device can determine the processing method of the object by the second terminal device according to the selection operation. In this way, when the first terminal device sends the object to the second terminal device, it can also send instruction information to instruct the second terminal device to process the object in the above-mentioned processing method. object.

如图11c或者图11d所示,用户在小窗口中选择了第二终端设备、第二终端设备上安装的应用服务以及第二终端设备处理对象的处理方式(保存、打开等等)。这样,第一终端设备可以确定第二终端设备、以及第二终端设备对对象的处理方式。As shown in FIG. 11c or FIG. 11d , the user selects the second terminal device, the application service installed on the second terminal device, and the processing method (save, open, etc.) of the object processed by the second terminal device in the small window. In this way, the first terminal device can determine the second terminal device and how the object is processed by the second terminal device.

在只存在一个候选终端设备作为第二终端设备的情况下,也可以在第一终端设备上显示该第二终端设备对对象的处理方式的选项,可在第一终端设备上通过针对选项的选择操作等方式,确定该第二终端设备对对象的处理方式。In the case where there is only one candidate terminal device as the second terminal device, the first terminal device can also display the options of the processing method of the object by the second terminal device, and the first terminal device can be selected by selecting the options. Operation and other methods are used to determine the processing method of the object by the second terminal device.

根据以上实施方式的数据的传输方法,可以实现对多个终端设备之间的交互,且多个终端设备类型可以不同,使得用户才多个不同设备之间共享数据时更加便利。According to the data transmission method in the above embodiments, interaction between multiple terminal devices can be realized, and the types of multiple terminal devices can be different, which makes it more convenient for users to share data between multiple different devices.

对于图11a和图11b所示的显示抽屉的示例,需要说明的是,如果第一终端设备向第二终端设备发送对象:将对象暂存在本地可以是将对象与抽屉(即与候选终端设备)相对应地暂存,比如说,抽屉图标与一缓存空间关联,第一终端设备在检测到用户在抽屉进行了拖拽释放动作,可将拖拽释放动作对应的对象存储在该关联的缓存空间中。For the example of displaying the drawer shown in FIG. 11a and FIG. 11b , it should be noted that if the first terminal device sends an object to the second terminal device: temporarily storing the object locally may be combining the object with the drawer (ie, with the candidate terminal device) Correspondingly, temporarily store, for example, the drawer icon is associated with a cache space, and the first terminal device can store the object corresponding to the drag and release action in the associated cache space after detecting that the user has performed a drag and release action in the drawer. middle.

在一种可能的实现方式中,第一终端设备在暂存对象后,如上所述,还可以显示第二终端设备对对象的处理方式的选项供用户选择,可在第一终端设备上通过针对选项的选择操作等方式,确定第二终端设备对对象的处理方式,然后向第二终端设备发送数据传输请求,数据传输请求中也可以携带有处理方式。通过这种方式,可以更加灵活的实现对对象的处理选择的方式。In a possible implementation manner, after temporarily storing the object, as described above, the first terminal device can also display options for the processing method of the object by the second terminal device for the user to choose. Selecting an option and other methods, determine the processing method of the object by the second terminal device, and then send a data transmission request to the second terminal device, and the data transmission request may also carry the processing method. In this way, the way of processing and selecting objects can be implemented more flexibly.

第一终端设备向第二终端设备发送了数据传输请求,第二终端设备返回的是第二响应信号(如图9a和图9b所示的示例),第一终端设备接收到第二响应信号时,撤销发送对象,也可以采用与图9g类似的方式收起抽屉,仍然将对象暂存在缓存空间。若用户想要再次发送对象,可以采用滑动的方式拉出抽屉,再次拖拽对象进行传输。The first terminal device sends a data transmission request to the second terminal device, and the second terminal device returns a second response signal (the example shown in Figure 9a and Figure 9b ). When the first terminal device receives the second response signal , revoke the sending object, and the drawer can also be closed in a similar way as in Figure 9g, and the object is still temporarily stored in the cache space. If the user wants to send the object again, he can pull out the drawer by sliding and drag the object again to transfer.

在一种可能的实现方式中,根据所述第一跨设备传输操作的停留位置,从所述两个以上候选终端设备中确定所述第一跨设备传输操作对应的第二终端设备,还可以包括:In a possible implementation manner, according to the stay position of the first cross-device transmission operation, the second terminal device corresponding to the first cross-device transmission operation is determined from the two or more candidate terminal devices, and the second terminal device corresponding to the first cross-device transmission operation may also be determined. include:

根据所述第一跨设备传输操作的停留位置与第一终端设备的边缘的位置关系确定所述第一跨设备传输操作对应的第二终端设备。The second terminal device corresponding to the first cross-device transmission operation is determined according to the positional relationship between the stay position of the first cross-device transmission operation and the edge of the first terminal device.

在一种可能的实现方式中,根据第一终端设备与连接的候选终端设备之间的位置关系,可以预先设置第一终端设备不同的边缘与候选终端设备之间的对应关系,这样,可以根据第一跨设备传输操作的停留位置与第一终端设备的边缘的位置关系确定所述第一跨设备传输操作对应的第二终端设备。In a possible implementation manner, according to the positional relationship between the first terminal device and the connected candidate terminal device, the corresponding relationship between different edges of the first terminal device and the candidate terminal device may be preset. The positional relationship between the stay position of the first cross-device transmission operation and the edge of the first terminal device determines the second terminal device corresponding to the first cross-device transmission operation.

或者,在另一种可能的实现方式中,本申请的终端设备中可以安装有位置感应器,可以感应与其他终端设备之间的位置关系,在第一终端设备捕获到第一跨设备传输操作停留在第一终端设备的边缘时,可以启用感应器感应该边缘放置的候选终端设备,并将该边缘放置的候选终端设备作为第二终端设备。Or, in another possible implementation manner, a position sensor may be installed in the terminal device of the present application to sense the positional relationship with other terminal devices, and the first terminal device captures the first cross-device transmission operation When staying on the edge of the first terminal device, the sensor can be enabled to sense the candidate terminal device placed on the edge, and the candidate terminal device placed on the edge can be used as the second terminal device.

图12a示出根据本申请一实施例的数据的传输方法的流程图,图12a示出的方法可以应用于第一终端设备,该实施方式的传输方法在步骤S100-S103的基础上,还可以包括:Fig. 12a shows a flowchart of a data transmission method according to an embodiment of the present application. The method shown in Fig. 12a can be applied to the first terminal device. On the basis of steps S100-S103, the transmission method of this embodiment can also be include:

步骤S105,向所述第二终端设备发送显示指令,以指示所述第二终端设备根据所述显示指令和所述第二终端设备与所述第一终端设备之间的位置关系显示所述对象的第一图像,Step S105: Send a display instruction to the second terminal device to instruct the second terminal device to display the object according to the display instruction and the positional relationship between the second terminal device and the first terminal device the first image of

所述第一终端设备上显示的所述对象的第二图像与所述第二终端设备上显示的所述对象的第一图像能够拼成所述对象的完整图像。The second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be combined to form a complete image of the object.

图12b示出根据本申请一实施例的数据的传输方法的流程图,图12b示出的方法可以应用于第二终端设备,在图3b所示的步骤S201-S202的基础上,该实施方式的传输方法还可以包括:Fig. 12b shows a flowchart of a data transmission method according to an embodiment of the present application. The method shown in Fig. 12b can be applied to a second terminal device. On the basis of steps S201-S202 shown in Fig. 3b, this embodiment The transmission method can also include:

步骤S209,在接收到所述第一终端设备发送的显示指令时,根据所述显示指令和所述第二终端设备与所述第一终端设备之间的位置关系显示所述数据对应的对象的第一图像,Step S209, when receiving the display instruction sent by the first terminal device, display the object corresponding to the data according to the display instruction and the positional relationship between the second terminal device and the first terminal device. first image,

所述第一终端设备上显示的所述对象的第二图像与所述第二终端设备上显示的所述对象的第一图像能够拼成所述对象的完整图像。The second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be combined to form a complete image of the object.

其中,上述第一图像和第二图像可以是指对象的缩略图的一部分,对象的完整图像可以是指对象的完整缩略图。也就是说,在本实施方式中,可以根据第一终端设备和第二终端设备的位置关系显示对象对应的缩略图中的部分图像,比如说,第二终端设备在第一终端设备的右侧,那么在第一终端设备确定第二终端设备后,可以向第二终端设备发送显示指令,显示指令中可以携带有当前第一终端设备显示的对象的第二图像,这样,第二终端设备就可以根据第二终端设备与第一终端设备的位置关系在第二终端设备的显示屏幕上显示对象的完整图像去掉第二图像的第一图像。Wherein, the above-mentioned first image and second image may refer to a part of the thumbnail image of the object, and the complete image of the object may refer to the complete thumbnail image of the object. That is to say, in this embodiment, a part of the image in the thumbnail image corresponding to the object may be displayed according to the positional relationship between the first terminal device and the second terminal device. For example, the second terminal device is on the right side of the first terminal device. , then after the first terminal device determines the second terminal device, it can send a display instruction to the second terminal device, and the display instruction can carry the second image of the object currently displayed by the first terminal device. In this way, the second terminal device can According to the positional relationship between the second terminal device and the first terminal device, the complete image of the object is displayed on the display screen of the second terminal device and the first image of the second image is removed.

在一种可能的实现方式中,根据第二终端设备与第一终端设备的位置关系显示第一图像可以是指在第二终端设备的显示屏幕靠近第一终端设备的一侧显示第一图像。比如说,如上所述示例,第二终端设备在第一终端设备的右侧,那么可以在第二终端设备的显示屏幕的左侧显示第一图像。In a possible implementation manner, displaying the first image according to the positional relationship between the second terminal device and the first terminal device may refer to displaying the first image on a side of the display screen of the second terminal device close to the first terminal device. For example, in the above example, the second terminal device is on the right side of the first terminal device, then the first image can be displayed on the left side of the display screen of the second terminal device.

上述第二终端设备的显示屏幕靠近第一终端设备的一侧可以是预先根据第二终端设备和第一终端设备之间的初始位置关系设置的,也可以是实时感应的两者的位置关系。比如说,预先设置了第二终端设备和第一终端设备的位置关系,比如说,第二终端设备位于第一终端设备的右侧,那么第二终端设备在接收到显示指令时,即使第二终端设备的实际位置不是在第一终端设备的右侧,第二终端设备可以在左侧显示第一图像。又比如说,如上所述第一终端设备和第二终端设备上都可以安装有位置感应器,第二终端设备可以实时感应与第一终端设备的位置关系,第二终端设备在接收到显示指令时,如果感应到第一终端设备位于第二终端设备的左侧,那么可以在显示屏幕的左侧显示第一图像。The side of the display screen of the second terminal device close to the first terminal device may be pre-set according to the initial positional relationship between the second terminal device and the first terminal device, or may be a real-time sensing of the positional relationship between the two. For example, the positional relationship between the second terminal device and the first terminal device is preset, for example, the second terminal device is located on the right side of the first terminal device, then when the second terminal device receives the display instruction, even if the second terminal device The actual position of the terminal device is not on the right side of the first terminal device, and the second terminal device may display the first image on the left side. For another example, as described above, both the first terminal device and the second terminal device may be installed with position sensors, the second terminal device can sense the positional relationship with the first terminal device in real time, and the second terminal device receives the display instruction. When it is sensed that the first terminal device is located on the left side of the second terminal device, the first image can be displayed on the left side of the display screen.

若第一终端设备连接一个第二终端设备,或者从两个以上候选终端设备中确定了第二终端设备之后,第一终端设备可以向第二终端设备发送显示指令,显示指令中可以携带有第一终端设备显示的对象的第二图像,这样,第二终端设备就可以根据显示指令以及第二终端设备与第一终端设备的位置关系在第二终端的显示屏幕上显示对象的完整图像去掉第二图像的第一图像。If the first terminal device is connected to a second terminal device, or after the second terminal device is determined from two or more candidate terminal devices, the first terminal device may send a display instruction to the second terminal device, and the display instruction may carry the first terminal device. A second image of the object displayed by a terminal device, in this way, the second terminal device can display the complete image of the object on the display screen of the second terminal according to the display instruction and the positional relationship between the second terminal device and the first terminal device and remove the first The first image of the two images.

在一种可能的实现方式中,步骤S104中的“向所述第二终端设备发送所述对象”还可以包括:若检测到在显示屏幕上显示的所述对象的第二图像的面积满足发送条件,则向所述第二终端设备发送所述对象。In a possible implementation manner, "sending the object to the second terminal device" in step S104 may further include: if it is detected that the area of the second image of the object displayed on the display screen is sufficient for sending condition, the object is sent to the second terminal device.

其中,发送条件可以是指第二图像的面积与完整图像的面积之间的关系满足一定比例时可以发送对象,若第二图像的面积与完整图像的面积之间的关系不满足一定比例时,则即使检测到第二跨设备传输操作时,也不向第二终端设备发送对象。比如说,第二图像的面积与完整图像的面积的比例小于比例阈值,则在检测到第二跨设备传输操作时,向第二终端设备发送对象,第二图像的面积与完整图像的面积的比例不小于比例阈值,则在检测到第二跨设备传输操作时,也不向第二终端设备发送对象。其中的比例阈值可以是预先设置的,例如可以为50%。The sending condition may mean that the object can be sent when the relationship between the area of the second image and the area of the complete image satisfies a certain ratio, and if the relationship between the area of the second image and the area of the complete image does not meet a certain ratio, Then, even when the second cross-device transmission operation is detected, the object is not sent to the second terminal device. For example, if the ratio of the area of the second image to the area of the complete image is less than the ratio threshold, when the second cross-device transmission operation is detected, the object is sent to the second terminal device, and the area of the second image is proportional to the area of the complete image. If the ratio is not less than the ratio threshold, when the second cross-device transmission operation is detected, the object is not sent to the second terminal device. The ratio threshold may be preset, for example, may be 50%.

图13a示出根据本申请一实施例的应用场景的示意图,图13b示出根据本申请一实施例的跨屏显示的示意图。如图13a所示,第一终端设备的不同的边缘的位置可以与候选终端设备对应,第一终端设备左侧边缘的位置与候选终端设备1对应,第一终端设备右侧边缘的位置与候选终端设备2对应,第一终端设备上侧边缘的位置与候选终端设备3对应。这样,根据上文所述,根据所述第一跨设备传输操作的停留位置与第一终端设备的边缘的位置关系可以确定所述第一跨设备传输操作对应的第二终端设备。Fig. 13a shows a schematic diagram of an application scenario according to an embodiment of the present application, and Fig. 13b shows a schematic diagram of a multi-screen display according to an embodiment of the present application. As shown in FIG. 13a, the positions of different edges of the first terminal device may correspond to candidate terminal devices, the position of the left edge of the first terminal device corresponds to candidate terminal device 1, and the position of the right edge of the first terminal device corresponds to the candidate terminal device 1. The terminal device 2 corresponds to the terminal device 3, and the position of the upper edge of the first terminal device corresponds to the candidate terminal device 3. In this way, according to the above, the second terminal device corresponding to the first cross-device transmission operation can be determined according to the positional relationship between the stay position of the first cross-device transmission operation and the edge of the first terminal device.

如图13a所示,如果第一跨设备传输操作的停留位置为第一终端设备的右侧边缘,那么候选终端设备2可以为第二终端设备。此时,第一终端设备可以向第二终端设备发送显示指令,显示指令中可以携带有第一终端设备显示的对象的第二图像,这样,第二终端设备就可以根据显示指令以及第二终端设备与第一终端设备的位置关系在第二终端的显示屏幕上显示对象的完整图像去掉第二图像的第一图像,如图13a所示,在候选终端设备2的左侧边缘显示第一图像。若第一终端设备检测到拖拽释放动作,此时,第一终端设备上显示的第二图像面积小于完整图像的一半,也就是第二图像的面积与完整图像的面积的比例小于比例阈值,因此,第一终端设备可以向第二终端设备发送对象。向第二终端设备发送对象的具体过程可以参见上文对于步骤S804描述的部分以及图9a-图9c所示的实施例,本申请不再赘述。As shown in FIG. 13a, if the stay position of the first cross-device transmission operation is the right edge of the first terminal device, the candidate terminal device 2 may be the second terminal device. At this time, the first terminal device can send a display instruction to the second terminal device, and the display instruction can carry the second image of the object displayed by the first terminal device. In this way, the second terminal device can The positional relationship between the device and the first terminal device The complete image of the object is displayed on the display screen of the second terminal and the first image of the second image is removed. As shown in Figure 13a, the first image is displayed on the left edge of the candidate terminal device 2 . If the first terminal device detects the drag release action, at this time, the area of the second image displayed on the first terminal device is less than half of the complete image, that is, the ratio of the area of the second image to the area of the complete image is less than the ratio threshold, Thus, the first terminal device can send the object to the second terminal device. For the specific process of sending the object to the second terminal device, reference may be made to the part described above for step S804 and the embodiments shown in FIGS. 9 a to 9 c , which will not be repeated in this application.

在图13b所示的具体的应用场景中,第二终端设备当前打开了应用服务,如图13b所示的示例,第二终端设备打开了即时消息应用的聊天窗口。第一终端设备检测到第一跨设备传输操作停留在第一终端设备的显示屏幕的右侧边缘,可以向第二终端设备发送显示指令,第二终端设备在显示屏幕的左侧边缘显示对象的第二图像。In the specific application scenario shown in FIG. 13b, the second terminal device currently opens the application service. In the example shown in FIG. 13b, the second terminal device opens the chat window of the instant messaging application. The first terminal device detects that the first cross-device transmission operation stays on the right edge of the display screen of the first terminal device, and can send a display instruction to the second terminal device, and the second terminal device displays the object's information on the left edge of the display screen. second image.

在一种可能的实现方式中,第一终端设备发送的显示指令中,还可以携带有对象的数据类型,第二终端设备可以根据数据类型、当前打开的应用服务、第二终端设备上安装的应用服务、第二终端的本地存储状态等信息判断能否接收对象作出判断结果实时反馈给第一终端设备。In a possible implementation manner, the display instruction sent by the first terminal device may also carry the data type of the object, and the second terminal device The application service, the local storage state of the second terminal and other information are used to determine whether the receiving object can make the determination result and feed it back to the first terminal device in real time.

在第一终端设备检测到第二跨设备传输操作时,若第一终端设备显示的对象的第二图像与完整图像的比例小于比例阈值、且判断结果为能够传输至第二终端设备,则第一终端设备可以向第二终端设备发送对象。第二终端设备接收到对象后,若当前打开的应用服务能够打开对象,则可以直接在当前打开的应用服务中打开对象,如图13b所示,第二终端设备可以在即时消息应用中打开对象(例如,图片),根据用户的进一步操作可以选择发送图片或者在本地存储图片;若当前打开的应用服务无法打开对象,第二终端设备可以根据对象的数据类型选择应用服务打开对象。第二终端设备还可以存储对象。When the first terminal device detects the second cross-device transmission operation, if the ratio of the second image of the object displayed by the first terminal device to the complete image is less than the ratio threshold, and the judgment result is that it can be transmitted to the second terminal device, the first terminal device will An end device may send an object to a second end device. After the second terminal device receives the object, if the currently opened application service can open the object, it can directly open the object in the currently opened application service, as shown in Figure 13b, the second terminal device can open the object in the instant messaging application (for example, pictures), according to the user's further operation, you can choose to send the picture or store the picture locally; if the currently opened application service cannot open the object, the second terminal device can select the application service to open the object according to the data type of the object. The second terminal device may also store objects.

根据上述实施方式的数据的传输方法,以简洁、直观的展示出拖拽交互的过程,同时有利于用户判断拖拽时机,避免重复操作,简化用户操作。According to the data transmission method of the above-mentioned embodiment, the dragging interaction process is displayed concisely and intuitively, and at the same time, it is helpful for the user to judge the dragging timing, avoid repeated operations, and simplify user operations.

图14a示出根据本申请一实施例的数据的传输方法的流程图。图14a示出的传输方法可以应用于第一终端设备,该实施方式的传输方法除了步骤S100-S103,还可以包括:FIG. 14a shows a flowchart of a data transmission method according to an embodiment of the present application. The transmission method shown in FIG. 14a can be applied to the first terminal device. In addition to steps S100-S103, the transmission method of this embodiment may further include:

步骤S106,向所述第二终端设备发送显示状态请求,以使所述第二终端设备响应所述显示状态请求返回所述第二终端设备当前的显示界面,并显示所述显示界面。Step S106: Send a display state request to the second terminal device, so that the second terminal device returns to the current display interface of the second terminal device in response to the display state request, and displays the display interface.

图14b示出根据本申请一实施例的数据的传输方法的流程图。图14b示出的传输方法可以应用于第二终端设备,该实施方式的传输方法除了步骤S201-S202,还可以包括:FIG. 14b shows a flowchart of a data transmission method according to an embodiment of the present application. The transmission method shown in FIG. 14b can be applied to the second terminal device. In addition to steps S201-S202, the transmission method of this embodiment may further include:

步骤S210,在接收到第一终端设备发送的显示状态请求时,向第一终端设备返回所述第二终端设备当前的显示界面,以使第一终端设备确定第一跨设备传输操作在所述显示界面中停留位置的位置坐标。Step S210, when receiving the display state request sent by the first terminal device, return the current display interface of the second terminal device to the first terminal device, so that the first terminal device determines that the first cross-device transmission operation is in the first terminal device. Displays the position coordinates of the stop position in the interface.

其中,所述第一跨设备传输操作为第一终端设备用于发起将所述对象传输至第二终端设备的过程的操作。The first cross-device transmission operation is an operation used by the first terminal device to initiate a process of transmitting the object to the second terminal device.

显示状态请求用于请求第二终端设备返回第二终端设备当前的显示界面,第二终端设备在接收到显示状态请求时,可以对当前的显示界面进行截屏得到截屏图像,将截屏图像返回给第一终端设备,或者也可以直接投屏到第一终端设备的显示界面上。本申请对具体返回第二终端设备当前的显示界面的方式不作限定。The display state request is used to request the second terminal device to return to the current display interface of the second terminal device. When receiving the display state request, the second terminal device can take a screenshot of the current display interface to obtain a screenshot image, and return the screenshot image to the first terminal device. A terminal device, or the screen can also be directly projected onto the display interface of the first terminal device. The present application does not limit the specific way of returning to the current display interface of the second terminal device.

该实施方式的传输方法可以与图3a和图3b所示的示例结合,也可以与图11a、图11b所示的示例结合。也就是说,若第一终端设备连接一个第二终端设备,或者从两个以上候选终端设备中确定了第二终端设备之后,第一终端设备可以向第二终端设备发送显示状态请求。The transmission method of this embodiment may be combined with the examples shown in FIG. 3a and FIG. 3b, and may also be combined with the examples shown in FIG. 11a and FIG. 11b. That is, if the first terminal device is connected to a second terminal device, or after the second terminal device is determined from two or more candidate terminal devices, the first terminal device can send a display state request to the second terminal device.

在接收到第二终端设备返回的第二终端设备当前的显示界面后,第二终端设备可以继续监测第一跨设备传输操作,在一种可能的实现方式中,步骤S101可以包括:向所述第二终端设备发送判断请求,所述判断请求包括所述数据类型和所述第一跨设备传输操作停留的位置在所述显示界面中的坐标。也就是第二终端设备接收到的判断请求中可携带有第一跨设备传输操作停留的位置在所述显示界面中的坐标,步骤S202中的根据所述数据类型做出判断结果可以包括:根据所述数据类型和所述坐标做出判断结果。After receiving the current display interface of the second terminal device returned by the second terminal device, the second terminal device may continue to monitor the first cross-device transmission operation. In a possible implementation, step S101 may include: sending the The second terminal device sends a judgment request, where the judgment request includes the data type and the coordinates in the display interface of the position where the first cross-device transmission operation stays. That is, the judgment request received by the second terminal device may carry the coordinates in the display interface of the position where the first cross-device transmission operation stays, and making the judgment result according to the data type in step S202 may include: The data type and the coordinates make a judgment result.

举例来说,若该应用服务注册了拖拽监听,那么第二终端设备可以将第一终端设备发送的判断请求发送给应用服务,由应该服务根据数据类型和坐标的位置判断是否能够传输至第二终端设备。第二终端设备可以将根据数据类型、坐标做出的判断结果发送给第一终端设备,步骤S102可以包括:接收来自所述第二终端设备基于所述数据类型和所述坐标做出的判断结果。对判断结果的显示方式可以参见上文的实施方式,不再赘述。For example, if the application service is registered with drag monitoring, the second terminal device can send the judgment request sent by the first terminal device to the application service, and the application service can determine whether it can be transmitted to the first terminal device according to the data type and the position of the coordinates. Two terminal equipment. The second terminal device may send the judgment result based on the data type and the coordinates to the first terminal device, and step S102 may include: receiving the judgment result based on the data type and the coordinates from the second terminal device . For the display manner of the judgment result, reference may be made to the above-mentioned embodiments, which will not be repeated.

在一种可能的实现方式中,第二终端设备还可以根据本地存储状态做出判断结果。在本地存储状态为具备存储能力时,第二终端设备做出的判断结果为能够移动至第二终端设备。在本地存储状态为不具备存储能力,可以根据上述的数据类型、位置坐标做出判断结果。In a possible implementation manner, the second terminal device may also make a judgment result according to the local storage state. When the local storage state is that the storage capability is available, the judgment result made by the second terminal device is that it can be moved to the second terminal device. In the local storage state, there is no storage capability, and the judgment result can be made according to the above-mentioned data type and location coordinates.

图15示出根据本申请一实施例的应用场景的示意图。如图15所示,结合图14a、图14b以及图11b对本申请的传输方法进行说明,如图11b所示,对象的缩略图的停留位置与其中一个候选终端设备的信息的显示位置部分重合,选中该候选终端设备为第二终端设备。第一终端设备可以向第二终端设备发送显示状态请求,第二终端设备接收到显示状态请求时,可以对当前的显示界面进行截屏得到截屏图像,将截屏图像返回给第一终端设备,第一终端设备在显示屏幕上显示第二终端设备的截屏图像。FIG. 15 shows a schematic diagram of an application scenario according to an embodiment of the present application. As shown in FIG. 15 , the transmission method of the present application will be described with reference to FIG. 14 a , FIG. 14 b and FIG. 11 b . As shown in FIG. 11 b , the stay position of the thumbnail image of the object partially overlaps with the display position of the information of one of the candidate terminal devices, The candidate terminal device is selected as the second terminal device. The first terminal device can send a display state request to the second terminal device, and when the second terminal device receives the display state request, it can take a screenshot of the current display interface to obtain a screenshot image, and return the screenshot image to the first terminal device. The terminal device displays the screen shot image of the second terminal device on the display screen.

第一终端设备继续监测第一跨设备传输操作,向第二终端设备发送判断请求,判断请求携带有对象的数据类型和第一跨设备传输操作停留的位置在第二终端设备的显示界面的截屏图像中的坐标。例如,图15中手指在第一终端设备上拖动对象的缩略图停留在第二终端设备的截屏图像中即时消息应用的对话界面的消息输入框中,或者对话内容显示框中,第一终端设备可获得该停留位置的坐标,并携带在判断请求中,发送给第二终端设备。第二终端设备接收到该判断请求,第二终端设备可以根据数据类型和坐标做出判断结果。比如说,第二终端设备的拖拽服务系统接收到判断请求,将判断请求下发给Framework层,Framework层生成DRAG_LOCATION事件,将DRAG_LOCATION事件发送给应用服务,应用服务可以根据该坐标和数据类型判断是否可拖入,并将判断结果一步步(如图8c所示的返回判断结果的示例)返回给第一终端设备,在第一终端设备的当前显示界面中显示判断结果,具体的显示方式可以参见图5a或者图5b中的示例。The first terminal device continues to monitor the first cross-device transmission operation, sends a judgment request to the second terminal device, and judges that the request carries the data type of the object and the screen shot of the display interface of the second terminal device where the first cross-device transmission operation stays. coordinates in the image. For example, in FIG. 15, the thumbnail of the object dragged by the finger on the first terminal device stays in the message input box of the dialog interface of the instant messaging application in the screenshot image of the second terminal device, or the dialog content display box, the first terminal The device can obtain the coordinates of the stay position, carry it in the judgment request, and send it to the second terminal device. The second terminal device receives the judgment request, and the second terminal device can make a judgment result according to the data type and the coordinates. For example, the dragging service system of the second terminal device receives the judgment request and sends the judgment request to the Framework layer. The Framework layer generates a DRAG_LOCATION event and sends the DRAG_LOCATION event to the application service. The application service can judge according to the coordinates and data type. Whether it can be dragged in, and the judgment result is returned step by step (as shown in Figure 8c, the example of returning the judgment result) to the first terminal device, and the judgment result is displayed in the current display interface of the first terminal device. The specific display method can be See the example in Figure 5a or Figure 5b.

若本实施方式中的对象为图片或者一段文字,即时消息应用的对话框中允许拖入图片,或者输入框中允许拖入文字,那么在第一终端设备的显示界面显示判断结果。用户释放拖拽操作,第一终端设备在检测到释放拖拽操作时,可以将对象发送给第二终端设备,第二终端设备可以直接在相应的位置打开对象,例如,如图15所示,第二终端设备在对话框中显示该对象(例如图片)。If the object in this embodiment is a picture or a piece of text, the dialog box of the instant messaging application allows dragging of pictures, or the input box allows dragging of text, then the judgment result is displayed on the display interface of the first terminal device. The user releases the drag operation. When the first terminal device detects the release of the drag operation, the first terminal device can send the object to the second terminal device, and the second terminal device can directly open the object at the corresponding position. For example, as shown in FIG. 15 , The second terminal device displays the object (eg a picture) in a dialog box.

根据上述实施方式的数据的传输方法,能够直接将对象拖拽到目标位置,相比于相关技术需要进一步在接收端操作拖拽到目标位置的过程,能够简化用户操作。在拖拽的过程中实时显示判断结果,能够避免重复操作,提高操作效率。According to the data transmission method of the above-mentioned embodiment, the object can be directly dragged to the target position. Compared with the related art, the process of dragging and dropping to the target position needs to be further performed at the receiving end, which can simplify the user operation. The judgment result is displayed in real time during the dragging process, which can avoid repeated operations and improve the operation efficiency.

基于上述图14a、图14b的实施方式,图16示出根据本申请一实施例的数据的传输方法的流程图,图16示出的方法可以应用于第二终端设备中,如图16所示,所述方法还可以包括:步骤S211,在接收到所述第一终端设备发送的所述对象时,根据所述数据类型、本地存储状态、第二终端设备安装的应用服务、所述位置坐标中的一项或多项对所述对象进行处理。14a and 14b, FIG. 16 shows a flowchart of a data transmission method according to an embodiment of the present application. The method shown in FIG. 16 can be applied to a second terminal device, as shown in FIG. 16 . , the method may further include: step S211, when receiving the object sent by the first terminal device, according to the data type, the local storage state, the application service installed by the second terminal device, the location coordinates one or more of to process the object.

在一种可能的实现方式中,步骤S211可以包括:In a possible implementation, step S211 may include:

在本地存储状态为不具备存储能力时,根据所述第二终端设备安装的应用服务打开所述对象;When the local storage state is that it does not have storage capability, the object is opened according to the application service installed by the second terminal device;

在本地存储状态为具备存储能力时,在本地存储所述对象。When the local storage state is capable of storage, the object is stored locally.

在一种可能的实现方式中,在本地存储状态为具备存储能力时,在本地存储所述对象,可以包括:In a possible implementation manner, when the local storage state is capable of storing, storing the object locally may include:

在本地存储状态为具备存储能力、所述位置坐标在所述显示界面中的位置不允许所述数据类型插入时,在本地存储所述对象并根据所述数据类型选择应用程序打开对所述对象;When the local storage state is capable of storing, and the location of the location coordinates in the display interface does not allow the data type to be inserted, the object is stored locally and an application is selected to open the object according to the data type. ;

在本地存储状态为具备存储能力、所述位置坐标在所述显示界面中的位置允许所述数据类型插入时,在本地存储所述对象并根据所述位置坐标在所述显示界面中打开所述对象。When the local storage state is capable of storing, and the location of the location coordinates in the display interface allows the data type to be inserted, the object is stored locally and the object is opened in the display interface according to the location coordinates. object.

其中,根据所述第二终端设备安装的应用服务打开所述对象的具体过程可以参见前文的描述。所述位置坐标在所述显示界面中的位置是否允许上述数据类型插入,可以根据该位置有没有注册该数据类型的拖拽监听确定,具体过程可以参见上文的描述。The specific process of opening the object according to the application service installed by the second terminal device may refer to the foregoing description. Whether the position of the position coordinates in the display interface allows the above-mentioned data type to be inserted can be determined according to whether there is a drag monitor registered for the data type at the position, and the specific process can refer to the above description.

根据上述实施方式的数据的传输方法,能够直接将对象拖拽到目标位置,相比于相关技术需要进一步在接收端操作拖拽到目标位置的过程,能够简化用户操作,接收端可以根据本地的信息对对象进行处理,简化用户操作。According to the data transmission method of the above-mentioned embodiment, the object can be directly dragged to the target position. Compared with the related art, the process of dragging and dropping the object to the target position needs to be further operated at the receiving end, which can simplify the user operation. The information is processed on the object, simplifying the user operation.

本申请还提供了一种数据的传输装置,所述装置应用于第一终端设备,所述第一终端设备与第二终端设备连接,如图1所示的应用场景。图17示出根据本申请一实施例的数据的传输装置的框图,如图17所示,所述装置包括:The present application also provides a data transmission apparatus, and the apparatus is applied to a first terminal device, and the first terminal device is connected to a second terminal device, as shown in the application scenario shown in FIG. 1 . FIG. 17 shows a block diagram of a data transmission apparatus according to an embodiment of the present application. As shown in FIG. 17 , the apparatus includes:

第一获取模块61,用于所述第一终端设备在检测到针对所述第一终端设备上的对象的第一跨设备传输操作时,获取所述对象的数据类型,其中,所述第一跨设备传输操作用于发起将所述对象传输至第二终端设备的过程;The first obtaining module 61 is configured to obtain the data type of the object when the first terminal device detects a first cross-device transmission operation for an object on the first terminal device, wherein the first The cross-device transfer operation is used to initiate the process of transferring the object to the second terminal device;

第一发送模块62,用于向所述第二终端设备发送携带有所述数据类型的判断请求,a first sending module 62, configured to send a judgment request carrying the data type to the second terminal device,

第一接收模块63,用于接收来自所述第二终端设备基于所述数据类型做出的判断结果,所述判断结果表示所述对象是否能够传输至第二终端设备;a first receiving module 63, configured to receive a judgment result made by the second terminal device based on the data type, where the judgment result indicates whether the object can be transmitted to the second terminal device;

第一显示模块64,用于显示所述判断结果。The first display module 64 is used for displaying the judgment result.

根据本申请上述实施方式的数据的传输装置,能够根据对象的数据类型和接收端的匹配程度为用户提供直观的视觉反馈,避免错误操作和反复操作,提高操作效率。According to the data transmission device of the above-mentioned embodiments of the present application, intuitive visual feedback can be provided to the user according to the data type of the object and the matching degree of the receiving end, so as to avoid erroneous operation and repeated operation, and improve the operation efficiency.

在一种可能的实现方式中,所述判断请求携带有数据类型字段和/或扩展的数据类型字段,数据类型字段和扩展的数据类型字段用于表示所述对象的数据类型。In a possible implementation manner, the judgment request carries a data type field and/or an extended data type field, and the data type field and the extended data type field are used to indicate the data type of the object.

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

第二发送模块,用于在所述判断结果为能够传输至第二终端设备且检测到第二跨设备传输操作时,向所述第二终端设备发送所述对象,所述第二跨设备传输操作用于确认将所述对象传输至第二终端设备。The second sending module is configured to send the object to the second terminal device when the judgment result is that it can be transmitted to the second terminal device and a second cross-device transmission operation is detected, and the second cross-device transmission The operation is to confirm the transfer of the object to the second terminal device.

在一种可能的实现方式中,所述第二发送模块包括:In a possible implementation, the second sending module includes:

第一保存单元,用于将所述对象暂存在第一终端设备本地;a first storage unit, configured to temporarily store the object locally in the first terminal device;

第一发送单元,用于向所述第二终端设备发送数据传输请求,所述数据传输请求用于传输所述对象;a first sending unit, configured to send a data transmission request to the second terminal device, where the data transmission request is used to transmit the object;

第二发送单元,用于在接收到所述第二终端设备返回的接受所述数据传输请求的第一响应信号时,根据所述第一响应信号发送所述对象。The second sending unit is configured to send the object according to the first response signal when receiving the first response signal of accepting the data transmission request returned by the second terminal device.

在一种可能的实现方式中,所述第一发送单元还用于在检测到针对暂存的所述对象的调出指令时,调出暂存的对象,并向所述第二终端设备发送所述数据传输请求。In a possible implementation manner, the first sending unit is further configured to call out the temporarily stored object when a call-out instruction for the temporarily stored object is detected, and send the temporarily stored object to the second terminal device the data transfer request.

在一种可能的实现方式中,所述第二发送单元还用于:In a possible implementation manner, the second sending unit is further configured to:

在接收到所述第一响应信号时,直接发送所述对象;When receiving the first response signal, directly sending the object;

或者,在接收到所述第一响应信号时,延迟发送所述对象。Alternatively, sending the object is delayed upon receipt of the first response signal.

在一种可能的实现方式中,所述第二发送模块还包括:In a possible implementation manner, the second sending module further includes:

撤销发送单元,用于在接收到所述第二终端设备返回的不接受所述数据传输请求的第二响应信号时,撤销发送所述对象。A cancel sending unit, configured to cancel sending the object when receiving a second response signal returned by the second terminal device that the data transmission request is not accepted.

在一种可能的实现方式中,所述第一终端设备与两个以上候选终端设备连接,In a possible implementation manner, the first terminal device is connected to more than two candidate terminal devices,

所述装置还包括:The device also includes:

第二显示模块,用于所述第一终端设备在检测到针对所述第一终端设备本地的对象的第一跨设备传输操作时,显示所述两个以上候选终端设备的信息;a second display module, configured to display the information of the two or more candidate terminal devices when the first terminal device detects a first cross-device transmission operation for an object local to the first terminal device;

第二确定模块,用于根据所述第一跨设备传输操作的停留位置与所述两个以上候选终端设备的信息的显示位置之间的关系,确定所述第一跨设备传输操作对应的第二终端设备。The second determining module is configured to determine the first cross-device transfer operation corresponding to the first cross-device transfer operation according to the relationship between the stay position of the first cross-device transfer operation and the display positions of the information of the two or more candidate terminal devices. Two terminal equipment.

在一种可能的实现方式中,所述装置还包括,第三确定模块,用于根据所述第一跨设备传输操作的停留位置与第一终端设备的边缘的位置关系确定所述第一跨设备传输操作对应的第二终端设备。在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the apparatus further includes a third determining module, configured to determine the first cross-device according to the positional relationship between the stay position of the first cross-device transmission operation and the edge of the first terminal device The second terminal device corresponding to the device transmission operation. In a possible implementation, the apparatus further includes:

第三发送模块,用于向所述第二终端设备发送显示指令,以指示所述第二终端设备根据所述显示指令和所述第二终端设备与所述第一终端设备之间的位置关系显示所述对象的第一图像,a third sending module, configured to send a display instruction to the second terminal device to instruct the second terminal device to instruct the second terminal device according to the display instruction and the positional relationship between the second terminal device and the first terminal device displaying a first image of the object,

所述第一终端设备上显示的所述对象的第二图像与所述第二终端设备上显示的所述对象的第一图像能够拼成所述对象的完整图像。The second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be combined to form a complete image of the object.

在一种可能的实现方式中,所述第四发送模块用于若检测到在显示屏幕上显示的所述对象的第二图像的面积满足发送条件,则向所述第二终端设备设备发送所述对象。In a possible implementation manner, the fourth sending module is configured to send the second terminal device to the second terminal device if it is detected that the area of the second image of the object displayed on the display screen satisfies the sending condition. described object.

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

第五发送模块,用于向所述第二终端设备发送显示状态请求,以使所述第二终端设备响应所述显示状态请求返回所述第二终端设备当前的显示界面,并显示所述显示界面;a fifth sending module, configured to send a display state request to the second terminal device, so that the second terminal device responds to the display state request to return to the current display interface of the second terminal device, and displays the display interface;

所述第一发送模块包括:The first sending module includes:

第三发送单元,用于向所述第二终端设备发送判断请求,所述判断请求携带有所述数据类型和所述第一跨设备传输操作停留的位置在所述显示界面中的坐标,a third sending unit, configured to send a judgment request to the second terminal device, where the judgment request carries the data type and the coordinates in the display interface of the position where the first cross-device transmission operation stays,

所述第一接收模块包括:The first receiving module includes:

接收单元,用于接收来自所述第二终端设备基于所述数据类型和所述坐标做出的判断结果。A receiving unit, configured to receive a judgment result made by the second terminal device based on the data type and the coordinates.

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

第三确定模块,用于确定第二终端设备对对象的处理方式;a third determining module, configured to determine the processing method of the object by the second terminal device;

所述第二发送模块还包括:The second sending module also includes:

第四发送单元,用于向所述第二终端设备发送所述对象以及指示信息,所述指示信息用于指示第二终端设备以所述处理方式处理所述对象。a fourth sending unit, configured to send the object and indication information to the second terminal device, where the indication information is used to instruct the second terminal device to process the object in the processing mode.

在一种可能的实现方式中,所述第一跨设备传输操作为拖拽操作。In a possible implementation manner, the first cross-device transmission operation is a drag operation.

在一种可能的实现方式中,第二跨设备传输操作为拖拽释放操作。In a possible implementation manner, the second cross-device transfer operation is a drag-and-release operation.

在一种可能的实现方式中,所述第一终端设备为触屏设备或非触屏设备,所述第二终端设备为触屏设备、非触屏设备或者无屏设备。In a possible implementation manner, the first terminal device is a touch screen device or a non-touch screen device, and the second terminal device is a touch screen device, a non-touch screen device or a non-touch screen device.

本申请还提供了一种数据的传输装置,所述装置应用于第二终端设备,其特征在于,所述第二终端设备与第一终端设备连接,如图1所示的应用场景。图18示出根据本申请一实施例的数据的传输装置的框图,如图18所示,The present application further provides a data transmission apparatus, and the apparatus is applied to a second terminal device, characterized in that the second terminal device is connected to the first terminal device, as shown in the application scenario shown in FIG. 1 . FIG. 18 shows a block diagram of a data transmission apparatus according to an embodiment of the present application, as shown in FIG. 18 ,

所述装置包括:The device includes:

第二接收模块71,用于接收第一终端设备发送的判断请求,其中,所述判断请求携带有待传输的对象的数据类型,所述判断请求用于请求所述第二终端设备判断所述数据类型的对象能否传输至第二终端设备;The second receiving module 71 is configured to receive a judgment request sent by the first terminal device, wherein the judgment request carries the data type of the object to be transmitted, and the judgment request is used to request the second terminal device to judge the data whether the type of object can be transmitted to the second terminal device;

第一判断模块72,用于根据所述数据类型做出判断结果,并将所述判断结果发送给所述第一终端设备,以使所述第一终端设备显示所述判断结果。The first judgment module 72 is configured to make a judgment result according to the data type, and send the judgment result to the first terminal device, so that the first terminal device displays the judgment result.

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

第六发送模块,用于在接收到第一终端设备发送的显示状态请求时,向第一终端设备返回所述第二终端设备当前的显示界面,以使第一终端设备确定第一跨设备传输操作在所述显示界面中停留位置的坐标,其中,所述第一跨设备传输操作为第一终端设备用于发起将所述对象传输至第二终端设备的过程的操作。The sixth sending module is configured to return the current display interface of the second terminal device to the first terminal device when receiving the display state request sent by the first terminal device, so that the first terminal device determines the first cross-device transmission The coordinates of the location where the operation stays in the display interface, wherein the first cross-device transmission operation is an operation used by the first terminal device to initiate a process of transmitting the object to the second terminal device.

在一种可能的实现方式中,所述判断请求携带有所述坐标,In a possible implementation manner, the judgment request carries the coordinates,

所述第一判断模块包括:The first judgment module includes:

第一判断单元,用于根据所述数据类型和所述坐标做出判断结果。A first judgment unit, configured to make a judgment result according to the data type and the coordinates.

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

第一处理模块,用于在接收到所述第一终端设备发送的所述对象时,根据所述数据类型、本地存储状态、第二终端设备安装的应用服务、所述坐标中的一项或多项对所述对象进行处理。The first processing module is configured to, when receiving the object sent by the first terminal device, perform one of the data type, the local storage state, the application service installed by the second terminal device, the coordinates, or Multiple items are processed on the object.

在一种可能的实现方式中,所述第一处理模块包括:In a possible implementation, the first processing module includes:

第一处理单元,用于在本地存储状态为不具备存储能力时,根据所述第二终端设备安装的应用服务打开所述对象;a first processing unit, configured to open the object according to the application service installed by the second terminal device when the local storage state is not having storage capability;

第二处理单元,用于在本地存储状态为具备存储能力时,在本地存储所述对象。The second processing unit is configured to store the object locally when the local storage state is capable of storing.

在一种可能的实现方式中,所述第二处理单元还用于在本地存储状态为具备存储能力、所述坐标在所述显示界面中的对应位置不允许所述数据类型插入时,在本地存储所述对象并根据所述数据类型选择应用程序打开对所述对象;In a possible implementation manner, the second processing unit is further configured to, when the local storage state is capable of storing and the corresponding position of the coordinates in the display interface does not allow the insertion of the data type, perform a local storing the object and selecting an application to open the object according to the data type;

在本地存储状态为具备存储能力、所述坐标在所述显示界面中的对应位置允许所述数据类型插入时,在本地存储所述对象并根据所述坐标在所述显示界面中打开所述对象。When the local storage state is capable of storing and the corresponding position of the coordinates in the display interface allows the insertion of the data type, the object is stored locally and the object is opened in the display interface according to the coordinates .

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

存储模块,用于在接收到所述第一终端设备发送的所述对象时,若第二终端设备具备存储能力,则将所述对象暂存在本地;a storage module, configured to temporarily store the object locally when the object sent by the first terminal device is received, if the second terminal device has a storage capability;

第三显示模块,用于显示处理选项;The third display module is used to display processing options;

第二处理模块,用于根据针对所述处理选项的选择操作对所述对象进行处理。The second processing module is configured to process the object according to the selection operation for the processing option.

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

第四显示模块,用于在接收到所述第一终端设备发送的显示指令时,根据所述显示指令和所述第二终端设备与所述第一终端设备之间的位置关系显示所述数据对应的对象的第一图像,a fourth display module, configured to display the data according to the display instruction and the positional relationship between the second terminal device and the first terminal device when receiving the display instruction sent by the first terminal device the first image of the corresponding object,

所述第一终端设备上显示的所述对象的第二图像与所述第二终端设备上显示的所述对象的第一图像能够拼成所述对象的完整图像。The second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be combined to form a complete image of the object.

在一种可能的实现方式中,所述第一终端设备为触屏设备或非触屏设备,所述第二终端设备为触屏设备、非触屏设备或者无屏设备。In a possible implementation manner, the first terminal device is a touch screen device or a non-touch screen device, and the second terminal device is a touch screen device, a non-touch screen device or a non-touch screen device.

本申请的实施例提供了一种终端设备,该终端设备可以执行上述多种实现方式中的一种或几种的数据的传输方法。An embodiment of the present application provides a terminal device, and the terminal device can execute one or more of the data transmission methods in the above-mentioned multiple implementation manners.

本申请可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本申请的各个方面的计算机可读程序指令。The present application may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present application.

本申请的实施例提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行上述方法。Embodiments of the present application provide a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.

计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above. Computer-readable storage media, as used herein, are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.

这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .

用于执行本申请操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本申请的各个方面。Computer program instructions for carrying out the operations of the present application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages. Source or object code, written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect). In some embodiments, custom electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be personalized by utilizing state information of computer readable program instructions. Computer readable program instructions are executed to implement various aspects of the present application.

这里参照根据本申请实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本申请的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present application are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.

也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.

附图中的流程图和框图显示了根据本申请的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.

以上已经描述了本申请的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present application have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (40)

1. A data transmission method is applied to a first terminal device, and is characterized in that the first terminal device is connected with a second terminal device, and the method comprises the following steps:
the method comprises the steps that when a first cross-device transmission operation aiming at an object on a first terminal device is detected by the first terminal device, the data type of the object is obtained, wherein the first cross-device transmission operation is used for initiating a process of transmitting the object to a second terminal device;
sending a judgment request carrying the data type to the second terminal device,
receiving a judgment result made by the second terminal device based on the data type, wherein the judgment result represents whether the object can be transmitted to the second terminal device;
and displaying the judgment result.
2. The method according to claim 1, wherein the determination request carries a data type field and/or an extended data type field, and the data type field and the extended data type field are used for indicating a data type of the object.
3. The method of claim 1, further comprising:
and when the judgment result is that the object can be transmitted to a second terminal device and a second cross-device transmission operation is detected, sending the object to the second terminal device, wherein the second cross-device transmission operation is used for confirming that the object is transmitted to the second terminal device.
4. The method of claim 3, wherein sending the object to the second terminal device comprises:
temporarily storing the object in the local of the first terminal equipment;
sending a data transmission request to the second terminal equipment, wherein the data transmission request is used for transmitting the object;
and when a first response signal which is returned by the second terminal equipment and accepts the data transmission request is received, the object is sent according to the first response signal.
5. The method of claim 4, wherein after the object is temporarily stored locally at the first terminal device, further comprising:
and when a call-out instruction for the temporarily stored object is detected, calling out the temporarily stored object, and sending the data transmission request to the second terminal equipment.
6. The method of claim 4 or 5, wherein transmitting the object according to the first response signal comprises:
upon receiving the first response signal, directly transmitting the object;
or delaying the transmission of the object upon receiving the first response signal.
7. The method according to any of claims 1-6, wherein the first terminal device is connected to more than two candidate terminal devices,
the method further comprises the following steps:
the first terminal device displays information of the more than two candidate terminal devices when detecting a first cross-device transmission operation for an object on the first terminal device;
and determining a second terminal device corresponding to the first cross-device transmission operation according to the relation between the stop position of the first cross-device transmission operation and the display positions of the information of the more than two candidate terminal devices.
8. The method according to any of claims 1-6, wherein the first terminal device is connected to more than two candidate terminal devices,
the method further comprises the following steps:
and determining second terminal equipment corresponding to the first cross-equipment transmission operation according to the position relation between the stop position of the first cross-equipment transmission operation and the edge of the first terminal equipment.
9. The method according to claim 1 or 8, characterized in that the method further comprises:
sending a display instruction to the second terminal device to instruct the second terminal device to display a first image of the object according to the display instruction and a positional relationship between the second terminal device and the first terminal device,
the second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be spliced into a complete image of the object;
and if the area of the second image of the object displayed on the display screen is detected to meet the sending condition, sending the object to the second terminal equipment.
10. The method of claim 1 or 7, further comprising:
sending a display state request to the second terminal device, so that the second terminal device responds to the display state request, returns to the current display interface of the second terminal device, and displays the display interface;
sending a judgment request carrying the data type to the second terminal device, including:
sending a judgment request to the second terminal device, wherein the judgment request carries the data type and the coordinate of the position where the first cross-device transmission operation stays in the display interface,
receiving a judgment result made by the second terminal device based on the data type, wherein the judgment result comprises the following steps:
and receiving a judgment result made by the second terminal device based on the data type and the coordinate.
11. The method of claim 3, further comprising:
determining a processing mode of the second terminal equipment to the object;
sending the object to the second terminal device, including:
and sending the object and indication information to the second terminal equipment, wherein the indication information is used for indicating the second terminal equipment to process the object in the processing mode.
12. The method of claim 3, wherein the first cross-device transfer operation is a drag operation and the second cross-device transfer operation is a drag release operation.
13. A data transmission method is applied to a second terminal device, and is characterized in that the second terminal device is connected with a first terminal device, and the method comprises the following steps:
receiving a judgment request sent by a first terminal device, wherein the judgment request carries the data type of an object to be transmitted, and the judgment request is used for requesting a second terminal device to judge whether the object of the data type can be transmitted to the second terminal device;
and making a judgment result according to the data type, and sending the judgment result to the first terminal equipment so as to enable the first terminal equipment to display the judgment result.
14. The method of claim 13, further comprising:
when a display state request sent by a first terminal device is received, returning a current display interface of a second terminal device to the first terminal device so that the first terminal device determines coordinates of a position where a first cross-device transmission operation stays in the display interface, wherein the first cross-device transmission operation is an operation used by the first terminal device for initiating a process of transmitting the object to the second terminal device;
wherein the judgment request carries the coordinates,
making a judgment result according to the data type, comprising:
and making a judgment result according to the data type and the coordinate.
15. The method of claim 14, further comprising:
and when the object sent by the first terminal equipment is received, processing the object according to one or more of the data type, the local storage state, the application service installed by the second terminal equipment and the coordinates.
16. The method of claim 15, wherein processing the object according to one or more of the data type, a local storage state, an application service installed by the second terminal device, and the coordinates comprises:
when the local storage state is that the object does not have the storage capacity, opening the object according to the application service installed by the second terminal equipment;
and when the local storage state is the storage capacity, the object is stored locally.
17. The method of claim 16, wherein storing the object locally when the local storage state is storage-capable comprises:
when the local storage state is that the storage capacity is available and the corresponding position of the coordinate in the display interface does not allow the data type to be inserted, locally storing the object and selecting an application program to open the object according to the data type;
and when the local storage state is that the storage capacity is provided and the corresponding position of the coordinate in the display interface allows the data type to be inserted, locally storing the object and opening the object in the display interface according to the coordinate.
18. The method according to any one of claims 13-17, further comprising:
when the object sent by the first terminal equipment is received, if the second terminal equipment has the storage capacity, the object is temporarily stored locally;
displaying the processing options;
and processing the object according to the selection operation aiming at the processing option.
19. The method of claim 13, further comprising:
when a display instruction sent by the first terminal equipment is received, displaying a first image of the object according to the display instruction and the position relation between the second terminal equipment and the first terminal equipment,
the second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be pieced together into a complete image of the object.
20. A data transmission device, which is applied to a first terminal device, wherein the first terminal device is connected with a second terminal device, the device comprising:
a first obtaining module, configured to, when the first terminal device detects a first cross-device transmission operation for an object on the first terminal device, obtain a data type of the object, where the first cross-device transmission operation is used to initiate a process of transmitting the object to a second terminal device;
a first sending module, configured to send a determination request carrying the data type to the second terminal device,
a first receiving module, configured to receive a determination result made by the second terminal device based on the data type, where the determination result indicates whether the object can be transmitted to the second terminal device;
and the first display module is used for displaying the judgment result.
21. The apparatus of claim 20, wherein the determination request carries a data type field and/or an extended data type field, and wherein the data type field and the extended data type field are used to indicate a data type of the object.
22. The apparatus of claim 20, further comprising:
and a second sending module, configured to send the object to a second terminal device when the determination result is that the object can be transmitted to the second terminal device and a second cross-device transmission operation is detected, where the second cross-device transmission operation is used to confirm that the object is transmitted to the second terminal device.
23. The apparatus of claim 22, wherein the second sending module comprises:
the first storage unit is used for temporarily storing the object in the local of the first terminal equipment;
a first sending unit, configured to send a data transmission request to the second terminal device, where the data transmission request is used to transmit the object;
and the second sending unit is used for sending the object according to the first response signal when receiving the first response signal returned by the second terminal equipment and accepting the data transmission request.
24. The apparatus of claim 23, wherein the first sending unit is further configured to send the first message to a second sending unit
And when a call-out instruction for the temporarily stored object is detected, calling out the temporarily stored object, and sending the data transmission request to the second terminal equipment.
25. The apparatus according to claim 23 or 24, wherein the second sending unit is further configured to:
upon receiving the first response signal, directly transmitting the object;
or delaying the transmission of the object upon receiving the first response signal.
26. The apparatus according to any of claims 20-25, wherein the first terminal device is connected to more than two candidate terminal devices,
the device further comprises:
a second display module, configured to display information of the two or more candidate terminal devices when the first terminal device detects a first cross-device transmission operation for an object local to the first terminal device;
and the second determining module is used for determining the second terminal equipment corresponding to the first cross-equipment transmission operation according to the relation between the stop position of the first cross-equipment transmission operation and the display positions of the information of the more than two candidate terminal equipment.
27. The apparatus according to any of claims 20-25, wherein the first terminal device is connected to more than two candidate terminal devices,
the device further comprises:
and a third determining module, configured to determine, according to a position relationship between a staying position of the first cross-device transmission operation and an edge of the first terminal device, a second terminal device corresponding to the first cross-device transmission operation.
28. The apparatus of claim 20 or 27, further comprising:
a third sending module, configured to send a display instruction to the second terminal device to instruct the second terminal device to display the first image of the object according to the display instruction and a positional relationship between the second terminal device and the first terminal device,
the second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be spliced into a complete image of the object;
and the fourth sending module is used for sending the object to the second terminal equipment if the area of the second image of the object displayed on the display screen is detected to meet the sending condition.
29. The apparatus of claim 20 or 26, further comprising:
a fifth sending module, configured to send a display status request to the second terminal device, so that the second terminal device returns to a current display interface of the second terminal device in response to the display status request, and displays the display interface;
the first transmitting module includes:
a third sending unit, configured to send a determination request to the second terminal device, where the determination request carries the data type and a coordinate of a location where the first cross-device transmission operation stays in the display interface,
the first receiving module includes:
a receiving unit, configured to receive a determination result made by the second terminal device based on the data type and the coordinate.
30. The apparatus of claim 22, further comprising:
the third determining module is used for determining the processing mode of the second terminal equipment to the object;
the second sending module further comprises:
and a fourth sending unit, configured to send the object and indication information to the second terminal device, where the indication information is used to instruct the second terminal device to process the object in the processing manner.
31. The apparatus of claim 22, wherein the first cross-device transfer operation is a drag operation and the second cross-device transfer operation is a drag release operation.
32. A data transmission device, which is applied to a second terminal device, wherein the second terminal device is connected with a first terminal device, the device comprising:
a second receiving module, configured to receive a determination request sent by a first terminal device, where the determination request carries a data type of an object to be transmitted, and the determination request is used to request the second terminal device to determine whether the object of the data type can be transmitted to the second terminal device;
and the first judgment module is used for making a judgment result according to the data type and sending the judgment result to the first terminal equipment so as to enable the first terminal equipment to display the judgment result.
33. The apparatus of claim 32, further comprising:
a sixth sending module, configured to, when receiving a display state request sent by a first terminal device, return a current display interface of a second terminal device to the first terminal device, so that the first terminal device determines coordinates of a position where a first cross-device transmission operation stays in the display interface, where the first cross-device transmission operation is an operation in which the first terminal device is configured to initiate a process of transmitting the object to the second terminal device;
wherein the judgment request carries the coordinates,
the first judging module comprises:
and the first judgment unit is used for making a judgment result according to the data type and the coordinate.
34. The apparatus of claim 33, further comprising:
and the first processing module is used for processing the object according to one or more of the data type, the local storage state, the application service installed by the second terminal equipment and the coordinates when the object sent by the first terminal equipment is received.
35. The apparatus of claim 34, wherein the first processing module comprises:
the first processing unit is used for opening the object according to the application service installed by the second terminal equipment when the local storage state is that the local storage state does not have the storage capacity;
and the second processing unit is used for locally storing the object when the local storage state is that the storage capacity is available.
36. The apparatus of claim 35, wherein the second processing unit is further configured to
When the local storage state is that the storage capacity is available and the corresponding position of the coordinate in the display interface does not allow the data type to be inserted, locally storing the object and selecting an application program to open the object according to the data type;
and when the local storage state is that the storage capacity is provided and the corresponding position of the coordinate in the display interface allows the data type to be inserted, locally storing the object and opening the object in the display interface according to the coordinate.
37. The apparatus of any one of claims 32-36, further comprising:
the storage module is used for temporarily storing the object in the local area if a second terminal device has storage capacity when receiving the object sent by the first terminal device;
the third display module is used for displaying the processing options;
and the second processing module is used for processing the object according to the selection operation aiming at the processing option.
38. The apparatus of claim 32, further comprising:
a fourth display module, configured to display the first image of the object according to the display instruction and the positional relationship between the second terminal device and the first terminal device when receiving the display instruction sent by the first terminal device,
the second image of the object displayed on the first terminal device and the first image of the object displayed on the second terminal device can be pieced together into a complete image of the object.
39. An apparatus for transmitting data, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to carry out the instructions when executing the method of any one of claims 1 to 12 or to carry out the method of any one of claims 13 to 19.
40. A non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of any one of claims 1-12 or the method of any one of claims 13-19.
CN202010333906.0A 2020-04-24 2020-04-24 Data transmission method and device Active CN111666055B (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
CN202111463143.2A CN114356197B (en) 2020-04-24 2020-04-24 Data transmission method and device
CN202111463198.3A CN114356198A (en) 2020-04-24 2020-04-24 Data transmission method and device
CN202010333906.0A CN111666055B (en) 2020-04-24 2020-04-24 Data transmission method and device
CN202080100104.3A CN115516413A (en) 2020-04-24 2020-12-31 Object dragging method and device
US17/920,867 US20240053879A1 (en) 2020-04-24 2020-12-31 Object Drag Method and Device
EP20932244.5A EP4130963A4 (en) 2020-04-24 2020-12-31 Object dragging method and device
PCT/CN2020/142420 WO2021212922A1 (en) 2020-04-24 2020-12-31 Object dragging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010333906.0A CN111666055B (en) 2020-04-24 2020-04-24 Data transmission method and device

Related Child Applications (2)

Application Number Title Priority Date Filing Date
CN202111463198.3A Division CN114356198A (en) 2020-04-24 2020-04-24 Data transmission method and device
CN202111463143.2A Division CN114356197B (en) 2020-04-24 2020-04-24 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN111666055A true CN111666055A (en) 2020-09-15
CN111666055B CN111666055B (en) 2021-12-14

Family

ID=72382836

Family Applications (3)

Application Number Title Priority Date Filing Date
CN202010333906.0A Active CN111666055B (en) 2020-04-24 2020-04-24 Data transmission method and device
CN202111463198.3A Pending CN114356198A (en) 2020-04-24 2020-04-24 Data transmission method and device
CN202111463143.2A Active CN114356197B (en) 2020-04-24 2020-04-24 Data transmission method and device

Family Applications After (2)

Application Number Title Priority Date Filing Date
CN202111463198.3A Pending CN114356198A (en) 2020-04-24 2020-04-24 Data transmission method and device
CN202111463143.2A Active CN114356197B (en) 2020-04-24 2020-04-24 Data transmission method and device

Country Status (1)

Country Link
CN (3) CN111666055B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021212922A1 (en) * 2020-04-24 2021-10-28 华为技术有限公司 Object dragging method and device
CN113766303A (en) * 2021-05-08 2021-12-07 北京字节跳动网络技术有限公司 Multi-screen interaction method, device, equipment and storage medium
WO2022068578A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 File sharing method and electronic device
CN114356197A (en) * 2020-04-24 2022-04-15 华为技术有限公司 Data transmission method and device
WO2022109883A1 (en) * 2020-11-25 2022-06-02 京东方科技集团股份有限公司 Screen projection interaction method, screen projection system and terminal device
CN114610253A (en) * 2020-12-08 2022-06-10 华为技术有限公司 Screen projection method and equipment
CN114647351A (en) * 2020-12-25 2022-06-21 华为技术有限公司 Interface element display method and device
CN114760291A (en) * 2022-06-14 2022-07-15 深圳乐播科技有限公司 File processing method and device
WO2022257822A1 (en) * 2021-06-08 2022-12-15 华为技术有限公司 Distributed display method for application interface, and terminal
US11947998B2 (en) 2020-09-02 2024-04-02 Huawei Technologies Co., Ltd. Display method and device
US12073071B2 (en) 2020-07-29 2024-08-27 Huawei Technologies Co., Ltd. Cross-device object drag method and device
WO2024240008A1 (en) * 2023-05-19 2024-11-28 华为技术有限公司 Data transmission method, system and related apparatus
WO2024255344A1 (en) * 2023-06-16 2024-12-19 荣耀终端有限公司 Cross-device content transmission method and apparatus
US12197693B2 (en) 2020-08-26 2025-01-14 Huawei Technologies Co., Ltd. Method and device for displaying a projection interface

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665711A (en) * 2022-10-26 2023-01-31 昆山联滔电子有限公司 Wireless transmission system and method

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279288A (en) * 2013-05-31 2013-09-04 北京小米科技有限责任公司 Method, device and terminal units for transmitting data
CN104349110A (en) * 2014-09-24 2015-02-11 招商银行股份有限公司 Terminal remote interaction method and system
CN105892851A (en) * 2016-03-29 2016-08-24 北京金山安全软件有限公司 Visual resource transmission method and device and electronic equipment
CN106406127A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and device for generating control interface of Internet of Things (IOT) device
CN106844063A (en) * 2016-12-30 2017-06-13 深圳市优博讯科技股份有限公司 Cross-platform data processing method, system and cross-platform data shared system
CN107124690A (en) * 2017-03-31 2017-09-01 上海掌门科技有限公司 A kind of method carried out data transmission between intelligent watch and mobile phone
CN107222936A (en) * 2017-06-26 2017-09-29 广东欧珀移动通信有限公司 A kind of data processing method, device and terminal
CN107491469A (en) * 2016-06-11 2017-12-19 苹果公司 Intelligent task is found
CN108123826A (en) * 2017-09-25 2018-06-05 珠海许继芝电网自动化有限公司 A kind of interactive system and method for transregional data
CN108718439A (en) * 2018-05-22 2018-10-30 北京硬壳科技有限公司 Data transmission method and device
CN108874713A (en) * 2018-05-31 2018-11-23 联想(北京)有限公司 A kind of information processing method and device
CN109690967A (en) * 2016-09-15 2019-04-26 高通股份有限公司 Wireless orientation based on antenna sector is shared

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101495176B1 (en) * 2008-08-12 2015-03-02 엘지전자 주식회사 Mobile terminal and method for transmission information thereof
WO2012092896A2 (en) * 2012-02-06 2012-07-12 华为技术有限公司 Method and device for data transmission
CN102945131B (en) * 2012-09-29 2016-05-25 华为技术有限公司 A kind of data transmission method and device based on orientation
KR20160047273A (en) * 2014-10-22 2016-05-02 엘지전자 주식회사 Watch type terminal
CN105635948A (en) * 2015-12-31 2016-06-01 上海创功通讯技术有限公司 Data sending method and data sending module
CN105681441B (en) * 2016-01-29 2019-06-28 腾讯科技(深圳)有限公司 Data transmission method and device
CN111666055B (en) * 2020-04-24 2021-12-14 华为技术有限公司 Data transmission method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279288A (en) * 2013-05-31 2013-09-04 北京小米科技有限责任公司 Method, device and terminal units for transmitting data
CN104349110A (en) * 2014-09-24 2015-02-11 招商银行股份有限公司 Terminal remote interaction method and system
CN106406127A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and device for generating control interface of Internet of Things (IOT) device
CN105892851A (en) * 2016-03-29 2016-08-24 北京金山安全软件有限公司 Visual resource transmission method and device and electronic equipment
CN107491469A (en) * 2016-06-11 2017-12-19 苹果公司 Intelligent task is found
CN109690967A (en) * 2016-09-15 2019-04-26 高通股份有限公司 Wireless orientation based on antenna sector is shared
CN106844063A (en) * 2016-12-30 2017-06-13 深圳市优博讯科技股份有限公司 Cross-platform data processing method, system and cross-platform data shared system
CN107124690A (en) * 2017-03-31 2017-09-01 上海掌门科技有限公司 A kind of method carried out data transmission between intelligent watch and mobile phone
CN107222936A (en) * 2017-06-26 2017-09-29 广东欧珀移动通信有限公司 A kind of data processing method, device and terminal
CN108123826A (en) * 2017-09-25 2018-06-05 珠海许继芝电网自动化有限公司 A kind of interactive system and method for transregional data
CN108718439A (en) * 2018-05-22 2018-10-30 北京硬壳科技有限公司 Data transmission method and device
CN108874713A (en) * 2018-05-31 2018-11-23 联想(北京)有限公司 A kind of information processing method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356197A (en) * 2020-04-24 2022-04-15 华为技术有限公司 Data transmission method and device
WO2021212922A1 (en) * 2020-04-24 2021-10-28 华为技术有限公司 Object dragging method and device
US12073071B2 (en) 2020-07-29 2024-08-27 Huawei Technologies Co., Ltd. Cross-device object drag method and device
US12197693B2 (en) 2020-08-26 2025-01-14 Huawei Technologies Co., Ltd. Method and device for displaying a projection interface
US11947998B2 (en) 2020-09-02 2024-04-02 Huawei Technologies Co., Ltd. Display method and device
WO2022068578A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 File sharing method and electronic device
US12131094B2 (en) 2020-11-25 2024-10-29 Boe Technology Group Co., Ltd. Screen projection interaction method, screen projection system and terminal device
WO2022109883A1 (en) * 2020-11-25 2022-06-02 京东方科技集团股份有限公司 Screen projection interaction method, screen projection system and terminal device
CN114610253A (en) * 2020-12-08 2022-06-10 华为技术有限公司 Screen projection method and equipment
CN114647351A (en) * 2020-12-25 2022-06-21 华为技术有限公司 Interface element display method and device
CN113766303A (en) * 2021-05-08 2021-12-07 北京字节跳动网络技术有限公司 Multi-screen interaction method, device, equipment and storage medium
WO2022257822A1 (en) * 2021-06-08 2022-12-15 华为技术有限公司 Distributed display method for application interface, and terminal
CN114760291A (en) * 2022-06-14 2022-07-15 深圳乐播科技有限公司 File processing method and device
CN114760291B (en) * 2022-06-14 2022-09-13 深圳乐播科技有限公司 File processing method and device
WO2024240008A1 (en) * 2023-05-19 2024-11-28 华为技术有限公司 Data transmission method, system and related apparatus
WO2024255344A1 (en) * 2023-06-16 2024-12-19 荣耀终端有限公司 Cross-device content transmission method and apparatus

Also Published As

Publication number Publication date
CN114356197A (en) 2022-04-15
CN114356198A (en) 2022-04-15
CN111666055B (en) 2021-12-14
CN114356197B (en) 2024-11-19

Similar Documents

Publication Publication Date Title
CN114356197B (en) Data transmission method and device
WO2022022495A1 (en) Cross-device object dragging method and device
US12141101B2 (en) Data transmission method and related device
US11797249B2 (en) Method and apparatus for providing lock-screen
US20240168624A1 (en) Screen capture method and related device
WO2022100237A1 (en) Screen projection display method and related product
US10299110B2 (en) Information transmission method and system, device, and computer readable recording medium thereof
KR102135052B1 (en) System and method for detecting three dimensional gestures to initiate and complete the transfer of application data between networked devices
US10462204B2 (en) Method and system for transmitting image by using stylus, and method and electronic device therefor
TW201435716A (en) Clip board system with visual affordance
KR20150026132A (en) Method and apparatus for sharing object using a electronic device
WO2022105759A1 (en) Video processing method and apparatus, and storage medium
CN111225108A (en) Communication terminal and card display method of negative screen interface
US20230236714A1 (en) Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device
WO2022028494A1 (en) Multi-device data collaboration method and electronic device
US20160124599A1 (en) Method for controlling multi display and electronic device thereof
CN112148401A (en) View display method and electronic equipment
US10666787B2 (en) Electronic device and method of executing application
JP2020053065A (en) Method, apparatus and electronic device for displaying application interface
WO2022194005A1 (en) Control method and system for synchronous display across devices
WO2022105716A1 (en) Camera control method based on distributed control, and terminal device
WO2023221946A1 (en) Information transfer method and electronic device
WO2022121751A1 (en) Camera control method and apparatus, and storage medium
WO2022166614A1 (en) Method and apparatus for executing control operation, storage medium, and control
JP7632782B2 (en) Data transmission method and related device

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
GR01 Patent grant
GR01 Patent grant