mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
feat(newrelic): add shutdown method (#4571)
Co-authored-by: Kenny <kthai@newrelic.com>
This commit is contained in:
parent
fbd523f36a
commit
178f56625e
@ -124,7 +124,6 @@ export class NewRelic extends AwesomeCordovaNativePlugin {
|
|||||||
return; // We add return; here to avoid any IDE / Compiler errors
|
return; // We add return; here to avoid any IDE / Compiler errors
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Throws a demo run-time exception to test New Relic crash reporting.
|
* Throws a demo run-time exception to test New Relic crash reporting.
|
||||||
* @param {string} message An optional argument attached to the exception.
|
* @param {string} message An optional argument attached to the exception.
|
||||||
@ -316,4 +315,13 @@ export class NewRelic extends AwesomeCordovaNativePlugin {
|
|||||||
return; // We add return; here to avoid any IDE / Compiler errors
|
return; // We add return; here to avoid any IDE / Compiler errors
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shut down the agent within the current application lifecycle during runtime.
|
||||||
|
*/
|
||||||
|
@Cordova({
|
||||||
|
sync: true,
|
||||||
|
})
|
||||||
|
shutdown(): void {
|
||||||
|
return; // We add return; here to avoid any IDE / Compiler errors
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user