kodi
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
lib.version_check.viewer.WebBrowser Class Reference

Public Member Functions

def __init__ (self, url)
 
def launch_url (self)
 

Static Public Member Functions

def notification (heading, message, icon=None, time=15000, sound=True)
 

Public Attributes

 url
 

Detailed Description

Display url using the default browser

usage:
    script_path = os.path.join(_ADDON_PATH, 'resources', 'lib', 'version_check', 'viewer.py')
    xbmc.executebuiltin('RunScript(%s,%s,%s)' % (script_path, 'webbrowser', 'https://kodi.tv/'))

:param url: url to open
:type url: str

Member Function Documentation

◆ launch_url()

def lib.version_check.viewer.WebBrowser.launch_url (   self)
Open self.url in the default web browser

◆ notification()

def lib.version_check.viewer.WebBrowser.notification (   heading,
  message,
  icon = None,
  time = 15000,
  sound = True 
)
static
Create a notification

:param heading: notification heading
:type heading: str
:param message: notification message
:type message: str
:param icon: path and filename for the notification icon
:type icon: str
:param time: time to display notification
:type time: int
:param sound: is notification audible
:type sound: bool

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