isEngagementSignalsApiAvailable method
Returns whether the Engagement Signals API is available.
The availability of the Engagement Signals API may change at runtime.
If an EngagementSignalsCallback has been set, an PlatformChromeSafariBrowserEvents.onSessionEnded
signal will be sent if the API becomes unavailable later.
Returns whether the Engagement Signals API is available.
Officially Supported Platforms/Implementations:
Implementation
@override
Future<bool> isEngagementSignalsApiAvailable() async {
Map<String, dynamic> args = <String, dynamic>{};
return await channel?.invokeMethod<bool>(
"isEngagementSignalsApiAvailable", args) ??
false;
}