IamUtil.pairLocalOpenCallback()

DESCRIPTION

Perform Local Open pairing, requesting the specified username. Runs asynchronously with a callback.

Local open pairing uses the trusted local network (LAN) pairing mechanism. No password is required for pairing and no invitation is needed, anybody on the LAN can initiate pairing.

Read more here: https://docs.nabto.com/developer/guides/iam/pairing.html#open-local

DECLARATION

    public abstract void pairLocalOpenCallback(Connection connection, String desiredUsername, IamCallback callback)

PARAMETERS

connection:
An established connection to the device this client should be paired with
desiredUsername:
Assign this username on the device if available (pairing fails with .USERNAME_EXISTS if not)
callback:
The callback that will be run once the function has completed successfully or erroneously.