prepareReporting static method

int prepareReporting({
  1. DataSource? dataSource,
  2. int categId = 0,
})

Prepares reporting based on the current data source used by PositionService.

Parameters

  • 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.
  • IN dataSource The DataSource from which the report position is set. Default is the current position service data source.

** Returns if in dry run mode (category ID != 0): **

** Returns if preparing mode (category ID == 0):**

Implementation

static int prepareReporting({DataSource? dataSource, final int categId = 0}) {
  dataSource ??= PositionService.getDataSource();
  final OperationResult result = staticMethod(
    'SocialOverlay',
    'prepareReporting',
    args: <String, dynamic>{
      'categId': categId,
      'dataSource': dataSource == null ? 0 : dataSource.pointerId,
    },
  );
  return result['result'];
}