Package 

Class ChatXiaomiMessagingReceiver

  • All Implemented Interfaces:

    
    public final class ChatXiaomiMessagingReceiver
    extends PushMessageReceiver
                        

    Receiver that handle Push Notifications from Xiaomi servers.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit onReceivePassThroughMessage(Context context, MiPushMessage miPushMessage) This method is called when a push notification is received from Xiaomi Servers.
      Unit onReceiveRegisterResult(Context context, MiPushCommandMessage miPushCommandMessage) This method is called when the device is registered on Xiaomi Servers.
      • Methods inherited from class com.xiaomi.mipush.sdk.PushMessageReceiver

        onCommandResult, onNotificationMessageArrived, onNotificationMessageClicked, onReceive, onReceiveMessage, onRequirePermissions
      • Methods inherited from class android.content.BroadcastReceiver

        abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
      • Methods inherited from class java.lang.Object

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

      • ChatXiaomiMessagingReceiver

        ChatXiaomiMessagingReceiver()
    • Method Detail

      • onReceivePassThroughMessage

         Unit onReceivePassThroughMessage(Context context, MiPushMessage miPushMessage)

        This method is called when a push notification is received from Xiaomi Servers.

        Parameters:
        context - The Context where this code is run.
        miPushMessage - A MiPushMessage that contains inifo about the push notification.
      • onReceiveRegisterResult

         Unit onReceiveRegisterResult(Context context, MiPushCommandMessage miPushCommandMessage)

        This method is called when the device is registered on Xiaomi Servers.

        Parameters:
        context - The Context where this code is run.
        miPushCommandMessage - A MiPushCommandMessage that contains inifo about the device.