Interface: LoadingConfig
Utils.LoadingConfig
Configuration options for resource loading.
Properties
onError
• Optional
onError: (error
: unknown
) => void
Type declaration
▸ (error
): void
A callback function for handling errors during resource loading.
This function is called with an error
object in case of loading errors.
Parameters
Name | Type |
---|---|
error | unknown |
Returns
void
Defined in
onProgress
• Optional
onProgress: (ratio
: number
) => void
Type declaration
▸ (ratio
): void
A callback function for reporting progress during resource loading. This function is called with a ratio (0 to 1) to indicate the loading progress.
Parameters
Name | Type |
---|---|
ratio | number |
Returns
void