Esempio n. 1
0
 internal void InitializeBluetooth()
 {
     if (fragTestReference.hasBluetoothAdapter)
     {
         if (fragTestReference.BluetoothStatus())              //Bluetooth is on
         {
             descriptionText.text = btOnDesctiption;
             PopulateScrollView();
         }
         else                                                                                        //Bluetooth id off
         {
             descriptionText.text = "Turn on Bluetooth to see the list of paired devices.";
             SetInfoText("Bluetooth is off");
             if (!canvasReference.btPromptShown)
             {
                 canvasReference.ShowBluetoothPrompt();
             }
         }
     }
     else
     {
         //SHow BT not supported
     }
 }