Last active
August 29, 2015 14:17
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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