Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added crashNow Method docs for flutter. #19664

Merged
merged 3 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
]
]
Loading