MuxUploadSdk

This object allows you to get version info, enable logging, override the HTTP client, etc

Before using the SDK, you must call initialize.

Types

Link copied to clipboard
interface Logger

Logs events from this SDK. This interface roughly matches the interface of Log.

Functions

Link copied to clipboard
fun initialize(appContext: Context, resumeStoppedUploads: Boolean = true)

Initializes the SDK with the given Context. The Context instance isn't saved.

Link copied to clipboard

Creates a new Logger that logs to android logcat

Link copied to clipboard

Creates a new Logger that produces no output. It does nothing and discards all input. This is the default logger.

Link copied to clipboard

Creates a new Logger that logs to System.out. Useful for unit test environments, where Log doesn't work

Link copied to clipboard

Use the specified logger for logging events in this SDK. This SDK produces no logs by default. If you need to debug your integration, you can add a logcatLogger or systemOutLogger or implement your own Logger for logging libs like Timber or Firebase Crashlytics

Link copied to clipboard
fun useOkHttpClient(okHttpClient: OkHttpClient)

Use the specified OkHttpClient instead of the default internal okhttp client

Properties

Link copied to clipboard

Logs messages from the SDK. By default, no logging is performed To get logs from this SDK, use useLogger, eg:

Link copied to clipboard
const val VERSION: <Error class: unknown class>

The current version of the SDK. Release builds of this SDK follow semver (https://semver.org)