docs.json 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544
  1. {
  2. "api": {
  3. "name": "FilesystemPlugin",
  4. "slug": "filesystemplugin",
  5. "docs": "",
  6. "tags": [],
  7. "methods": [
  8. {
  9. "name": "checkPermissions",
  10. "signature": "() => Promise<PermissionStatus>",
  11. "parameters": [],
  12. "returns": "Promise<PermissionStatus>",
  13. "tags": [
  14. {
  15. "name": "since",
  16. "text": "1.0.0"
  17. }
  18. ],
  19. "docs": "Check read/write permissions.\nRequired on Android, only when using `Directory.Documents` or\n`Directory.ExternalStorage`.",
  20. "complexTypes": [
  21. "PermissionStatus"
  22. ],
  23. "slug": "checkpermissions"
  24. },
  25. {
  26. "name": "requestPermissions",
  27. "signature": "() => Promise<PermissionStatus>",
  28. "parameters": [],
  29. "returns": "Promise<PermissionStatus>",
  30. "tags": [
  31. {
  32. "name": "since",
  33. "text": "1.0.0"
  34. }
  35. ],
  36. "docs": "Request read/write permissions.\nRequired on Android, only when using `Directory.Documents` or\n`Directory.ExternalStorage`.",
  37. "complexTypes": [
  38. "PermissionStatus"
  39. ],
  40. "slug": "requestpermissions"
  41. },
  42. {
  43. "name": "readFile",
  44. "signature": "(options: ReadFileOptions) => Promise<ReadFileResult>",
  45. "parameters": [
  46. {
  47. "name": "options",
  48. "docs": "",
  49. "type": "ReadFileOptions"
  50. }
  51. ],
  52. "returns": "Promise<ReadFileResult>",
  53. "tags": [
  54. {
  55. "name": "since",
  56. "text": "1.0.0"
  57. }
  58. ],
  59. "docs": "Read a file from disk",
  60. "complexTypes": [
  61. "ReadFileResult",
  62. "ReadFileOptions"
  63. ],
  64. "slug": "readfile"
  65. },
  66. {
  67. "name": "readFileInChunks",
  68. "signature": "(options: ReadFileInChunksOptions, callback: ReadFileInChunksCallback) => Promise<CallbackID>",
  69. "parameters": [
  70. {
  71. "name": "options",
  72. "docs": "",
  73. "type": "ReadFileInChunksOptions"
  74. },
  75. {
  76. "name": "callback",
  77. "docs": "",
  78. "type": "ReadFileInChunksCallback"
  79. }
  80. ],
  81. "returns": "Promise<string>",
  82. "tags": [
  83. {
  84. "name": "since",
  85. "text": "7.1.0"
  86. }
  87. ],
  88. "docs": "Read a file from disk, in chunks.\nNative only (not available in web).\nUse the callback to receive each read chunk.\nIf empty chunk is returned, it means file has been completely read.",
  89. "complexTypes": [
  90. "ReadFileInChunksOptions",
  91. "ReadFileInChunksCallback",
  92. "CallbackID"
  93. ],
  94. "slug": "readfileinchunks"
  95. },
  96. {
  97. "name": "writeFile",
  98. "signature": "(options: WriteFileOptions) => Promise<WriteFileResult>",
  99. "parameters": [
  100. {
  101. "name": "options",
  102. "docs": "",
  103. "type": "WriteFileOptions"
  104. }
  105. ],
  106. "returns": "Promise<WriteFileResult>",
  107. "tags": [
  108. {
  109. "name": "since",
  110. "text": "1.0.0"
  111. }
  112. ],
  113. "docs": "Write a file to disk in the specified location on device",
  114. "complexTypes": [
  115. "WriteFileResult",
  116. "WriteFileOptions"
  117. ],
  118. "slug": "writefile"
  119. },
  120. {
  121. "name": "appendFile",
  122. "signature": "(options: AppendFileOptions) => Promise<void>",
  123. "parameters": [
  124. {
  125. "name": "options",
  126. "docs": "",
  127. "type": "AppendFileOptions"
  128. }
  129. ],
  130. "returns": "Promise<void>",
  131. "tags": [
  132. {
  133. "name": "since",
  134. "text": "1.0.0"
  135. }
  136. ],
  137. "docs": "Append to a file on disk in the specified location on device",
  138. "complexTypes": [
  139. "AppendFileOptions"
  140. ],
  141. "slug": "appendfile"
  142. },
  143. {
  144. "name": "deleteFile",
  145. "signature": "(options: DeleteFileOptions) => Promise<void>",
  146. "parameters": [
  147. {
  148. "name": "options",
  149. "docs": "",
  150. "type": "DeleteFileOptions"
  151. }
  152. ],
  153. "returns": "Promise<void>",
  154. "tags": [
  155. {
  156. "name": "since",
  157. "text": "1.0.0"
  158. }
  159. ],
  160. "docs": "Delete a file from disk",
  161. "complexTypes": [
  162. "DeleteFileOptions"
  163. ],
  164. "slug": "deletefile"
  165. },
  166. {
  167. "name": "mkdir",
  168. "signature": "(options: MkdirOptions) => Promise<void>",
  169. "parameters": [
  170. {
  171. "name": "options",
  172. "docs": "",
  173. "type": "MkdirOptions"
  174. }
  175. ],
  176. "returns": "Promise<void>",
  177. "tags": [
  178. {
  179. "name": "since",
  180. "text": "1.0.0"
  181. }
  182. ],
  183. "docs": "Create a directory.",
  184. "complexTypes": [
  185. "MkdirOptions"
  186. ],
  187. "slug": "mkdir"
  188. },
  189. {
  190. "name": "rmdir",
  191. "signature": "(options: RmdirOptions) => Promise<void>",
  192. "parameters": [
  193. {
  194. "name": "options",
  195. "docs": "",
  196. "type": "RmdirOptions"
  197. }
  198. ],
  199. "returns": "Promise<void>",
  200. "tags": [
  201. {
  202. "name": "since",
  203. "text": "1.0.0"
  204. }
  205. ],
  206. "docs": "Remove a directory",
  207. "complexTypes": [
  208. "RmdirOptions"
  209. ],
  210. "slug": "rmdir"
  211. },
  212. {
  213. "name": "readdir",
  214. "signature": "(options: ReaddirOptions) => Promise<ReaddirResult>",
  215. "parameters": [
  216. {
  217. "name": "options",
  218. "docs": "",
  219. "type": "ReaddirOptions"
  220. }
  221. ],
  222. "returns": "Promise<ReaddirResult>",
  223. "tags": [
  224. {
  225. "name": "since",
  226. "text": "1.0.0"
  227. }
  228. ],
  229. "docs": "Return a list of files from the directory (not recursive)",
  230. "complexTypes": [
  231. "ReaddirResult",
  232. "ReaddirOptions"
  233. ],
  234. "slug": "readdir"
  235. },
  236. {
  237. "name": "getUri",
  238. "signature": "(options: GetUriOptions) => Promise<GetUriResult>",
  239. "parameters": [
  240. {
  241. "name": "options",
  242. "docs": "",
  243. "type": "GetUriOptions"
  244. }
  245. ],
  246. "returns": "Promise<GetUriResult>",
  247. "tags": [
  248. {
  249. "name": "since",
  250. "text": "1.0.0"
  251. }
  252. ],
  253. "docs": "Return full File URI for a path and directory",
  254. "complexTypes": [
  255. "GetUriResult",
  256. "GetUriOptions"
  257. ],
  258. "slug": "geturi"
  259. },
  260. {
  261. "name": "stat",
  262. "signature": "(options: StatOptions) => Promise<StatResult>",
  263. "parameters": [
  264. {
  265. "name": "options",
  266. "docs": "",
  267. "type": "StatOptions"
  268. }
  269. ],
  270. "returns": "Promise<FileInfo>",
  271. "tags": [
  272. {
  273. "name": "since",
  274. "text": "1.0.0"
  275. }
  276. ],
  277. "docs": "Return data about a file",
  278. "complexTypes": [
  279. "FileInfo",
  280. "StatOptions",
  281. "StatResult"
  282. ],
  283. "slug": "stat"
  284. },
  285. {
  286. "name": "rename",
  287. "signature": "(options: RenameOptions) => Promise<void>",
  288. "parameters": [
  289. {
  290. "name": "options",
  291. "docs": "",
  292. "type": "CopyOptions"
  293. }
  294. ],
  295. "returns": "Promise<void>",
  296. "tags": [
  297. {
  298. "name": "since",
  299. "text": "1.0.0"
  300. }
  301. ],
  302. "docs": "Rename a file or directory",
  303. "complexTypes": [
  304. "RenameOptions"
  305. ],
  306. "slug": "rename"
  307. },
  308. {
  309. "name": "copy",
  310. "signature": "(options: CopyOptions) => Promise<CopyResult>",
  311. "parameters": [
  312. {
  313. "name": "options",
  314. "docs": "",
  315. "type": "CopyOptions"
  316. }
  317. ],
  318. "returns": "Promise<CopyResult>",
  319. "tags": [
  320. {
  321. "name": "since",
  322. "text": "1.0.0"
  323. }
  324. ],
  325. "docs": "Copy a file or directory",
  326. "complexTypes": [
  327. "CopyResult",
  328. "CopyOptions"
  329. ],
  330. "slug": "copy"
  331. },
  332. {
  333. "name": "downloadFile",
  334. "signature": "(options: DownloadFileOptions) => Promise<DownloadFileResult>",
  335. "parameters": [
  336. {
  337. "name": "options",
  338. "docs": "",
  339. "type": "DownloadFileOptions"
  340. }
  341. ],
  342. "returns": "Promise<DownloadFileResult>",
  343. "tags": [
  344. {
  345. "name": "since",
  346. "text": "5.1.0"
  347. },
  348. {
  349. "name": "deprecated",
  350. "text": "Use the"
  351. },
  352. {
  353. "name": "capacitor",
  354. "text": "/file-transfer plugin instead."
  355. }
  356. ],
  357. "docs": "Perform a http request to a server and download the file to the specified destination.\n\nThis method has been deprecated since version 7.1.0.\nWe recommend using the @capacitor/file-transfer plugin instead, in conjunction with this plugin.",
  358. "complexTypes": [
  359. "DownloadFileResult",
  360. "DownloadFileOptions"
  361. ],
  362. "slug": "downloadfile"
  363. },
  364. {
  365. "name": "addListener",
  366. "signature": "(eventName: 'progress', listenerFunc: ProgressListener) => Promise<PluginListenerHandle>",
  367. "parameters": [
  368. {
  369. "name": "eventName",
  370. "docs": "",
  371. "type": "'progress'"
  372. },
  373. {
  374. "name": "listenerFunc",
  375. "docs": "",
  376. "type": "ProgressListener"
  377. }
  378. ],
  379. "returns": "Promise<PluginListenerHandle>",
  380. "tags": [
  381. {
  382. "name": "since",
  383. "text": "5.1.0"
  384. },
  385. {
  386. "name": "deprecated",
  387. "text": "Use the"
  388. },
  389. {
  390. "name": "capacitor",
  391. "text": "/file-transfer plugin instead."
  392. }
  393. ],
  394. "docs": "Add a listener to file download progress events.\n\nThis method has been deprecated since version 7.1.0.\nWe recommend using the @capacitor/file-transfer plugin instead, in conjunction with this plugin.",
  395. "complexTypes": [
  396. "PluginListenerHandle",
  397. "ProgressListener"
  398. ],
  399. "slug": "addlistenerprogress-"
  400. },
  401. {
  402. "name": "removeAllListeners",
  403. "signature": "() => Promise<void>",
  404. "parameters": [],
  405. "returns": "Promise<void>",
  406. "tags": [
  407. {
  408. "name": "since",
  409. "text": "5.2.0"
  410. },
  411. {
  412. "name": "deprecated",
  413. "text": "Use the"
  414. },
  415. {
  416. "name": "capacitor",
  417. "text": "/file-transfer plugin instead."
  418. }
  419. ],
  420. "docs": "Remove all listeners for this plugin.\n\nThis method has been deprecated since version 7.1.0.\nWe recommend using the @capacitor/file-transfer plugin instead, in conjunction with this plugin.",
  421. "complexTypes": [],
  422. "slug": "removealllisteners"
  423. }
  424. ],
  425. "properties": []
  426. },
  427. "interfaces": [
  428. {
  429. "name": "PermissionStatus",
  430. "slug": "permissionstatus",
  431. "docs": "",
  432. "tags": [],
  433. "methods": [],
  434. "properties": [
  435. {
  436. "name": "publicStorage",
  437. "tags": [],
  438. "docs": "",
  439. "complexTypes": [
  440. "PermissionState"
  441. ],
  442. "type": "PermissionState"
  443. }
  444. ]
  445. },
  446. {
  447. "name": "ReadFileResult",
  448. "slug": "readfileresult",
  449. "docs": "",
  450. "tags": [],
  451. "methods": [],
  452. "properties": [
  453. {
  454. "name": "data",
  455. "tags": [
  456. {
  457. "text": "1.0.0",
  458. "name": "since"
  459. }
  460. ],
  461. "docs": "The representation of the data contained in the file\n\nNote: Blob is only available on Web. On native, the data is returned as a string.",
  462. "complexTypes": [
  463. "Blob"
  464. ],
  465. "type": "string | Blob"
  466. }
  467. ]
  468. },
  469. {
  470. "name": "ReadFileOptions",
  471. "slug": "readfileoptions",
  472. "docs": "",
  473. "tags": [],
  474. "methods": [],
  475. "properties": [
  476. {
  477. "name": "path",
  478. "tags": [
  479. {
  480. "text": "1.0.0",
  481. "name": "since"
  482. }
  483. ],
  484. "docs": "The path of the file to read",
  485. "complexTypes": [],
  486. "type": "string"
  487. },
  488. {
  489. "name": "directory",
  490. "tags": [
  491. {
  492. "text": "1.0.0",
  493. "name": "since"
  494. }
  495. ],
  496. "docs": "The `Directory` to read the file from",
  497. "complexTypes": [
  498. "Directory"
  499. ],
  500. "type": "Directory"
  501. },
  502. {
  503. "name": "encoding",
  504. "tags": [
  505. {
  506. "text": "1.0.0",
  507. "name": "since"
  508. }
  509. ],
  510. "docs": "The encoding to read the file in, if not provided, data\nis read as binary and returned as base64 encoded.\n\nPass Encoding.UTF8 to read data as string",
  511. "complexTypes": [
  512. "Encoding"
  513. ],
  514. "type": "Encoding"
  515. }
  516. ]
  517. },
  518. {
  519. "name": "ReadFileInChunksOptions",
  520. "slug": "readfileinchunksoptions",
  521. "docs": "",
  522. "tags": [],
  523. "methods": [],
  524. "properties": [
  525. {
  526. "name": "chunkSize",
  527. "tags": [
  528. {
  529. "text": "7.1.0",
  530. "name": "since"
  531. }
  532. ],
  533. "docs": "Size of the chunks in bytes.",
  534. "complexTypes": [],
  535. "type": "number"
  536. }
  537. ]
  538. },
  539. {
  540. "name": "WriteFileResult",
  541. "slug": "writefileresult",
  542. "docs": "",
  543. "tags": [],
  544. "methods": [],
  545. "properties": [
  546. {
  547. "name": "uri",
  548. "tags": [
  549. {
  550. "text": "1.0.0",
  551. "name": "since"
  552. }
  553. ],
  554. "docs": "The uri where the file was written into",
  555. "complexTypes": [],
  556. "type": "string"
  557. }
  558. ]
  559. },
  560. {
  561. "name": "WriteFileOptions",
  562. "slug": "writefileoptions",
  563. "docs": "",
  564. "tags": [],
  565. "methods": [],
  566. "properties": [
  567. {
  568. "name": "path",
  569. "tags": [
  570. {
  571. "text": "1.0.0",
  572. "name": "since"
  573. }
  574. ],
  575. "docs": "The path of the file to write",
  576. "complexTypes": [],
  577. "type": "string"
  578. },
  579. {
  580. "name": "data",
  581. "tags": [
  582. {
  583. "text": "1.0.0",
  584. "name": "since"
  585. }
  586. ],
  587. "docs": "The data to write\n\nNote: Blob data is only supported on Web.",
  588. "complexTypes": [
  589. "Blob"
  590. ],
  591. "type": "string | Blob"
  592. },
  593. {
  594. "name": "directory",
  595. "tags": [
  596. {
  597. "text": "1.0.0",
  598. "name": "since"
  599. }
  600. ],
  601. "docs": "The `Directory` to store the file in",
  602. "complexTypes": [
  603. "Directory"
  604. ],
  605. "type": "Directory"
  606. },
  607. {
  608. "name": "encoding",
  609. "tags": [
  610. {
  611. "text": "1.0.0",
  612. "name": "since"
  613. }
  614. ],
  615. "docs": "The encoding to write the file in. If not provided, data\nis written as base64 encoded.\n\nPass Encoding.UTF8 to write data as string",
  616. "complexTypes": [
  617. "Encoding"
  618. ],
  619. "type": "Encoding"
  620. },
  621. {
  622. "name": "recursive",
  623. "tags": [
  624. {
  625. "text": "false",
  626. "name": "default"
  627. },
  628. {
  629. "text": "1.0.0",
  630. "name": "since"
  631. }
  632. ],
  633. "docs": "Whether to create any missing parent directories.",
  634. "complexTypes": [],
  635. "type": "boolean | undefined"
  636. }
  637. ]
  638. },
  639. {
  640. "name": "AppendFileOptions",
  641. "slug": "appendfileoptions",
  642. "docs": "",
  643. "tags": [],
  644. "methods": [],
  645. "properties": [
  646. {
  647. "name": "path",
  648. "tags": [
  649. {
  650. "text": "1.0.0",
  651. "name": "since"
  652. }
  653. ],
  654. "docs": "The path of the file to append",
  655. "complexTypes": [],
  656. "type": "string"
  657. },
  658. {
  659. "name": "data",
  660. "tags": [
  661. {
  662. "text": "1.0.0",
  663. "name": "since"
  664. }
  665. ],
  666. "docs": "The data to write",
  667. "complexTypes": [],
  668. "type": "string"
  669. },
  670. {
  671. "name": "directory",
  672. "tags": [
  673. {
  674. "text": "1.0.0",
  675. "name": "since"
  676. }
  677. ],
  678. "docs": "The `Directory` to store the file in",
  679. "complexTypes": [
  680. "Directory"
  681. ],
  682. "type": "Directory"
  683. },
  684. {
  685. "name": "encoding",
  686. "tags": [
  687. {
  688. "text": "1.0.0",
  689. "name": "since"
  690. }
  691. ],
  692. "docs": "The encoding to write the file in. If not provided, data\nis written as base64 encoded.\n\nPass Encoding.UTF8 to write data as string",
  693. "complexTypes": [
  694. "Encoding"
  695. ],
  696. "type": "Encoding"
  697. }
  698. ]
  699. },
  700. {
  701. "name": "DeleteFileOptions",
  702. "slug": "deletefileoptions",
  703. "docs": "",
  704. "tags": [],
  705. "methods": [],
  706. "properties": [
  707. {
  708. "name": "path",
  709. "tags": [
  710. {
  711. "text": "1.0.0",
  712. "name": "since"
  713. }
  714. ],
  715. "docs": "The path of the file to delete",
  716. "complexTypes": [],
  717. "type": "string"
  718. },
  719. {
  720. "name": "directory",
  721. "tags": [
  722. {
  723. "text": "1.0.0",
  724. "name": "since"
  725. }
  726. ],
  727. "docs": "The `Directory` to delete the file from",
  728. "complexTypes": [
  729. "Directory"
  730. ],
  731. "type": "Directory"
  732. }
  733. ]
  734. },
  735. {
  736. "name": "MkdirOptions",
  737. "slug": "mkdiroptions",
  738. "docs": "",
  739. "tags": [],
  740. "methods": [],
  741. "properties": [
  742. {
  743. "name": "path",
  744. "tags": [
  745. {
  746. "text": "1.0.0",
  747. "name": "since"
  748. }
  749. ],
  750. "docs": "The path of the new directory",
  751. "complexTypes": [],
  752. "type": "string"
  753. },
  754. {
  755. "name": "directory",
  756. "tags": [
  757. {
  758. "text": "1.0.0",
  759. "name": "since"
  760. }
  761. ],
  762. "docs": "The `Directory` to make the new directory in",
  763. "complexTypes": [
  764. "Directory"
  765. ],
  766. "type": "Directory"
  767. },
  768. {
  769. "name": "recursive",
  770. "tags": [
  771. {
  772. "text": "false",
  773. "name": "default"
  774. },
  775. {
  776. "text": "1.0.0",
  777. "name": "since"
  778. }
  779. ],
  780. "docs": "Whether to create any missing parent directories as well.",
  781. "complexTypes": [],
  782. "type": "boolean | undefined"
  783. }
  784. ]
  785. },
  786. {
  787. "name": "RmdirOptions",
  788. "slug": "rmdiroptions",
  789. "docs": "",
  790. "tags": [],
  791. "methods": [],
  792. "properties": [
  793. {
  794. "name": "path",
  795. "tags": [
  796. {
  797. "text": "1.0.0",
  798. "name": "since"
  799. }
  800. ],
  801. "docs": "The path of the directory to remove",
  802. "complexTypes": [],
  803. "type": "string"
  804. },
  805. {
  806. "name": "directory",
  807. "tags": [
  808. {
  809. "text": "1.0.0",
  810. "name": "since"
  811. }
  812. ],
  813. "docs": "The `Directory` to remove the directory from",
  814. "complexTypes": [
  815. "Directory"
  816. ],
  817. "type": "Directory"
  818. },
  819. {
  820. "name": "recursive",
  821. "tags": [
  822. {
  823. "text": "false",
  824. "name": "default"
  825. },
  826. {
  827. "text": "1.0.0",
  828. "name": "since"
  829. }
  830. ],
  831. "docs": "Whether to recursively remove the contents of the directory",
  832. "complexTypes": [],
  833. "type": "boolean | undefined"
  834. }
  835. ]
  836. },
  837. {
  838. "name": "ReaddirResult",
  839. "slug": "readdirresult",
  840. "docs": "",
  841. "tags": [],
  842. "methods": [],
  843. "properties": [
  844. {
  845. "name": "files",
  846. "tags": [
  847. {
  848. "text": "1.0.0",
  849. "name": "since"
  850. }
  851. ],
  852. "docs": "List of files and directories inside the directory",
  853. "complexTypes": [
  854. "FileInfo"
  855. ],
  856. "type": "FileInfo[]"
  857. }
  858. ]
  859. },
  860. {
  861. "name": "FileInfo",
  862. "slug": "fileinfo",
  863. "docs": "",
  864. "tags": [],
  865. "methods": [],
  866. "properties": [
  867. {
  868. "name": "name",
  869. "tags": [
  870. {
  871. "text": "7.1.0",
  872. "name": "since"
  873. }
  874. ],
  875. "docs": "Name of the file or directory.",
  876. "complexTypes": [],
  877. "type": "string"
  878. },
  879. {
  880. "name": "type",
  881. "tags": [
  882. {
  883. "text": "4.0.0",
  884. "name": "since"
  885. }
  886. ],
  887. "docs": "Type of the file.",
  888. "complexTypes": [],
  889. "type": "'file' | 'directory'"
  890. },
  891. {
  892. "name": "size",
  893. "tags": [
  894. {
  895. "text": "4.0.0",
  896. "name": "since"
  897. }
  898. ],
  899. "docs": "Size of the file in bytes.",
  900. "complexTypes": [],
  901. "type": "number"
  902. },
  903. {
  904. "name": "ctime",
  905. "tags": [
  906. {
  907. "text": "7.1.0",
  908. "name": "since"
  909. }
  910. ],
  911. "docs": "Time of creation in milliseconds.\n\nIt's not available on Android 7 and older devices.",
  912. "complexTypes": [],
  913. "type": "number | undefined"
  914. },
  915. {
  916. "name": "mtime",
  917. "tags": [
  918. {
  919. "text": "7.1.0",
  920. "name": "since"
  921. }
  922. ],
  923. "docs": "Time of last modification in milliseconds.",
  924. "complexTypes": [],
  925. "type": "number"
  926. },
  927. {
  928. "name": "uri",
  929. "tags": [
  930. {
  931. "text": "4.0.0",
  932. "name": "since"
  933. }
  934. ],
  935. "docs": "The uri of the file.",
  936. "complexTypes": [],
  937. "type": "string"
  938. }
  939. ]
  940. },
  941. {
  942. "name": "ReaddirOptions",
  943. "slug": "readdiroptions",
  944. "docs": "",
  945. "tags": [],
  946. "methods": [],
  947. "properties": [
  948. {
  949. "name": "path",
  950. "tags": [
  951. {
  952. "text": "1.0.0",
  953. "name": "since"
  954. }
  955. ],
  956. "docs": "The path of the directory to read",
  957. "complexTypes": [],
  958. "type": "string"
  959. },
  960. {
  961. "name": "directory",
  962. "tags": [
  963. {
  964. "text": "1.0.0",
  965. "name": "since"
  966. }
  967. ],
  968. "docs": "The `Directory` to list files from",
  969. "complexTypes": [
  970. "Directory"
  971. ],
  972. "type": "Directory"
  973. }
  974. ]
  975. },
  976. {
  977. "name": "GetUriResult",
  978. "slug": "geturiresult",
  979. "docs": "",
  980. "tags": [],
  981. "methods": [],
  982. "properties": [
  983. {
  984. "name": "uri",
  985. "tags": [
  986. {
  987. "text": "1.0.0",
  988. "name": "since"
  989. }
  990. ],
  991. "docs": "The uri of the file",
  992. "complexTypes": [],
  993. "type": "string"
  994. }
  995. ]
  996. },
  997. {
  998. "name": "GetUriOptions",
  999. "slug": "geturioptions",
  1000. "docs": "",
  1001. "tags": [],
  1002. "methods": [],
  1003. "properties": [
  1004. {
  1005. "name": "path",
  1006. "tags": [
  1007. {
  1008. "text": "1.0.0",
  1009. "name": "since"
  1010. }
  1011. ],
  1012. "docs": "The path of the file to get the URI for",
  1013. "complexTypes": [],
  1014. "type": "string"
  1015. },
  1016. {
  1017. "name": "directory",
  1018. "tags": [
  1019. {
  1020. "text": "1.0.0",
  1021. "name": "since"
  1022. }
  1023. ],
  1024. "docs": "The `Directory` to get the file under",
  1025. "complexTypes": [
  1026. "Directory"
  1027. ],
  1028. "type": "Directory"
  1029. }
  1030. ]
  1031. },
  1032. {
  1033. "name": "StatOptions",
  1034. "slug": "statoptions",
  1035. "docs": "",
  1036. "tags": [],
  1037. "methods": [],
  1038. "properties": [
  1039. {
  1040. "name": "path",
  1041. "tags": [
  1042. {
  1043. "text": "1.0.0",
  1044. "name": "since"
  1045. }
  1046. ],
  1047. "docs": "The path of the file to get data about",
  1048. "complexTypes": [],
  1049. "type": "string"
  1050. },
  1051. {
  1052. "name": "directory",
  1053. "tags": [
  1054. {
  1055. "text": "1.0.0",
  1056. "name": "since"
  1057. }
  1058. ],
  1059. "docs": "The `Directory` to get the file under",
  1060. "complexTypes": [
  1061. "Directory"
  1062. ],
  1063. "type": "Directory"
  1064. }
  1065. ]
  1066. },
  1067. {
  1068. "name": "CopyOptions",
  1069. "slug": "copyoptions",
  1070. "docs": "",
  1071. "tags": [],
  1072. "methods": [],
  1073. "properties": [
  1074. {
  1075. "name": "from",
  1076. "tags": [
  1077. {
  1078. "text": "1.0.0",
  1079. "name": "since"
  1080. }
  1081. ],
  1082. "docs": "The existing file or directory",
  1083. "complexTypes": [],
  1084. "type": "string"
  1085. },
  1086. {
  1087. "name": "to",
  1088. "tags": [
  1089. {
  1090. "text": "1.0.0",
  1091. "name": "since"
  1092. }
  1093. ],
  1094. "docs": "The destination file or directory",
  1095. "complexTypes": [],
  1096. "type": "string"
  1097. },
  1098. {
  1099. "name": "directory",
  1100. "tags": [
  1101. {
  1102. "text": "1.0.0",
  1103. "name": "since"
  1104. }
  1105. ],
  1106. "docs": "The `Directory` containing the existing file or directory",
  1107. "complexTypes": [
  1108. "Directory"
  1109. ],
  1110. "type": "Directory"
  1111. },
  1112. {
  1113. "name": "toDirectory",
  1114. "tags": [
  1115. {
  1116. "text": "1.0.0",
  1117. "name": "since"
  1118. }
  1119. ],
  1120. "docs": "The `Directory` containing the destination file or directory. If not supplied will use the 'directory'\nparameter as the destination",
  1121. "complexTypes": [
  1122. "Directory"
  1123. ],
  1124. "type": "Directory"
  1125. }
  1126. ]
  1127. },
  1128. {
  1129. "name": "CopyResult",
  1130. "slug": "copyresult",
  1131. "docs": "",
  1132. "tags": [],
  1133. "methods": [],
  1134. "properties": [
  1135. {
  1136. "name": "uri",
  1137. "tags": [
  1138. {
  1139. "text": "4.0.0",
  1140. "name": "since"
  1141. }
  1142. ],
  1143. "docs": "The uri where the file was copied into",
  1144. "complexTypes": [],
  1145. "type": "string"
  1146. }
  1147. ]
  1148. },
  1149. {
  1150. "name": "DownloadFileResult",
  1151. "slug": "downloadfileresult",
  1152. "docs": "",
  1153. "tags": [],
  1154. "methods": [],
  1155. "properties": [
  1156. {
  1157. "name": "path",
  1158. "tags": [
  1159. {
  1160. "text": "5.1.0",
  1161. "name": "since"
  1162. }
  1163. ],
  1164. "docs": "The path the file was downloaded to.",
  1165. "complexTypes": [],
  1166. "type": "string | undefined"
  1167. },
  1168. {
  1169. "name": "blob",
  1170. "tags": [
  1171. {
  1172. "text": "5.1.0",
  1173. "name": "since"
  1174. }
  1175. ],
  1176. "docs": "The blob data of the downloaded file.\nThis is only available on web.",
  1177. "complexTypes": [
  1178. "Blob"
  1179. ],
  1180. "type": "Blob"
  1181. }
  1182. ]
  1183. },
  1184. {
  1185. "name": "DownloadFileOptions",
  1186. "slug": "downloadfileoptions",
  1187. "docs": "",
  1188. "tags": [],
  1189. "methods": [],
  1190. "properties": [
  1191. {
  1192. "name": "path",
  1193. "tags": [
  1194. {
  1195. "text": "5.1.0",
  1196. "name": "since"
  1197. }
  1198. ],
  1199. "docs": "The path the downloaded file should be moved to.",
  1200. "complexTypes": [],
  1201. "type": "string"
  1202. },
  1203. {
  1204. "name": "directory",
  1205. "tags": [
  1206. {
  1207. "text": "5.1.0",
  1208. "name": "since"
  1209. }
  1210. ],
  1211. "docs": "The directory to write the file to.\nIf this option is used, filePath can be a relative path rather than absolute.\nThe default is the `DATA` directory.",
  1212. "complexTypes": [
  1213. "Directory"
  1214. ],
  1215. "type": "Directory"
  1216. },
  1217. {
  1218. "name": "progress",
  1219. "tags": [
  1220. {
  1221. "text": "5.1.0",
  1222. "name": "since"
  1223. }
  1224. ],
  1225. "docs": "An optional listener function to receive downloaded progress events.\nIf this option is used, progress event should be dispatched on every chunk received.\nChunks are throttled to every 100ms on Android/iOS to avoid slowdowns.",
  1226. "complexTypes": [],
  1227. "type": "boolean | undefined"
  1228. },
  1229. {
  1230. "name": "recursive",
  1231. "tags": [
  1232. {
  1233. "text": "false",
  1234. "name": "default"
  1235. },
  1236. {
  1237. "text": "5.1.2",
  1238. "name": "since"
  1239. }
  1240. ],
  1241. "docs": "Whether to create any missing parent directories.",
  1242. "complexTypes": [],
  1243. "type": "boolean | undefined"
  1244. }
  1245. ]
  1246. },
  1247. {
  1248. "name": "PluginListenerHandle",
  1249. "slug": "pluginlistenerhandle",
  1250. "docs": "",
  1251. "tags": [],
  1252. "methods": [],
  1253. "properties": [
  1254. {
  1255. "name": "remove",
  1256. "tags": [],
  1257. "docs": "",
  1258. "complexTypes": [],
  1259. "type": "() => Promise<void>"
  1260. }
  1261. ]
  1262. },
  1263. {
  1264. "name": "ProgressStatus",
  1265. "slug": "progressstatus",
  1266. "docs": "",
  1267. "tags": [],
  1268. "methods": [],
  1269. "properties": [
  1270. {
  1271. "name": "url",
  1272. "tags": [
  1273. {
  1274. "text": "5.1.0",
  1275. "name": "since"
  1276. }
  1277. ],
  1278. "docs": "The url of the file being downloaded.",
  1279. "complexTypes": [],
  1280. "type": "string"
  1281. },
  1282. {
  1283. "name": "bytes",
  1284. "tags": [
  1285. {
  1286. "text": "5.1.0",
  1287. "name": "since"
  1288. }
  1289. ],
  1290. "docs": "The number of bytes downloaded so far.",
  1291. "complexTypes": [],
  1292. "type": "number"
  1293. },
  1294. {
  1295. "name": "contentLength",
  1296. "tags": [
  1297. {
  1298. "text": "5.1.0",
  1299. "name": "since"
  1300. }
  1301. ],
  1302. "docs": "The total number of bytes to download for this file.",
  1303. "complexTypes": [],
  1304. "type": "number"
  1305. }
  1306. ]
  1307. }
  1308. ],
  1309. "enums": [
  1310. {
  1311. "name": "Directory",
  1312. "slug": "directory",
  1313. "members": [
  1314. {
  1315. "name": "Documents",
  1316. "value": "'DOCUMENTS'",
  1317. "tags": [
  1318. {
  1319. "text": "1.0.0",
  1320. "name": "since"
  1321. }
  1322. ],
  1323. "docs": "The Documents directory.\nOn iOS it's the app's documents directory.\nUse this directory to store user-generated content.\nOn Android it's the Public Documents folder, so it's accessible from other apps.\nIt's not accessible on Android 10 unless the app enables legacy External Storage\nby adding `android:requestLegacyExternalStorage=\"true\"` in the `application` tag\nin the `AndroidManifest.xml`.\nOn Android 11 or newer the app can only access the files/folders the app created."
  1324. },
  1325. {
  1326. "name": "Data",
  1327. "value": "'DATA'",
  1328. "tags": [
  1329. {
  1330. "text": "1.0.0",
  1331. "name": "since"
  1332. }
  1333. ],
  1334. "docs": "The Data directory.\nOn iOS it will use the Documents directory.\nOn Android it's the directory holding application files.\nFiles will be deleted when the application is uninstalled."
  1335. },
  1336. {
  1337. "name": "Library",
  1338. "value": "'LIBRARY'",
  1339. "tags": [
  1340. {
  1341. "text": "1.1.0",
  1342. "name": "since"
  1343. }
  1344. ],
  1345. "docs": "The Library directory.\nOn iOS it will use the Library directory.\nOn Android it's the directory holding application files.\nFiles will be deleted when the application is uninstalled."
  1346. },
  1347. {
  1348. "name": "Cache",
  1349. "value": "'CACHE'",
  1350. "tags": [
  1351. {
  1352. "text": "1.0.0",
  1353. "name": "since"
  1354. }
  1355. ],
  1356. "docs": "The Cache directory.\nCan be deleted in cases of low memory, so use this directory to write app-specific files.\nthat your app can re-create easily."
  1357. },
  1358. {
  1359. "name": "External",
  1360. "value": "'EXTERNAL'",
  1361. "tags": [
  1362. {
  1363. "text": "1.0.0",
  1364. "name": "since"
  1365. }
  1366. ],
  1367. "docs": "The external directory.\nOn iOS it will use the Documents directory.\nOn Android it's the directory on the primary shared/external\nstorage device where the application can place persistent files it owns.\nThese files are internal to the applications, and not typically visible\nto the user as media.\nFiles will be deleted when the application is uninstalled."
  1368. },
  1369. {
  1370. "name": "ExternalStorage",
  1371. "value": "'EXTERNAL_STORAGE'",
  1372. "tags": [
  1373. {
  1374. "text": "1.0.0",
  1375. "name": "since"
  1376. }
  1377. ],
  1378. "docs": "The external storage directory.\nOn iOS it will use the Documents directory.\nOn Android it's the primary shared/external storage directory.\nIt's not accessible on Android 10 unless the app enables legacy External Storage\nby adding `android:requestLegacyExternalStorage=\"true\"` in the `application` tag\nin the `AndroidManifest.xml`.\nIt's not accessible on Android 11 or newer."
  1379. },
  1380. {
  1381. "name": "ExternalCache",
  1382. "value": "'EXTERNAL_CACHE'",
  1383. "tags": [
  1384. {
  1385. "text": "7.1.0",
  1386. "name": "since"
  1387. }
  1388. ],
  1389. "docs": "The external cache directory.\nOn iOS it will use the Documents directory.\nOn Android it's the primary shared/external cache."
  1390. },
  1391. {
  1392. "name": "LibraryNoCloud",
  1393. "value": "'LIBRARY_NO_CLOUD'",
  1394. "tags": [
  1395. {
  1396. "text": "7.1.0",
  1397. "name": "since"
  1398. }
  1399. ],
  1400. "docs": "The Library directory without cloud backup. Used in iOS.\nOn Android it's the directory holding application files."
  1401. },
  1402. {
  1403. "name": "Temporary",
  1404. "value": "'TEMPORARY'",
  1405. "tags": [
  1406. {
  1407. "text": "7.1.0",
  1408. "name": "since"
  1409. }
  1410. ],
  1411. "docs": "A temporary directory for iOS.\nOn Android it's the directory holding the application cache."
  1412. }
  1413. ]
  1414. },
  1415. {
  1416. "name": "Encoding",
  1417. "slug": "encoding",
  1418. "members": [
  1419. {
  1420. "name": "UTF8",
  1421. "value": "'utf8'",
  1422. "tags": [
  1423. {
  1424. "text": "1.0.0",
  1425. "name": "since"
  1426. }
  1427. ],
  1428. "docs": "Eight-bit UCS Transformation Format"
  1429. },
  1430. {
  1431. "name": "ASCII",
  1432. "value": "'ascii'",
  1433. "tags": [
  1434. {
  1435. "text": "1.0.0",
  1436. "name": "since"
  1437. }
  1438. ],
  1439. "docs": "Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the\nUnicode character set\nThis encoding is only supported on Android."
  1440. },
  1441. {
  1442. "name": "UTF16",
  1443. "value": "'utf16'",
  1444. "tags": [
  1445. {
  1446. "text": "1.0.0",
  1447. "name": "since"
  1448. }
  1449. ],
  1450. "docs": "Sixteen-bit UCS Transformation Format, byte order identified by an\noptional byte-order mark\nThis encoding is only supported on Android."
  1451. }
  1452. ]
  1453. }
  1454. ],
  1455. "typeAliases": [
  1456. {
  1457. "name": "PermissionState",
  1458. "slug": "permissionstate",
  1459. "docs": "",
  1460. "types": [
  1461. {
  1462. "text": "'prompt'",
  1463. "complexTypes": []
  1464. },
  1465. {
  1466. "text": "'prompt-with-rationale'",
  1467. "complexTypes": []
  1468. },
  1469. {
  1470. "text": "'granted'",
  1471. "complexTypes": []
  1472. },
  1473. {
  1474. "text": "'denied'",
  1475. "complexTypes": []
  1476. }
  1477. ]
  1478. },
  1479. {
  1480. "name": "ReadFileInChunksCallback",
  1481. "slug": "readfileinchunkscallback",
  1482. "docs": "Callback for receiving chunks read from a file, or error if something went wrong.",
  1483. "types": [
  1484. {
  1485. "text": "(chunkRead: ReadFileResult | null, err?: any): void",
  1486. "complexTypes": [
  1487. "ReadFileResult"
  1488. ]
  1489. }
  1490. ]
  1491. },
  1492. {
  1493. "name": "CallbackID",
  1494. "slug": "callbackid",
  1495. "docs": "",
  1496. "types": [
  1497. {
  1498. "text": "string",
  1499. "complexTypes": []
  1500. }
  1501. ]
  1502. },
  1503. {
  1504. "name": "StatResult",
  1505. "slug": "statresult",
  1506. "docs": "",
  1507. "types": [
  1508. {
  1509. "text": "FileInfo",
  1510. "complexTypes": [
  1511. "FileInfo"
  1512. ]
  1513. }
  1514. ]
  1515. },
  1516. {
  1517. "name": "RenameOptions",
  1518. "slug": "renameoptions",
  1519. "docs": "",
  1520. "types": [
  1521. {
  1522. "text": "CopyOptions",
  1523. "complexTypes": [
  1524. "CopyOptions"
  1525. ]
  1526. }
  1527. ]
  1528. },
  1529. {
  1530. "name": "ProgressListener",
  1531. "slug": "progresslistener",
  1532. "docs": "A listener function that receives progress events.",
  1533. "types": [
  1534. {
  1535. "text": "(progress: ProgressStatus): void",
  1536. "complexTypes": [
  1537. "ProgressStatus"
  1538. ]
  1539. }
  1540. ]
  1541. }
  1542. ],
  1543. "pluginConfigs": []
  1544. }