CN111107222B - Interface sharing method and electronic equipment - Google Patents

Interface sharing method and electronic equipment Download PDF

Info

Publication number
CN111107222B
CN111107222B CN201911310657.7A CN201911310657A CN111107222B CN 111107222 B CN111107222 B CN 111107222B CN 201911310657 A CN201911310657 A CN 201911310657A CN 111107222 B CN111107222 B CN 111107222B
Authority
CN
China
Prior art keywords
interface
electronic device
content
control
authority
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.)
Active
Application number
CN201911310657.7A
Other languages
Chinese (zh)
Other versions
CN111107222A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911310657.7A priority Critical patent/CN111107222B/en
Publication of CN111107222A publication Critical patent/CN111107222A/en
Application granted granted Critical
Publication of CN111107222B publication Critical patent/CN111107222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation

Abstract

The invention discloses an interface sharing method and electronic equipment. The method comprises the following steps: receiving a first input in a case where a first interface is displayed; in response to the first input, sending interface sharing information to a second electronic device, so that the second electronic device displays a second interface; and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment. According to the embodiment of the invention, the user can set the sharing authority of the display content on the first electronic equipment on the second electronic equipment according to the privacy requirement, so that when the first electronic equipment shares the shared first interface to the second electronic equipment, the second electronic equipment can determine the display content of the second interface according to the sharing authority of the first interface and the second electronic equipment, the privacy safety of the user is effectively protected, and the information interaction is more accurate and convenient.

Description

