Class WakeLockUtils

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      WakeLockUtils()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void scheduleHeartbeat(Context context) Enables heartbeat (sends a fixed message to the server at regular intervals.
      static void cancelHeartbeat(Context context) Cancels the heartbeat, for internal SDK use.
      static void disableSDKHeartBeat(Context context) Disables the SDK's default background heartbeat mechanism with a 2.5-minute interval.
      • Methods inherited from class java.lang.Object

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

      • WakeLockUtils

        WakeLockUtils()
    • Method Detail

      • scheduleHeartbeat

         static void scheduleHeartbeat(Context context)

        Enables heartbeat (sends a fixed message to the server at regular intervals. If the server does not receive any message from the client within a few minutes, the client is considered disconnected.)

        Parameters:
        context - The context
      • cancelHeartbeat

         static void cancelHeartbeat(Context context)

        Cancels the heartbeat, for internal SDK use. Current usage scenarios: - Callback execution when connect fails - Execution during logout (disconnect)

        Parameters:
        context - The context
      • disableSDKHeartBeat

         static void disableSDKHeartBeat(Context context)

        Disables the SDK's default background heartbeat mechanism with a 2.5-minute interval.

        Parameters:
        context - The context