Interface RegistrationListener


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onError​(RegistrationException registrationException, java.lang.String accessToken, java.lang.String fcmToken)
      Reports an error related to GCM or FCM token registration.
      void onRegistered​(java.lang.String accessToken, java.lang.String fcmToken)
      Reports a successful GCM or FCM token registration.
    • Method Detail

      • onRegistered

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

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