Where are the return variables for Adobe AIRSolved

Hello,

From the Adobe Air example for GenuineDays(),

"Get the number of days until the next time that the TA_IsGenuineEx() function contacts the LimeLM activation servers to reverify the activation. You must use the same "nDaysBetweenChecks" and "nGraceDaysOnInetErr" parameters you passed to TA_IsGenuineEx() using the GENUINE_OPTIONS structure.The number of days remaining until the next reverification with the servers will be put in the "DaysRemaining" variable. And if the customer is already in the grace period, then the "DaysRemaining" remaining will reflect the number of days left in the grace period and "inGracePeriod" will be 1."

Where are the variables, 'DaysRemaining' and 'inGracePeriod' ? When the event, 'TurboActivateEvent.GENUINE_DAYS' executed, there are no such variables.

Adobe AIR is asynchronous by nature. It's basically JavaScript / NodeJS with all of the flaws and none of the benefits (security, ecosystem, performance).

Long story short: Adobe AIR cannot return values directly. We have to squish this square peg into the round hole via the "TurboActivateEvent" variable that is sent to the callback function.

From TurboActivate.as:

// get the genuine days remainingevt.uintResponse = process.standardOutput.readUnsignedInt();

// get whether we're in the grace period or not// true, if in grace period, false otherwiseevt.boolResponse = process.standardOutput.readByte() === 1;

Thank you for your suggestion on Air. I will keep the suggestion on the next project.

One more question. Is there anyway we can invoke grace period even when we are in activation period ?

Thanks

Im not quite sure what youre asking. Rather than asking a specific question about a function, tell me what youre trying to achieve.

i have this function ta.IsGenuineEx(25,5,true); and the users will have different features when they are in grace period.

And on 25th of every month, i want all the active users who have not entered into grace period to enter in grace period. So some users might be active or start using the app on 10th or 15th which in either case will not be entering in grace period on 25th. Hence, i want to forcefully make those users enter grace period. Hope this makes sense.

Thats not what the grace period is for.

Use custom license fields to set a date when customers get different features or must renew with you.