registerPollingLoopPatternFilter method

Future<bool> registerPollingLoopPatternFilter({
  1. required String pattern,
  2. bool autoTransact = false,
})

As registerPollingLoopFilter, but pattern matches a family of frames.

Not a regular expression, despite the name, and the platform is strict about it: measured on Android 17, a pattern must begin with hex digits and may then use * and ?. 6A* and 6A01 are accepted; .*, a bare *, ???? and *6A* are all rejected with PlatformException('unavailable', 'Polling loop pattern filters may only contain hexadecimal numbers, ?s and *s'). Case does not matter.

Implementation

Future<bool> registerPollingLoopPatternFilter({required String pattern, bool autoTransact = false}) =>
    androidApi.hceRegisterPollingLoopPatternFilter(pattern, autoTransact);