webMethods Mobile Suite  | webMethods Mobile SuiteWeb Help | Using webMethods Mobile Designer | Creating Mobile Application Projects | Coding a Mobile Application | Migrating to the New Run-Time Classes | Replacing Deprecated or Removed Methods and Fields with New API
 
Replacing Deprecated or Removed Methods and Fields with New API
* To replace deprecated or removed methods and fields
1. Replace CanvasDimensions.CURRENT_SCREEN_WIDTH with nUIController.getScreenWidth().
2. Replace CanvasDimensions.CURRENT_SCREEN_HEIGHT with nUIController.getScreenHeight().
3. Replace CanvasDimensions.CURRENT_SCREEN_PPI with nUIController.getScreenPPI().
4. Replace Canvas.getWidth() with nUIController.getScreenWidth().
5. Replace Canvas.getHeight() with nUIController.getScreenHeight().

Copyright © 2010-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.