-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a5587a
commit 1a99729
Showing
2 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...id/src/paper/java/com/reactnativecommunity/asyncstorage/NativeAsyncStorageModuleSpec.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
/** | ||
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). | ||
* | ||
* Do not edit this file as changes may cause incorrect behavior and will be lost | ||
* once the code is regenerated. | ||
* | ||
* @generated by codegen project: GenerateModuleJavaSpec.js | ||
* | ||
* @nolint | ||
*/ | ||
|
||
package com.reactnativecommunity.asyncstorage; | ||
|
||
import com.facebook.proguard.annotations.DoNotStrip; | ||
import com.facebook.react.bridge.Callback; | ||
import com.facebook.react.bridge.ReactApplicationContext; | ||
import com.facebook.react.bridge.ReactContextBaseJavaModule; | ||
import com.facebook.react.bridge.ReactMethod; | ||
import com.facebook.react.bridge.ReactModuleWithSpec; | ||
import com.facebook.react.bridge.ReadableArray; | ||
import com.facebook.react.turbomodule.core.interfaces.TurboModule; | ||
|
||
public abstract class NativeAsyncStorageModuleSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule { | ||
public NativeAsyncStorageModuleSpec(ReactApplicationContext reactContext) { | ||
super(reactContext); | ||
} | ||
|
||
@ReactMethod | ||
@DoNotStrip | ||
public abstract void multiGet(ReadableArray keys, Callback callback); | ||
|
||
@ReactMethod | ||
@DoNotStrip | ||
public abstract void multiSet(ReadableArray kvPairs, Callback callback); | ||
|
||
@ReactMethod | ||
@DoNotStrip | ||
public abstract void multiRemove(ReadableArray keys, Callback callback); | ||
|
||
@ReactMethod | ||
@DoNotStrip | ||
public abstract void multiMerge(ReadableArray kvPairs, Callback callback); | ||
|
||
@ReactMethod | ||
@DoNotStrip | ||
public abstract void getAllKeys(Callback callback); | ||
|
||
@ReactMethod | ||
@DoNotStrip | ||
public abstract void clear(Callback callback); | ||
} |