kanzi::ResourceManager::AcquireTask Class Reference

Load task for a group of resources. More...

#include <kanzi/core.ui/resource/resource_manager.hpp>

Public Member Functions

ResourceSharedPtr getLoadedResource (string_view url) const
 Gets a resource that has been loaded by this task. More...
 
bool isFinished () const
 Indicates whether the task has been finished and the callback called. More...
 
 AcquireTask ()
 Default constructor. More...
 

Friends

class ResourceManager
 Friend classes. More...
 

Detailed Description

Load task for a group of resources.

The task is created from a set of URLs and a callback. When Kanzi loads all URLs, it calls the callback.

See also
acquireResourcesAsync, wait

Constructor & Destructor Documentation

kanzi::ResourceManager::AcquireTask::AcquireTask ( )
inline

Default constructor.

Member Function Documentation

ResourceSharedPtr kanzi::ResourceManager::AcquireTask::getLoadedResource ( string_view  url) const
inline

Gets a resource that has been loaded by this task.

If the loading is not yet finished, or if the given URL has failed to load, returns a null pointer.

Parameters
urlThe URL of a resource in this load task.
Returns
The loaded resource, or null if the resource has not been successfully loaded.
bool kanzi::ResourceManager::AcquireTask::isFinished ( ) const
inline

Indicates whether the task has been finished and the callback called.

Returns
If the task has finished, true, otherwise false.

Friends And Related Function Documentation

friend class ResourceManager
friend

Friend classes.


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