API reference

AdvancedAbuseReportOptions Class

The Advanced Abuse Report Options provides a way for developers to customize the reporting flow and specify the type of content being reported, which can be either a com.meta.horizon.platform.ovr.enums.AbuseReportType#User or an com.meta.horizon.platform.ovr.enums.AbuseReportType#Object, helping to maintain a safe and respectful community within their application.

Constructors

AdvancedAbuseReportOptions ()
Signature
com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.AdvancedAbuseReportOptions()

Protected Methods

finalize ()
Signature
void com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.finalize()
Returns
void

Methods

addSuggestedUser ( userID )
Provide a list of users to suggest for reporting. This list should include users that the reporter has recently interacted with to aid them in selecting the right user to report.
Signature
void com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.addSuggestedUser(long userID)
Parameters
userID: long
Returns
void
clearDeveloperDefinedContext ()
Signature
void com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.clearDeveloperDefinedContext()
Returns
void
clearSuggestedUsers ()
Signature
void com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.clearSuggestedUsers()
Returns
void
getHandle ()
Signature
long com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.getHandle()
Returns
long
setDeveloperDefinedContext ( key , value )
This field is intended to allow developers to pass custom metadata through the report flow. The metadata passed through is included with the report received by the developer.
Signature
void com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.setDeveloperDefinedContext(String key, String value)
Parameters
key: String
value: String
Returns
void
setObjectType ( value )
If AbuseReportType is com.meta.horizon.platform.ovr.enums.AbuseReportType#Object, a string representing the type of content being reported. This should correspond to the object_type string used in the UI.
Signature
void com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.setObjectType(String value)
Parameters
value: String
Returns
void
setReportType ( value )
The intended entity type AbuseReportType being reported, it can be either a user com.meta.horizon.platform.ovr.enums.AbuseReportType#User or an object/content com.meta.horizon.platform.ovr.enums.AbuseReportType#Object.
Signature
void com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.setReportType(AbuseReportType value)
Parameters
value: AbuseReportType
Returns
void
setVideoMode ( value )
The video mode AbuseReportVideoMode controls whether or not the abuse report flow should collect evidence and whether it is optional or not. com.meta.horizon.platform.ovr.enums.AbuseReportVideoMode#Collect requires video evidence to be provided by the user. com.meta.horizon.platform.ovr.enums.AbuseReportVideoMode#Optional presents the user with the option to provide video evidence. com.meta.horizon.platform.ovr.enums.AbuseReportVideoMode#Skip bypasses the video evidence collection step altogether.
Signature
void com.meta.horizon.platform.ovr.options.AdvancedAbuseReportOptions.setVideoMode(AbuseReportVideoMode value)
Parameters
value: AbuseReportVideoMode
Returns
void