android.view
Class Surface

java.lang.Object
  extended by android.view.Surface
All Implemented Interfaces:
Parcelable

public class Surface
extends Object
implements Parcelable


Nested Class Summary
static class Surface.OutOfResourcesException
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<Surface> CREATOR
           
static int ROTATION_0
           
static int ROTATION_180
           
static int ROTATION_270
           
static int ROTATION_90
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Surface(SurfaceTexture surfaceTexture)
           
 
Method Summary
 int describeContents()
           
protected  void finalize()
           
 boolean isValid()
           
 Canvas lockCanvas(Rect dirty)
           
 void readFromParcel(Parcel source)
           
 void release()
           
 String toString()
           
 void unlockCanvas(Canvas canvas)
           
 void unlockCanvasAndPost(Canvas canvas)
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROTATION_0

public static final int ROTATION_0
See Also:
Constant Field Values

ROTATION_90

public static final int ROTATION_90
See Also:
Constant Field Values

ROTATION_180

public static final int ROTATION_180
See Also:
Constant Field Values

ROTATION_270

public static final int ROTATION_270
See Also:
Constant Field Values

CREATOR

public static final Parcelable.Creator<Surface> CREATOR
Constructor Detail

Surface

public Surface(SurfaceTexture surfaceTexture)
Method Detail

isValid

public boolean isValid()

release

public void release()

lockCanvas

public Canvas lockCanvas(Rect dirty)
                  throws Surface.OutOfResourcesException,
                         IllegalArgumentException
Throws:
Surface.OutOfResourcesException
IllegalArgumentException

unlockCanvasAndPost

public void unlockCanvasAndPost(Canvas canvas)

unlockCanvas

public void unlockCanvas(Canvas canvas)

toString

public String toString()
Overrides:
toString in class Object

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

readFromParcel

public void readFromParcel(Parcel source)

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2008-2012. All Rights Reserved.