Inherits from UIViewController
Declared in SCBrowserViewController.h

Overview

Presents the standard C2Call SDK Browser ViewController.

Tasks

Outlets

Properties

Load Methods

Actions

Properties

activityContainerView

Activity Indicator View shown while loading a page.

@property (nonatomic, weak) IBOutlet UIView *activityContainerView

Declared In

SCBrowserViewController.h

browserTitle

The Browser Title.

@property (nonatomic, strong) NSString *browserTitle

Declared In

SCBrowserViewController.h

browserView

The actual browser view.

@property (nonatomic, weak) IBOutlet UIWebView *browserView

Declared In

SCBrowserViewController.h

closeAction

Attaches an Action when the view is closed.

@property (nonatomic, strong) C2BlockAction *closeAction

Declared In

SCBrowserViewController.h

htmlString

Alternative to the requestUrl, direct html can be set here.

@property (nonatomic, strong) NSString *htmlString

Declared In

SCBrowserViewController.h

requestUrl

The URL to load.

@property (nonatomic, strong) NSString *requestUrl

Declared In

SCBrowserViewController.h

Instance Methods

closeBrowser:

Closes Brwoser Action.

- (IBAction)closeBrowser:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCBrowserViewController.h

loadString:

Shows direct HTML Code in the browser view.

- (void)loadString:(id)html

Parameters

html
  • The HTML Code to show

Declared In

SCBrowserViewController.h

loadUrl:

Loads Url with String (will set the requestUrl property).

- (void)loadUrl:(id)url

Parameters

url
  • Valid URL

Declared In

SCBrowserViewController.h