org.codehaus.mojo.javascript
Class VirtualDevice

java.lang.Object
  extended by org.codehaus.mojo.javascript.VirtualDevice

public class VirtualDevice
extends java.lang.Object

Represent a Virtual Device configuration. Used by TitaniumPackageMojo when executeMode is virtual to retrieve the emulator settings.


Constructor Summary
VirtualDevice()
           
 
Method Summary
 java.lang.String getAndroidAPI()
          Retrieve the android API version.
 java.lang.String getFamily()
          Retrieve the virtual device family for the iphone/ipad/universal platform.
 java.lang.String getIosVersion()
          Retrieve the iOS version.
 java.lang.String getSkin()
          Retrieve the skin of the android virtual device.
 java.lang.Long getWait()
          Retrieve the wait time between the android emulator and simulator launch.
 void setAndroidAPI(java.lang.String androidAPI)
          Set the android API version.
 void setFamily(java.lang.String family)
          Set the virtual device family of the iphone emulator.
 void setIosVersion(java.lang.String iosVersion)
          Set the iOS version.
 void setSkin(java.lang.String skin)
          Set the skin of the android virtual device.
 void setWait(java.lang.Long wait)
          Set the wait time before launching the simulator after having launched the android simulator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualDevice

public VirtualDevice()
Method Detail

getFamily

public java.lang.String getFamily()
Retrieve the virtual device family for the iphone/ipad/universal platform.

Returns:
The virtual device family. If not set, "iphone" will be returned.

setFamily

public void setFamily(java.lang.String family)
Set the virtual device family of the iphone emulator.

Parameters:
family - The virtual device family.

Accepted values are:

  • iphone
  • ipad

getSkin

public java.lang.String getSkin()
Retrieve the skin of the android virtual device.

Returns:
The skin of the android virtual device.

setSkin

public void setSkin(java.lang.String skin)
Set the skin of the android virtual device.

Parameters:
skin - The skin of the android virtual device.

getAndroidAPI

public java.lang.String getAndroidAPI()
Retrieve the android API version.

Returns:
The android API version.

setAndroidAPI

public void setAndroidAPI(java.lang.String androidAPI)
Set the android API version.

Parameters:
androidAPI - The android API version.

getWait

public java.lang.Long getWait()
Retrieve the wait time between the android emulator and simulator launch.

Returns:
The wait time.

setWait

public void setWait(java.lang.Long wait)
Set the wait time before launching the simulator after having launched the android simulator.

Parameters:
wait - The wait time.

getIosVersion

public java.lang.String getIosVersion()
Retrieve the iOS version.

Returns:
The iOS version.

setIosVersion

public void setIosVersion(java.lang.String iosVersion)
Set the iOS version.

Parameters:
iosVersion - The iOS version.


Copyright © 2011 SOFTEC sa. All Rights Reserved.