Nodle.sharedInstance
method that will give you an Instance of the INodle class. The following are all the public methods for the Nodle API.public fun
start(public_key:
String
)
public_key
public fun
isStarted():
Boolean
boolean
public fun
isScanning():
Boolean
boolean
public fun
stop()
public fun
clear()
public fun
getVersion():
String
String
public fun
getEvents():
NodleEvent
NodleEventType.BlePayloadEvent
NodleEventType.BleStartSearching
NodleEventType.BleStopSearching
NodleEventType.BeaconPayloadEvent
NodleEventType.BeaconStartSearching
NodleEventType.BeaconStopSearching
NodleBluetoothScanRecord
NodleBluetoothEvent
NodleBeaconScanRecord
NodleBeaconEvent
NodleEventType
:type
NodleBluetoothScanRecord
:device
rssi
bytes
manufacturerSpecificData
servicesUuids
NodleBluetoothEvent
:scanning
NodleBeaconScanRecord
:identifier
major
minor
proximity
accuracy
rssi
NodleBeaconEvent
:scanning
proximity
accuracy
rssi
public fun
registerNodleBackgroundTask()
public fun
scheduleNodleBackgroundTask()
public fun
config(path: Path)
public fun <T>
config(key:
String,
value:
T
)
../config.json
or by directly configuring a key. An example of a json configuration look like this:ble.scan.duration-msec
ble.scan.interval-msec
ble.scan.interval-x-factor
dtn.use-cellular
cron.ios-bg-mode
cron.ios-bg-mode-distance-meters
NONE
AGGRESSIVE
NORMAL
ECO