|
Termux:GUI C/C++ Bindings
|
This file contains all functions related to WebViews. More...
#include "types.h"Go to the source code of this file.
Functions | |
| tgui_err | tgui_webview_allow_javascript (tgui_connection c, tgui_activity a, tgui_view v, bool allow) |
| Sets whether Javascript execution is allowed in a WebView. The user is asked for confirmation to enable. More... | |
| tgui_err | tgui_webview_allow_content_uri (tgui_connection c, tgui_activity a, tgui_view v, bool allow) |
| Sets whether the WebView is allowed to load content URIs. More... | |
| tgui_err | tgui_webview_set_data (tgui_connection c, tgui_activity a, tgui_view v, const char *data, const char *mime) |
| Sets the displayed data of a WebView. More... | |
| tgui_err | tgui_webview_load_uri (tgui_connection c, tgui_activity a, tgui_view v, const char *uri) |
| Loads content from a URI. More... | |
| tgui_err | tgui_webview_allow_navigation (tgui_connection c, tgui_activity a, tgui_view v, bool allow) |
| By default the user cannot navigate to other pages in the WebView. This can enable navigation. More... | |
| tgui_err | tgui_webview_go_back (tgui_connection c, tgui_activity a, tgui_view v) |
| Goes back to the last page. More... | |
| tgui_err | tgui_webview_go_forward (tgui_connection c, tgui_activity a, tgui_view v) |
| Goes forward to the next page. More... | |
| tgui_err | tgui_webview_eval_js (tgui_connection c, tgui_activity a, tgui_view v, const char *source) |
| Allows you to execute Javascript inside the WebView. More... | |
This file contains all functions related to WebViews.
| tgui_err tgui_webview_allow_javascript | ( | tgui_connection | c, |
| tgui_activity | a, | ||
| tgui_view | v, | ||
| bool | allow | ||
| ) |
Sets whether Javascript execution is allowed in a WebView. The user is asked for confirmation to enable.
| c | The connection to use. |
| a | The Activity the View is in. |
| v | The WebView id. |
| allow | Whether to enable or disable Javascript execution. |
| tgui_err tgui_webview_allow_content_uri | ( | tgui_connection | c, |
| tgui_activity | a, | ||
| tgui_view | v, | ||
| bool | allow | ||
| ) |
Sets whether the WebView is allowed to load content URIs.
| c | The connection to use. |
| a | The Activity the View is in. |
| v | The WebView id. |
| allow | Whether to enable or disable content:// URIs. |
| tgui_err tgui_webview_set_data | ( | tgui_connection | c, |
| tgui_activity | a, | ||
| tgui_view | v, | ||
| const char * | data, | ||
| const char * | mime | ||
| ) |
Sets the displayed data of a WebView.
| c | The connection to use. |
| a | The Activity the View is in. |
| v | The WebView id. |
| data | The data as a base64 encoded string. |
| mime | The MIME type of the data. Usually "text/html". |
| tgui_err tgui_webview_load_uri | ( | tgui_connection | c, |
| tgui_activity | a, | ||
| tgui_view | v, | ||
| const char * | uri | ||
| ) |
| tgui_err tgui_webview_allow_navigation | ( | tgui_connection | c, |
| tgui_activity | a, | ||
| tgui_view | v, | ||
| bool | allow | ||
| ) |
By default the user cannot navigate to other pages in the WebView. This can enable navigation.
| c | The connection to use. |
| a | The Activity the View is in. |
| v | The WebView id. |
| allow | Whether to enable or disable navigation by the user. |
| tgui_err tgui_webview_go_back | ( | tgui_connection | c, |
| tgui_activity | a, | ||
| tgui_view | v | ||
| ) |
| tgui_err tgui_webview_go_forward | ( | tgui_connection | c, |
| tgui_activity | a, | ||
| tgui_view | v | ||
| ) |
| tgui_err tgui_webview_eval_js | ( | tgui_connection | c, |
| tgui_activity | a, | ||
| tgui_view | v, | ||
| const char * | source | ||
| ) |
Allows you to execute Javascript inside the WebView.
| c | The connection to use. |
| a | The Activity the View is in. |
| v | The WebView id. |
| source | The Javascript source you want to execute. |