PorcupinePackage.java
Go to the documentation of this file.
1 package ai.picovoice.reactnative.porcupine;
2 
3 import com.facebook.react.ReactPackage;
4 import com.facebook.react.bridge.NativeModule;
5 import com.facebook.react.bridge.ReactApplicationContext;
6 import com.facebook.react.uimanager.ViewManager;
7 
8 import java.util.Arrays;
9 import java.util.Collections;
10 import java.util.List;
11 
12 public class PorcupinePackage implements ReactPackage {
13  @Override
14  public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
15  return Arrays.asList(new PorcupineModule(reactContext));
16  }
17 
18  @Override
19  public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
20  return Collections.emptyList();
21  }
22 }
ai.picovoice.reactnative.porcupine.PorcupinePackage
Definition: PorcupinePackage.java:12
ai.picovoice.reactnative.porcupine.PorcupinePackage.createNativeModules
List< NativeModule > createNativeModules(ReactApplicationContext reactContext)
Definition: PorcupinePackage.java:14
ai.picovoice.reactnative.porcupine.PorcupineModule
Definition: PorcupineModule.java:31
ai.picovoice.reactnative.porcupine.PorcupinePackage.createViewManagers
List< ViewManager > createViewManagers(ReactApplicationContext reactContext)
Definition: PorcupinePackage.java:19


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:50