nx: document incomplete sync API
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/783/head
parent
e4db8e8089
commit
1602173ce3
|
@ -109,6 +109,13 @@ export type NativeX = {
|
||||||
*/
|
*/
|
||||||
playTouchSound: () => void;
|
playTouchSound: () => void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make a native toast to the user.
|
||||||
|
* @param message Message to show
|
||||||
|
* @param long Whether the toast should be shown for a long time
|
||||||
|
*/
|
||||||
|
toast: (message: string, long?: boolean) => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start downloading a file from a given URL.
|
* Start downloading a file from a given URL.
|
||||||
* @param url URL to download from
|
* @param url URL to download from
|
||||||
|
@ -144,10 +151,22 @@ export type NativeX = {
|
||||||
*/
|
*/
|
||||||
configSetLocalFolders: (json: string) => void;
|
configSetLocalFolders: (json: string) => void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start the login process
|
||||||
|
* @param baseUrl Base URL of the Nextcloud instance
|
||||||
|
* @param loginFlowUrl URL to start the login flow
|
||||||
|
*/
|
||||||
|
login: (baseUrl: string, loginFlowUrl: string) => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log out from Nextcloud and delete the tokens.
|
* Log out from Nextcloud and delete the tokens.
|
||||||
*/
|
*/
|
||||||
logout: () => void;
|
logout: () => void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reload the app.
|
||||||
|
*/
|
||||||
|
reload: () => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Setting of whether a local folder is enabled */
|
/** Setting of whether a local folder is enabled */
|
||||||
|
|
Loading…
Reference in New Issue