NavigationApi.OnTermsResponseListener

  • NavigationApi.OnTermsResponseListener allows you to receive the user's response to terms and conditions presented by the Navigation SDK.

  • Register this listener using NavigationApi.showTermsAndConditionsDialog() to handle user acceptance or declination.

  • The onTermsResponse() method provides a boolean value indicating whether the terms were accepted (true) or declined (false).

public static interface NavigationApi.OnTermsResponseListener

Register an OnTermsResponseListener with NavigationApi.showTermsAndConditionsDialog(Activity, String, OnTermsResponseListener) to be notified when the user accepts or declines the terms and conditions. The notification will occur on the UI thread.

Public Method Summary

abstract void
onTermsResponse(boolean accepted)
Indicates whether the terms and conditions were accepted by the user.

Public Methods

public abstract void onTermsResponse (boolean accepted)

Indicates whether the terms and conditions were accepted by the user.

Parameters
accepted true if the terms have been accepted by the user, and false otherwise