feat(secure-storage): add keys() and clear() methods (#1281)

This commit is contained in:
Odd Christer Brovig 2017-03-30 01:10:49 +02:00 committed by Ibby Hadeed
parent 3b9e7253db
commit 8b31d72139

View File

@ -41,6 +41,26 @@ export class SecureStorageObject {
}) })
remove(reference: string): Promise<any> { return; } remove(reference: string): Promise<any> { return; }
/**
* Get all references from the storage.
* @returns {Promise<any>}
*/
@CordovaInstance({
callbackOrder: 'reverse'
})
keys(): Promise<any> { return; }
/**
* Clear all references from the storage.
* @returns {Promise<any>}
*/
@CordovaInstance({
callbackOrder: 'reverse'
})
clear(): Promise<any> { return; }
} }
/** /**