Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 7th, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import bb.cascades 1.0
  2. import bb.cascades.multimedia 1.0
  3.  
  4. // creates one page with a label
  5. Page {
  6.     id: appPage
  7.    
  8.     Container {
  9.         layout: DockLayout {}
  10.             Container {
  11.                 horizontalAlignment: HorizontalAlignment.Fill
  12.                 verticalAlignment: VerticalAlignment.Fill
  13.                     Camera {
  14.                         id: camera
  15.                         objectName: myCamera
  16.                        
  17.                         onCameraOpened: {
  18.                                 camera.startViewfinder();
  19.                         }
  20.                     }
  21.                 }
  22.         }
  23. }