Interface IAndroidDevice

  • All Superinterfaces:
    IMobileDevice

    public interface IAndroidDevice
    extends IMobileDevice
    Specific IMobileDevice extension for Android mobile OS. Can be one of:
    • Real device, connected by USB with ADB (then getDevice() will not return null
    • Virtual device (can be connected or not connected with ADB)
    • Method Detail

      • getVirtualDevice

        com.android.sdklib.internal.avd.AvdInfo getVirtualDevice()
        Returns underlying virtual device. Can return null if this device is not virtual.
        Returns:
        underlying virtual device or null if this device is not virtual
      • getDevice

        com.android.ddmlib.IDevice getDevice()
        Returns underlying ADB Device handle. Can return null if not connected with ABD yet.
        Returns:
        underlying virtual device or null if not connected with ABD yet.
      • isLaunched

        boolean isLaunched()
        Returns whether this Android device is already launched.
        Returns:
        whether this Android device is already launched