SafariMpnBuilder class

Utility class that provides methods to build or parse the JSON structure used to represent the format of a push notification.

It provides getters and setters for the fields of a push notification, following the format specified by Apple Push Notification Service (APNs). This format is compatible with MpnSubscription.setNotificationFormat.

  • See MpnSubscription.setNotificationFormat
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

SafariMpnBuilder.new([String? notificationFormat])
Creates an object to be used to create a push notification format.
factory

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

build() String

Available on SafariMpnBuilder, provided by the SafariMpnBuilderExt extension

Produces the JSON structure for the push notification format specified by this object.
getAction() String?

Available on SafariMpnBuilder, provided by the SafariMpnBuilderExt extension

Gets the value of aps.alert.action field.
getBody() String?

Available on SafariMpnBuilder, provided by the SafariMpnBuilderExt extension

Gets the value of aps.alert.body field.
getTitle() String?

Available on SafariMpnBuilder, provided by the SafariMpnBuilderExt extension

Gets the value of aps.alert.title field.
getUrlArguments() List<String>?

Available on SafariMpnBuilder, provided by the SafariMpnBuilderExt extension

Gets the value of aps.url-args field.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAction(String? action) SafariMpnBuilder

Available on SafariMpnBuilder, provided by the SafariMpnBuilderExt extension

Sets the aps.alert.action field.
setBody(String? body) SafariMpnBuilder

Available on SafariMpnBuilder, provided by the SafariMpnBuilderExt extension

Sets the aps.alert.body field.
setTitle(String? title) SafariMpnBuilder

Available on SafariMpnBuilder, provided by the SafariMpnBuilderExt extension

Sets the aps.alert.title field.
setUrlArguments(List<String>? urlArguments) SafariMpnBuilder

Available on SafariMpnBuilder, provided by the SafariMpnBuilderExt extension

Sets the aps.url-args field.
toString() String
A string representation of this object.
inherited

Operators

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