Method DetailString calcHeight(int percent, int min, int max) Returns a height as a percentage of the available screen height, confined to within min and max.
Parameters:
Returns: String Since: 11-30-2007 String calcWidth(int percent, int min, int max) Returns a width as a percentage of the available screen width, confined to within min and max.
Parameters:
Returns: String Since: 11-30-2007 Browser createBrowser(String userAgent) Returns a new Browser object based on the user-agent string supplied. Used for testing site compatibility with different useragents.
Parameters:
Returns: Browser Since: 10-06-2010 String getBrowser() Returns a two character code for the browser (ie=Internet Explorer, ff=Firefox, sf=Safari). Returns 'ot' if the browser cannot be identified. Returns: String Since: 10-17-2007 String getBrowserVersion() Returns the browser version. Returns 'unknown' if the browser version cannot be identified. For Safari, this returns the AppleWebKit version. Returns: String Since: 10-17-2007 String getClientAddress() Returns the IP Address of the client. Returns: String Since: 11-30-2011 String getHost() Returns the public host name for this session. Returns: String Since: 04-08-2021 String getLanguage() Returns locale language for the request or empty string if no locale information in the request. Returns: String Since: 11-09-2009 String getOperatingSystem() Return a two or three character code for the operating system (win=Windows, mac=Macintosh, lnx=Linux). Returns 'ot' if the operating system cannot be identified. Returns: String Since: 10-17-2007 String getUserAgent() Returns the full userAgent reported by the browser. Returns: String Since: 10-17-2007 boolean isMobile() Returns true if the OS is determined to be a mobile operating system. Returns: boolean Since: 10-18-2010 String toString() Returns a description of this Browser object. Returns: String Since: 10-17-2007 |
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. | API Date: Dec 03, 2024 10:24 AM |