Build 1.0_r1(from source)

android.view
Class SurfaceSession

java.lang.Object
  extended by android.view.SurfaceSession

public class SurfaceSession
extends Object

An instance of this class represents a connection to the surface flinger, in which you can create one or more Surface instances that will be composited to the screen.


Constructor Summary
SurfaceSession()
          Create a new connection with the surface flinger.
 
Method Summary
protected  void finalize()
          Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
 void kill()
          Forcibly detach native resources associated with this object.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfaceSession

public SurfaceSession()
Create a new connection with the surface flinger.

Method Detail

kill

public void kill()
Forcibly detach native resources associated with this object. Unlike destroy(), after this call any surfaces that were created from the session will no longer work. The session itself is destroyed.


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.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature