public class SWMMobileSettings extends Object
| Constructor and Description |
|---|
SWMMobileSettings() |
| Modifier and Type | Method and Description |
|---|---|
String |
getIconUrl()
The icon url to use on the home screen on ios
|
String |
getStartUrl()
Get the url to the image to use at startup if running on home screen
|
StatusBarStyle |
getStatusBarStyle()
ios only
get the style of the status bar if the app is running in full screen
|
ViewPort |
getViewPort()
Get the viewport for the mgwt app
|
boolean |
isDisablePhoneNumberDetection()
ios only
disable the auto detection of phonenumbers in your app
|
boolean |
isFullscreen()
Can the app be used in full screen mode
|
boolean |
isPreventScrolling()
Should swm-mobile prevent default scrolling behaviour
|
void |
setDisablePhoneNumberDetection(boolean disablePhoneNumberDetection)
ios only
disable the auto detection of phonenumbers in your app
|
void |
setFullscreen(boolean fullscreen)
Can the app be used in full screen
|
void |
setIconUrl(String url)
Set the icon url to use on the home screen on ios
|
void |
setPreventScrolling(boolean preventScrolling)
Should swm-mobile prevent default scrolling behaviour
|
void |
setStartUrl(String startUrl)
Set the url to the image to use at startup if running on home screen
|
void |
setStatusBarStyle(StatusBarStyle statusBarStyle)
ios only
set the style of the status bar if the app is running in full screen
|
void |
setViewPort(ViewPort viewPort)
Set the viewport the the mgwt app
|
public ViewPort getViewPort()
public void setViewPort(ViewPort viewPort)
viewPort - the viewport to usepublic String getIconUrl()
public void setIconUrl(String url)
url - the url of the icon to usepublic String getStartUrl()
public void setStartUrl(String startUrl)
startUrl - the url to usepublic boolean isFullscreen()
public void setFullscreen(boolean fullscreen)
fullscreen - true if app can be run in full screenpublic boolean isPreventScrolling()
public void setPreventScrolling(boolean preventScrolling)
preventScrolling - true if swm-mobile should prevent default scrolling behaviourpublic void setDisablePhoneNumberDetection(boolean disablePhoneNumberDetection)
ios only
disable the auto detection of phonenumbers in your appdisablePhoneNumberDetection - true to disablepublic boolean isDisablePhoneNumberDetection()
ios only
disable the auto detection of phonenumbers in your apppublic void setStatusBarStyle(StatusBarStyle statusBarStyle)
ios only
set the style of the status bar if the app is running in full screenstatusBarStyle - the style to usepublic StatusBarStyle getStatusBarStyle()
ios only
get the style of the status bar if the app is running in full screenCopyright © 2011–2015 SWM. All rights reserved.