//
//  ARCaptureView.m
//  UnretekFace3D
//
//  Created by JasWorkSpace on 2018/9/20.
//  Copyright © 2018年 JasWorkSpace. All rights reserved.
//

#import <Foundation/Foundation.h>
#include "ARCaptureView.h"
//#include "Unre3DAR3DCaptureView.h"

@interface ARCaptureView()
@end

@implementation ARCaptureView
/////////////////// API /////////////
- (void)viewWillAppear:(BOOL)animated
{
    //do nothing here. for SubClass
}

- (void)viewDidAppear:(BOOL)animated
{
    //do nothing here. for SubClass
}

- (void)viewDidDisappear:(BOOL)animated
{
    //do nothing here. for SubClass
}

- (void)viewWillDisappear:(BOOL)animated
{
    //do nothing here. for SubClass
}
////////////////////////////////
- (BOOL) captureARKit
{
    //do nothing here. for SubClass
    return NO;
}

- (BOOL) onCaptureFinish:(Unre3DAR3DCaptureInfo *)captureinfo
{
    if(_delegate){
        [_delegate onCaptureFinish:captureinfo];
        return YES;
    }
    return NO;
}

- (void) onCaptureStateChangeOldState:(AR3DCAPTURESTATETYPE)oldstate andNewState:(AR3DCAPTURESTATETYPE) newstate
{
    if(_delegate){
        [_delegate onCaptureStateChangeOldState:oldstate andNewState:newstate];
    }
}

//////////////////////////////////////

@end