Interface sharing method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an interface sharing method and an electronic device.
Background
With the development of mobile communication technology, the functions supported by the terminal are more and more powerful, and in order to meet the requirements of users and the use experience, most terminals have a screen projection function and are used for enabling the users to share the display interface of the terminal with other people. The current synchronous screen projection technology realizes synchronous display and operation among a plurality of terminals, namely after screen projection, any operation on a display interface can be executed on another terminal, so that a user shares the display interface to other people, and the privacy of a sharer is exposed.
Disclosure of Invention
The invention provides an interface sharing method and electronic equipment, and aims to solve the problem that privacy leakage risks exist in a screen sharing method in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an interface sharing method, applied to a first electronic device, including:
receiving a first input in a case where a first interface is displayed;
in response to the first input, sending interface sharing information to a second electronic device, so that the second electronic device displays a second interface;
and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment.
In a second aspect, an embodiment of the present invention further provides an interface sharing method, which is applied to a second electronic device, and the method includes:
under the condition that first electronic equipment displays a first interface and receives first input, interface sharing information sent by the first electronic equipment is received;
displaying a second interface according to the interface sharing information;
and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment.
In a third aspect, an embodiment of the present invention further provides a first electronic device, including:
the first receiving module is used for receiving first input under the condition that a first interface is displayed;
the first response module is used for responding to the first input and sending interface sharing information to the second electronic equipment so that the second electronic equipment displays a second interface;
and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment.
In a fourth aspect, an embodiment of the present invention further provides a second electronic device, including:
the second receiving module is used for receiving interface sharing information sent by the first electronic equipment under the condition that the first electronic equipment displays the first interface and receives the first input;
the display module is used for displaying a second interface according to the interface sharing information;
and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the interface sharing method described above.
In a sixth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the interface sharing method described above are implemented.
In the embodiment of the invention, under the condition that the first interface is displayed, a first input is received; in response to the first input, sending interface sharing information to a second electronic device, so that the second electronic device displays a second interface; and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment. The user can set the sharing authority of the display content on the first electronic equipment on the second electronic equipment according to the privacy requirement, so that when the first electronic equipment shares the shared first interface with the second electronic equipment, the second electronic equipment can determine the display content of the second interface according to the sharing authority of the first interface and the second electronic equipment, the privacy safety of the user is effectively protected, and the information interaction is more accurate and convenient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of an interface sharing method according to an embodiment of the present invention;
FIG. 2 shows a schematic view of a first interface of an embodiment of the invention;
FIG. 3 shows a schematic view of a second interface of an embodiment of the invention;
FIG. 4 is a second flowchart illustrating an interface sharing method according to an embodiment of the present invention;
FIG. 5 is a third flowchart illustrating an interface sharing method according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a first electronic device according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a second electronic device according to an embodiment of the present invention;
fig. 8 is a schematic diagram showing a hardware configuration of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides an interface sharing method applied to a first electronic device, including:
step 101, receiving a first input under the condition of displaying a first interface;
the first interface is an interface currently displayed on the first electronic device and is an interface to be shared to another electronic device by a user. When the user has a requirement for sharing the first interface, the first electronic device determines that the user is performing a sharing output operation when detecting a signal transmitted by the sharing function related button by operating the sharing function related button. The first input may be input of the user sharing the first interface to other electronic devices, may be a click operation of the user on a button related to a sharing function, and may also be a shortcut gesture operation such as a double click. Taking the first input as the screen projection operation of the user on the first interface as an example, the method includes: when a user wants to project a first interface currently displayed by the mobile phone terminal to the television terminal, the user can click a multi-screen interaction button on the mobile phone terminal to select the television terminal needing to project the screen, and then the shared output of the first interface can be realized.
Step 102, responding to the first input, sending interface sharing information to second electronic equipment, and enabling the second electronic equipment to display a second interface; and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment.
After receiving the first input, displaying a first interface in a virtual screen, wherein the virtual screen can be created after receiving the first input or created in response to the first input.
In this embodiment, after the first electronic device shares the target content in the first interface with the second electronic device according to the authority of the second electronic device, the target content is displayed as the second interface on the second electronic device. The first electronic device records the target content in the first interface displayed in the virtual screen and sends the recorded content to the second electronic device, so that the target content in the first interface is shared. The target content can be part or all of the first interface, and the sharing permission of the display content of the second interface corresponds to the permission set in the first interface by the user and/or the permission of the second electronic equipment. The interface sharing information may include sharing authority information set by the user in the first electronic device.
The sharing permission is the permission of a certain operation control on other electronic equipment when the first interface set by the user according to the requirement is shared with other electronic equipment. The sharing authority may be: display rights, user operation rights, etc. The display permission may include whether the operation control is displayed on the second electronic device. The user operation authority may include whether the operation control responds to the input of the user in a case where the second electronic device displays the operation control.
For example: if a user sets a display permission for a first communication application icon of a first interface of first electronic equipment, when the first electronic equipment and second electronic equipment share the first interface, a display interface of the second electronic equipment does not display the first communication application icon; if the user sets the user operation authority for the first communication application icon of the first interface of the first electronic device, when the first electronic device and the second electronic device share the first interface, the display interface of the second electronic device displays the first communication application icon, but the user cannot operate, that is, the second electronic device does not respond to the operation of the user on the first communication application icon on the second electronic device or the first electronic device does not respond to the operation of the user on the first communication application icon on the second electronic device. By setting the sharing authority for the application program containing the privacy information, when the display interface is shared, other people cannot check or operate the application program, and the privacy safety is effectively protected.
The user can set operation authority for a certain picture or document to enable the picture or document not to be displayed or not to be opened on the second electronic equipment sharing the display interface; the operation authority can be set for a plurality of keys in the game program, for example, when the game interface is shared, the first electronic device is set not to respond to the input operation of the first key, the second electronic device does not respond to the input operation of the second key, and when the user of the first electronic device and the user of the second electronic device play a game together, different keys are respectively operated, so that the condition that the same key or the operated keys are operated by a plurality of persons synchronously is avoided, good cooperation interaction is achieved, and the information interaction is more accurate and convenient.
According to the embodiment of the invention, the user can set the sharing authority of the display content on the first electronic equipment on the second electronic equipment according to the privacy requirement, so that when the first electronic equipment shares the shared first interface to the second electronic equipment, the second electronic equipment can determine the display content of the second interface according to the sharing authority of the first interface and the second electronic equipment, the privacy safety of the user is effectively protected, and the information interaction is more accurate and convenient.
Optionally, when the first electronic device receives the first input of the user, the first electronic device does not immediately execute the sharing output of the first interface, but first obtains information of a target operation control with sharing permission set on the first interface, that is, detects whether the operation control with sharing permission set on the first interface exists, where the operation control with sharing permission set is the target operation control. The operation control may be an application program, a certain function button in the application program, an icon corresponding to a picture that can be opened and displayed, an icon corresponding to a document, a partial key of an input keyboard, and the like.
The first electronic device obtains information of a target operation control with sharing authority set, and then sends the information of the first interface with the sharing authority set to the target operation control to the second electronic device, and the second electronic device displays a second interface according to the first interface with the sharing authority set, and determines whether to respond to the operation of a user according to the sharing authority of the target operation control.
Optionally, when the first interface includes first content and the right of the second electronic device is a first right, the second interface does not include second content corresponding to the first content.
In this embodiment, the second content may be the first content, or may be the first content added with the identifier of the first electronic device. And under the condition that the authority of the second electronic equipment is the first authority, the second electronic equipment does not have the display authority of the second content corresponding to the first content. For example, the second electronic device does not belong to a common contact list of the first electronic device, and the authority of the second electronic device is determined to be the first authority. Optionally, if the user sets the display permission of the first content on the first electronic device to be that the second electronic device corresponding to the first permission does not display, the first electronic device records a screen of a portion of the first interface excluding the first content, and shares the screen recording content to the second electronic device, so that the second electronic device does not display the second content corresponding to the first content. Taking the first content as a first communication application icon as an example, if a user sets a display permission of the first communication application icon, when the first electronic device and the second electronic device share the first interface, the first communication application icon is not displayed in the second interface.
Optionally, when the first interface includes first content and the right of the second electronic device is a second right, the second interface includes second content corresponding to the first content.
In this embodiment, the second content may be the first content, or may be the first content added with the identifier of the first electronic device. And under the condition that the authority of the second electronic equipment is a second authority, the second electronic equipment has the display authority of second content corresponding to the first content. For example, the second electronic device belongs to a common contact list of the first electronic device, and the authority of the second electronic device is determined to be the second authority. Optionally, the user sets the display right of the first content on the first electronic device to be displayed by a second electronic device corresponding to a second right, and then the first electronic device records a screen of a portion of the first interface including the first content and shares the screen recording content to the second electronic device, so that a second content corresponding to the first content is included in a second interface displayed by the second electronic device. Taking the first content as a first communication application icon as an example, if a user sets the display permission of the first communication application icon, when the first electronic device and the second electronic device share the first interface, the first communication application icon is displayed in the second interface.
Optionally, when the first electronic device sends interface sharing information to a second electronic device, sending sharing permission information set by a user to the second electronic device, and the second electronic device determines whether to respond to an operation of the second interface of the user on the second electronic device according to the sharing permission information.
Optionally, the first content includes a first control, the second content includes a second control, and when the right of the second electronic device is a second right, interface sharing information is sent to the second electronic device, so that after the second electronic device displays a second interface, the method further includes:
in an instance in which the second electronic device receives a second input for the second control, the first electronic device does not respond to the second input.
In this embodiment, the second control is a control corresponding to the first control, and the first control is displayed as the second control in the second interface. The second input may be a click operation of the second control by the user, that is, when the second electronic device displays the second control, if the click operation of the second control by the user is received, the second electronic device does not send information corresponding to the click operation to the first electronic device, or the second electronic device sends information corresponding to the click operation to the first electronic device, but the first electronic device does not respond, so that the second input of the user on the second control is not responded, that is, the second electronic device displays the second control, but does not execute a corresponding function when being triggered.
Optionally, when the first interface includes first content and the right of the second electronic device is a second right, interface sharing information is sent to the second electronic device, so that after the second electronic device displays a second interface, the method further includes: and changing the display mode of the first content on the first interface.
In this embodiment, after the first electronic device sends the interface sharing information to the second electronic device, the second electronic device displays a second interface corresponding to the first interface, and at this time, the first electronic device may change a display manner of the first content on the first interface, for example, cancel displaying the first content, or add a layer of mask or graying display on the first content, so as to indicate that the first content is shared to the second electronic device for display.
When the first electronic device and the second electronic device share a display interface, the sharing permission setting for the operation control may be in various forms, and the following description is provided by a specific embodiment. It should be noted that the setting of the sharing authority includes, but is not limited to, the following forms.
For example: the user A shares the desktop with the user B, but does not want to see and use the short message function of the user A, the display authority and/or the user operation authority of the short message icon on the desktop can be selected to be set, and the shared user B cannot use and view the short message.
For example, the user a records a running interface of a first video application and shares the running interface with the electronic device of the user B, but does not want the user B to operate an account of the first video application, the user a may select a "my" control that restricts the lower right corner of the homepage of the first video application, so that the user B cannot view or click the control, and privacy of the account is protected. The first interface of the first video application on the first electronic device of user a is shown in fig. 2, and the second interface projected on the second electronic device of user B is shown in fig. 3, with the "my" control hidden from view or operation by other users.
For example, after a user a selects a commodity in a first shopping application, the user a wants to screen the commodity to obtain an opinion for other users, but does not want to expose account information, and may select to turn off display rights or user operation rights of controls including "shopping cart", "my" and containing privacy content below a home page of the first shopping application, in which case other users may see the purchased goods sharing of the user a but cannot see or operate the two controls of "shopping cart" and "my", so that account privacy of the user a is protected, or even if the user a sees the purchased goods sharing, the user a cannot operate the controls.
For example, the first game application has a plurality of keys, the user a can play a game with other people after shooting the screen to other devices, and because of more keys, players playing the game together do not know the intention of other people, and it is easy to click the same key at the same time or click a key with conflict. The user A sets the authority of the keys, and the shared user B, C, D can only operate a part of the keys by shielding different keys by different users, so that good matching interaction is achieved.
According to the embodiment of the invention, the user sets the sharing authority for the operation control, so that the privacy and the safety of the user are effectively protected, and the information interaction is more accurate and convenient.
Optionally, before the sending interface sharing information to the second electronic device, the method further includes:
and determining a target operation control to be set with sharing authority, wherein the target operation control is a control in the first interface.
In this embodiment, the user may determine the target operation control by a slide, click, or long-press input to the first interface. For example: the user slides on the first interface through fingers to circle out part of the area of the first interface, and the operation control in the circled area is the target operation control to be set with the sharing authority; for example, if the user clicks a control which wants to set the sharing authority, the control is the target operation control; for example, a user presses a control which wants to set sharing authority for a long time, in the long-time pressing operation, the first electronic device can automatically and accurately match the selected control (such as the size of an outline of an application icon, characters, a picture and the like, but not the size of a finger), and if no content exists in the place pressed by the finger for a long time, the area cannot be selected.
The method further comprises the following steps: and setting the sharing authority of the target operation control.
The user can set the sharing permission through inputting a physical key or a specific gesture (for example, pressing the current display interface with four fingers) of the first electronic device. Optionally, after the first electronic device obtains an input of a specific gesture of a user, a first touch button is displayed on the first interface, where the first touch button is used for the user to select which permissions are to be set for the target operation control.
The setting of the sharing permission of the target operation control further comprises: acquiring touch operation of a user on the first touch button; responding to the touch operation, and displaying a first function interface, wherein the first function interface comprises at least one item of sharing authority information; and acquiring the selected input of the user to the target authority in the sharing authority information, and setting the sharing authority of the target operation control as the target authority.
And clicking the first touch button by the user, and displaying the first function interface in the first interface, wherein the first function interface can comprise multiple items of sharing authority information for selection, such as display authority, user operation authority and the like. And if the user selects the target authority to be set from the sharing authority information, setting the sharing authority of the target operation control as the target authority. And after the user selects the sharing authority needing to be limited through the first touch button, the first touch button disappears. When the touch button needs to be used again, the user can call the first touch button again.
It should be noted that, the first electronic device may determine the target operation control first, and then set the sharing authority of the target operation control; or the sharing authority can be set firstly, and the target operation control to be set with the sharing authority is determined after the target authority is selected.
Optionally, when the target operation control to be set with the sharing authority is determined and/or the sharing authority of the target operation control is set, the first interface is in a first state. In the first state, the content displayed on the first interface is locked, and the effect similar to a picture is achieved. For example, the first interface may perform a click and slide operation under normal conditions, the displayed content may change according to the user operation, and when the sharing authority is set or the target operation control is determined, the click and slide operation may not change the displayed content, but may be used as the user selecting the target operation control.
Optionally, if the first interface enters the first state, the user may exit the first state through a specific gesture operation or a physical key, and restore the original state, that is, restore the information content in the first interface to change according to the operation of the user.
Optionally, when the number of the target operation controls is multiple and the multiple target operation controls respectively correspond to different sharing rights, the multiple target operation controls are displayed in different states. For example, if a user sets a display right for a first communication application and sets a user operation right for a first video application, on a first electronic device, an icon frame of the first communication application may be displayed in a first color, and an icon frame of the first video application is displayed in a second color; or the icons of the first communication application and the first video application carry different marks such as characters and letters for distinguishing the set sharing permission. After the sharing authority is set, the software interface of the electronic device may also be displayed in different states, for example, a "my" button in the first video application, and a colored frame may be added for distinction after the sharing authority is set. The user can intuitively know the set sharing authority of each operation control through the display states of different target operation controls, and the user experience is improved.
Taking the example that a user sets the sharing permission first and then determines the target operation control to be set with the sharing permission after selecting the target permission, the interface sharing method is shown in fig. 4 and includes:
step 401, a user triggers a sharing authority setting function of first electronic equipment;
step 402, selecting a target authority to be set in a first function interface of a first interface;
step 403, selecting a target operation control to be set with sharing permission in the first interface by the user;
step 404, the first electronic device records the target operation control and the target permission corresponding to the target operation control;
step 405, when the first electronic device and a second electronic device share the first interface, sending the first interface with the sharing authority set and the target authority information corresponding to the target operation control to the second electronic device;
step 406, the second electronic device receives the first interface and the target permission information, and displays a second interface corresponding to the first interface;
step 407, the second electronic device determines whether to respond to the operation of the user on the second interface according to the target permission information.
In the embodiment of the invention, the user can set the sharing authority of the display content on the first electronic equipment on the second electronic equipment according to the privacy requirement, so that when the first electronic equipment shares the shared first interface to the second electronic equipment, the second electronic equipment can determine the display content of the second interface according to the sharing authority of the first interface and the second electronic equipment, the privacy safety of the user is effectively protected, and the information interaction is more accurate and convenient.
As shown in fig. 5, an embodiment of the present invention further provides an interface sharing method applied to a second electronic device, where the method includes:
step 501, receiving interface sharing information sent by a first electronic device under the condition that the first electronic device displays a first interface and receives a first input.
When a user has a requirement for sharing the first interface, the first electronic device and the second electronic device are connected by operating a button related to a sharing function, and the first electronic device sends information of the first interface to be shared to the second electronic device. And the second electronic equipment receives the sharing information, wherein the sharing information can comprise sharing authority information set in the first electronic equipment by a user.
Step 502, displaying a second interface according to the interface sharing information; and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment. And the second electronic equipment displays a second interface corresponding to the first interface according to the shared information.
The display content of the second interface can be completely or partially identical to that of the first interface, and the sharing authority of the display content of the second interface corresponds to the authority set in the first interface by the user and the authority of the second electronic device. The display content of the second interface is the same as that of the first interface, for example: the first interface includes first content, and when the authority of the second electronic device is the first authority, the second interface does not include second content corresponding to the first content, that is: and when the authority of the second electronic equipment is the first authority, the second electronic equipment does not have the display authority of the second content corresponding to the first content.
When the sharing information comprises sharing authority information set in the first electronic equipment by the user, the second electronic equipment determines whether to respond to the operation of the user according to the sharing authority information. For example: if a user sets a display permission for a first communication application icon of a first interface in first electronic equipment, when the first electronic equipment and second electronic equipment share the first interface, a second interface displayed by the second electronic equipment does not include the first communication application icon; if a user sets a user operation authority for a first communication application icon of a first interface in first electronic equipment, when the first electronic equipment and second electronic equipment share the first interface, a second interface displayed by the second electronic equipment comprises the first communication application icon, but the user cannot operate the first communication application icon, namely the second electronic equipment does not respond to the operation of the user on the first communication application icon on the second electronic equipment. By setting the sharing authority for the application program containing the privacy information, when the display interface is shared, other people cannot check or operate the application program, and the privacy safety is effectively protected.
Optionally, when the first interface includes first content and the right of the second electronic device is a second right, the second interface includes second content corresponding to the first content.
In this embodiment, the second content may be the first content or the first content added with the first electronic device identifier. If the user sets the sharing authority of the first content on the first electronic device as the user operation authority, when the first electronic device shares the first interface to the second electronic device, second content corresponding to the first content is included in a second interface displayed in the second electronic device, but the user cannot operate the second content. Taking the first content as a first communication application running interface as an example, if a user sets a user operation authority of the first communication application running interface, when the first electronic device and the second electronic device share the first interface, the running interface of the first communication application is displayed in the second interface, but the user cannot operate the running interface of the first communication application in the second interface.
Optionally, the first content includes a first control, the second content includes a second control, and the method further includes:
receiving input for the second control;
the second electronic device forgoing responding to the input directed to the second control; or the like, or, alternatively,
the second electronic device intercepts a target message sent to the first electronic device, the target message generated in response to an input to the second control.
In this embodiment, the second control is a control corresponding to the first control, and the first control is displayed as the second control in the second interface. The input for the second control may be a click operation of the second control by a user. That is, when the second electronic device displays the second control, if a click operation of a user on the second control is received, the second electronic device does not send a target message corresponding to the click operation to the first electronic device, or the second electronic device does not respond to the click operation.
According to the embodiment of the invention, the second electronic equipment determines whether to respond to the user operation according to the sharing authority information, so that the privacy and the safety of the user are effectively protected, and the information interaction is more accurate and convenient.
As shown in fig. 6, an embodiment of the present invention further provides a first electronic device 600, including:
a first receiving module 610, configured to receive a first input in a case where a first interface is displayed;
a first response module 620, configured to send interface sharing information to a second electronic device in response to the first input, so that the second electronic device displays a second interface;
and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment.
Optionally, when the first interface includes first content and the right of the second electronic device is a first right, the second interface does not include second content corresponding to the first content.
Optionally, when the first interface includes first content and the right of the second electronic device is a second right, the second interface includes second content corresponding to the first content.
Optionally, the first content includes a first control, the second content includes a second control, and the first electronic device further includes:
a first processing module to not respond to a second input to the second control by the first electronic device if the second input is received by the second electronic device.
Optionally, the first electronic device further includes:
and the second processing module is used for changing the display mode of the first content on the first interface.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the first electronic device in the method embodiments of fig. 1 to fig. 4, and details are not repeated here to avoid repetition.
In the embodiment of the invention, under the condition of displaying the first interface, a first input is received; in response to the first input, sending interface sharing information to a second electronic device, so that the second electronic device displays a second interface; and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment. The user can set the sharing authority of the display content on the first electronic equipment on the second electronic equipment according to the privacy requirement, so that when the first electronic equipment shares the shared first interface with the second electronic equipment, the second electronic equipment can determine the display content of the second interface according to the sharing authority of the first interface and the second electronic equipment, the privacy safety of the user is effectively protected, and the information interaction is more accurate and convenient.
As shown in fig. 7, an embodiment of the present invention further provides a second electronic device 700, including:
a second receiving module 710, configured to receive interface sharing information sent by a first electronic device when the first electronic device displays a first interface and receives a first input;
a display module 720, configured to display a second interface according to the interface sharing information;
and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment.
Optionally, when the first interface includes first content and the right of the second electronic device is a second right, the second interface includes second content corresponding to the first content.
Optionally, the first content includes a first control, the second content includes a second control, and the second electronic device further includes:
a third receiving module for receiving an input for the second control;
a third processing module, configured to give up a response to the input for the second control by the second electronic device; or the second electronic equipment intercepts a target message sent to the first electronic equipment, wherein the target message is generated in response to the input aiming at the second control.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the second electronic device in the method embodiment of fig. 5, and is not described herein again to avoid repetition.
According to the embodiment of the invention, the second electronic equipment determines whether to respond to the user operation according to the sharing authority information, so that the privacy and the safety of the user are effectively protected, and the information interaction is more accurate and convenient.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
When the electronic device 800 is the first electronic device described above:
a user input unit 807 for receiving a first input in a case where the first interface is displayed;
a processor 810, configured to send interface sharing information to a second electronic device in response to the first input, so that the second electronic device displays a second interface; and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment.
When the electronic device 800 is the second electronic device described above:
the processor 810 is configured to receive interface sharing information sent by a first electronic device when the first electronic device displays a first interface and receives a first input;
a display unit 806, configured to display a second interface according to the interface sharing information; and the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment.
According to the embodiment of the invention, a user can set the sharing authority of the operation control such as the application program and the like on the first electronic equipment on the second electronic equipment according to the privacy requirement, so that when the first electronic equipment shares the shared first interface to the second electronic equipment, the second electronic equipment can determine the display content of the second interface according to the sharing authority of the first interface and the second electronic equipment, the privacy safety of the user is effectively protected, and the information interaction is more accurate and convenient.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 802, such as to assist the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The electronic device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the electronic device 800 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 8, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 808 is an interface for connecting an external device to the electronic apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 800 or may be used to transmit data between the electronic device 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby monitoring the whole electronic device. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The electronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and preferably, the power supply 811 may be logically coupled to the processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the electronic device 800 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above-mentioned interface sharing method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the interface sharing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (6)

