Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIWebViewIOS Class Reference
Inheritance diagram for MOAIWebViewIOS:
MOAIInstanceEventSource MOAIEventSource

List of all members.

Function List

  canGoBack
  canGoForward
  clickBack
  clickForward
  clickRefresh
  clickStop
  closeWebView
  getAllowsInlineMediaPlayback
  getCurrentRequest
  getMediaPlaybackRequiresAction
  getScalesPageToFit
  hasToolBar
  hideWebView
  isHidden
  initWebView
  isLoading
  loadHTML
  loadRequest
  openUrlInSafari
  runJavaScript
  setAllowsInlineMediaPlayback
  setMediaPlaybackRequiresAction
  setScalesPageToFit
  show

Function Documentation

Checks if the UIWebView can go back.


function canGoBack ( MOAIWebViewIOSIOS self )
Parameters:
self ( MOAIWebViewIOSIOS )
Returns:
nil

Checks if the UIWebView can go forward.


function canGoForward ( MOAIWebViewIOSIOS self )
Parameters:
self ( MOAIWebViewIOSIOS )
Returns:
nil

Sends an event to the UIWebView that the user has clicked 'back'.


function clickBack ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
nil

Sends an event to the UIWebView that the user has clicked 'forward'.


function clickForward ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
nil

Sends an event to the UIWebView that the user has clicked 'refresh'.


function clickRefresh ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
nil

Sends an event to the UIWebView that the user has clicked 'stop'.


function clickStop ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
nil

Closes the current UIWebView.


function closeWebView ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
nil

Returns whether or not the UIWebView allows inline media playback.


function getAllowsInlineMediaPlayback ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
allowsInlineMediaPlayback ( bool )

Returns the currently active URL.


function getCurrentRequest ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
currentURL ( string )

Returns whether or not the UIWebView requires user input to start media playback or if it start automatically.


function getMediaPlaybackRequiresAction ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
mediaPlaybackRequiresUserAction ( bool )

Returns whether or not the UIWebView automatically scales pages to fit the view.


function getScalesPageToFit ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
scalesPageToFit ( bool )

Sets whether or not the UIWebView has a tool bar. Default is true.


function hasToolBar ( MOAIWebViewIOS self, bool hasToolBar )
Parameters:
self ( MOAIWebViewIOS )
hasToolBar ( bool )
Returns:
nil

Sets the UIWebView to hidden.


function hideWebView ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
nil

Kills current UIWebView (if one exists) and creates a new one with desired dimensions.


function initWebView ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
scalesPageToFit ( bool )

Returns whether or not the UIWebView is hidden.


function isHidden ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
isHidden ( bool )

Returns whether or not the UIWebView is loading a page.


function isLoading ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
isLoading ( bool )

Sets the UIWebView main page content and base URL.


function loadHTML ( MOAIWebViewIOS self, string string, string baseURL )
Parameters:
self ( MOAIWebViewIOS )
string ( string )
baseURL ( string )
Returns:
nil

Sets the UIWebView main page content and base URL.


function loadRequest ( MOAIWebViewIOS self, string request )
Parameters:
self ( MOAIWebViewIOS )
request ( string )
Returns:
nil

Opens the URL in Safari.


function openUrlInSafari ( string url )
Parameters:
url ( string )
Returns:
nil

Runs the specified JavaScript stringin the UIWebView.


function runJavaScript ( MOAIWebViewIOS self, string script )
Parameters:
self ( MOAIWebViewIOS )
script ( string )
Returns:
result ( string )

Sets the value of the allowsInlineMediaPlayback on the UIWebView.


function setAllowsInlineMediaPlayback ( MOAIWebViewIOS self, bool allowsInlineMediaPlayback )
Parameters:
self ( MOAIWebViewIOS )
allowsInlineMediaPlayback ( bool )
Returns:
nil

Sets the value of the mediaPlaybackRequiresUserAction on the UIWebView.


function setMediaPlaybackRequiresAction ( MOAIWebViewIOS self, bool mediaPlaybackRequiresAction )
Parameters:
self ( MOAIWebViewIOS )
mediaPlaybackRequiresAction ( bool )
Returns:
nil

Sets the value of the scalesPageToFit on the UIWebView.


function setScalesPageToFit ( MOAIWebViewIOS self, bool scalesPageToFit )
Parameters:
self ( MOAIWebViewIOS )
scalesPageToFit ( bool )
Returns:
nil

Shows the UIWebView.


function show ( MOAIWebViewIOS self )
Parameters:
self ( MOAIWebViewIOS )
Returns:
nil