MethodChannelAzureNotificationHub class

An implementation of AzureNotificationHubPlatform that uses method channels.

Inheritance

Constructors

MethodChannelAzureNotificationHub()
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
getInstallationId() → Future<String>
Get the installation ID for the device.
override
getPushChannel() → Future<String>
Get the push channel for the device.
override
getTags() → Future<List<String>>
Get the tags that are currently set for the device.
override
getUserId() → Future<String>
Get the user ID 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
setUserId(String userId) → Future<bool>
Set the user ID for the device.
override
start() → Future<void>
Initializes the plugin and requests notification permissions.
override
startWithHubInfo(String connectionString, String hubName) → Future<void>
Initializes the plugin with provided hub information and requests notification permissions.
override
toString() → String
A string representation of this object.
inherited

Operators

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