OneSignalPushSubscription class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
id
→ String?
-
no setter
-
optedIn
→ bool?
-
Gets a boolean value indicating whether the current user is opted in to receive push notifications.
If the device does not have push permission, optedIn is false.
If the device has push permission, but no push token or subscription ID yet, optedIn is true.
If the device has push permission and optOut() was not called, optedIn is true.
If the device has push permission and optOut() was called, optedIn is false.
no setter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
token
→ String?
-
The readonly push token.
no setter
Methods
-
addObserver(OnPushSubscriptionChangeObserver observer)
→ void
-
The OSPushSubscriptionObserver.onOSPushSubscriptionChanged method will be fired on the passed-in
-
lifecycleInit()
→ Future<void>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
optIn()
→ Future<void>
-
Call this method to receive push notifications on the device or to resume receiving of
push notifications after calling optOut. If needed, this method will prompt the user for
push notifications permission.
-
optOut()
→ Future<void>
-
If at any point you want the user to stop receiving push notifications on the current
device (regardless of system-level permission status), you can call this method to opt out.
-
removeObserver(OnPushSubscriptionChangeObserver observer)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited