Mobile Development 10.11 | 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().