Пример #1
0
  public void createNewPermission(Permission permission, String permissionKey, String masterId) {
    mBluetoothClient = BluetoothClient.getInstance(mContext, this);

    if (!mBluetoothClient.isSupported()) {
      mBluetoothListener.bluetoothNotSupported();
      return;
    } else if (!mBluetoothClient.isEnabled()) {
      mBluetoothListener.enableBluetooth();
      return;
    }

    mBluetoothClient.executeCreateNewPermission(permission, permissionKey, masterId);
  }