Build 1.0_r1(from source)

android.speech.recognition.impl
Class System

java.lang.Object
  extended by android.speech.recognition.impl.System

public class System
extends Object


Method Summary
 void dispose()
          Releases the native resources associated with the object.
protected  void finalize()
          Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
static String getAPIVersion()
           
static System getInstance()
          Returns the singleton instance.
 void register(Runnable r)
          Registers an object for shutdown when System.dispose() is invoked.
 void unregister(Runnable r)
          Registers an object for shutdown when System.dispose() is invoked.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static System getInstance()
Returns the singleton instance.

Returns:
the singleton instance

register

public void register(Runnable r)
              throws IllegalStateException
Registers an object for shutdown when System.dispose() is invoked.

Parameters:
r - the code to run on shutdown
Throws:
IllegalStateException - if the System is shutting down

unregister

public void unregister(Runnable r)
Registers an object for shutdown when System.dispose() is invoked.

Parameters:
r - the code to run on shutdown

dispose

public void dispose()
             throws TimeoutException,
                    IllegalThreadStateException
Releases the native resources associated with the object.

Throws:
TimeoutException - if the operation timeouts
IllegalThreadStateException - if a native thread error occurs

finalize

protected void finalize()
                 throws Throwable
Description copied from class: Object
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. Subclasses can use this facility to guarantee that any associated resources are cleaned up before the receiver is garbage collected. Uncaught exceptions which are thrown during the running of the method cause it to terminate immediately, but are otherwise ignored.

Note: The virtual machine assumes that the implementation in class Object is empty.

Overrides:
finalize in class Object
Throws:
Throwable - The virtual machine ignores any exceptions which are thrown during finalization.

getAPIVersion

public static String getAPIVersion()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature