It provides Remote Control Service. 1.Be assigned be a remote control(Notify by "remoteControlPrivilegeChanged:" check with "isHaveRemoteControlRight"). 2.Need to grab the currently control(Call "grabRemoteControl:", check with "isRemoteController"). 3.Can do the remote action.
More...
#import <MobileRTCRemoteControlService.h>
Inherits NSObject.
It provides Remote Control Service. 1.Be assigned be a remote control(Notify by "remoteControlPrivilegeChanged:" check with "isHaveRemoteControlRight"). 2.Need to grab the currently control(Call "grabRemoteControl:", check with "isRemoteController"). 3.Can do the remote action.
Definition at line 28 of file MobileRTCRemoteControlService.h.
◆ grabRemoteControl:
Set to enable remote control. User should tap the screen icon once received the privilege to control one's screen remotely.
- Parameters
-
remoteShareView | The remote shared view. |
- Returns
- The result of grabbing the remote control.
◆ isHaveRemoteControlRight
- (BOOL) isHaveRemoteControlRight |
|
|
|
Query if current user have control privilege. You can have this right after be assigned to the remote control.
- Returns
- YES means that the user got the remote control privilege. Otherwise not.
◆ isRemoteController
- (BOOL) isRemoteController |
|
|
|
Query if the current user gets the remote control privilege.
- Returns
- YES means that the user got the remote control privilege. Otherwise not.
◆ remoteControlCharInput:
Simulate a keyboard to input text.
- Parameters
-
str | Input text from keyboard. |
- Returns
- The result of the operation.
◆ remoteControlDoubleScroll:
Simulate a mouse scroll with two fingers scrolling up and down.
- Parameters
-
point | It is recommended to pass the arguments: CGPointMake(0, -1) for scrolling up, It is recommended to pass the arguments: CGPointMake(0, 1) for scrolling down. |
- Returns
- The result of the operation.
◆ remoteControlDoubleTap:
Simulate a mouse double-click with a finger clicking twice successively on the screen.
- Parameters
-
point | The point where user clicks corresponds to the location of the content. |
- Returns
- The result of the operation.
◆ remoteControlKeyInput:
Simulate Enter key or delete key of the keyboard.
- Parameters
-
key | A value of the enumeration of MobileRTCRemoteControlInputType. |
- Returns
- The result of the operation.
◆ remoteControlLongPress:
Simulate a mouse right-click with a finger pressing phone screen for more than 3 seconds.
- Parameters
-
point | The point where user clicks corresponds to the location of the content. |
- Returns
- The result of the operation.
◆ remoteControlMouseLeftDown:
Simulate a mouse right-click with a finger pressing phone screen for more than 3 seconds. This method is used to simulate a mouse left-click, such as long press on mouse icon.
- Parameters
-
point | The point where user clicks corresponds to the location of the content. |
- Returns
- The result of the operation.
◆ remoteControlMouseLeftDrag:
Simulate a mouse left-click and drag. User clicks the mouse icon on the screen for 3s and drag it.
- Parameters
-
point | The trajectory of the simulated mouse. |
- Returns
- The result of the operation.
◆ remoteControlMouseLeftUp:
Simulate release the left mouse button.
- Parameters
-
point | The point where user clicks corresponds to the location of the content. |
- Returns
- The result of the operation.
◆ remoteControlSingleMove:
Move remote cursor by dragging mouse icon on phone screen.
- Parameters
-
point | The point where user clicks corresponds to the location of the content. |
- Returns
- The result of the operation.
◆ remoteControlSingleTap:
Simulate a mouse click with a finger clicking once on the screen.
- Parameters
-
point | The point where user clicks corresponds to the location of the content. |
- Returns
- The result of the operation.
◆ delegate