Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
WebViewManager Class Reference

WebViewManager manages all WebViews. More...

Public Member Functions

WebView createWebView (QString, QString, int, int)
 Creates a WebView. More...
 
WebView getWebView (uuid)
 Returns the WebView with the specified UUID. More...
 
bool closeWebView (uuid)
 Closes the WebView with the specified UUID. More...
 
void closeAll ()
 Closes all WebViews. More...
 
void tookWebViewOwnership (uuid, QString)
 This event is emitted when a custom interface takes ownership of a WebView. More...
 

Detailed Description

WebViewManager manages all WebViews.

Member Function Documentation

◆ closeAll()

void WebViewManager::closeAll ( )

Closes all WebViews.

◆ closeWebView()

bool WebViewManager::closeWebView ( uuid  )

Closes the WebView with the specified UUID.

Parameters
id,theUUID of the WebView of interest.
Returns
bool, true if successful, otherwise false.

◆ createWebView()

WebView WebViewManager::createWebView ( QString  ,
QString  ,
int  ,
int   
)

Creates a WebView.

Parameters
title,thetitle for the WebView.
url,theURL for the WebView.
width,thewidth for the WebView.
height,theheight for the WebView.
Returns
WebView, the WebView object that is created.

◆ getWebView()

WebView WebViewManager::getWebView ( uuid  )

Returns the WebView with the specified UUID.

Parameters
id,theUUID of the WebView of interest.
Returns
WebView, the WebView object with the specified UUID.

◆ tookWebViewOwnership()

void WebViewManager::tookWebViewOwnership ( uuid  ,
QString   
)

This event is emitted when a custom interface takes ownership of a WebView.

  • webViewId, the UUID of the WebView.
  • customInterfaceUrl, the URL of the custom interface that took ownership.

IPC event.


The documentation for this class was generated from the following file: