1.14.0.5
Hummingbird
A modern user interface library for games
cohtml::IAsyncResourceHandler Class Referenceabstract

Class that will handle all asynchronous resource requests. More...

Public Member Functions

virtual void OnResourceRequest (const cohtml::IAsyncResourceRequest *request, cohtml::IAsyncResourceResponse *response)=0
 Called when Hummingbird needs a resource. More...
 
virtual void OnResourceStreamRequest (const cohtml::IAsyncResourceRequest *request, cohtml::IAsyncResourceStreamResponse *response)=0
 Called when Hummingbird needs a resource stream. More...
 
virtual void OnAbortResourceRequest (unsigned id)=0
 Called when the backend wants a load to abort. The user is STILL REQUIRED to call Finish on the resource response with the associated request.
 

Detailed Description

Class that will handle all asynchronous resource requests.

Note
Requests can come from any thread.

Member Function Documentation

◆ OnResourceRequest()

virtual void cohtml::IAsyncResourceHandler::OnResourceRequest ( const cohtml::IAsyncResourceRequest request,
cohtml::IAsyncResourceResponse response 
)
pure virtual

Called when Hummingbird needs a resource.

Parameters
requestobject describing the resource requested
responseresponse object for result of loading the request
Note
Can be called on any thread

◆ OnResourceStreamRequest()

virtual void cohtml::IAsyncResourceHandler::OnResourceStreamRequest ( const cohtml::IAsyncResourceRequest request,
cohtml::IAsyncResourceStreamResponse response 
)
pure virtual

Called when Hummingbird needs a resource stream.

Parameters
requestobject describing the resource requested
responseresponse object for result of loading the request
Note
Can be called on any thread