mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Improvements on documentation (#340)
* Improvements on documentation and some refactor * ts | js -> typescript (docs)
This commit is contained in:
committed by
Ibrahim Hadeed
parent
d4d30ab9c9
commit
7952f9ef60
@@ -112,24 +112,20 @@ export interface FileTransferError {
|
||||
* This plugin allows you to upload and download files.
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { Transfer } from 'ionic-native';
|
||||
*
|
||||
* Create instance:
|
||||
* ```ts
|
||||
*
|
||||
* // Create instance:
|
||||
* const fileTransfer = new Transfer();
|
||||
* ```
|
||||
*
|
||||
* Upload a file:
|
||||
* ```ts
|
||||
* // Upload a file:
|
||||
* fileTransfer.upload(..).then(..).catch(..);
|
||||
* ```
|
||||
*
|
||||
* Download a file:
|
||||
* ```ts
|
||||
* // Download a file:
|
||||
* fileTransfer.download(..).then(..).catch(..);
|
||||
* ```
|
||||
*
|
||||
* Abort active transfer:
|
||||
* ```ts
|
||||
* // Abort active transfer:
|
||||
* fileTransfer.abort();
|
||||
* ```
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user