MobileUI LogoMobileUI
/

From 0.2 to 0.3

Migration guide from MobileUI 0.2 to 0.3


Template variables

We are using a new approach within the layout templates. You now have an object of the class

io.nevernull.mobileui.core.template.DeviceTemplateVariables

as variable 'device' being configured. For downward-compatibility, also the former 'client' variable is assigned with the same object. We have removed and deprecated some variables that did not make sense in an offline-environment. The following changes have been made:

  • viewportWidthDp is deprecated, use displayWidthDp
  • viewportHeightDp is deprecated, use displayHeightDp
  • viewportHeightPx is deprecated, use displayHeightPx
  • viewportHeightPx is deprecated, use displayHeightPx

Other viewportWidth and viewportHeight properties (in cm and in) have been removed for simplicity.

MobileUILayout on iOS: UIViewController required

To detect changes in portrait and landscape modes, we now ask you to supply a UIViewController when constructing a MobileUILayout on iOS.

Please refer to the guide on Applying Layouts.