Språk

ApplicationErrorReport.GetErrorReportReceiver Method

Definition

Returns an activity that handles application-error reports for the specified package.

[Android.Runtime.Register("getErrorReportReceiver", "(Landroid/content/Context;Ljava/lang/String;I)Landroid/content/ComponentName;", "")]
public static Android.Content.ComponentName? GetErrorReportReceiver(Android.Content.Context? context, string? packageName, Android.Content.PM.ApplicationInfoFlags appFlags);
[<Android.Runtime.Register("getErrorReportReceiver", "(Landroid/content/Context;Ljava/lang/String;I)Landroid/content/ComponentName;", "")>]
static member GetErrorReportReceiver : Android.Content.Context * string * Android.Content.PM.ApplicationInfoFlags -> Android.Content.ComponentName

Parameters

context
Context

Context

packageName
String

String

appFlags
ApplicationInfoFlags

int

Returns

The selected activity component that handles application-error reports, or null when reporting is disabled or no suitable receiver resolves.

Attributes

Remarks

Android reference for android.app.ApplicationErrorReport.getErrorReportReceiver.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to