Package com.eclipsesource.tabris.device.ClientDevice

Examples of com.eclipsesource.tabris.device.ClientDevice.Orientation


    ClientDeviceImpl deviceImpl = new ClientDeviceImpl();
    JsonObject properties = new JsonObject();
    properties.add( "orientation", "PORTRAIT" );
    environment.dispatchSetOnServiceObject( properties );

    Orientation orientation = deviceImpl.getOrientation();

    assertSame( Orientation.PORTRAIT, orientation );
  }
View Full Code Here


    ClientDeviceImpl deviceImpl = new ClientDeviceImpl();
    JsonObject properties = new JsonObject();
    properties.add( "orientation", "LANDSCAPE" );
    environment.dispatchSetOnServiceObject( properties );

    Orientation orientation = deviceImpl.getOrientation();

    assertSame( Orientation.LANDSCAPE, orientation );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.device.ClientDevice.Orientation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.