Interface: FormatDetectionParser
Defined in: node_modules/pixi.js/lib/assets/detections/types.d.ts:7
Format detection is useful for detecting feature support on the current platform.
Advanced
Properties
add
> add: (formats) => Promise<string[]>
Defined in: node_modules/pixi.js/lib/assets/detections/types.d.ts:17
Add formats (file extensions) to the existing list of formats. Return an new array with added formats, do not mutate the formats argument.
Parameters
formats
string[]
Returns
Promise<string[]>
- Promise that resolves to the new formats array.
extension?
> optional extension?: ExtensionMetadata
Defined in: node_modules/pixi.js/lib/assets/detections/types.d.ts:9
Should be ExtensionType.DetectionParser
remove
> remove: (formats) => Promise<string[]>
Defined in: node_modules/pixi.js/lib/assets/detections/types.d.ts:24
Remove formats (file extensions) from the list of supported formats. This is used when uninstalling this DetectionParser. Return an new array with filtered formats, do not mutate the formats argument.
Parameters
formats
string[]
Returns
Promise<string[]>
- Promise that resolves to the new formats array.
test
> test: () => Promise<boolean>
Defined in: node_modules/pixi.js/lib/assets/detections/types.d.ts:11
Browser/platform feature detection supported if return true
Returns
Promise<boolean>