MethodChannelAzureNotificationHub class

An implementation of AzureNotificationHubPlatform that uses method channels.

Inheritance

Constructors

MethodChannelAzureNotificationHub.new()
Creates an instance of AzureNotificationHubPlatform that uses method channels.

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
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.
override
clearTags() Future<void>
Clear all tags from the device.
override
getInitialMessage() Future<Map<String, dynamic>?>
Get the initial message that caused the app to open.
override
getTags() Future<List<String>>
Get the tags that are currently set for the device.
override
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.
override
removeTags(List<String> tags) Future<bool>
Remove specific tags from the device.
override
removeTemplate() Future<bool>
Remove the notification template from this device.
override
setTemplate(String body) Future<bool>
Set a notification template to be used for this device.
override
start() Future<void>
Intializes the plugin and requests notification permissions.
override
toString() String
A string representation of this object.
inherited

Operators

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