Files
NativeScript/file-system/file-name-resolver.d.ts
2015-07-31 11:51:01 +03:00

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