public static ApkInstallationStatus ToApkInstallationStatus(
            this ApiApkInstallationStatus apiStatus)
        {
            switch (apiStatus)
            {
            case ApiApkInstallationStatus.Uninitialized:
                return(ApkInstallationStatus.Uninitialized);

            case ApiApkInstallationStatus.Requested:
                return(ApkInstallationStatus.Requested);

            case ApiApkInstallationStatus.Success:
                return(ApkInstallationStatus.Success);

            case ApiApkInstallationStatus.Error:
                return(ApkInstallationStatus.Error);

            case ApiApkInstallationStatus.ErrorDeviceNotCompatible:
                return(ApkInstallationStatus.ErrorDeviceNotCompatible);

            case ApiApkInstallationStatus.ErrorUserDeclined:
                return(ApkInstallationStatus.ErrorUserDeclined);

            default:
                Debug.LogErrorFormat("Unexpected ApiApkInstallStatus status {0}", apiStatus);
                return(ApkInstallationStatus.Error);
            }
        }
Esempio n. 2
0
 private static void _OnApkInstallationResultTrampoline(
     ApiApkInstallationStatus status, IntPtr context)
 {
     Instance._OnRequestApkInstallationResult(status.ToApkInstallationStatus());
 }