mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
25 lines
738 B
TypeScript
25 lines
738 B
TypeScript
/**
|
|
* Provides FileNameResolver class used for loading files based on device capabilities.
|
|
*/
|
|
declare module "file-system/file-name-resolver" {
|
|
export interface PlatformContext {
|
|
width: number;
|
|
height: number;
|
|
os: string;
|
|
deviceType: string;
|
|
}
|
|
|
|
export class FileNameResolver {
|
|
constructor(context: PlatformContext);
|
|
resolveFileName(path: string, ext: string): string;
|
|
clearCache(): void;
|
|
}
|
|
|
|
export function resolveFileName(path: string, ext: string): string;
|
|
export function clearCache(): void;
|
|
|
|
//@private
|
|
export function findFileMatch(path: string, ext: string, candidates: Array<string>, context: PlatformContext): string
|
|
//@endprivate
|
|
|
|
} |