AzureNotificationHubPlatform class abstract

Base class for the AzureNotificationHub platform interface.

Inheritance
  • Object
  • PlatformInterface
  • AzureNotificationHubPlatform
Implementers

Constructors

AzureNotificationHubPlatform.new()
Constructs a AzureNotificationHubPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addTags(List<String> tags) Future<bool>
Add tags for the device. If one of the tags already exists, it will be ignored.
clearTags() Future<void>
Clear all tags from the device.
getInitialMessage() Future<Map<String, dynamic>?>
Get the initial message that caused the app to open.
getTags() Future<List<String>>
Get the tags that are currently set for the device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerBackgroundMessageHandler(BackgroundMessageHandler handler) Future<void>
Registers a callback to handle background messages.
removeTags(List<String> tags) Future<bool>
Remove specific tags from the device.
removeTemplate() Future<bool>
Remove the notification template from this device.
setTemplate(String body) Future<bool>
Set a notification template to be used for this device.
start() Future<void>
Intializes the plugin and requests notification permissions.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance AzureNotificationHubPlatform
The default instance of AzureNotificationHubPlatform to use.
getter/setter pair
onMessage StreamController<Map<String, dynamic>>
StreamController for adding messages received while the app is in the foreground.
final
onMessageOpenedApp StreamController<Map<String, dynamic>>
StreamController for adding message that caused the app to open.
final