Skip to main content

Class PlayPass

Declaration
public class PlayPass : Module<PlayPass, PlayPassConfig, PlayPassDebugger>

Properties

Logger

Declaration
public override ILog Logger { get; }

IsLicenseActive

Returns a value indicating whether the product appears to be purchased.

Declaration
public static bool IsLicenseActive { get; }

IsInconclusive

Returns 'true' when the license appears to be active, but the application cannot confirm it during initialization.

Declaration
public bool IsInconclusive { get; }

Methods

Initialize(Action<InitializationResult>)

Declaration
protected override void Initialize(Action<InitializationResult> setResult)
Parameters
TypeName
System.Action<InitializationResult>setResult

OnApplicationFocus(bool)

Call this method from OnApplicationFocus in case you are not already

Declaration
public static void OnApplicationFocus(bool focus)
Parameters
TypeName
System.Booleanfocus

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.

Declaration
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.

Declaration
public static event Action<bool> OnLicenseActivation
Event Type

System.Action<System.Boolean>