Interface YospaceComponent.SessionListener

Enclosing class:
YospaceComponent

public static interface YospaceComponent.SessionListener
Receives initialization results and runtime session failures.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onSessionError(com.yospace.admanagement.AnalyticEventObserver.SessionError error, com.yospace.admanagement.Session session)
    Called when an initialized session reports a runtime error.
    void
    onSessionResult(com.yospace.admanagement.Session.SessionState state, int resultCode, com.yospace.admanagement.Session session)
    Called for INITIALISED, NO_ANALYTICS and FAILED initialization results.
  • Method Details

    • onSessionResult

      void onSessionResult(@NonNull com.yospace.admanagement.Session.SessionState state, int resultCode, @Nullable com.yospace.admanagement.Session session)
      Called for INITIALISED, NO_ANALYTICS and FAILED initialization results.
      Parameters:
      state - initialization state
      resultCode - vendor result code
      session - returned session, if one was created
    • onSessionError

      void onSessionError(@NonNull com.yospace.admanagement.AnalyticEventObserver.SessionError error, @NonNull com.yospace.admanagement.Session session)
      Called when an initialized session reports a runtime error.
      Parameters:
      error - runtime error
      session - session which reported the error