Package 

Object XiaomiMessagingDelegate

  • All Implemented Interfaces:

    
    public class XiaomiMessagingDelegate
    
                        

    Helper class for delegating Xiaomi 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 handleMiPushMessage(MiPushMessage miPushMessage) Handles miPushMessage from Xiaomi.
      final static Unit registerXiaomiToken(MiPushCommandMessage miPushCommandMessage, String providerName) Register new Xiaomi Token.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • handleMiPushMessage

         final static Boolean handleMiPushMessage(MiPushMessage miPushMessage)

        Handles miPushMessage from Xiaomi. If the miPushMessage 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:
        miPushMessage - The message to be handled.
      • registerXiaomiToken

         final static Unit registerXiaomiToken(MiPushCommandMessage miPushCommandMessage, String providerName)

        Register new Xiaomi Token.

        Parameters:
        miPushCommandMessage - provided by Xiaomi.
        providerName - Optional name for the provider name.