Categories

WellSafeBrowser

What is WellSafeBrowser and how does it work?

WellSafeBrowser is a web view that can be used for OAuth authorization and the use of shared cookies with a standard browser on your phone (in Android = Chrome and in iOS = Safari).This web view is displayed in the application,it has all the functions that are available in standard browsers, the key disadvantage of this method is that it is almost impossible to control the web view itself.As technologies on Android, Custom Tabs is used, and in IOS, SFSafariViewController is used.

WellSafeBrowser Methods

void Create (string url)

Loads a url in current SafeWebView.

Parameters:

string url

The url to be loaded. This url should start with http:// or https:// scheme

Example:

// Load a URL.(This URL starts with http:// or https://)
safeBrowser.Create("https://example.com");

void SetToolBarColor (string HexColor)

Sets the toolbar color Important:Call before calling the Show().

Parameters:

string HexColor

Sets color in Hex-color(Example:"#87cefa")

Example:

// Sets the toolbar color "#ff9966"
safeBrowser.SetToolBarColor("#ff9966");

void Show()

Sets visible the current SafeWebView.

Example:

// Sets the toolbar color "#ff9966"
safeBrowser.Show();

bool IsSupportedSafeBrowser()

Returns whether WallSafeBrowser is supported on this device.