Package blackberry.invoke.cameraArguments

Examples of blackberry.invoke.cameraArguments.CameraArgumentsObject


    private void invokeCamera( final Object arg ) throws Exception {
        CameraArguments args = null;

        if( arg instanceof CameraArgumentsObject ) {
            final CameraArgumentsObject c = (CameraArgumentsObject) arg;
            final int view = c.getView();
            if( view != CameraArgumentsConstructor.VIEW_CAMERA && view != CameraArgumentsConstructor.VIEW_RECORDER ) {
                throw new IllegalArgumentException( "Invalid view for CameraArgumentsObject." );
            }

            args = new CameraArguments(
                    c.getView() == CameraArgumentsConstructor.VIEW_RECORDER ? CameraArguments.ARG_VIDEO_RECORDER
                            : CameraArguments.ARG_CAMERA_APP );
        }

        Invoke.invokeApplication( Invoke.APP_TYPE_CAMERA, args );
    }
View Full Code Here

TOP

Related Classes of blackberry.invoke.cameraArguments.CameraArgumentsObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.