API documentation  2.0rc1
Public Member Functions | List of all members
client::ServiceWorkerRegistration Class Reference

#include <clientlib.h>

Inherits client::EventTarget.

Public Member Functions

ServiceWorkerget_active ()
 
ServiceWorkerget_installing ()
 
EventListenerget_onupdatefound ()
 
void set_onupdatefound (EventListener *)
 
PushManagerget_pushManager ()
 
Stringget_scope ()
 
SyncManagerget_sync ()
 
ServiceWorkerget_waiting ()
 
PromisegetNotifications ()
 
PromisegetNotifications (GetNotificationOptions *filter)
 
PromiseshowNotification (const String &title)
 
PromiseshowNotification (const String &title, NotificationOptions *options)
 
Promiseunregister ()
 
Promiseupdate ()
 
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, EventListenerOptions *options)
 
ServiceWorkerRegistrationget_prototype ()
 
void set_prototype (ServiceWorkerRegistration *)
 
 ServiceWorkerRegistration ()
 
- Public Member Functions inherited from client::EventTarget
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
bool dispatchEvent (Event *evt)
 
void removeEventListener (const String &type)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, bool options)
 
EventTargetget_prototype ()
 
void set_prototype (EventTarget *)
 
 EventTarget ()
 
- Public Member Functions inherited from client::Object
 Object ()
 
template<typename T >
valueOf ()
 
 operator double () const
 
Objectoperator[] (const client::String &name) const
 
void set_ (const client::String &name, Object *v)
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
void set_ (const client::String &name, T v)
 
bool hasOwnProperty (const client::String &name)
 

Constructor & Destructor Documentation

◆ ServiceWorkerRegistration()

client::ServiceWorkerRegistration::ServiceWorkerRegistration ( )

Member Function Documentation

◆ addEventListener() [1/5]

void client::ServiceWorkerRegistration::addEventListener ( const String type,
EventListener listener 
)

◆ addEventListener() [2/5]

void client::ServiceWorkerRegistration::addEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ addEventListener() [3/5]

void client::ServiceWorkerRegistration::addEventListener ( const String type,
EventListener listener,
AddEventListenerOptions options 
)

◆ addEventListener() [4/5]

void client::ServiceWorkerRegistration::addEventListener ( const String type,
EventListenerObject listener 
)

◆ addEventListener() [5/5]

void client::ServiceWorkerRegistration::addEventListener ( const String type,
EventListenerObject listener,
AddEventListenerOptions options 
)

◆ get_active()

ServiceWorker* client::ServiceWorkerRegistration::get_active ( )

◆ get_installing()

ServiceWorker* client::ServiceWorkerRegistration::get_installing ( )

◆ get_onupdatefound()

EventListener* client::ServiceWorkerRegistration::get_onupdatefound ( )

◆ get_prototype()

ServiceWorkerRegistration* client::ServiceWorkerRegistration::get_prototype ( )

◆ get_pushManager()

PushManager* client::ServiceWorkerRegistration::get_pushManager ( )

◆ get_scope()

String* client::ServiceWorkerRegistration::get_scope ( )

◆ get_sync()

SyncManager* client::ServiceWorkerRegistration::get_sync ( )

◆ get_waiting()

ServiceWorker* client::ServiceWorkerRegistration::get_waiting ( )

◆ getNotifications() [1/2]

Promise* client::ServiceWorkerRegistration::getNotifications ( )

◆ getNotifications() [2/2]

Promise* client::ServiceWorkerRegistration::getNotifications ( GetNotificationOptions filter)

◆ removeEventListener() [1/5]

void client::ServiceWorkerRegistration::removeEventListener ( const String type,
EventListener listener 
)

◆ removeEventListener() [2/5]

void client::ServiceWorkerRegistration::removeEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ removeEventListener() [3/5]

void client::ServiceWorkerRegistration::removeEventListener ( const String type,
EventListener listener,
EventListenerOptions options 
)

◆ removeEventListener() [4/5]

void client::ServiceWorkerRegistration::removeEventListener ( const String type,
EventListenerObject listener 
)

◆ removeEventListener() [5/5]

void client::ServiceWorkerRegistration::removeEventListener ( const String type,
EventListenerObject listener,
EventListenerOptions options 
)

◆ set_onupdatefound()

void client::ServiceWorkerRegistration::set_onupdatefound ( EventListener )

◆ set_prototype()

void client::ServiceWorkerRegistration::set_prototype ( ServiceWorkerRegistration )

◆ showNotification() [1/2]

Promise* client::ServiceWorkerRegistration::showNotification ( const String title)

◆ showNotification() [2/2]

Promise* client::ServiceWorkerRegistration::showNotification ( const String title,
NotificationOptions options 
)

◆ unregister()

Promise* client::ServiceWorkerRegistration::unregister ( )

◆ update()

Promise* client::ServiceWorkerRegistration::update ( )