Frame Networking
Central SDK singleton. Initialize once with initializeWithAPIKey from your Application.onCreate before using any Frame UI component or API client.
Samples
Properties
The publishable key set during initializeWithAPIKey. Used for client-safe API calls.
The secret key set during initializeWithAPIKey. Used as the Bearer token for most API calls.
HTTP session used for all suspend-based API calls. Replace in tests to inject a mock.
The current SDK version string, sourced from BuildConfig.
Google Pay merchant identifier, captured at SDK init and read by every Google Pay surface (FrameGooglePayButton, the bundled checkout, onboarding's wallet attach). Null until set.
true once Evervault has been successfully configured; false until then.
Base URL for all Frame API requests. Defaults to the production endpoint.
Shared OkHttp client configured with Frame's standard timeouts.
Functions
Applies Evervault credentials when both team id and app id are present. Returns false if config is missing or invalid (do not use Evervault card inputs until this returns true).
Loads Evervault credentials from secure storage or the Frame API (callback-based variant). Prefer ensureEvervaultReadyForCardInputs from a coroutine when possible.
Returns the current Sonar session identifier, or null if Sonar has not been initialized.
Loads Evervault config from secure storage or the Frame API, then applies it. Call from a coroutine before showing Evervault RowsPaymentCard / EncryptedPaymentCardInput.
Returns the application context stored during initializeWithAPIKey.
Executes a GET or DELETE request to endpoint and returns the raw response bytes.
Callback-based GET/DELETE for callers that cannot use coroutines.
Callback-based POST/PATCH for callers that cannot use coroutines.
Executes a multipart POST to endpoint, uploading each FileUpload as a form-data part.
Callback-based multipart POST for callers that cannot use coroutines.