checkPermissions method
Returns whether the app can post notifications and what kind of.
See NotificationsEnabledOptions for more info.
Implementation
Future<NotificationsEnabledOptions?> checkPermissions() =>
_channel.invokeMethod<Map<dynamic, dynamic>?>('checkPermissions').then(
(Map<dynamic, dynamic>? dict) {
if (dict == null) {
return null;
}
return NotificationsEnabledOptions(
isEnabled: dict['isEnabled'] ?? false,
isAlertEnabled: dict['isAlertEnabled'] ?? false,
isBadgeEnabled: dict['isBadgeEnabled'] ?? false,
isSoundEnabled: dict['isSoundEnabled'] ?? false,
isProvisionalEnabled: dict['isProvisionalEnabled'] ?? false,
isCriticalEnabled: dict['isCriticalEnabled'] ?? false,
);
},
);