stopResource method

void stopResource(
  1. String key,
  2. int? statusCode,
  3. RumResourceType kind, [
  4. int? size,
  5. Map<String, Object?> attributes = const {},
])

Notifies that the Resource identified by key stopped being loaded successfully and supplies additional information about the Resource loaded, including its kind, the statusCode of the response, the size of the Resource, and any other custom attributes to attach to the resource.

Implementation

void stopResource(String key, int? statusCode, RumResourceType kind,
    [int? size, Map<String, Object?> attributes = const {}]) {
  wrap('rum.stopResource', logger, attributes, () {
    return _platform.stopResource(key, statusCode, kind, size, attributes);
  });
}