本文整理汇总了Java中com.wowwee.bluetoothrobotcontrollib.BluetoothRobot类的典型用法代码示例。如果您正苦于以下问题:Java BluetoothRobot类的具体用法?Java BluetoothRobot怎么用?Java BluetoothRobot使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BluetoothRobot类属于com.wowwee.bluetoothrobotcontrollib包,在下文中一共展示了BluetoothRobot类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onDestroy
import com.wowwee.bluetoothrobotcontrollib.BluetoothRobot; //导入依赖的package包/类
@Override
public void onDestroy() {
super.onDestroy();
for (ChipRobot robot : (List<ChipRobot>)ChipRobotFinder.getInstance().getChipRobotConnectedList()){
robot.disconnect();
}
BluetoothRobot.unbindBluetoothLeService(MainActivity.this);
System.exit(0);
}
示例2: onDestroy
import com.wowwee.bluetoothrobotcontrollib.BluetoothRobot; //导入依赖的package包/类
@Override
public void onDestroy() {
super.onDestroy();
for (REVRobot robot : REVRobotFinder.getInstance().getmRevRobotConnectedList()){
robot.disconnect();
}
BluetoothRobot.unbindBluetoothLeService(MainActivity.this);
System.exit(0);
}
示例3: findAllRobots
import com.wowwee.bluetoothrobotcontrollib.BluetoothRobot; //导入依赖的package包/类
@Override
public void findAllRobots(RobotsFoundListener listener) {
List<IRobot> robots = new ArrayList<IRobot>();
if (isEnableBluetooth) {
List<BluetoothRobot> listSnapPets = RoboRemoteBlueFinder.getInstance().getDevicesFound();
for (BluetoothRobot bRobot : listSnapPets) {
robots.add(com.wowwee.roboremote.robots.BluetoothRobot.Factory.getInstance().create(bRobot));
}
listener.onFound(robots);
}
}
开发者ID:WowWeeLabs,项目名称:RoboSapien-Blue-RoboRaptor-Blue-Android-SDK,代码行数:12,代码来源:BluetoothRobotFinder.java
示例4: startScan
import com.wowwee.bluetoothrobotcontrollib.BluetoothRobot; //导入依赖的package包/类
@Override
public void startScan() {
if (isEnableBluetooth) {
for (Object obj : RoboRemoteBlueFinder.getInstance().getDevicesConnected()) {
BluetoothRobot robot = (BluetoothRobot) obj;
robot.disconnect();
}
App.getContext().registerReceiver(mRoboRemoteBlueFinderBroadcastReceiver, RoboRemoteBlueFinder.getRoboRemoteBlueFinderIntentFilter());
RoboRemoteBlueFinder.getInstance().stopScanForRoboRemoteBlueRobots();
RoboRemoteBlueFinder.getInstance().clearFoundRoboRemoteBlueRobotList();
RoboRemoteBlueFinder.getInstance().scanForRoboremoteBlue();
}
}
开发者ID:WowWeeLabs,项目名称:RoboSapien-Blue-RoboRaptor-Blue-Android-SDK,代码行数:14,代码来源:BluetoothRobotFinder.java