GooglePlayInstant/Editor/QuickDeploy/WwwRequestInProgress.cs
/// <summary>
/// Verifies the state of the currently monitored ongoing request. Displays progress bar for the request if
/// it is still going on. If the response is available, the scheduled post-completion action will be invoked on
/// the www instance of the ongoing request, the request will stop being monitored and resources used by this
/// request will be disposed.
/// </summary>
Verifies the state of the currently monitored ongoing request. Displays progress bar for the request if
it is still going on. If the response is available, the scheduled post-completion action will be invoked on
the www instance of the ongoing request, the request will stop being monitored and resources used by this
request will be disposed.
Verifies the state of the currently monitored ongoing request . Displays progress bar for the request if it is still going on . If the response is available the scheduled post - completion action will be invoked on the www instance of the ongoing request the request will stop being monitored and resources used by this request will be disposed .
public static void Update()
        {
            if (_ongoingRequest == null)
            {
                return;
            }
            if (_ongoingRequest.RequestWww.isDone)
            {
                EditorUtility.ClearProgressBar();
                var onGoingRequest = _ongoingRequest;
                _ongoingRequest = null;
                onGoingRequest.OnResponseAvailableAction(onGoingRequest.RequestWww);
                onGoingRequest.Dispose();
            }
            else
            {
                if (EditorUtility.DisplayCancelableProgressBar(_ongoingRequest.ProgressBarTitleText,
                    string.Format("Progress: {0}%", Math.Floor(_ongoingRequest.RequestWww.uploadProgress * 100)),
                    _ongoingRequest.RequestWww.uploadProgress))
                {
                    EditorUtility.ClearProgressBar();
                    _ongoingRequest.Dispose();
                    _ongoingRequest = null;
                }
            }
        }
public static void Update ( ) { if ( _ongoingRequest == null ) { return ; } if ( _ongoingRequest . RequestWww . isDone ) { EditorUtility . ClearProgressBar ( ) ; var onGoingRequest = _ongoingRequest ; _ongoingRequest = null ; onGoingRequest . OnResponseAvailableAction ( onGoingRequest . RequestWww ) ; onGoingRequest . Dispose ( ) ; } else { if ( EditorUtility . DisplayCancelableProgressBar ( _ongoingRequest . ProgressBarTitleText , string . Format ( " " , Math . Floor ( _ongoingRequest . RequestWww . uploadProgress * 100 ) ) , _ongoingRequest . RequestWww . uploadProgress ) ) { EditorUtility . ClearProgressBar ( ) ; _ongoingRequest . Dispose ( ) ; _ongoingRequest = null ; } } }
Verifies the state of the currently monitored ongoing request.
Verifies the state of the currently monitored ongoing request .
// Set the static field _requestInProgress to null before invoking the  post-completion action // because the action could be executing an action that will read or overwrite the static field.