1. An interface sharing method is applied to a first electronic device, and is characterized by comprising the following steps:
receiving a first input in a case where a first interface is displayed;
in response to the first input, sending interface sharing information to a second electronic device, so that the second electronic device displays a second interface;
the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment;
under the condition that the first interface comprises first content and the authority of the second electronic equipment is second authority, the second interface comprises second content corresponding to the first content;
the first content comprises a first control, the second content comprises a second control, the second control is a control corresponding to the first control, the first control is displayed in the second interface as the second control, and interface sharing information is sent to the second electronic device, so that after the second electronic device displays the second interface, the method further comprises:
in the event that the second electronic device receives a second input for the second control, the first electronic device does not respond to the second input;
the first control and the second control are part of keys in a plurality of keys in a shared game interface;
sending interface sharing information to a second electronic device, so that after the second electronic device displays a second interface, the method further includes:
changing the display mode of the first content on the first interface;
the changing of the display mode of the first content on the first interface comprises: canceling the display of the first content, or adding a layer of mask or grey-out display on the first content to indicate that the first content is shared to the second electronic device for display.
2. The interface sharing method according to claim 1, wherein in a case where the first interface includes first content and the right of the second electronic device is a first right, the second interface does not include second content corresponding to the first content.
3. A first electronic device, comprising:
the first receiving module is used for receiving first input under the condition that a first interface is displayed;
the first response module is used for responding to the first input and sending interface sharing information to the second electronic equipment so that the second electronic equipment displays a second interface;
the display content of the second interface corresponds to the authority of the first interface and the second electronic equipment;
under the condition that the first interface comprises first content and the authority of the second electronic equipment is second authority, the second interface comprises second content corresponding to the first content;
the first content includes a first control, the second content includes a second control, the second control is a control corresponding to the first control, the first control is displayed as the second control in the second interface, and the first electronic device further includes:
a first processing module to, if the second electronic device receives a second input for the second control, not respond to the second input by the first electronic device;
the first control and the second control are part of keys in a plurality of keys in a shared game interface;
the first electronic device further comprises:
the second processing module is used for changing the display mode of the first content on the first interface;
the second processing module is specifically configured to: canceling the display of the first content, or adding a layer of mask or grey-out display on the first content to indicate that the first content is shared to the second electronic device for display.
4. The first electronic device of claim 3, wherein if the first interface includes first content and the right of the second electronic device is a first right, the second interface does not include second content corresponding to the first content.
5. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the interface sharing method according to any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the interface sharing method according to any one of claims 1 to 2.
CN201911310657.7A 2019-12-18 2019-12-18 Interface sharing method and electronic equipment Active CN111107222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911310657.7A CN111107222B (en) 2019-12-18 2019-12-18 Interface sharing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911310657.7A CN111107222B (en) 2019-12-18 2019-12-18 Interface sharing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111107222A CN111107222A (en) 2020-05-05
CN111107222B true CN111107222B (en) 2021-08-24

