Skip to content

Commit 73d3147

Browse files
authored
[Android] Add StopDevicePairing method in Java (project-chip#32566)
1 parent 2e13ddc commit 73d3147

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/controller/java/src/chip/devicecontroller/ChipDeviceController.java

+11
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,15 @@ public void unpairDeviceCallback(long deviceId, UnpairDeviceCallback callback) {
453453
unpairDeviceCallback(deviceControllerPtr, deviceId, callback);
454454
}
455455

456+
/**
457+
* This function stops a pairing or commissioning process that is in progress.
458+
*
459+
* @param deviceId The remote device Id.
460+
*/
461+
public void stopDevicePairing(long deviceId) {
462+
stopDevicePairing(deviceControllerPtr, deviceId);
463+
}
464+
456465
/**
457466
* Returns a pointer to a device currently being commissioned. This should be used before the
458467
* device is operationally available.
@@ -1474,6 +1483,8 @@ private native void continueCommissioning(
14741483
private native void unpairDeviceCallback(
14751484
long deviceControllerPtr, long deviceId, UnpairDeviceCallback callback);
14761485

1486+
private native void stopDevicePairing(long deviceControllerPtr, long deviceId);
1487+
14771488
private native long getDeviceBeingCommissionedPointer(long deviceControllerPtr, long nodeId);
14781489

14791490
private native void getConnectedDevicePointer(

0 commit comments

Comments
 (0)