Skip to content

Commit

Permalink
Merge pull request #19664 from ndesai-newrelic/develop
Browse files Browse the repository at this point in the history
added crashNow Method docs for flutter.
  • Loading branch information
newrelic707195 authored Jan 9, 2025
2 parents 763bb6f + fd01958 commit 63bd26c
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ freshnessValidatedDate: 2023-07-20
React Native
</TabsBarItem>

<TabsBarItem id="flutter">
Flutter
</TabsBarItem>

<TabsBarItem id="unity">
Unity
</TabsBarItem>
Expand Down Expand Up @@ -249,6 +253,62 @@ crashNow(options?: { message: string; } | undefined) => void
```typescript
NewRelicCapacitorPlugin.crashNow();
NewRelicCapacitorPlugin.crashNow({ message: "A demo crash message" });
```
</TabsPageItem>

<TabsPageItem id="flutter">
## 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]

<table>
<thead>
<tr>
<th width={200}>
Parameter
</th>

<th width={200}>
Type
</th>

<th>
Description
</th>
</tr>
</thead>

<tbody>
<tr>
<td>
`name`
</td>

<td>
`string`
</td>

<td>
Optional. A message attached to the exception.
</td>
</tr>
</tbody>
</table>

## Example [#example]

```dart
NewrelicMobile.instance.crashNow(name: "This is a crash");
NewrelicMobile.instance.crashNow();
```
</TabsPageItem>

Expand Down
2 changes: 1 addition & 1 deletion src/data/attribute-dictionary.json
Original file line number Diff line number Diff line change
Expand Up @@ -21100,4 +21100,4 @@
"definition": "<p>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.</p>\n",
"name": "WorkloadStatus"
}
]
]

0 comments on commit 63bd26c

Please sign in to comment.