Interface RegistrationListener


public interface RegistrationListener
RegistrationListener interface defines a set of callbacks for events related to Voice's register request.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(RegistrationException registrationException, String accessToken, String fcmToken)
    Reports an error related to GCM or FCM token registration.
    void
    onRegistered(String accessToken, String fcmToken)
    Reports a successful GCM or FCM token registration.
  • Method Details

    • onRegistered

      void onRegistered(@NonNull String accessToken, @NonNull String fcmToken)
      Reports a successful GCM or FCM token registration.
    • onError

      void onError(@NonNull RegistrationException registrationException, @NonNull String accessToken, @NonNull String fcmToken)
      Reports an error related to GCM or FCM token registration.
      Parameters:
      registrationException - Exception containing information about the cause of the failure.