Package com.gwtmobile.phonegap.client.plugins.android.Bluetooth

Examples of com.gwtmobile.phonegap.client.plugins.android.Bluetooth.Callback


      break;
    }
  }

  public void isBTEnabled() {
    Bluetooth.isBTEnabled(new Callback() {
      @Override
      public void onSuccess(boolean result) {
        try {
          String state = "";
          if (result)
View Full Code Here


      }
    });
  }

  public void enableBT() {
    Bluetooth.enableBT(new Callback() {
      @Override
      public void onSuccess(boolean result) {
        try {
          String state = "";
          if (result)
View Full Code Here

      }
    });
  }

  public void disableBT() {
    Bluetooth.disableBT(new Callback() {
      @Override
      public void onSuccess(boolean result) {
        try {
          String state = "";
          if (result)
View Full Code Here

      }
    });
  }

  public void pairBT(String address) {
    Bluetooth.pairBT(address, new Callback() {
      @Override
      public void onSuccess(boolean result) {
        try {
          String state = "";
          if (result)
View Full Code Here

      }
    });
  }

  public void stopDiscovering() {
    Bluetooth.stopDiscovering(new Callback() {
      @Override
      public void onSuccess(boolean result) {
        try {
          String state = "";
          if (result)
View Full Code Here

      }
    });
  }

  public void isBound(String address) {
    Bluetooth.isBound(address, new Callback() {
      @Override
      public void onSuccess(boolean result) {
        try {
          String state = "";
          if (result)
View Full Code Here

TOP

Related Classes of com.gwtmobile.phonegap.client.plugins.android.Bluetooth.Callback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.