AndroidControllerIsDeviceConnected Method (String) AndroidLib - Beatsleigher Edition
Determines if the Android device with the serial number provided is currently connected

Namespace: RegawMOD.Android
Assembly: AndroidLib (in AndroidLib.dll) Version: 1.5.2.0 (1.5.2.0)
Syntax

public bool IsDeviceConnected(
	string deviceSerial
)

Parameters

deviceSerial
Type: SystemString
Serial number of Android device

Return Value

Type: Boolean
A value indicating if the Android device with the serial number deviceSerial is connected
Examples

The following example shows how to use IsDeviceConnected(string deviceSerial) in one of your programs
//This example demonstrates how to use IsDeviceConnected(string deviceSerial) in your project
//This example assumes there is an instance of AndroidController running named android.

string serialNumber = "HTC123456789";

bool currentlyConnected = android.IsDeviceConnected(serialNumber);
See Also

Reference