Version: 2023.2

ApplicationExitInfoProvider.GetHistoricalProcessExitInfo

切换到手册
public static IApplicationExitInfo[] GetHistoricalProcessExitInfo (string packageName, int pid, int maxNum);

参数

packageName Application package name
pid Process ID
maxNum Maximum number of records to return

返回

IApplicationExitInfo[] An array of ApplicationExitInfo records sorted by date.

描述

Gets records of application terminations including the reasons for the most recent terminations.

Mirrors android:android.app.ApplicationExitInfo gethistoricalprocessexitreasons() method. For more information, refer to Android's documentation on getHistoricalProcessExitReasons method.