Class PlayPass
public class PlayPass : Module<PlayPass, PlayPassConfig, PlayPassDebugger>
Properties
Logger
public override ILog Logger { get; }
IsLicenseActive
Returns a value indicating whether the product appears to be purchased.
public static bool IsLicenseActive { get; }
IsInconclusive
Returns 'true' when the license appears to be active, but the application cannot confirm it during initialization.
public bool IsInconclusive { get; }
Methods
Initialize(Action<InitializationResult>)
protected override void Initialize(Action<InitializationResult> setResult)
Parameters
Type | Name |
---|---|
System.Action<InitializationResult> | setResult |
OnApplicationFocus(bool)
Call this method from OnApplicationFocus in case you are not already
public static void OnApplicationFocus(bool focus)
Parameters
Type | Name |
---|---|
System.Boolean | focus |
Events
InitializationProgressChanged
This event is triggered in the following scenarios: Verifying: Occurs when IsInconclusive is true, and half the duration of the 'Info Timeout' has elapsed. Takes_TooLong: Occurs when IsInconclusive is true and the full duration of the 'Info Timeout' has elapsed. Inconclusive: Occurs when IsInconclusive is true and the 'Final Timeout' period has elapsed. Finalized: Occurs when the State is either 'Initialized' or 'Failed to Initialize', i.e. the process has concluded.
public static event Action<InitializationStage> InitializationProgressChanged
Event Type
System.Action<MatchinghamGames.PlayPassModule.Models.InitializationStage>
OnLicenseActivation
This event is triggered right after the cached license state has been updated.
public static event Action<bool> OnLicenseActivation
Event Type
System.Action<System.Boolean>