GooglePlayInstant/Editor/QuickDeploy/WwwRequestInProgress.cs
/// <summary>
/// Monitor an HTTP request being made. Assumes one request will be made at a time, therefore will throw
/// an exception if a previous request is still being monitored.
/// </summary>
/// <param name="www">A www instance holding a request that was made</param>
/// <param name="progressBarTitleText">A descriptive text to display as the title of the progress bar.</param>
/// <param name="onResponseAvailableAction">An action to be invoked on www once the response to the request
/// is available.</param>
Monitor an HTTP request being made. Assumes one request will be made at a time, therefore will throw
an exception if a previous request is still being monitored.
Monitor an HTTP request being made . Assumes one request will be made at a time therefore will throw an exception if a previous request is still being monitored .
public static void TrackProgress(WWW www, string progressBarTitleText, Action<WWW> onResponseAvailableAction)
        {
            if (_ongoingRequest != null)
            {
                throw new Exception("Cannot start another request while the previous one is not complete.");
            }
            _ongoingRequest = new OngoingRequest(www, progressBarTitleText, onResponseAvailableAction);
        }
public static void TrackProgress ( WWW www , string progressBarTitleText , Action < WWW > onResponseAvailableAction ) { if ( _ongoingRequest != null ) { throw new Exception ( " " ) ; } _ongoingRequest = new OngoingRequest ( www , progressBarTitleText , onResponseAvailableAction ) ; }
Monitor an HTTP request being made.
Monitor an HTTP request being made .
www
WWW
A www instance holding a request that was made
A www instance holding a request that was made
progressBarTitleText
string
A descriptive text to display as the title of the progress bar.
A descriptive text to display as the title of the progress bar .
onResponseAvailableAction
Action<WWW>
An action to be invoked on www once the response to the request
is available.
An action to be invoked on www once the response to the request is available .