// Actually shows the widget private IEnumerator Show() { yield return(new WaitForEndOfFrame()); // update UI elements ApplyLanguage(); ApplyProfileImageTextureIfAvailable(); RequestTargetAndUser(); var track = this._api.initStomtTrack(); track.event_category = "form"; track.event_action = "open"; this._api.SendTrack(track); // Capture screenshot _screenshot.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0); // Get Logs if (this.UploadLogFile) { if (this._log != null) { this._log.stopThread(); } this._log = new StomtLog(this._api); } // Show UI ResetUILayers(); if (this.IsMessageLengthCorrect()) { _postButton.GetComponent <Button>().interactable = true; } else { _postButton.GetComponent <Button>().interactable = false; } useEmailOnSubscribe = true; // Call Event if (OnWidgetOpen != null) { OnWidgetOpen(); } Canvas.ForceUpdateCanvases(); // Move Target (Fit with Toggle) MoveTargetBasedOnToggle(_targetObj.GetComponent <RectTransform>().rect); //this.MovePlaceholderBasedOnMessage(); }
public void attachLogs(StomtLog log) { this.logs = log.getFileConent(); }