-
-
Notifications
You must be signed in to change notification settings - Fork 464
Expand file tree
/
Copy pathNativeDocumentViewerSpec.java
More file actions
38 lines (32 loc) · 1.37 KB
/
NativeDocumentViewerSpec.java
File metadata and controls
38 lines (32 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Then it was commited. It is here to support the old architecture.
* If you use the new architecture, this file won't be included and instead will be generated by the codegen.
*
* @generated by codegen project: GenerateModuleJavaSpec.js
*
* @nolint
*/
package com.reactnativedocumentviewer;
import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public abstract class NativeDocumentViewerSpec extends ReactContextBaseJavaModule implements TurboModule {
public static final String NAME = "RNDocumentViewer";
public NativeDocumentViewerSpec(ReactApplicationContext reactContext) {
super(reactContext);
}
@Override
public @Nonnull String getName() {
return NAME;
}
@ReactMethod
@DoNotStrip
public abstract void viewDocument(String bookmarkOrUri, String permissions, @Nullable String mimeType, @Nullable String title, @Nullable String androidApplicationId, @Nullable String presentationStyle, Promise promise);
}