Service Collaboration Kit provides the capability of multi-device collaboration.
| Use Case | Description |
|---|---|
| Device Interconnectivity | Users can leverage this capability to implement device interconnectivity and use the camera, scanning, and gallery functions of different devices. |
| OneHop | Users can tap the top ends of two devices together to establish a connection, transfer information, and disconnect them. |
Device Interconnectivity is a capability that enables cross-device invoking of camera, scanning, and gallery (images and videos) functions. For example, a tablet or PC/2-in-1 device can invoke the camera, scanning, and gallery functions of a phone.
OneHop is a capability that enables users to tap the top ends of two devices together to establish a connection, transfer information, and disconnect them.
| Scenario | Phone | Tablet | 2-in-1 Device | Wearable | TV |
|---|---|---|---|---|---|
| Device Interconnectivity (ArkTS) | Supported | Supported | Supported | Not supported | Supported |
| Device Interconnectivity in NDK (C) | Supported | Supported | Supported | Not supported | Supported |
| OneHop | Supported | Not supported | Not supported | Not supported | Not supported |
| Scenario | Constraint |
|---|---|
| Device Interconnectivity | 1. A HUAWEI ID should be signed in on both the local and remote devices, and Wi-Fi and Bluetooth must be enabled on the devices. 2. The local device should be a tablet or PC/2-in-1 device running HarmonyOS 5 or later. The remote device should be a phone or tablet running HarmonyOS 5 or later and supporting the camera function. 3. Device Interconnectivity APIs can be called to invoke devices based on specific invoking policies: A PC/2-in-1 device can invoke a tablet or phone, while a tablet can only invoke a phone; and since API version 6.1.0(23), a TV, phone, tablet, or PC/2-in-1 device can invoke a remote phone or tablet that supports photographing, scanning, and gallery (images and videos), as well as a PC/2-in-1 device that supports gallery (images and videos). 4. For versions earlier than 6.1.0(23), Device Interconnectivity APIs can only be properly called on PCs/2-in-1 devices and tablets. For 6.1.0(23) and later versions, Device Interconnectivity APIs can be properly called on TVs, PCs/2-in-1 devices, tablets, and phones. On other devices, the device-specific capability list cannot be displayed and Device Interconnectivity capability cannot be used. |
| OneHop | 1. Wi-Fi and Bluetooth must be enabled on both devices. 2. The ohos.permission.KNOCK_COLLABORATION permission is required. This capability is available only with this permission. For details about how to apply for the required permission, please refer to Requesting Restricted Permissions. |