prepareReportingCoords static method
- Coordinates coords, {
- int categId = 0,
Prepares reporting based on custom coordinates.
Parameters
- IN coords Report coordinates.
- IN categId Report category ID, default = 0. If != 0, a dry run test is performed to check if the given category ID can be reported.
Returns if in dry run mode (category ID != 0):
- GemError.suspended.id - Report rate limit exceeded.
- GemError.invalidInput.id - categId is not a valid social report category ID.
- GemError.accessDenied.id - Social report overlay category doesn't allow custom coordinates reporting; call prepareReporting with DataSource instead.
Returns if in preparing run mode (category ID == 0):
- GemError.suspended.id - Report rate limit exceeded.
- value > 0 - The prepared operation ID.
Implementation
static int prepareReportingCoords(
final Coordinates coords, {
final int categId = 0,
}) {
final OperationResult result = staticMethod(
'SocialOverlay',
'prepareReportingCoords',
args: <String, dynamic>{'coords': coords, 'categId': categId},
);
return result['result'];
}