ForkSDK
public class ForkSDK
Undocumented
-
Undocumented
Declaration
Swift
public static let shared: ForkSDK -
Configure the minimum deployment target version for the macOS platform.
Declaration
Swift
public func configure( appId: String, authToken: String, region: ForkRegion? = ForkRegion.EU, loggers: [ForkLogging]? = nil, transformer: ForkTransformerProtocol? = nil )Parameters
appIdApp ID
authTokenApplication token from ForkSDK console.
regionForkRegion.EU or ForkRegion.US
loggersOptional, Provides a way to pass a class which conforms to ForkLogging interface
transformerOptional, Provides a way to pass a class which conforms to ForkTransformerProtocol interface
-
Retrieves the unique application identifier.
Declaration
Swift
public func getAppId() -> String? -
Undocumented
Declaration
Swift
public func getAuthToken() -> String? -
Sets the unique end-user identifier.
Declaration
Swift
public func setCustomerEndUserId(customerEndUserId: String) -
Retrieves the unique end-user identifier.
Declaration
Swift
public func getCustomerEndUserId() -> String? -
Provide permissions to access iOS HealthKit data. SDK methods will check required permissions and request them if needed.
Declaration
Swift
public func ensurePermissionsAreGranted( for dateTypes: Set<ForkDataTypes>, completion: @escaping (Result<Bool, ForkError>) -> Void )Parameters
dateTypesSet of required data types ForkDataTypes
completionCallback
-
Undocumented
Declaration
Swift
public func ensureWritePermissionsAreGranted( for dateTypes: Set<ForkStoreDataTypes>, completion: @escaping (Result<Bool, ForkError>) -> Void ) -
Undocumented
Declaration
Swift
public static func isHealthDataAvailable() -> Bool -
Undocumented
Declaration
Swift
public func createConnection(callbackUrl: String? = nil) -> ForkConnection? -
Undocumented
Declaration
Swift
public func getBackgroundConnections() throws