Files
NativeScript/file-system/file-name-resolver.d.ts
2015-03-19 18:24:02 +02:00

20 lines
596 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;
}
//@private
export function findFileMatch(path: string, ext: string, candidates: Array<string>, context: PlatformContext): string
//@endprivate
}