FileDocCategorySizeDatePackage
CameraServiceBinderDecorator.javaAPI DocAndroid 5.1 API2562Thu Mar 12 22:22:10 GMT 2015android.hardware.camera2.utils

CameraServiceBinderDecorator

public class CameraServiceBinderDecorator extends CameraBinderDecorator
Translate camera service status_t return values into exceptions.
see
android.hardware.camera2.utils.CameraBinderDecorator#newInstance
hide

Fields Summary
private static final String
TAG
Constructors Summary
Methods Summary
public static TnewInstance(T obj)

Wraps the type T with a proxy that will check 'status_t' return codes from the native side of the camera service, and throw Java exceptions automatically based on the code.

param
obj object that will serve as the target for all method calls
param
the type of the element you want to wrap. This must be an interface.
return
a proxy that will intercept all invocations to obj

        return Decorator.<T> newInstance(obj, new CameraServiceBinderDecoratorListener());