/** * Load the specified URL * * @param NewURL New URL to load */ UFUNCTION(BlueprintCallable, Category="Web Browser") voidLoadURL(FString NewURL);
/** * Load a string as data to create a web page * * @param Contents String to load * @param DummyURL Dummy URL for the page */ UFUNCTION(BlueprintCallable, Category="Web Browser") voidLoadString(FString Contents, FString DummyURL);
/** * Executes a JavaScript string in the context of the web page * * @param ScriptText JavaScript string to execute */ UFUNCTION(BlueprintCallable, Category = "Web Browser") voidExecuteJavascript(const FString& ScriptText);
/** * Get the current title of the web page */ UFUNCTION(BlueprintCallable, Category="Web Browser") FText GetTitleText()const;
/** * Gets the currently loaded URL. * * @return The URL, or empty string if no document is loaded. */ UFUNCTION(BlueprintCallable, Category = "Web Browser") FString GetUrl()const;
/** Called when the Url changes. */ UPROPERTY(BlueprintAssignable, Category = "Web Browser|Event") FOnUrlChanged OnUrlChanged;
/** Called when a popup is about to spawn. */ UPROPERTY(BlueprintAssignable, Category = "Web Browser|Event") FOnBeforePopup OnBeforePopup;
public:
//~ Begin UWidget interface virtualvoidSynchronizeProperties()override; // End UWidget interface
protected: /** URL that the browser will initially navigate to. The URL should include the protocol, eg http:// */ UPROPERTY(EditAnywhere, Category=Appearance) FString InitialURL;
/** Should the browser window support transparency. */ UPROPERTY(EditAnywhere, Category=Appearance) bool bSupportsTransparency;
/** * Load the specified URL * * @param NewURL New URL to load */ UFUNCTION(BlueprintCallable, Category = "Web Browser") voidLoadURL(FString NewURL);
/** * Load a string as data to create a web page * * @param Contents String to load * @param DummyURL Dummy URL for the page */ UFUNCTION(BlueprintCallable, Category = "Web Browser") voidLoadString(FString Contents, FString DummyURL);
/** * Executes a JavaScript string in the context of the web page * * @param ScriptText JavaScript string to execute */ UFUNCTION(BlueprintCallable, Category = "Web Browser") voidExecuteJavascript(const FString& ScriptText);
/** * Get the current title of the web page */ UFUNCTION(BlueprintCallable, Category = "Web Browser") FText GetTitleText()const;
/** * Gets the currently loaded URL. * * @return The URL, or empty string if no document is loaded. */ UFUNCTION(BlueprintCallable, Category = "Web Browser") FString GetUrl()const;
/** Called when the Url changes. */ UPROPERTY(BlueprintAssignable, Category = "Web Browser|Event") FOnUrlChanged OnUrlChanged;
/** Called when a popup is about to spawn. */ UPROPERTY(BlueprintAssignable, Category = "Web Browser|Event") FOnBeforePopup OnBeforePopup;
public:
//~ Begin UWidget interface virtualvoidSynchronizeProperties()override; // End UWidget interface
protected: /** URL that the browser will initially navigate to. The URL should include the protocol, eg http:// */ UPROPERTY(EditAnywhere, Category = Appearance) FString InitialURL;
/** Should the browser window support transparency. */ UPROPERTY(EditAnywhere, Category = Appearance) bool bSupportsTransparency;