Object HuaweiMessagingDelegate

  • All Implemented Interfaces:

    
    public class HuaweiMessagingDelegate
    
                        

    Helper class for delegating Huawei push messages to the Stream Chat SDK.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean handleRemoteMessage(RemoteMessage remoteMessage) Handles remoteMessage from Huawei.
      final static Unit registerHuaweiToken(String token, String providerName) Register new Huawei Token.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • handleRemoteMessage

         final static Boolean handleRemoteMessage(RemoteMessage remoteMessage)

        Handles remoteMessage from Huawei. If the remoteMessage wasn't sent from the Stream Server and doesn't contain the needed data, return false to notify you that this remoteMessage needs to be handled by you.

        Parameters:
        remoteMessage - The message to be handled.
        Returns:

        True if the remoteMessage was sent from the Stream Server and has been handled.

      • registerHuaweiToken

         final static Unit registerHuaweiToken(String token, String providerName)

        Register new Huawei Token.

        Parameters:
        token - provided by Huawei.
        providerName - The provider name.