API reference

AbuseReport Class

Modifiers: final
The Abuse Report API provides a way for users to report abusive behavior or content within the platform. It allows developers to submit reports for various types of content, including users horizon.platform.abusereport.enums.AbuseReportType.User, or an object/content horizon.platform.abusereport.enums.AbuseReportType.Object.

Signature

class AbuseReport

Constructors

AbuseReport ()
Signature
constructor()
Returns
AbuseReport

Methods

reportButtonPressed ()
The user has tapped the report button in the panel that appears after pressing the Oculus button.
This method can return the following status codes: common status codes in AbuseReportStatusCode.
Signature
fun reportButtonPressed(): Flow<String>
Returns
Flow<String>  The ID of the filed report upon success.
reportRequestHandled ( response )
The currently running application has indicated they want to show their in-app reporting flow or that they choose to ignore the request.
This method can return the following status codes: common status codes in AbuseReportStatusCode.
Signature
suspend fun reportRequestHandled(response: ReportRequestResponse)
Parameters
response: ReportRequestResponse  Possible states that an app can respond to the platform notification that the in-app reporting flow has been requested by the user.