Callbacks and Error handling
Whenever there’s an error, the SDK returns a
CustomerIOError instance. For now, the SDK doesn’t handle errors for your app; you need to handle errors on your own.
Our mobile SDKs are in alpha and subject to change
This page is part of an introductory series to help you get started with the essential features of our SDK. The highlighted step(s) below are covered on this page. Before you continue, make sure you've implemented previous features—i.e. you can't identify people before you initialize the SDK!
The SDK provides an
Action interface for almost all of its methods. You can use it to make method calls execute synchronously or asynchronously.
Method calls return a
Result<T> object, which itself contains a
ErrorResult<T> object. To get error details,
ErrorResult provides an
class ErrorDetail( val message: String? = null, val statusCode: StatusCode = StatusCode.Unknown, val cause: Throwable = Throwable() )