Inherits from UIView
Declared in SCWebView.h

Overview

The SCWebView is a Sitecore WebBrowser which provides javascript API to platform specific functionalities like acceleremoter, email composer and etc.

The interface of SCWebView is similar to UIWebView and has the same behaviour.

Tasks

Properties

activityIndicator

Activity indicator in the center of browser.

@property (nonatomic, readonly) UIActivityIndicatorView *activityIndicator

Discussion

Activity indicator in the center of browser.

Declared In

SCWebView.h

allowsInlineMediaPlayback

This property is alias to [UIWebView allowsInlineMediaPlayback] property.

@property (nonatomic) BOOL allowsInlineMediaPlayback

Return Value

iPhone Safari defaults to NO. iPad Safari defaults to YES

Discussion

This property is alias to [UIWebView allowsInlineMediaPlayback] property.

Declared In

SCWebView.h

canGoBack

This property is alias to [UIWebView canGoBack] property.

@property (nonatomic, readonly, getter=canGoBack) BOOL canGoBack

Discussion

This property is alias to [UIWebView canGoBack] property.

Declared In

SCWebView.h

canGoForward

This property is alias to [UIWebView canGoForward] property.

@property (nonatomic, readonly, getter=canGoForward) BOOL canGoForward

Discussion

This property is alias to [UIWebView canGoForward] property.

Declared In

SCWebView.h

dataDetectorTypes

This property is alias to [UIWebView dataDetectorTypes] property.

@property (nonatomic) UIDataDetectorTypes dataDetectorTypes

Discussion

This property is alias to [UIWebView dataDetectorTypes] property.

Declared In

SCWebView.h

delegate

This property is alias to [UIWebView delegate] property.

@property (nonatomic, weak) id<SCWebViewDelegate> delegate

Discussion

This property is alias to [UIWebView delegate] property.

Declared In

SCWebView.h

loading

This property is alias to [UIWebView loading] property.

@property (nonatomic, readonly, getter=isLoading) BOOL loading

Discussion

This property is alias to [UIWebView loading] property.

Declared In

SCWebView.h

mediaPlaybackAllowsAirPlay

This property is alias to [UIWebView mediaPlaybackAllowsAirPlay] property.

@property (nonatomic) BOOL mediaPlaybackAllowsAirPlay

Return Value

iPhone and iPad Safari both default to YES

Discussion

This property is alias to [UIWebView mediaPlaybackAllowsAirPlay] property.

Declared In

SCWebView.h

mediaPlaybackRequiresUserAction

This property is alias to [UIWebView mediaPlaybackRequiresUserAction] property.

@property (nonatomic) BOOL mediaPlaybackRequiresUserAction

Return Value

iPhone and iPad Safari both default to YES

Discussion

This property is alias to [UIWebView mediaPlaybackRequiresUserAction] property.

Declared In

SCWebView.h

request

This property is alias to [UIWebView request] property.

@property (nonatomic, readonly) NSURLRequest *request

Discussion

This property is alias to [UIWebView request] property.

Declared In

SCWebView.h

scalesPageToFit

This property is alias to [UIWebView scalesPageToFit] property.

@property (nonatomic) BOOL scalesPageToFit

Discussion

This property is alias to [UIWebView scalesPageToFit] property.

Declared In

SCWebView.h

scrollView

This property is alias to [UIWebView scrollView] property.

@property (nonatomic, readonly) UIScrollView *scrollView

Discussion

This property is alias to [UIWebView scrollView] property.

Declared In

SCWebView.h

Class Methods

setUserAgentAddition:

Used to add string to UIWebView user agent header.

+ (void)setUserAgentAddition:(NSString *)userAgentAddition

Parameters

userAgentAddition

string to add to UIWebView user agent.

Discussion

Used to add string to UIWebView user agent header.

Declared In

SCWebView.h

Instance Methods

goBack

This method is alias to [UIWebView goBack] method.

- (void)goBack

Discussion

This method is alias to [UIWebView goBack] method.

Declared In

SCWebView.h

goForward

This method is alias to [UIWebView goForward] method.

- (void)goForward

Discussion

This method is alias to [UIWebView goForward] method.

Declared In

SCWebView.h

loadData:MIMEType:textEncodingName:baseURL:

This method is an alias to [UIWebView loadData:MIMEType:textEncodingName:baseURL:] method.

- (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName baseURL:(NSURL *)baseURL

Parameters

data

The content for the main page.

MIMEType

The MIME type of the content.

textEncodingName

The IANA encoding name as in utf-8 or utf-16.

baseURL

The base URL for the content.

Discussion

This method is an alias to [UIWebView loadData:MIMEType:textEncodingName:baseURL:] method.

Declared In

SCWebView.h

loadHTMLString:baseURL:

This method is alias to [UIWebView loadHTMLString:baseURL:] method.

- (void)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURL

Parameters

string

The content for the main page.

baseURL

The base URL for the content. It will be prepended to all relative hyperlinks.

Discussion

This method is alias to [UIWebView loadHTMLString:baseURL:] method.

Declared In

SCWebView.h

loadRequest:

This method is alias to [UIWebView loadRequest:] method.

- (void)loadRequest:(NSURLRequest *)request

Parameters

request

A URL request identifying the location of the content to load.

Discussion

This method is alias to [UIWebView loadRequest:] method.

Declared In

SCWebView.h

loadURL:

This method is an alias to [UIWebView loadRequest:] method.
It constructs the request from the URL and loads it in the corresponding UIWebView.

- (void)loadURL:(NSURL *)url

Parameters

url

URL of the web page to display

Discussion

This method is an alias to [UIWebView loadRequest:] method.
It constructs the request from the URL and loads it in the corresponding UIWebView.

Declared In

SCWebView.h

loadURLWithString:

This method just calls -[UIWebView loadURL:[[NSURL alloc]initWithString: urlString]] method.

- (void)loadURLWithString:(NSString *)urlString

Parameters

urlString

string with URL to open by browser

Discussion

This method just calls -[UIWebView loadURL:[[NSURL alloc]initWithString: urlString]] method.

Declared In

SCWebView.h

refreshViews

Refresh view.

- (void)refreshViews

Discussion

Refresh view.

Declared In

SCWebView.h

reload

This method is alias to [UIWebView reload] method.

- (void)reload

Discussion

This method is alias to [UIWebView reload] method.

Declared In

SCWebView.h

stopLoading

This method is alias to [UIWebView stopLoading] method.

- (void)stopLoading

Discussion

This method is alias to [UIWebView stopLoading] method.

Declared In

SCWebView.h

stringByEvaluatingJavaScriptFromString:

This method is alias to [UIWebView stringByEvaluatingJavaScriptFromString:] method.

- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script

Parameters

script

A string that contains the JavaScript code to execute.

Return Value

The result of running script or nil if it fails.

Discussion

This method is alias to [UIWebView stringByEvaluatingJavaScriptFromString:] method.

Declared In

SCWebView.h