Esempio n. 1
0
 private void ProcessStateUpdate(AppUpdateState newState)
 {
     if (_appUpdateRequest != null && newState != null)
     {
         AppUpdateRequest(_appUpdateRequest, newState);
     }
 }
        private void ProcessUpdateInfo(AndroidJavaObject javaAppUpdateInfo)
        {
            // Parsing AppUpdateInfo java object as an AppUpdateState since AppUpdateInfo contains all the fields for
            // an AppUpdateState.
            var updateState = new AppUpdateState(javaAppUpdateInfo);

            OnStateUpdateEvent.Invoke(updateState);
        }
Esempio n. 3
0
        private void AppUpdateRequest(AppUpdateRequestImpl request, AppUpdateState newState)
        {
            if (AppUpdatePlayCoreTranslator.TranslatePlayCoreErrorCode(newState.ErrorCode) !=
                AppUpdateErrorCode.NoError)
            {
                request.OnErrorOccurred(request.Error);
                return;
            }

            request.UpdateState(AppUpdatePlayCoreTranslator.TranslatePlayCoreUpdateStatus(newState.Status),
                                newState.BytesDownloaded,
                                newState.TotalBytesToDownload);
        }
Esempio n. 4
0
        // Proxied java calls. Method names are camelCase to match the corresponding java methods.
        public void onStateUpdate(AndroidJavaObject installState)
        {
            var updateState = new AppUpdateState(installState);

            PlayCoreEventHandler.HandleEvent(() => OnStateUpdateEvent.Invoke(updateState));
        }
 private void OnStateUpdateReceived(AppUpdateState newState)
 {
     OnStateUpdateEvent.Invoke(newState);
 }