Ovok

Generated reference for ovok_flutter: ovok.

  • Stable unknown
  • Release candidate not available
  • Development since 0.2.0-dev.51+80996d9

Ovok

class Ovok extends Ovok

The ovok_sdk client with unsent measurements kept in SQLite, sent when the network returns and when the app comes to the foreground.

Constructors

Ovok.new

Ovok({
  required String baseUrl,
  required String tenantCode,
  required OvokSecureStore secureStore,
  String fhirPath = 'fhir',
  String? clientId,
  Client? httpClient,
  Duration timeout = const Duration(seconds: 30),
  int maxNetworkRetries = 2,
  UnauthenticatedListener? onUnauthenticated,
  JsContract? jsContract,
  OutboxStore? outboxStore,
  OutboxConnectivity? connectivity,
  OutboxLifecycle? lifecycle,
})

Creates a client for tenantCode on the Ovok API at baseUrl; the options before outboxStore are those of ovok_sdk's Ovok.

Unsent measurements wait in the app's SQLite database ovok-outbox.db unless outboxStore is given; on the web, which has no SQLite, they wait in secureStore. connectivity defaults to connectivity_plus and lifecycle to an AppLifecycleListener, which needs the Flutter binding to be initialized before the client is created.

ParameterTypeKindDefault
baseUrlStringrequired named
tenantCodeStringrequired named
secureStoreOvokSecureStorerequired named
fhirPathStringnamed'fhir'
clientIdString?named
httpClientClient?named
timeoutDurationnamedconst Duration(seconds: 30)
maxNetworkRetriesintnamed2
onUnauthenticatedUnauthenticatedListener?named
jsContractJsContract?named
outboxStoreOutboxStore?named
connectivityOutboxConnectivity?named
lifecycleOutboxLifecycle?named

Last updated on

On this page