Пример #1
0
 void OnDestroy()
 {
     BtBridge.Instance.OnDestroy();
     BluetoothDevice.DisposeAllDevices();
 }
Пример #2
0
 //TODO not Always called
 void OnApplicationQuit()
 {
     BtBridge.Instance.OnDestroy();
     BluetoothDevice.DisposeAllDevices();
 }
Пример #3
0
 /// <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();
 }