AW EVENT URL CLICK
Jump to navigation
Jump to search
Minimum requirements | ||
---|---|---|
Added in version 3.5 | ||
SDK | build 37 | |
World | build 63 | |
Browser | build 530 |
AW_EVENT_URL_CLICK
Description
User has clicked on a special URL in the web view.
Notes
This event is triggered whenever a user clicks on a URL prefixed with "aworld:?" in their web view, or if another SDK application calls aw_url_click.
Only instances owned by a caretaker (i.e. aw_bool (AW_WORLD_CARETAKER_CAPABILITY) returns 1) will receive this event.
Attributes
Usage
void handle_url_click (void) { printf ("%s (sess#=%d) send url: %s\n" aw_string (AW_AVATAR_NAME), aw_int (AW_AVATAR_SESSION), aw_string (AW_URL_NAME)); } aw_event_set (AW_EVENT_URL_CLICK, handle_url_click); aw_url_click ("aworld:?buyItem=shinyEnzoTeeth");