Home > @magiclane/maps-sdk > SocialOverlay > confirmReport
SocialOverlay.confirmReport() method
Provides positive feedback (upvote) for a report.
Confirms that a reported event is accurate and still in effect, increasing the report's score value. Each user can confirm or deny a report only once. The operation executes asynchronously with result delivered via onComplete callback.
Signature:
static confirmReport(item: OverlayItem, onComplete?: (error: GemError) => void): ProgressListener | null;Parameters
Parameter | Type | Description |
|---|---|---|
item | The social report overlay item to confirm. Must be a valid social report from map selection or alarm notification. | |
onComplete | (error: GemError) => void | (Optional) Callback invoked when operation completes or fails with: - GemError.success: Confirmation successfully recorded - GemError.invalidInput: item is not a social report overlay item or not from alarm notification - GemError.accessDenied: User has already confirmed or denied this report |
Returns:
ProgressListener | null
ProgressListener if operation was successfully initiated, null otherwise