Loading...
Searching...
No Matches
ImageSourceProviderListenerabstract

#include <Ultralight/ImageSource.h>

Overview

Listener for ImageSourceProvider events.

This is used to notify listeners when an ImageSource is added or removed from the provider.

Public Member Functions

virtual ~ImageSourceProviderListener ()=default
 
virtual void OnAddImageSource (const String &id, RefPtr< ImageSource > image_source)=0
 Called when an ImageSource is added to the provider.
 
virtual void OnRemoveImageSource (const String &id)=0
 Called when an ImageSource is removed from the provider.
 

Constructor & Destructor Documentation

◆ ~ImageSourceProviderListener()

virtual ~ImageSourceProviderListener ( )
virtualdefault

Member Function Documentation

◆ OnAddImageSource()

virtual void OnAddImageSource ( const String & id,
RefPtr< ImageSource > image_source )
pure virtual

Called when an ImageSource is added to the provider.

Parameters
idThe identifier of the image source.
image_sourceThe ImageSource instance.

◆ OnRemoveImageSource()

virtual void OnRemoveImageSource ( const String & id)
pure virtual

Called when an ImageSource is removed from the provider.

Parameters
idThe identifier of the image source.

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