registerPollingLoopPatternFilter method
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);