setURLMaskingPatterns abstract method

Future<void> setURLMaskingPatterns({
  1. required List<String> patterns,
})

Sets the URL masking patterns.

Use this API to mask any URL path. For example: the pattern "www.example.com/user/:user_id" would mask all the following URLs:

  • "www.example.com/user/198?param=value"
  • "www.example.com/user/199?param=value"

to "www.example.com/user/CS_ANONYMIZED_USER_ID?param=value"

Note: Email addresses are masked automatically and don't require this API.

Implementation

Future<void> setURLMaskingPatterns({required List<String> patterns});