Class Bluetooth


  • public class Bluetooth
    extends java.lang.Object
    Manage the state of Bluetooth SCO capabilities
    • Constructor Summary

      Constructors 
      Constructor Description
      Bluetooth()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void startBluetoothSco​(android.content.Context context)
      Enable Bluetooth SCO mode.
      static void stopBluetoothSco​(android.content.Context context)
      Disable Bluetooth SCO mode.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Bluetooth

        public Bluetooth()
    • Method Detail

      • startBluetoothSco

        public static void startBluetoothSco​(@NonNull
                                             android.content.Context context)
        Enable Bluetooth SCO mode. Bluetooth SCO devices will be accessible as microphones. This must be paired with a call to stopBluetoothSco(Context)
        Parameters:
        context - the current application context
      • stopBluetoothSco

        public static void stopBluetoothSco​(@NonNull
                                            android.content.Context context)
        Disable Bluetooth SCO mode.
        Parameters:
        context - the current application context