# OnDeviceFoundListener

public interface OnDeviceFoundListener

Interface definition for a callback to be invoked when an IDeviceScanner has discovered a supported Nix device.

## Functions

onScanFailed
Link copied to clipboard
public Unit onScanFailed(IDeviceScanner sender, Integer errorCode)

Called when an IDeviceScanner has encountered an error (optional)

onScanResult
Link copied to clipboard
public abstract Unit onScanResult(IDeviceScanner sender, IDeviceCompat device)

Called when an IDeviceScanner has found a Nix device. This is invoked each time that a device advertisement has been received, or signal strength (IDeviceCompat.rssi) has updated, so multiple events may be received for a given Nix device. The IDeviceCompat.id can be used to uniquely identify each separate device.