public interface

SdkStartCallback

com.steerpath.sdk.common.SdkStartCallback

Class Overview

The callback interface for receiving information of SteerpathClient loading process.

With low end devices and very large OfflineBundles, SteerpathClient.start() may take very long time, up to 2 minutes. OfflineBundle is installed only once when SDK is started for the very first time. Subsequent startups are much faster.

Summary

Public Methods
abstract void onError(SdkLoadException e)
Called in response to start(Context, SdkConfig, SdkStartCallback)} if something went wrong.
abstract void onRejected()
Called in response to start(Context, SdkConfig, SdkStartCallback)} if SteerpathClient has already been started or is still starting.
abstract void onStarted()
Called when start(Context, SdkConfig, SdkStartCallback)} has finished and SDK is fully started.
abstract void onStarting()
Called when start(Context, SdkConfig, SdkStartCallback)} starts loading the SDK.

Public Methods

public abstract void onError (SdkLoadException e)

Called in response to start(Context, SdkConfig, SdkStartCallback)} if something went wrong.

public abstract void onRejected ()

Called in response to start(Context, SdkConfig, SdkStartCallback)} if SteerpathClient has already been started or is still starting. If you need to restart Steerpath client, perhaps wit different SdkConfig, call stop() first.

public abstract void onStarted ()

Called when start(Context, SdkConfig, SdkStartCallback)} has finished and SDK is fully started. It is recommended to wait for this callback to be invoked before allowing user to enter map view.

public abstract void onStarting ()

Called when start(Context, SdkConfig, SdkStartCallback)} starts loading the SDK.