Check if a single entitlement is currently active.

NamiEntitlementManager.isEntitlementActive(_ referenceID: String ) -> Bool
BOOL isActive = [NamiEntitlementManager isEntitlementActive: NSString];
NamiEntitlementManager.isEntitlementActive(referenceId: String): Boolean
boolean NamiEntitlementManager.isEntitlementActive(String referenceId)
NativeModules.NamiEntitlementManagerBridge.isEntitlementActive(String, (active) => { });
NamiEntitlementManager.isEntitlementActive(String referenceId) → Future<bool>
bool NamiEntitlementManager.IsEntitlementActive(string referenceID);

Note that parameter names differ slightly by platform.

Parameters

  • referenceID / referenceId - a string that is the entitlement reference ID from the Control Center.

Returns

true if active, false otherwise.