Assets/EasyAR/Scripts/csapi.cs
///<summary>
///Creates an instance and initialize recording. statusCallback will dispatch event of status change and corresponding log.
///</summary>
Creates an instance and initialize recording. statusCallback will dispatch event of status change and corresponding log.
Creates an instance and initialize recording . statusCallback will dispatch event of status change and corresponding log .
public static Recorder create(RecorderConfiguration config, CallbackScheduler callbackScheduler, Optional<Action<RecordStatus, string>> statusCallback)
        {
            using (var ar = new Detail.AutoRelease())
            {
                var _return_value_ = default(IntPtr);
                Detail.easyar_Recorder_create(config.cdata, callbackScheduler.cdata, statusCallback.map(p => p.OnSome ? new Detail.OptionalOfFunctorOfVoidFromRecordStatusAndString { has_value = true, value = Detail.FunctorOfVoidFromRecordStatusAndString_to_c(p.Value) } : new Detail.OptionalOfFunctorOfVoidFromRecordStatusAndString { has_value = false, value = default(Detail.FunctorOfVoidFromRecordStatusAndString) }), out _return_value_);
                return Detail.Object_from_c<Recorder>(_return_value_, Detail.easyar_Recorder__typeName);
            }
        }
public static Recorder create ( RecorderConfiguration config , CallbackScheduler callbackScheduler , Optional < Action < RecordStatus , string > > statusCallback ) { using ( var ar = new Detail . AutoRelease ( ) ) { var _return_value_ = default ( IntPtr ) ; Detail . easyar_Recorder_create ( config . cdata , callbackScheduler . cdata , statusCallback . map ( p => p . OnSome ? new Detail . OptionalOfFunctorOfVoidFromRecordStatusAndString { has_value = true , value = Detail . FunctorOfVoidFromRecordStatusAndString_to_c ( p . Value ) } : new Detail . OptionalOfFunctorOfVoidFromRecordStatusAndString { has_value = false , value = default ( Detail . FunctorOfVoidFromRecordStatusAndString ) } ) , out _return_value_ ) ; return Detail . Object_from_c < Recorder > ( _return_value_ , Detail . easyar_Recorder__typeName ) ; } }
Creates an instance and initialize recording.
Creates an instance and initialize recording .
config
RecorderConfiguration
callbackScheduler
CallbackScheduler
statusCallback
Optional<Action<RecordStatus, string>>