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 } -
An instance of the
AvailabilityServiceprotocolDeclaration
Swift
public var availabilityService: AvailabilityService { 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() -
Gets the latest status of the DexCare services
DexcareStatuscan be used to block certain functions of your app if there is a major incident, or have warnings about possible issues. The DexcareSDK platform does not use this status for any blocking calls. Results are cached, and are updated when any incidents or scheduled maintenances are happening on the DexCare platform.Declaration
Swift
public func getDexcareStatus(success: @escaping (DexcareStatus) -> Void, failure: @escaping (FailedReason) -> Void)Parameters
successa closure called with the
DexcareStatusobject representing the status of the DexCare platformfailurea closure called when the call to get the status fails. If this happens, please contact us.
-
getDexcareStatus()AsynchronousUndocumented
Declaration
Swift
public func getDexcareStatus() async throws -> DexcareStatus
View on GitHub
Install in Dash