timeoutMillis property

int? timeoutMillis
getter/setter pair

How long, in milliseconds, the native discovery may take before it fails. iOS and macOS bound discovery themselves, so that a discovery that never completes cannot hold back later calls; 10 seconds when not set. Other platforms are bounded by the timeout of discoverServices alone.

discoverServices fills this in from its timeout (by default the global BleShieldNative.timeout) when only that is given, and takes this as its timeout when only this is. A value that is not positive counts as unset.

Implementation

int? timeoutMillis;