public static class RhinoManager.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RhinoManager |
build(android.content.Context context,
RhinoManagerCallback callback)
Creates an instance of RhinoManager.
|
RhinoManager.Builder |
setContextPath(java.lang.String contextPath) |
RhinoManager.Builder |
setModelPath(java.lang.String modelPath) |
RhinoManager.Builder |
setSensitivity(float sensitivity) |
public RhinoManager.Builder setModelPath(java.lang.String modelPath)
public RhinoManager.Builder setContextPath(java.lang.String contextPath)
public RhinoManager.Builder setSensitivity(float sensitivity)
public RhinoManager build(android.content.Context context, RhinoManagerCallback callback) throws RhinoException
context - Android app context (for extracting Rhino resources)callback - A callback function that is invoked upon intent inference.RhinoException - if there is an error while initializing Rhino.