diff --git a/src/content/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/test-crash-reporting.mdx b/src/content/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/test-crash-reporting.mdx index e47e51e412d..70aa8095396 100644 --- a/src/content/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/test-crash-reporting.mdx +++ b/src/content/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/test-crash-reporting.mdx @@ -39,6 +39,10 @@ freshnessValidatedDate: 2023-07-20 React Native + + Flutter + + Unity @@ -249,6 +253,62 @@ crashNow(options?: { message: string; } | undefined) => void ```typescript NewRelicCapacitorPlugin.crashNow(); NewRelicCapacitorPlugin.crashNow({ message: "A demo crash message" }); +``` + + + + ## Syntax [#syntax] + +```dart +crashNow({String name}) : void ; +``` + + ## Description [#description] + + Throws a demo run-time exception on Android/iOS to test New Relic crash reporting. + + ## Parameters [#parameters] + + + + + + + + + + + + + + + + + + + + + +
+ Parameter + + Type + + Description +
+ `name` + + `string` + + Optional. A message attached to the exception. +
+ + ## Example [#example] + +```dart + NewrelicMobile.instance.crashNow(name: "This is a crash"); + NewrelicMobile.instance.crashNow(); + ```
diff --git a/src/data/attribute-dictionary.json b/src/data/attribute-dictionary.json index 7ac1f87bb3e..bf64fb9a265 100644 --- a/src/data/attribute-dictionary.json +++ b/src/data/attribute-dictionary.json @@ -21100,4 +21100,4 @@ "definition": "

The workload status is derived from the alerting status of entities in your workload. This allows you to set up an alert condition to notify you whenever the workload goes into a DISRUPTED or DEGRADED status.

\n", "name": "WorkloadStatus" } -] \ No newline at end of file +]