Which three actions should you perform in sequence?

DRAG DROP
You are developing a Windows Store app.
The app must meet the following requirements:
• Be available for a time-limited free trial.
• Prompt the user to buy the full version when the trial expires.
You need to ensure that the requirements are met.
Which three actions should you perform in sequence? (To answer, move the appropriate
actions from the list of actions to the answer area and arrange them in the correct order.)

DRAG DROP
You are developing a Windows Store app.
The app must meet the following requirements:
• Be available for a time-limited free trial.
• Prompt the user to buy the full version when the trial expires.
You need to ensure that the requirements are met.
Which three actions should you perform in sequence? (To answer, move the appropriate
actions from the list of actions to the answer area and arrange them in the correct order.)

Answer: See the explanation.

Explanation:

Box 1: In the app code, retrieve the LicensInformation object of the app.
Box 2: In the app code, add a method to prompt the user to buy the app if the IsTrial
property is true and the trial period has elapsed.
Box 3: Set the trial period for the app while submitting the app to the Windows Store.

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.



Leave a Reply 0

Your email address will not be published. Required fields are marked *