WebNewViewRequest

Since: BlackBerry 10.3.0

#include <bb/cascades/WebNewViewRequest>

A utility class for the WebView::newViewRequested() signal.

This class contains information about the request, such as whether it's a possibly unwanted "popup", and it is possible to honor the request by calling the openIn method in a slot connected to WebView::newViewRequested().

To prevent opening a new view, for example if the isPopup flag is set, return without calling openIn in your slot.


Overview

Properties Index

boolpopup [read-only]

Public Functions Index

WebNewViewRequest (WebNewViewRequestPrivate &dd, QObject *parent=0)
~WebNewViewRequest ()
boolisPopup () const
Q_INVOKABLE voidopenIn (QObject *view)

Properties

bool popup[read-only]

Whether this request is a possibly unwanted "popup".

Since:

BlackBerry 10.3.0

Public Functions

WebNewViewRequest (
  • WebNewViewRequestPrivate &dd,
  • QObject *parent )

Constructs a WebNewViewRequest.

WebNewViewRequests are created internally and passed as a parameter to the WebView::newViewRequested() signal.

Since:

BlackBerry 10.3.0

~WebNewViewRequest ()

Destructor.

bool isPopup ()

Whether this request is a possibly unwanted "popup".

Since:

BlackBerry 10.3.0

Q_INVOKABLE void openIn (

Accepts the new view request and opens the request in the WebView provided.

Parameters
view

The WebView or WebPage to open the request in.

Since:

BlackBerry 10.3.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus