SCWebBrowser Class Reference
| Inherits from | UIView |
| Declared in | SCWebBrowser.h |
Overview
The SCWebBrowser object contains SCWebView view and simple navigation bar.
The interface of SCWebBrowser is similar to UIWebView and has the same behaviour. It should be used to open web pages that use sitecore javascript web plug-ins. Otherwise they will not work properly.
Tasks
-
– setCustomToollbarView:SCWebBrowser has simple navigation view with back and forward buttons and activity indicator and if you need to provide own custom navigator view, please pass UIView object which conforms to SCWebBrowserToolbar protocol.
-
activityIndicatorActivity indicator in the center of browser.
property -
delegateThis property is an alias to [UIWebView delegate] property.
property -
scrollViewThis property is an alias to [UIWebView scrollView] property.
property -
– loadURLWithString:This method constructs an URL from the given string and calls the [UIWebView loadURL:] method.
-
– loadRequest:This method is an alias to [UIWebView loadRequest:] method.
-
– loadHTMLString:baseURL:This method is an alias to [UIWebView loadHTMLString:baseURL:] method.
-
– loadURL:This method is an alias to [UIWebView loadRequest:] method.
It constructs the request from the URL and loads it in the corresponding UIWebView. -
– loadData:MIMEType:textEncodingName:baseURL:This method is an alias to [UIWebView loadData:MIMEType:textEncodingName:baseURL:] method.
-
requestThis property is an alias to [UIWebView request] property.
property -
– reloadThis method is an alias to [UIWebView reload] method.
-
– refreshViewsRefresh views
-
– stopLoadingThis method is an alias to [UIWebView stopLoading] method.
-
– goBackThis method is an alias to [UIWebView goBack] method.
-
– goForwardThis method is an alias to [UIWebView goForward] method.
-
canGoBackThis property is an alias to [UIWebView canGoBack] property.
property -
canGoForwardThis property is an alias to [UIWebView canGoForward] property.
property -
loadingThis property is an alias to [UIWebView loading] property.
property -
– stringByEvaluatingJavaScriptFromString:This method is an alias to [UIWebView stringByEvaluatingJavaScriptFromString:] method.
-
scalesPageToFitThis property is an alias to [UIWebView scalesPageToFit] property.
property -
dataDetectorTypesThis property is an alias to [UIWebView dataDetectorTypes] property.
property -
allowsInlineMediaPlaybackThis property is an alias to [UIWebView allowsInlineMediaPlayback] property.
property -
mediaPlaybackRequiresUserActionThis property is an alias to [UIWebView mediaPlaybackRequiresUserAction] property.
property -
mediaPlaybackAllowsAirPlayThis property is an alias to [UIWebView mediaPlaybackAllowsAirPlay] property.
property
Properties
activityIndicator
Activity indicator in the center of browser.
@property (nonatomic, readonly) UIActivityIndicatorView *activityIndicatorDiscussion
Activity indicator in the center of browser.
Declared In
SCWebBrowser.hallowsInlineMediaPlayback
This property is an alias to [UIWebView allowsInlineMediaPlayback] property.
@property (nonatomic) BOOL allowsInlineMediaPlaybackReturn Value
iPhone Safari defaults to NO. iPad Safari defaults to YES
Discussion
This property is an alias to [UIWebView allowsInlineMediaPlayback] property.
Declared In
SCWebBrowser.hcanGoBack
This property is an alias to [UIWebView canGoBack] property.
@property (nonatomic, readonly, getter=canGoBack) BOOL canGoBackDiscussion
This property is an alias to [UIWebView canGoBack] property.
Declared In
SCWebBrowser.hcanGoForward
This property is an alias to [UIWebView canGoForward] property.
@property (nonatomic, readonly, getter=canGoForward) BOOL canGoForwardDiscussion
This property is an alias to [UIWebView canGoForward] property.
Declared In
SCWebBrowser.hdataDetectorTypes
This property is an alias to [UIWebView dataDetectorTypes] property.
@property (nonatomic) UIDataDetectorTypes dataDetectorTypesDiscussion
This property is an alias to [UIWebView dataDetectorTypes] property.
Declared In
SCWebBrowser.hdelegate
This property is an alias to [UIWebView delegate] property.
@property (nonatomic, weak) id<SCWebBrowserDelegate> delegateDiscussion
This property is an alias to [UIWebView delegate] property.
Declared In
SCWebBrowser.hloading
This property is an alias to [UIWebView loading] property.
@property (nonatomic, readonly, getter=isLoading) BOOL loadingDiscussion
This property is an alias to [UIWebView loading] property.
Declared In
SCWebBrowser.hmediaPlaybackAllowsAirPlay
This property is an alias to [UIWebView mediaPlaybackAllowsAirPlay] property.
@property (nonatomic) BOOL mediaPlaybackAllowsAirPlayReturn Value
iPhone and iPad Safari both default to YES
Discussion
This property is an alias to [UIWebView mediaPlaybackAllowsAirPlay] property.
Declared In
SCWebBrowser.hmediaPlaybackRequiresUserAction
This property is an alias to [UIWebView mediaPlaybackRequiresUserAction] property.
@property (nonatomic) BOOL mediaPlaybackRequiresUserActionReturn Value
iPhone and iPad Safari both default to YES
Discussion
This property is an alias to [UIWebView mediaPlaybackRequiresUserAction] property.
Declared In
SCWebBrowser.hrequest
This property is an alias to [UIWebView request] property.
@property (nonatomic, readonly) NSURLRequest *requestDiscussion
This property is an alias to [UIWebView request] property.
Declared In
SCWebBrowser.hInstance Methods
goBack
This method is an alias to [UIWebView goBack] method.
- (void)goBackDiscussion
This method is an alias to [UIWebView goBack] method.
Declared In
SCWebBrowser.hgoForward
This method is an alias to [UIWebView goForward] method.
- (void)goForwardDiscussion
This method is an alias to [UIWebView goForward] method.
Declared In
SCWebBrowser.hloadData: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 *)baseURLParameters
- 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
SCWebBrowser.hloadHTMLString:baseURL:
This method is an alias to [UIWebView loadHTMLString:baseURL:] method.
- (void)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURLParameters
- 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 an alias to [UIWebView loadHTMLString:baseURL:] method.
Declared In
SCWebBrowser.hloadRequest:
This method is an alias to [UIWebView loadRequest:] method.
- (void)loadRequest:(NSURLRequest *)requestParameters
- request
A URL request identifying the location of the content to load.
Discussion
This method is an alias to [UIWebView loadRequest:] method.
Declared In
SCWebBrowser.hloadURL:
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 *)urlParameters
- 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
SCWebBrowser.hloadURLWithString:
This method constructs an URL from the given string and calls the [UIWebView loadURL:] method.
- (void)loadURLWithString:(NSString *)urlStringParameters
- urlString
string with URL to open by browser
Discussion
This method constructs an URL from the given string and calls the [UIWebView loadURL:] method.
NSURL* urlToLoad = [[NSURL alloc]initWithString: urlString];
[UIWebView loadURL:urlToLoad];
Declared In
SCWebBrowser.hreload
This method is an alias to [UIWebView reload] method.
- (void)reloadDiscussion
This method is an alias to [UIWebView reload] method.
Declared In
SCWebBrowser.hsetCustomToollbarView:
SCWebBrowser has simple navigation view with back and forward buttons and activity indicator and if you need to provide own custom navigator view, please pass UIView object which conforms to SCWebBrowserToolbar protocol.
- (void)setCustomToollbarView:(UIView<SCWebBrowserToolbar> *)toolbarParameters
- toolbar
a custom control that lets the user go back and forward through web pages displayed in the SCWebBrowser. See SCWebBrowserToolbar and SCWebBrowserToolbarDelegate protocols for more details.
Discussion
SCWebBrowser has simple navigation view with back and forward buttons and activity indicator and if you need to provide own custom navigator view, please pass UIView object which conforms to SCWebBrowserToolbar protocol.
Declared In
SCWebBrowser.hstopLoading
This method is an alias to [UIWebView stopLoading] method.
- (void)stopLoadingDiscussion
This method is an alias to [UIWebView stopLoading] method.
Declared In
SCWebBrowser.hstringByEvaluatingJavaScriptFromString:
This method is an alias to [UIWebView stringByEvaluatingJavaScriptFromString:] method.
- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)scriptParameters
- 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 an alias to [UIWebView stringByEvaluatingJavaScriptFromString:] method.
Declared In
SCWebBrowser.h