Skip to content

//MLBluetoothSDK/com.masterlock.mlbluetoothsdk/MLProduct/MLProductBuilder/autoDisconnect

autoDisconnect

[androidJvm]\ open fun autoDisconnect(autoDisconnect: Boolean): MLProduct.MLProductBuilder

Parameters

androidJvm

autoDisconnect Determines behavior of an MLProduct session when public and private command queues are empty: If true, an MLProduct’s session will disconnect as soon as the command queues are empty; If false - The MLBluetoothSDK will continue to call the keepAlive callback for value of MLProduct.keepAliveIntervalSeconds