RecentActivityMonitor

object RecentActivityMonitor : ActivityLifecycleCallbacksImpl

监测最近的 activities 注意: 其中主要依赖于 Activity.onCreate 和 Activity.onDestroy。

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
first
Link copied to clipboard
fun first(): Activity?
获取第一个创建的 Activity
getRecentCreatedActivityList
Link copied to clipboard
fun getRecentCreatedActivityList(): List<Activity>
获取最近创建的 Activity 列表
hashCode
Link copied to clipboard
open fun hashCode(): Int
last
Link copied to clipboard
fun last(): Activity?
获取最后一个创建的 Activity
onActivityCreated
Link copied to clipboard
open override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?)
onActivityDestroyed
Link copied to clipboard
open override fun onActivityDestroyed(activity: Activity)
onActivityPaused
Link copied to clipboard
open override fun onActivityPaused(activity: Activity)
onActivityPostCreated
Link copied to clipboard
open fun onActivityPostCreated(p0: Activity, p1: Bundle?)
onActivityPostDestroyed
Link copied to clipboard
open fun onActivityPostDestroyed(p0: Activity)
onActivityPostPaused
Link copied to clipboard
open fun onActivityPostPaused(p0: Activity)
onActivityPostResumed
Link copied to clipboard
open fun onActivityPostResumed(p0: Activity)
onActivityPostSaveInstanceState
Link copied to clipboard
open fun onActivityPostSaveInstanceState(p0: Activity, p1: Bundle)
onActivityPostStarted
Link copied to clipboard
open fun onActivityPostStarted(p0: Activity)
onActivityPostStopped
Link copied to clipboard
open fun onActivityPostStopped(p0: Activity)
onActivityPreCreated
Link copied to clipboard
open fun onActivityPreCreated(p0: Activity, p1: Bundle?)
onActivityPreDestroyed
Link copied to clipboard
open fun onActivityPreDestroyed(p0: Activity)
onActivityPrePaused
Link copied to clipboard
open fun onActivityPrePaused(p0: Activity)
onActivityPreResumed
Link copied to clipboard
open fun onActivityPreResumed(p0: Activity)
onActivityPreSaveInstanceState
Link copied to clipboard
open fun onActivityPreSaveInstanceState(p0: Activity, p1: Bundle)
onActivityPreStarted
Link copied to clipboard
open fun onActivityPreStarted(p0: Activity)
onActivityPreStopped
Link copied to clipboard
open fun onActivityPreStopped(p0: Activity)
onActivityResumed
Link copied to clipboard
open override fun onActivityResumed(activity: Activity)
onActivitySaveInstanceState
Link copied to clipboard
open override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle)
onActivityStarted
Link copied to clipboard
open override fun onActivityStarted(activity: Activity)
onActivityStopped
Link copied to clipboard
open override fun onActivityStopped(activity: Activity)
second
Link copied to clipboard
fun second(): Activity?
获取第二个创建的 Activity
secondLast
Link copied to clipboard
fun secondLast(): Activity?
获取倒数第二个创建的 Activity
setup
Link copied to clipboard
fun setup(application: Application)
初始化监测器,建议在 Application.
toString
Link copied to clipboard
open fun toString(): String

Properties

recentCreatedActivities
Link copied to clipboard
private val recentCreatedActivities: MutableList<Activity>