mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(android): add openFile to utils (#6895)
* feat(android): add openFile to utils * tests: move test_openFile() test to apps/ui-tests-app Small changes to openFile() method
This commit is contained in:
6
tns-core-modules/utils/utils.d.ts
vendored
6
tns-core-modules/utils/utils.d.ts
vendored
@@ -285,6 +285,12 @@ export function isDataURI(uri: string): boolean
|
||||
*/
|
||||
export function openUrl(url: string): boolean
|
||||
|
||||
/**
|
||||
* Opens file.
|
||||
* @param {string} filePath The file.
|
||||
*/
|
||||
export function openFile(filePath: string): boolean
|
||||
|
||||
/**
|
||||
* Escapes special regex symbols (., *, ^, $ and so on) in string in order to create a valid regex from it.
|
||||
* @param source The original value.
|
||||
|
||||
Reference in New Issue
Block a user