win8_search_add_suggestions

Set the search terms from a list of keywords.

Syntax:

win8_search_add_suggestions(list);


Argument Description
list a ds_list that holds all the search terms


Returns: N/A


Description

This function uses a ds_list to set a series of keyword search terms that the "search charm" will find if used.


Example:

win8_search_enable(scr_SearchWords);
var list;
list = ds_list_create();
ds_list_add(list, "smelly fish");
ds_list_add(list, "Haggis");
ds_list_add(list, "MacSweeney");
ds_list_add(list, "the quick brown fox");
ds_list_add(list, "99 red ballons");
win8_search_add_suggestions(list);
ds_list_destroy(list);

The above code will enable the search functions for your app and tell Windows to run the callback script should it find a corresponding search term. Some keywords are then added into a ds_list which is used to create the search terms that the "search charm" will find when used.


Back: Windows 8
Next: win8_search_disable
© Copyright YoYo Games Ltd. 2018 All Rights Reserved