DexcareSDK
public class DexcareSDK
The main class to initialize to use the DexCare Mobile SDK.
-
An instance of the
PatientService
protocolDeclaration
Swift
public var patientService: PatientService { get }
-
An instance of the
AppointmentService
protocolDeclaration
Swift
public var appointmentService: AppointmentService { get }
-
An instance of the
VirtualService
protocolDeclaration
Swift
public var virtualService: VirtualService { get }
-
An instance of the
RetailService
protocolDeclaration
Swift
public var retailService: RetailService { get }
-
An instance of the
PracticeService
protocolDeclaration
Swift
public var practiceService: PracticeService { get }
-
An instance of the
ProviderService
protocolDeclaration
Swift
public var providerService: ProviderService { get }
-
An instance of the
PaymentService
protocolDeclaration
Swift
public var paymentService: PaymentService { get }
-
The object that acts as the refreshTokenDelegate of the DexcareSDK
The refreshTokenDelegate must adopt the RefreshTokenDelegate protocol. The sdk maintains a weak reference to the refreshTokenDelegate object. The refreshTokenDelegate object is responsible for requesting a new OAuth2 Token from the client when a network call receives a 401.
Note
if the refreshTokenDelegate is not set the calls will simply pass down the 401 to the client.Declaration
Swift
public weak var refreshTokenDelegate: RefreshTokenDelegate? { get set }
-
A set of options used by the SDK for UI changes, integration setup, various config options.
Declaration
Swift
public var customizationOptions: CustomizationOptions? { get set }
-
Undocumented
Declaration
Swift
public init(configuration: DexcareConfiguration)
-
Sets the bearer token for the majority of subsequent calls to the dexcare platform.
A valid 0Auth2 token is required for the majority of the SDK calls.
Declaration
Swift
public func signIn(accessToken: String)
Parameters
accessToken
an OAuth2 token used for all calls
-
Removes the bearer token for the calls.
Removes any cached values A valid 0Auth2 token is required for the majority of the SDK calls.
Declaration
Swift
public func signOut()