AndroidConfigV2 class
Android specific V2 options for messages sent through FCM connection server.
This is a v2 version of the AndroidConfig message and will replace it in the v2 API.
Constructors
-
AndroidConfigV2({AndroidBackgroundSyncMessage? backgroundSync, bool? bandwidthConstrainedOk, String? collapseKey, Map<
String, String> ? data, bool? directBootOk, AndroidFcmOptions? fcmOptions, AndroidRemoteNotification? remoteNotification, String? restrictedPackageName, bool? restrictedSatelliteOk, String? ttl}) - AndroidConfigV2.fromJson(Map json_)
Properties
- backgroundSync ↔ AndroidBackgroundSyncMessage?
-
Non-urgent background sync message to send to Android devices.
getter/setter pair
- bandwidthConstrainedOk ↔ bool?
-
If set to true, messages will be allowed to be delivered to the app while
the device is in bandwidth constrained mode.
getter/setter pair
- collapseKey ↔ String?
-
An identifier of a group of messages that can be collapsed, so that only
the last message gets sent when delivery can be resumed.
getter/setter pair
-
data
↔ Map<
String, String> ? -
Arbitrary key/value payload.
getter/setter pair
- directBootOk ↔ bool?
-
If set to true, messages will be allowed to be delivered to the app while
the device is in direct boot mode.
getter/setter pair
- fcmOptions ↔ AndroidFcmOptions?
-
Options for features provided by the FCM SDK for Android.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- remoteNotification ↔ AndroidRemoteNotification?
-
User-facing notification to send to Android devices.
getter/setter pair
- restrictedPackageName ↔ String?
-
Package name of the application where the registration token must match in
order to receive the message.
getter/setter pair
- restrictedSatelliteOk ↔ bool?
-
If set to true, messages will be allowed to be delivered to the app while
the device is connected over a restricted satellite network.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ttl ↔ String?
-
How long (in seconds) the message should be kept in FCM storage if the
device is offline.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited