Assets/EasyAR/Scripts/csapi.cs
///<summary>
///Creates an instance and connects to the server.
///</summary>
Creates an instance and connects to the server.
Creates an instance and connects to the server .
public static CloudRecognizer create(string cloudRecognitionServiceServerAddress, string apiKey, string apiSecret, string cloudRecognitionServiceAppId, CallbackScheduler callbackScheduler, Optional<Action<CloudStatus, List<Target>>> callback)
        {
            using (var ar = new Detail.AutoRelease())
            {
                var _return_value_ = default(IntPtr);
                Detail.easyar_CloudRecognizer_create(Detail.String_to_c(ar, cloudRecognitionServiceServerAddress), Detail.String_to_c(ar, apiKey), Detail.String_to_c(ar, apiSecret), Detail.String_to_c(ar, cloudRecognitionServiceAppId), callbackScheduler.cdata, callback.map(p => p.OnSome ? new Detail.OptionalOfFunctorOfVoidFromCloudStatusAndListOfTarget { has_value = true, value = Detail.FunctorOfVoidFromCloudStatusAndListOfTarget_to_c(p.Value) } : new Detail.OptionalOfFunctorOfVoidFromCloudStatusAndListOfTarget { has_value = false, value = default(Detail.FunctorOfVoidFromCloudStatusAndListOfTarget) }), out _return_value_);
                return Detail.Object_from_c<CloudRecognizer>(_return_value_, Detail.easyar_CloudRecognizer__typeName);
            }
        }
public static CloudRecognizer create ( string cloudRecognitionServiceServerAddress , string apiKey , string apiSecret , string cloudRecognitionServiceAppId , CallbackScheduler callbackScheduler , Optional < Action < CloudStatus , List < Target > > > callback ) { using ( var ar = new Detail . AutoRelease ( ) ) { var _return_value_ = default ( IntPtr ) ; Detail . easyar_CloudRecognizer_create ( Detail . String_to_c ( ar , cloudRecognitionServiceServerAddress ) , Detail . String_to_c ( ar , apiKey ) , Detail . String_to_c ( ar , apiSecret ) , Detail . String_to_c ( ar , cloudRecognitionServiceAppId ) , callbackScheduler . cdata , callback . map ( p => p . OnSome ? new Detail . OptionalOfFunctorOfVoidFromCloudStatusAndListOfTarget { has_value = true , value = Detail . FunctorOfVoidFromCloudStatusAndListOfTarget_to_c ( p . Value ) } : new Detail . OptionalOfFunctorOfVoidFromCloudStatusAndListOfTarget { has_value = false , value = default ( Detail . FunctorOfVoidFromCloudStatusAndListOfTarget ) } ) , out _return_value_ ) ; return Detail . Object_from_c < CloudRecognizer > ( _return_value_ , Detail . easyar_CloudRecognizer__typeName ) ; } }
Creates an instance and connects to the server.
Creates an instance and connects to the server .
cloudRecognitionServiceServerAddress
string
apiKey
string
apiSecret
string
cloudRecognitionServiceAppId
string
callbackScheduler
CallbackScheduler
callback
Optional<Action<CloudStatus, List<Target>>>