Family

ID=70423590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911310657.7A Active CN111107222B (en) 2019-12-18 2019-12-18 Interface sharing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111107222B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679881B (en) * 2020-06-09 2022-03-15 腾讯科技(深圳)有限公司 File processing method and device, computer equipment and storage medium
CN112100041A (en) * 2020-08-03 2020-12-18 联想(北京)有限公司 Processing method and device and electronic equipment
CN112051958B (en) * 2020-08-14 2022-03-25 万翼科技有限公司 Drawing multi-screen terminal interaction method and related device
CN115981582A (en) * 2020-09-10 2023-04-18 华为技术有限公司 Display method and electronic equipment
CN114327175B (en) * 2020-09-29 2022-10-28 荣耀终端有限公司 Information sharing method and device
CN113030142A (en) * 2020-10-12 2021-06-25 佛山格捷锐信息技术有限公司 Data synchronization method and device for element spectrogram of handheld XRF spectrometer
CN113037806A (en) * 2020-10-12 2021-06-25 佛山格捷锐信息技术有限公司 Network data transmission method and device for handheld XRF spectrometer and storage medium
CN113724481A (en) * 2020-11-26 2021-11-30 佛山格捷锐信息技术有限公司 Spectrogram data synchronization method and device, computer equipment and storage medium
CN113055485B (en) * 2021-03-19 2023-09-22 展讯半导体(南京)有限公司 Remote control method and system, electronic equipment and storage medium
CN113343321B (en) * 2021-06-29 2022-09-13 维沃移动通信有限公司 Information display method, information display device, electronic apparatus, and readable storage medium
CN114374761A (en) * 2022-01-10 2022-04-19 维沃移动通信有限公司 Information interaction method and device, electronic equipment and medium
CN114610434A (en) * 2022-03-28 2022-06-10 联想(北京)有限公司 Output control method and electronic equipment
CN115361365B (en) * 2022-08-10 2023-09-05 深圳乐播科技有限公司 Video stream-based processing method and related device
CN117708865A (en) * 2022-09-08 2024-03-15 中兴通讯股份有限公司 Application sharing method, system, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104540012A (en) * 2015-01-20 2015-04-22 三星电子(中国)研发中心 Method, device and terminal for content sharing
CN106230937A (en) * 2016-07-29 2016-12-14 宇龙计算机通信科技(深圳)有限公司 Long-range control method, remote control and terminal
CN107122686A (en) * 2017-05-05 2017-09-01 广东小天才科技有限公司 Share the method, device and mobile terminal of screen content
EP3301559A1 (en) * 2016-09-29 2018-04-04 Beijing Xiaomi Mobile Software Co., Ltd. Content sharing method and device
CN109906593A (en) * 2016-11-01 2019-06-18 微软技术许可有限责任公司 Shared protection for Screen sharing experience

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237047B (en) * 2013-03-11 2016-09-28 广东欧珀移动通信有限公司 A kind of remote controlled, control method
EP3843020A1 (en) * 2013-06-09 2021-06-30 Apple Inc. Device, method, and graphical user interface for sharing content from a respective application
CN104780183B (en) * 2014-01-09 2019-07-05 腾讯科技(深圳)有限公司 A kind of information sharing method, device and electronic equipment
CN106254531A (en) * 2016-09-20 2016-12-21 珠海格力电器股份有限公司 A kind of method controlling operation and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104540012A (en) * 2015-01-20 2015-04-22 三星电子(中国)研发中心 Method, device and terminal for content sharing
CN106230937A (en) * 2016-07-29 2016-12-14 宇龙计算机通信科技(深圳)有限公司 Long-range control method, remote control and terminal
EP3301559A1 (en) * 2016-09-29 2018-04-04 Beijing Xiaomi Mobile Software Co., Ltd. Content sharing method and device
CN109906593A (en) * 2016-11-01 2019-06-18 微软技术许可有限责任公司 Shared protection for Screen sharing experience
CN107122686A (en) * 2017-05-05 2017-09-01 广东小天才科技有限公司 Share the method, device and mobile terminal of screen content

