OnInitCallback

This interface is used with init(SdkConfig, OnInitCallback).

OnInitCallback API

onInitFailure()

void onInitFailure(InitIssue issue, @Nullable Throwable throwable)

Called when an issue was encountered while initializing the SDK.

Parameters

issue

An InitIssue enum indicating the issue.

throwable

An optional Throwable in case of INITIALIZATION_ERROR.

onInitSuccess()

void onInitSuccess()

Called when SDK initialization completed successfully. You can now start the SDK detections, and access any of the other methods on the Sentiance class.

Last updated