BNBLicenseManager

Objective-C

@interface BNBLicenseManager : NSObject

/** Creates *new* `LicenceManager`. This metod won't change Banuba SDK internal state. */
+ (nullable BNBLicenseManager *)create:(nonnull NSString *)clientToken;

/**
 * Returns the instance used by Banuba SDK to check licence.
 * This istance was created by `UtilityManager.initialize`.
 */
+ (nullable BNBLicenseManager *)instance;

/** Checks if Client Token is expired. */
- (BNBLicenseStatus)isExpired;

/** Returns decoded content of Client Token */
- (nonnull NSString *)getJson;

/** Returns hash of Client Token */
- (nonnull NSString *)getChecksum;

@end

Swift

class BNBLicenseManager : NSObject

Undocumented

  • Creates new LicenceManager. This metod won’t change Banuba SDK internal state.

    Declaration

    Objective-C

    + (nullable BNBLicenseManager *)create:(nonnull NSString *)clientToken;

    Swift

    class func create(_ clientToken: String) -> BNBLicenseManager?
  • Returns the instance used by Banuba SDK to check licence. This istance was created by UtilityManager.initialize.

    Declaration

    Objective-C

    + (nullable BNBLicenseManager *)instance;

    Swift

    class func instance() -> BNBLicenseManager?
  • Checks if Client Token is expired.

    Declaration

    Objective-C

    - (BNBLicenseStatus)isExpired;

    Swift

    func isExpired() -> BNBLicenseStatus
  • Returns decoded content of Client Token

    Declaration

    Objective-C

    - (nonnull NSString *)getJson;

    Swift

    func getJson() -> String
  • Returns hash of Client Token

    Declaration

    Objective-C

    - (nonnull NSString *)getChecksum;

    Swift

    func getChecksum() -> String