Also Published As

Publication number Publication date
CN111107222A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN111107222B (en) Interface sharing method and electronic equipment
EP4047940A1 (en) Screencast control method and electronic device
CN109710132B (en) Operation control method and terminal
WO2019141174A1 (en) Unread message processing method and mobile terminal
CN109194818B (en) Information processing method and terminal
CN110062105B (en) Interface display method and terminal equipment
CN109240577B (en) Screen capturing method and terminal
CN108762705B (en) Information display method, mobile terminal and computer readable storage medium
CN109032486B (en) Display control method and terminal equipment
CN110109604B (en) Application interface display method and mobile terminal
CN109710349B (en) Screen capturing method and mobile terminal
CN110908557B (en) Information display method and terminal equipment
CN110752981B (en) Information control method and electronic equipment
CN109828731B (en) Searching method and terminal equipment
CN109407948B (en) Interface display method and mobile terminal
CN111459358B (en) Application program control method and electronic equipment
CN110865745A (en) Screen capturing method and terminal equipment
CN110703972B (en) File control method and electronic equipment
CN109144393B (en) Image display method and mobile terminal
CN108874906B (en) Information recommendation method and terminal
CN110309003B (en) Information prompting method and mobile terminal
CN111061446A (en) Display method and electronic equipment
CN109067975B (en) Contact person information management method and terminal equipment
CN111163227B (en) Sharing method and electronic equipment
CN110213437B (en) Editing method and mobile terminal

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