DefaultSudoEntitlementsClient

public class DefaultSudoEntitlementsClient : SudoEntitlementsClient

Default Client API Endpoint for interacting with the Entitlements Service.

  • Configuration parameter names.

    Declaration

    Swift

    public struct Config
  • Initialize an instance of DefaultSudoEntitlementsClient. It uses configuration parameters defined in sudoplatformconfig.json file located in the app bundle.

    Declaration

    Swift

    public convenience init(userClient: SudoUserClient) throws

    Parameters

    userClient

    SudoUserClient instance used for authentication. Throws:

  • Declaration

    Swift

    public func reset() throws
  • redeemEntitlements() Asynchronous

    Declaration

    Swift

    public func redeemEntitlements() async throws -> EntitlementsSet
  • Declaration

    Swift

    public func consumeBooleanEntitlements(entitlementNames: [String]) async throws
  • Declaration

    Swift

    public func getEntitlementsConsumption() async throws -> EntitlementsConsumption
  • getExternalId() Asynchronous

    Declaration

    Swift

    public func getExternalId() async throws -> String