void OnDestroy() { BtBridge.Instance.OnDestroy(); BluetoothDevice.DisposeAllDevices(); }
//TODO not Always called void OnApplicationQuit() { BtBridge.Instance.OnDestroy(); BluetoothDevice.DisposeAllDevices(); }
/// <summary> /// Release all resouces related to this library. Of course, results in disconnecting all devices. /// </summary> public static void releaseAllResources() { //no need for releaseDiscoveryResources(); it will be done by the following BtBridge.Instance.OnDestroy(); BluetoothDevice.DisposeAllDevices(); }