Interface IAndroidDevice

All Superinterfaces:
IMobileDevice
All Known Implementing Classes:
AndroidDevice

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 Summary

    Modifier and Type
    Method
    Description
    com.android.ddmlib.IDevice
    Returns underlying ADB Device handle.
    com.android.sdklib.internal.avd.AvdInfo
    Returns underlying virtual device.
    boolean
    Returns whether this Android device is already launched.

    Methods inherited from interface com._1c.g5.v8.dt.platform.services.mobile.IMobileDevice

    getName, getOs, isEmulator
  • Method Details

    • 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