overlayAttack function

Stream<int> overlayAttack({
  1. String instanceName = '',
})

Epoch milliseconds of each obscured touch (Android).

Returns a broadcast Stream of events from the overlayAttack event channel.

Each call to this method creates a new EventChannel, so it should not be called multiple times for the same instanceName. To deliver events to multiple listeners, call this method once and listen to the returned broadcast stream multiple times instead.

Implementation

Stream<int> overlayAttack({String instanceName = ''}) {
  if (instanceName.isNotEmpty) {
    instanceName = '.$instanceName';
  }
  final EventChannel overlayAttackChannel = EventChannel(
    'dev.flutter.pigeon.device_safety_info.DeviceSafetyEvents.overlayAttack$instanceName',
    pigeonMethodCodec,
  );
  return overlayAttackChannel.receiveBroadcastStream().map((dynamic event) {
    return event as int;
  });
}