DexcareSDK
public class DexcareSDK
The main class to initialize to use the DexCare Mobile SDK.
-
An instance of the
PatientServiceprotocolDeclaration
Swift
public var patientService: PatientService { get } -
An instance of the
AppointmentServiceprotocolDeclaration
Swift
public var appointmentService: AppointmentService { get } -
An instance of the
VirtualServiceprotocolDeclaration
Swift
public var virtualService: VirtualService { get } -
An instance of the
RetailServiceprotocolDeclaration
Swift
public var retailService: RetailService { get } -
An instance of the
PracticeServiceprotocolDeclaration
Swift
public var practiceService: PracticeService { get } -
An instance of the
ProviderServiceprotocolDeclaration
Swift
public var providerService: ProviderService { get } -
An instance of the
PaymentServiceprotocolDeclaration
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
accessTokenan 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()
View on GitHub
Install in Dash
DexcareSDK Class Reference