setBlockCustomKeyboards method
(iOS) Whether third-party keyboard extensions should be refused. Stored, so it applies from the next launch's first keyboard; the app's AppDelegate consults it. No-op on Android.
Implementation
Future<void> setBlockCustomKeyboards(bool block) async {
final pigeonVar_channelName =
'dev.flutter.pigeon.device_safety_info.EnvironmentHostApi.setBlockCustomKeyboards$pigeonVar_messageChannelSuffix';
final pigeonVar_channel = BasicMessageChannel<Object?>(
pigeonVar_channelName,
pigeonChannelCodec,
binaryMessenger: pigeonVar_binaryMessenger,
);
final Future<Object?> pigeonVar_sendFuture = pigeonVar_channel.send(
<Object?>[block],
);
final pigeonVar_replyList = await pigeonVar_sendFuture as List<Object?>?;
_extractReplyValueOrThrow(
pigeonVar_replyList,
pigeonVar_channelName,
isNullValid: true,
);
}