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 insudoplatformconfig.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()
AsynchronousDeclaration
Swift
public func redeemEntitlements() async throws -> EntitlementsSet
-
consumeBooleanEntitlements(entitlementNames:
Asynchronous) Declaration
Swift
public func consumeBooleanEntitlements(entitlementNames: [String]) async throws
-
getEntitlementsConsumption()
AsynchronousDeclaration
Swift
public func getEntitlementsConsumption() async throws -> EntitlementsConsumption
-
getExternalId()
AsynchronousDeclaration
Swift
public func getExternalId() async throws -> String