Skip to content

Instantly share code, notes, and snippets.

@coronarob
Last active August 29, 2015 14:17
Show Gist options
  • Save coronarob/f85a41654cd45ba39122 to your computer and use it in GitHub Desktop.
Save coronarob/f85a41654cd45ba39122 to your computer and use it in GitHub Desktop.
Windows Phone 8 function to rate an App. Add this near the bottom of your MainPage class.
/// <summary>Called by Lua when it is requesting a login popup to be shown.</summary>
/// <param name="sender">The CoronaRuntimeEnvironment that dispatched this event.</param>
/// <param name="e">Provides the Lua vent table's fields/properties.</param>
/// <returns>Returns a boxed object to Lua.</returns>
private CoronaLabs.Corona.WinRT.ICoronaBoxedData rateApp(
CoronaLabs.Corona.WinRT.CoronaRuntimeEnvironment sender,
CoronaLabs.Corona.WinRT.CoronaLuaEventArgs e)
{
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
// This returns nil to Lua.
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment