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 Frame account this app run belongs to, set at initializeWithAPIKey or resolved later via setAccountIdIfUnset. Read by com.framepayments.framesdk.accountevents.AccountEventEmitter to attribute account events.
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.
The platform reported on emitted account events. Defaults to "android"; overridden by setHostSDKInfo when this build runs under a wrapper SDK.
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.
Whether an onboarding session (onb_sess_…) is currently active. Lets the onboarding flow avoid re-minting a session when the host already supplied one via OnboardingContainerView.
The wrapper SDK's version reported alongside emitted account events, if any.
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).
Begins an onboarding session scoped to a single account.
Loads Evervault credentials from secure storage or the Frame API (callback-based variant). Prefer EvervaultConfigurator.ensureConfigured from a coroutine when possible.
Returns the current Sonar session identifier, or null if Sonar has not been initialized.
Ends the active onboarding session, restoring normal pk_/sk_ authentication.
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.
Publishes an account resolved after initializeWithAPIKey — onboarding creates the account mid-flow, so a host that launched without one would otherwise emit nothing for the whole run.
Tags subsequent account events as originating from a wrapper SDK (e.g. frame-react-native) instead of directly from this SDK.
Returns the SDK's SonarSessionManager, or null if Sonar has not been initialized.