Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
ai.picovoice.reactnative.rhinodemo.MainApplication Class Reference
Inheritance diagram for ai.picovoice.reactnative.rhinodemo.MainApplication:
Inheritance graph
[legend]

Public Member Functions

ReactNativeHost getReactNativeHost ()
 
void onCreate ()
 

Static Private Member Functions

static void initializeFlipper (Context context, ReactInstanceManager reactInstanceManager)
 

Private Attributes

final ReactNativeHost mReactNativeHost
 

Detailed Description

Definition at line 14 of file rhino/demo/react-native/android/rhino-rn-demo-app/src/main/java/ai/picovoice/reactnative/rhinodemo/MainApplication.java.

Member Function Documentation

◆ getReactNativeHost()

ReactNativeHost ai.picovoice.reactnative.rhinodemo.MainApplication.getReactNativeHost ( )
inline

◆ initializeFlipper()

static void ai.picovoice.reactnative.rhinodemo.MainApplication.initializeFlipper ( Context  context,
ReactInstanceManager  reactInstanceManager 
)
inlinestaticprivate

Loads Flipper in React Native templates. Call this in the onCreate method with something like initializeFlipper(this, getReactNativeHost().getReactInstanceManager());

Parameters
context
reactInstanceManager

Definition at line 57 of file rhino/demo/react-native/android/rhino-rn-demo-app/src/main/java/ai/picovoice/reactnative/rhinodemo/MainApplication.java.

◆ onCreate()

void ai.picovoice.reactnative.rhinodemo.MainApplication.onCreate ( )
inline

Member Data Documentation

◆ mReactNativeHost

final ReactNativeHost ai.picovoice.reactnative.rhinodemo.MainApplication.mReactNativeHost
private
Initial value:
=
new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
return packages;
}
@Override
protected String getJSMainModuleName() {
return "index";
}
}

Definition at line 16 of file rhino/demo/react-native/android/rhino-rn-demo-app/src/main/java/ai/picovoice/reactnative/rhinodemo/MainApplication.java.


The documentation for this class was generated from the following file:
python.setup.packages
packages
Definition: porcupine/binding/python/setup.py:77


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:20