2013年7月22日 星期一
QCARHelper停止camera 打開camera
////////////////////////////////////////////////////////////////////////////////
// pause the camera view and the tracking of targets
//停止服務
- (void)pauseAR
{
NSLog(@"QCARutils onPause()");
// If the app status is APPSTATUS_CAMERA_RUNNING, QCAR must have been fully
// initialised
if (APPSTATUS_CAMERA_RUNNING == qUtils.appStatus) {
[qUtils updateApplicationStatus:APPSTATUS_CAMERA_STOPPED];
// QCAR-specific pause operation
QCAR::onPause();
}
}
////////////////////////////////////////////////////////////////////////////////
// resume the camera view and tracking of targets
//打開服務
- (void)resumeAR
{
NSLog(@"QCARutils onResume()");
// If the app status is APPSTATUS_CAMERA_STOPPED, QCAR must have been fully
// initialised
if (APPSTATUS_CAMERA_STOPPED == qUtils.appStatus) {
// QCAR-specific resume operation
QCAR::onResume();
[qUtils updateApplicationStatus:APPSTATUS_CAMERA_RUNNING];
}
}
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言