AppInactivityManager

com.anywherecommerce.android.sdk

Class AppInactivityManager

  • java.lang.Object

  • com.anywherecommerce.android.sdk.AppInactivityManager

  • public class <span class="typeNameLabel">AppInactivityManager</span>
    extends java.lang.Object
    

    Created by Abhishek on 28-09-2017.

Field Summary

  Modifier and TypeField and Description`protected static 

GenericEventListener``

inactivityTimeoutHandler protected static int``

inactivityTimeoutInterval protected static java.util.Timer``

inactivityTimer static boolean``

isMonitoringUserInactivity protected static java.util.Date``

lastActivity`

Method Summary

  Modifier and TypeMethod and Description`static boolean``<span class="memberNameLink">

hasTimedOut() protected static void``

killCountdownTimer() static void``

onUserInteraction() static void``

setInactivityTimeout(int inactivityTimeoutInMinutes) static void````

setInactivityTimeout(int inactivityTimeoutInMinutes,
GenericEventListener listener)
` `protected static void

startCountdownTimer() static void``

startMonitoringAppInactivity() static void``

stopMonitoringAppInactivity()`

Methods inherited from class java.lang.Object

        `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

inactivityTimeoutHandler

        `protected static 

GenericEventListener inactivityTimeoutHandler`

inactivityTimer

        `protected static java.util.Timer inactivityTimer`

lastActivity

        `protected static java.util.Date lastActivity`

inactivityTimeoutInterval

        `protected static int inactivityTimeoutInterval`

isMonitoringUserInactivity

        `public static boolean isMonitoringUserInactivity`

Method Detail

setInactivityTimeout

        ```
        public static void setInactivityTimeout(int inactivityTimeoutInMinutes,

GenericEventListener listener)
```

setInactivityTimeout

        `public static void setInactivityTimeout(int inactivityTimeoutInMinutes)`

startMonitoringAppInactivity

        `public static void startMonitoringAppInactivity()`

stopMonitoringAppInactivity

        `public static void stopMonitoringAppInactivity()`

onUserInteraction

        `public static void onUserInteraction()`

hasTimedOut

        `public static boolean hasTimedOut()`

startCountdownTimer

        `protected static void startCountdownTimer()`

killCountdownTimer

        `protected static void killCountdownTimer()`