GetStorageOptions |
Stage模型无对应接口 |
Storage接口功能使用Prefereces接口来代替,接口入参已经重新设计 |
SetStorageOptions |
Stage模型无对应接口 |
Storage接口功能使用Prefereces接口来代替,接口入参已经重新设计 |
ClearStorageOptions |
Stage模型无对应接口 |
Storage接口功能使用Prefereces接口来代替,接口入参已经重新设计 |
DeleteStorageOptions |
Stage模型无对应接口 |
Storage接口功能使用Prefereces接口来代替,接口入参已经重新设计 |
static get(options: GetStorageOptions): void; |
@ohos.data.preferences.d.ts |
get(key: string, defValue: ValueType, callback: AsyncCallback<ValueType>): void; get(key: string, defValue: ValueType): Promise<ValueType>; |
static set(options: SetStorageOptions): void; |
@ohos.data.preferences.d.ts |
put(key: string, value: ValueType, callback: AsyncCallback<void>): void; put(key: string, value: ValueType): Promise<void>; |
static clear(options?: ClearStorageOptions): void; |
@ohos.data.preferences.d.ts |
clear(callback: AsyncCallback<void>): void; clear(): Promise<void>; |
static delete(options: DeleteStorageOptions): void; |
@ohos.data.preferences.d.ts |
delete(key: string, callback: AsyncCallback<void>): void; delete(key: string): Promise<void>; |