Correct Answer:
Explanation/Reference:
Note:
Step 1: Pick the features you want to enable or disable during the trial period
Step 2 (Box 1) : Initialize the license info
When your app is initializing, get the LicenseInformation object for your app as shown in this example. We assume that licenseInformation is a global variable or field of type LicenseInformation.
Initialize the CurrentApp or CurrentAppSimulator to access the app’s license info.
Step 3 (Box 2) : Code the features in conditional blocks
When the license change event fires, your app must call the License API to determine if the trial status has changed. The code in this step shows how to structure your handler for this event. At this point, if a user bought the app, it is a good practice to provide feedback to the user that the licensing status has changed. You might need to ask the user to restart the app if that’s how you’ve coded it. But make this transition as seamless and painless as possible.
Example:
if (licenseInformation.isActive)
{
if (licenseInformation.isTrial)
{
// Show the features that are available during trial only.
}
else
{
// Show the features that are available only with a full license.
}
}
Step 4 (Box 2) : Get an app’s trial expiration date
Step 5: Test the features using simulated calls to the License API
Step 6: Replace the simulated License API methods with the actual API
Step 7: Describe how the free trial works to your customers
Incorrect:
WindowsMarketProxy.xml: No such file is related to Windows Store Apps.