Assets/EasyAR/Scripts/csapi.cs
///<summary>
///Requests camera permission from operating system. You can call this function or request permission directly from operating system. It is only available on Android and iOS. On other platforms, it will call the callback directly with status being granted. This function need to be called from the UI thread.
///</summary>
Requests camera permission from operating system. You can call this function or request permission directly from operating system. It is only available on Android and iOS. On other platforms, it will call the callback directly with status being granted. This function need to be called from the UI thread.
Requests camera permission from operating system . You can call this function or request permission directly from operating system . It is only available on Android and iOS . On other platforms it will call the callback directly with status being granted . This function need to be called from the UI thread .
public static void requestPermissions(CallbackScheduler callbackScheduler, Optional<Action<PermissionStatus, string>> permissionCallback)
        {
            using (var ar = new Detail.AutoRelease())
            {
                Detail.easyar_CameraDevice_requestPermissions(callbackScheduler.cdata, permissionCallback.map(p => p.OnSome ? new Detail.OptionalOfFunctorOfVoidFromPermissionStatusAndString { has_value = true, value = Detail.FunctorOfVoidFromPermissionStatusAndString_to_c(p.Value) } : new Detail.OptionalOfFunctorOfVoidFromPermissionStatusAndString { has_value = false, value = default(Detail.FunctorOfVoidFromPermissionStatusAndString) }));
            }
        }
public static void requestPermissions ( CallbackScheduler callbackScheduler , Optional < Action < PermissionStatus , string > > permissionCallback ) { using ( var ar = new Detail . AutoRelease ( ) ) { Detail . easyar_CameraDevice_requestPermissions ( callbackScheduler . cdata , permissionCallback . map ( p => p . OnSome ? new Detail . OptionalOfFunctorOfVoidFromPermissionStatusAndString { has_value = true , value = Detail . FunctorOfVoidFromPermissionStatusAndString_to_c ( p . Value ) } : new Detail . OptionalOfFunctorOfVoidFromPermissionStatusAndString { has_value = false , value = default ( Detail . FunctorOfVoidFromPermissionStatusAndString ) } ) ) ; } }
Requests camera permission from operating system.
Requests camera permission from operating system .
callbackScheduler
CallbackScheduler
permissionCallback
Optional<Action<PermissionStatus, string>>