win8_search_enable

Enable the "search charm" for your game.

Syntax:

GML Code Example

win8_search_enable(callback);


Argument Description
callback The script to run should a search result come in


Returns: N/A


Description

This function enables the search function to register your game and include it in any results from the "search charm" of Windows 8. The callback script should take an argument[0] which is the returned search string that is passed to it when run, but it will only be called if you have supplied a series of search terms using the function win8_search_add_suggestions.


Example:

GML Code 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.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here