AW EVENT URL CLICK

From ActiveWiki
Jump to navigation Jump to search
Minimum requirements
Added in version 3.5
SDKbuild 37
Worldbuild 63
Browserbuild 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

AW_AVATAR_NAME
AW_AVATAR_SESSION
AW_URL_NAME

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");

Triggered by